Abstract
Research on processing XML documents gained much activity in recent times. XML query languages are mostly based on XPath expressions, which are used to select parts of XML documents. So, methods defining semantics for XPath expressions are of special importance. In the paper we propose a relational semantics for XPath expressions. The semantics consists of four semantic functions defined over specific categories of XPath expressions and over contexts determined by the current state of computation. The definition is all sound, complete and expressive. We show that semantic functions can be naturally encoded in SQL and used to query XML documents stored in relational database. Some relevant optimization problems are also discussed.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
XML Path Language (XPath) 2.0, W3C Working Draft (2002), www.w3.org/TR/xpath20
XQuery 1.0: An XML Query Language. W3C Working Draft,(2002), www.w3.org/TR/xquery
XSL Transformations (XSLT) 2.0. W3C Working Draft (2002), www.w3.org/TR/xslt20
XML Pointer Language (XPointer). W3C Working Draft (2002), www.w3.org/TR/xptr
Pankowski, T.: XML-SQL: An XML Query Language Based on SQL and Path Tables. In: Chaudhri, A.B., Unland, R., Djeraba, C., Lindner, W. (eds.) EDBT 2002. LNCS, vol. 2490, pp. 184–209. Springer, Heidelberg (2002)
Pankowski, T.: Transformation of XML Data Using an Unranked Tree Transducer. In: Bauknecht, K., Tjoa, A.M., Quirchmayr, G. (eds.) EC-Web 2003. LNCS, vol. 2738, pp. 259–269. Springer, Heidelberg (2003)
XQuery 1.0 and XPath 2.0 Data Model. W3C Working Draft. (2002), www.w3.org/TR/query-datamodel
Deutsch, A., Fernandez, M., Suciu, D.: Storing Semistructured Data with STORED. SIGMOD Record 28, 431–442 (1999)
Florescu, D., Kossmann, D.: Storing and Querying XML Data Using an RDBMS. IEEE Data Engineering Bulletin 22, 27–34 (1999)
Manolescu, I., Florescu, D., Kossmann, D.: Pushing XML Queries inside Relational Databases. INRIA, Rapport de recherche 4112 (2001)
Shanmugasundaram, J., Tufte, K., Zhang, C., He, G., DeWitt, D.J., Naughton, J.F.: Relational Databases for Querying XML Documents: Limitations and Opportunities. In: Proc. of the 25th International Conference on Very Large Data Bases, VLDB 1999, Edinburgh, Scotland, pp. 302–314 (1999)
Yoshikawa, M., Amagasa, T., Shimura, T., Uemura, S.: XRel: A Path-Based Approach to Storage and Retrieval of XML Documents Using Relational Databases. ACM Transactions on Internet Technology 1, 110–141 (2001)
Harding, P.J., Li, Q., Moon, B.: XISS/R: XML Indexing and Storage System Using RDBMS. In: Proc. of the 29th International Conference on Very Large Data Bases, VLDB, Berlin, Germany, pp. 1073–1076 (2003)
Rho, H., Hou, W.C., Che, D., Wang, C.F.: Querying Semistructured Data Efficiently. In: Mařík, V., Štěpánková, O., Retschitzegger, W. (eds.) DEXA 2003. LNCS, vol. 2736, pp. 18–27. Springer, Heidelberg (2003)
Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Reading (1995)
Abiteboul, S., Buneman, P., Suciu, D.: Data on the Web. From Relational to Semistructured Data and XML. Morgan Kaufmann, San Francisco (2000)
Wadler, P.: Two Semantics for XPath (2000), www.research.avayalabs.com/user/wadler/
Miklau, G., Suciu, D.: Containment and Equivalence for an XPath Fragment. In: Proc. of the 21st ACM Symposium on Principles of Database Systems (PODS 2002), pp. 65–76. ACM Press, New York (2002)
Flesca, S., Furfaro, F., Masciari, E.: On the Minimization of XPath Queries. In: Proc. of the 29th International Conference on Very Large Data Bases, VLDB 2003, Berlin, Germany, pp. 153–164 (2003)
Wood, P.T.: Minimising Simple XPath Expressions. In: Proc. of the 4th Int. Workshop on the Web and Databases, WebDB 2001, pp. 13–18 (2001)
Li, Q., Moon, B.: Indexing and Querying XML Data for Regular Path Expressions. In: Proc. of the 27th International Conference on Very Large Data Bases, VLDB 2001, Rome, Italy, pp. 361–370 (2001)
McHugh, J., Widom, J.: Query Optimization for XML. In: Proc. of the 25th International Conference on Very Large Data Bases, VLDB 1999, Edinburgh, Scotland, UK, pp. 315–326 (1999)
Gottlob, G., Koch, C., Pichler, R.: Efficient Algorithms for Processing XPath Queries. In: Proc. of the 28th International Conference on Very Large Data Bases, VLDB 2002, Hong Kong, China, pp. 95–106 (2002)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pankowski, T. (2004). Processing XPath Expressions in Relational Databases. In: Van Emde Boas, P., Pokorný, J., Bieliková, M., Štuller, J. (eds) SOFSEM 2004: Theory and Practice of Computer Science. SOFSEM 2004. Lecture Notes in Computer Science, vol 2932. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24618-3_23
Download citation
DOI: https://doi.org/10.1007/978-3-540-24618-3_23
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-20779-5
Online ISBN: 978-3-540-24618-3
eBook Packages: Springer Book Archive