Skip to main content

A Study of a Positive Fragment of Path Queries: Expressiveness, Normal Form, and Minimization

  • Conference paper
Dataspace: The Final Frontier (BNCOD 2009)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 5588))

Included in the following conference series:

  • 924 Accesses

Abstract

We study the expressiveness of a positive fragment of path queries, denoted Path\(\mathstrut^+\), on node-labeled trees documents. The expressiveness of Path\(\mathstrut^+\) is studied from two angles. First, we establish that Path\(\mathstrut^+\) is equivalent in expressive power to a particular sub-fragment as well as to the class of tree queries, a sub-class of the first-order conjunctive queries defined over label, parent-child, and child-parent predicates. The translation algorithm from tree queries to Path\(\mathstrut^+\) yields a normal form for Path\(\mathstrut^+\) queries. Using this normal form, we can decompose a Path\(\mathstrut^+\) query into sub-queries that can be expressed in a very small sub-fragment of Path\(\mathstrut^+\) for which efficient evaluation strategies are available. Second, we characterize the expressiveness of Path\(\mathstrut^+\) in terms of its ability to resolve nodes in a document. This result is used to show that each tree query can be translated to a unique, equivalent, and minimal tree query. The combination of these results yields an effective strategy to evaluate a large class of path queries on documents.

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. Al-Khalifa, S., Jagadish, H.V., Patel, J.M., Wu, Y., Koudas, N., Srivastava, D.: Structural joins: A primitive for efficient XML query pattern matching. In: ICDE (2002)

    Google Scholar 

  2. Amer-Yahia, S., Cho, S., Lakshmanan, L.V.S., Srivastava, D.: Tree pattern query minimization. VLDB J. 11(4), 315–331 (2002)

    Article  MATH  Google Scholar 

  3. Benedikt, M., Fan, W., Kuper, G.M.: Structural properties of XPath fragments. Theor. Comput. Sci. 336(1), 3–31 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  4. Brenes, S., Wu, Y., Gucht, D.V., Cruz, P.S.: Trie indexes for efficient XML query evaluation. In: WebDB (2008)

    Google Scholar 

  5. Chamberlin, D., et al.: XQuery 1.0: An XML query language, W3C (2003)

    Google Scholar 

  6. Clark, J., DeRose, S.: XML path language (XPath) version 1.0, http://www.w3.org/TR/XPATH

  7. Fletcher, G.H.L., Van Gucht, D., Wu, Y., Gyssens, M., Brenes, S., Paredaens, J.: A methodology for coupling fragments of XPath with structural indexes for XML documents. In: Arenas, M., Schwartzbach, M.I. (eds.) DBPL 2007. LNCS, vol. 4797, pp. 48–65. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  8. Gottlob, G., Koch, C., Pichler, R.: Efficient Algorithms for Processing XPath Queries. ACM Trans. Database Syst. 30(2), 444–491 (2005)

    Article  Google Scholar 

  9. Götz, M., Koch, C., Martens, W.: Efficient algorithms for the tree homeomorphism problem. In: Arenas, M., Schwartzbach, M.I. (eds.) DBPL 2007. LNCS, vol. 4797, pp. 17–31. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  10. Gyssens, M., Paredaens, J., Gucht, D.V., Fletcher, G.H.L.: Structural characterizations of the semantics of XPath as navigation tool on a document. In: PODS (2006)

    Google Scholar 

  11. Kaushik, R., Shenoy, P., Bohannon, P., Gudes, E.: Exploiting local similarity for indexing paths in graph-structured data. In: ICDE (2002)

    Google Scholar 

  12. Koch, C.: Processing queries on tree-structured data efficiently. In: PODS (2006)

    Google Scholar 

  13. Marx, M., de Rijke, M.: Semantic characterizations of navigational XPath. SIGMOD Record 34(2), 41–46 (2005)

    Article  Google Scholar 

  14. Miklau, G., Suciu, D.: Containment and equivalence for a fragment of XPath. J. ACM 51(1), 2–45 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  15. Paparizos, S., Patel, J.M., Jagadish, H.V.: SIGOPT: Using schema to optimize XML query processing. In: ICDE (2007)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wu, Y., Van Gucht, D., Gyssens, M., Paredaens, J. (2009). A Study of a Positive Fragment of Path Queries: Expressiveness, Normal Form, and Minimization. In: Sexton, A.P. (eds) Dataspace: The Final Frontier. BNCOD 2009. Lecture Notes in Computer Science, vol 5588. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-02843-4_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-02843-4_14

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-02842-7

  • Online ISBN: 978-3-642-02843-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics