Skip to main content

Processing XPath Expressions in Relational Databases

  • Conference paper
SOFSEM 2004: Theory and Practice of Computer Science (SOFSEM 2004)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2932))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. XML Path Language (XPath) 2.0, W3C Working Draft (2002), www.w3.org/TR/xpath20

  2. XQuery 1.0: An XML Query Language. W3C Working Draft,(2002), www.w3.org/TR/xquery

  3. XSL Transformations (XSLT) 2.0. W3C Working Draft (2002), www.w3.org/TR/xslt20

  4. XML Pointer Language (XPointer). W3C Working Draft (2002), www.w3.org/TR/xptr

  5. 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)

    Chapter  Google Scholar 

  6. 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)

    Chapter  Google Scholar 

  7. XQuery 1.0 and XPath 2.0 Data Model. W3C Working Draft. (2002), www.w3.org/TR/query-datamodel

  8. Deutsch, A., Fernandez, M., Suciu, D.: Storing Semistructured Data with STORED. SIGMOD Record 28, 431–442 (1999)

    Article  Google Scholar 

  9. Florescu, D., Kossmann, D.: Storing and Querying XML Data Using an RDBMS. IEEE Data Engineering Bulletin 22, 27–34 (1999)

    Google Scholar 

  10. Manolescu, I., Florescu, D., Kossmann, D.: Pushing XML Queries inside Relational Databases. INRIA, Rapport de recherche 4112 (2001)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Article  Google Scholar 

  13. 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)

    Google Scholar 

  14. 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)

    Chapter  Google Scholar 

  15. Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Reading (1995)

    MATH  Google Scholar 

  16. Abiteboul, S., Buneman, P., Suciu, D.: Data on the Web. From Relational to Semistructured Data and XML. Morgan Kaufmann, San Francisco (2000)

    Google Scholar 

  17. Wadler, P.: Two Semantics for XPath (2000), www.research.avayalabs.com/user/wadler/

  18. 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)

    Chapter  Google Scholar 

  19. 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)

    Google Scholar 

  20. 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)

    Google Scholar 

  21. 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)

    Google Scholar 

  22. 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)

    Google Scholar 

  23. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics