Skip to main content Accessibility help
×
Home

Context-preserving XQuery fusion

  • H. KATO (a1), S. HIDAKA (a1), Z. HU (a1), K. NAKANO (a2) and Y. ISHIHARA (a3)...

Abstract

This paper solves the known problem of elimination of unnecessary internal element construction as well as variable elimination in XML processing with (a subset of) XQuery without ignoring the issues of document order. The semantics of XQuery is context sensitive and requires preservation of document order. In this paper, we propose, as far as we are aware, the first XQuery fusion that can deal with both the document order and the context of XQuery expressions. More specifically, we carefully design a context representation of XQuery expressions based on the Dewey order encoding, develop a context-preserving XQuery fusion for ordered trees by static emulation of the XML store, and prove that our fusion is correct. Our XQuery fusion has been implemented, and all the examples in this paper have passed through the system.

Copyright

References

Hide All
Amano, S., Libkin, L. and Murlak, F. (2009) XML schema mappings. In: Proceedings of the 28th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS), ACM 3342. http://doi.acm.org/10.1145/1559795.1559801.
Brundage, M. (2004) XQuery: The XML Query Language, Addison-Wesley.
Chin, W. (1992) Safe fusion of functional expressions. In: Proceedings of the Conference on Lisp and Functional Programming, San Francisco, California. ACM Press 1120.
Daniels, S., Graefe, G., Keller, T., Maier, D., Schmidt, D. and Vance, B. (1991) Query optimization in revelation, an overview. Data Engineering 14 (2)5862.
Deutsch, A., Papakonstantinou, Y. and Xu, Y. (2004) The NEXT framework for logical XQuery opimization. In: Proceedings of the 30th International Conference on Very Large Data Bases (VLDB), Morgan Kaufmann. 168179. http://www.vldb.org/conf/2004/RS4P5.PDF.
Fegaras, L. (2010) Propagating updates through XML views using lineage tracing. In: Proceedings of the 26th International Conference on Data Engineering (ICDE), IEEE Computer Society 309320.
Fegaras, L. and Maier, D. (2000) Optimizing object queries using an effective calculus. ACM Transactions on Database Systems (TODS) 25 (4)457516.
Fernández, M., Hidders, J., Michiels, P., Siméon, J. and Vercammen, R. (2005) Optimizing sorting and duplicate elimination in XQuery path expressions. In: Proceedings of the 16th International Conference on Database and Expert Systems Applications (DEXA), Springer 554563. http://dx.doi.org/10.1007/11546924_54.
Gill, A., Launchbury, J. and Jones, S. L. P. (1993) A short cut to deforestation. In: Proceedings of the 6th Conference on Functional Programming Languages and Computer Architecture (FPCA), ACM Press 223232.
Gottlob, G., Koch, C. and Pichler, R. (2005) Efficient algorithms for processing XPath queries. ACM Transactions on Database Systems (TODS) 30 (2)444491.
Grust, T., Mayr, M. and Rittinger, J. (2010) Let SQL drive the XQuery workhorse (XQuery join graph isolation). In: Proceedings of the 13th International Conference on Extending Database Technology (EDBT), ACM Press 147158. http://doi.acm.org/10.1145/1739041.1739062.
Grust, T., Sakr, S. and Teubner, J. (2004) XQuery on SQL hosts. In: Proceedings of the 30th International Conference on Very Large Data Bases (VLDB), Morgan Kaufmann 252263. http://www.vldb.org/conf/2004/RS7P1.PDF.
Gueni, B., Abdessalem, T., Cautis, B. and Waller, E. (2008). Pruning nested XQuery queries. In: Proceedings of the 17th ACM Conference on Information and Knowledge Management (CIKM), ACM 541550. http://doi.acm.org/10.1145/1458082.1458154.
Hidders, J., Paredaens, J., Vercammen, R. and Demeyer, S. (2004). A light but formal introduction to XQuery. In: Proceedings of the Second International XML Database Symposium (XSym). Springer Lecture Notes in Computer Science 3186 520. http://dx.doi.org/10.1007/978-3-540-30081-6_2.
Koch, C. (2005) On the role of composition in XQuery. In: Proceedings of the 8th International Workshop on the Web and Databases (WebDB) 37–42.
Lu, J., Ling, T. W., Chan, C.-Y. and Chen, T. (2005) From region encoding to extended Dewey: On efficient processing of XML twig pattern matching. In: Proceedings of the 31st International Conference on Very Large Data Bases (VLDB), ACM 193204. http://www.vldb2005.org/program/paper/tue/p193-lu.pdf.
Michiels, P., Manolescu, I. and Miachon, C. (2008) Toward microbenchmarking XQuery. Information Systems 33 (2)182202. http://dx.doi.org/10.1016/j.is.2007.05.003.
Ohori, A. (1990) Representing object identity in a pure functional language. In: Proceedings of the 3rd International Conference on Database Theory (ICDT). Springer-Verlag Lecture Notes in Computer Science 470 4155. http://dx.doi.org/10.1007/3-540-53507-1_69.
Ohori, A. and Sasano, I. (2007) Lightweight fusion by fixed point promotion. In: Proceedings of the 34th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) 143–154. http://doi.acm.org/10.1145/1190216.1190241.
Page, W. L., Hidders, J., Michiels, P., Paredaens, J. and Vercammen, R. (2005) On the expressive power of node construction in XQuery. In: Proceedings of the 8th International Workshop on the Web and Databases (WebDB) 85–90.
Parys, P. (2009) XPath evaluation in linear time with polynomial combined complexity. In: Proceedings of the 28th ACM SIGMOD-SIGACT-SIGART. Symposium on Principles of Database Systems (PODS), ACM 5564. http://doi.acm.org/10.1145/1559795.1559805.
Tatarinov, I. and Halevy, A. (2004) Efficient query reformulation in peer data management systems. In: Proceedings of the 2004 ACM SIGMOD International Conference on Management of Data (SIGMOD) 539–550. http://doi.acm.org/10.1145/1007568.1007629.
Tatarinov, I., Viglas, S. D., Beyer, K., Shanmugasundaram, J., Shekita, E. and Zhang, C. (2002) Storing and querying ordered XML using a relational database system. In: Proceedings of the 2002 ACM SIGMOD International Conference on Management of Data (SIGMOD) 204–215. http://doi.acm.org/10.1145/564691.564715.
Wadler, P. (1988) Deforestation: Transforming programs to eliminate trees. In: Proceedings of the 2nd European Symposium on Programming (ESOP). Springer Lecture Notes in Computer Science 300 344358. http://dx.doi.org/10.1007/3-540-19027-9_23.
World Wide Web Consortium (2010a) XQuery1.0: An XML query language. http://www.w3.org/TR/xquery/. W3C Recommendation.
World Wide Web Consortium (2010b) XQuery1.0 and XPath2.0 formal semantics. http://www.w3.org/TR/xquery-semantics/. W3C Recommendation.
Xu, L., Ling, T. W., Wu, H. and Bao, Z. (2009) DDE: From Dewey to a fully dynamic XML labelling scheme. In: Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD) 719–730. http://doi.acm.org/10.1145/1559845.1559921.

Context-preserving XQuery fusion

  • H. KATO (a1), S. HIDAKA (a1), Z. HU (a1), K. NAKANO (a2) and Y. ISHIHARA (a3)...

Metrics

Full text views

Total number of HTML views: 0
Total number of PDF views: 0 *
Loading metrics...

Abstract views

Total abstract views: 0 *
Loading metrics...

* Views captured on Cambridge Core between <date>. This data will be updated every 24 hours.

Usage data cannot currently be displayed