skip to main content
10.1145/1265530.1265541acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article

The complexity of query containment in expressive fragments of XPath 2.0

Published:11 June 2007Publication History

ABSTRACT

Query containment has been studied extensively for fragments of XPath 1.0. For instance, the problem is known to be ExpTime-complete for CoreXPath, the navigational core of XPath 1.0. Much less is known about query containment in (fragments of) the richer language XPath 2.0. In this paper, we consider extensions of CoreXPath with the following operators, which are all part of XPath 2.0 (except the last): path intersection, path equality, path complementation, for-loops, and transitive closure. For each combination of these operators, we determine the complexity of query containment, both with and without DTDs. It turns out to range from ExpTime (for extensions with path equality) and 2-ExpTime (for extensions with path intersection) to non-elementary (for extensions with path complementation or for-loops). In almost all cases, adding transitive closure on top has no further impact on the complexity. We also investigate the effect of dropping the upward and/or sibling axes, and show that this sometimes leads to a reduction in complexity.Since the languages we study include negation and conjunction infilters, our complexity results can equivalently be stated in terms ofsatisfiability.We also analyze the above languages in terms of succinctness.

Skip Supplemental Material Section

Supplemental Material

p73-cate_56k.mp4

mp4

30.9 MB

p73-cate_768k.mp4

mp4

168.7 MB

References

  1. M. Benedikt, W. Fan, and F. Geerts. XPath satisfiability in the presence of DTDs. In Proc. of PODS 2005, pages 25--36. ACM Press, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. M. Benedikt, W. Fan, and G. M. Kuper. Structural properties of XPath fragments. Theoretical Computer Science, 336(1):3--31, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. A. K. Chandra, D. C. Kozen, and L. J. Stockmeyer. Alternation. Journal of the ACM, 28(1):114--133, 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. A. Deutsch and V. Tannen. Containment and integrity constraints for XPath fragments. In Proc. of KRDB 2001, volume 45 of CEUR Workshop Series. 2001.Google ScholarGoogle Scholar
  5. K. Etessami, M. Y. Vardi, and T. Wilke. First order logic with two variables and unary temporal logic. Information and computation, 179(2):279--295, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. W. Fan, F. Geerts, X. Jia, and A. Kementsietsidis. Rewriting regular XPath queries on XML views. In Proc. of ICDE 2007, 2007.Google ScholarGoogle ScholarCross RefCross Ref
  7. G. Gottlob and C. Koch. Monadic queries over tree-structured data. In Proc. of LICS 2002, pages 189--202. IEEE Computer Society, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Gottlob, C. Koch, R. Pichler, and L. Segoufin. The complexity of XPath query evaluation and XML typing. Journal of the ACM, 52(2):284--335, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. G. Gottlob, C. Koch, and K. U. Schulz. Conjunctive queries over trees. In Proc. of PODS 2004, pages 189--200. ACM Press, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. M. Grohe and N. Schweikardt. The succinctness of first-order logic on linear orders. Logical Methods in Computer Science, 1(1), 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. B. C. Hammerschmidt, M. Kempa, and V. Linnemann. On the intersection of XPath expressions. In Proc. of IDEAS 2005, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. J. Hidders. Satisfiability of XPath expressions. In Proc. of DBPL, pages 21--36, 2003.Google ScholarGoogle Scholar
  13. R. E. Ladner. The computational complexity of provability in systems of modal propositional logic. SIAM Journal of Computing, 6(3):467--480, 1977.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. M. Lange and C. Lutz. 2-ExpTime lower bounds for propositional dynamic logics with intersection. Journal of Symbolic Logic, 70(5):1072--1086, 2005.Google ScholarGoogle ScholarCross RefCross Ref
  15. W. Martens, F. Neven, T. Schwentick, and G. Bex. Expressiveness and complexity of XML Schema. ACM Transactions on Database Systems 31(3):770--813, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. M. Marx. XPath with conditional axis relations. In Proc. of EDBT 2004, volume 2992 of LNCS. Springer, 2004.Google ScholarGoogle Scholar
  17. M. Marx. Conditional XPath. ACM Transactions on Database Systems, 30(4):929--959, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. M. Marx and M. de Rijke. Semantic characterizations of navigational XPath. ACM SIGMOD Record, 34(2):41--46, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. G. Miklau and D. Suciu. Containment and equivalence for an XPath fragment. In Proc. of PODS 2002, pages 65--76. ACM Press, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. M. Murata, D. Lee, M. Mani, and K. Kawaguchi. Taxonomy of XML schema languages using formal language theory. ACM Transactions on Internet Technology 5(4):660--704, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. F. Neven and T. Schwentick. On the complexity of XPath containment in the presence of disjunction, DTDs and variables. Logical Methods in Computer Science, 2:1--30, 2006.Google ScholarGoogle ScholarCross RefCross Ref
  22. D. Olteanu, H. Meuss, T. Furche, and F. Bry. XPath: Looking forward. In Proc. of XMLDM 2002, pages 109--127. Springer Verlag, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. T. Schwentick. XPath query containment. ACM SIGMOD Record, 33(1):101--109, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. L. J. Stockmeyer. The Complexity of Decision Problems in Automata Theory. PhD thesis, Department of Electrical Engineering, MIT, 1974.Google ScholarGoogle Scholar
  25. B. ten Cate. The expressivity of XPath with transitive closure. In Proc. of PODS 2006, pages 328--337. ACM Press, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. B. ten Cate and M. Marx. Axiomatizing the logical core of XPath 2.0. In Proc. of ICDT 2007, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. M. Vardi. Reasoning about the past with two-way automata. In Proc. of ICALP 1998, volume 1443 of LNCS, pages 628--641. Springer, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. P. T. Wood. Containment for XPath fragments under DTD constraints. In Proc. of ICDT 2003, pages 300--314, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. The complexity of query containment in expressive fragments of XPath 2.0

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      PODS '07: Proceedings of the twenty-sixth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
      June 2007
      328 pages
      ISBN:9781595936851
      DOI:10.1145/1265530

      Copyright © 2007 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 11 June 2007

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      PODS '07 Paper Acceptance Rate28of187submissions,15%Overall Acceptance Rate642of2,707submissions,24%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader