Skip to main content

Validity of Tree Pattern Queries with Respect to Schema Information

  • Conference paper
Mathematical Foundations of Computer Science 2013 (MFCS 2013)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8087))

Abstract

We prove that various containment and validity problems for tree pattern queries with respect to a schema are EXPTIME-complete. When one does not require the root of a tree pattern query to match the root of a tree, validity of a non-branching tree pattern query with respect to a Relax NG schema or W3C XML Schema is already EXPTIME-hard when the query does not branch and uses only child axes. These hardness results already hold when the alphabet size is fixed. Validity with respect to a DTD is proved to be EXPTIME-hard already when the query only uses child axes and is allowed to branch only once.

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. Arenas, M., Daenen, J., Neven, F., Van den Bussche, J., Ugarte, M., Vansummeren, S.: Discovering XSD keys from XML data. In: SIGMOD (to appear, 2013)

    Google Scholar 

  2. Benedikt, M., Bourhis, P., Senellart, P.: Monadic datalog containment. In: Czumaj, A., Mehlhorn, K., Pitts, A., Wattenhofer, R. (eds.) ICALP 2012, Part II. LNCS, vol. 7392, pp. 79–91. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  3. Benedikt, M., Fan, W., Geerts, F.: XPath satisfiability in the presence of DTDs. J. ACM 55(2) (2007)

    Google Scholar 

  4. Björklund, H., Gelade, W., Martens, W.: Incremental XPath evaluation. ACM Trans. Database Syst. 35(4), 29 (2010)

    Article  Google Scholar 

  5. Björklund, H., Martens, W., Schwentick, T.: Optimizing conjunctive queries over trees using schema information. In: Ochmański, E., Tyszkiewicz, J. (eds.) MFCS 2008. LNCS, vol. 5162, pp. 132–143. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  6. Bray, T., Paoli, J., Sperberg-McQueen, C.M., Maler, E., Yergeau, F.: Extensible Markup Language XML 1.0 (5th edn.). World Wide Web Consortium (2008)

    Google Scholar 

  7. Chlebus, B.S.: Domino-tiling games. JCSS 32(3), 374–392 (1986)

    MathSciNet  MATH  Google Scholar 

  8. Clark, J., DeRose, S.: XML Path Language (XPath) version 1.0. Technical report, World Wide Web Consortium (1999), http://www.w3.org/TR/xpath/

  9. Clark, J., Murata, M.: Relax NG specification (2001), http://www.relaxng.org

  10. Flesca, S., Furfaro, F., Masciari, E.: On the minimization of XPath queries. J. ACM 55(1) (2008)

    Google Scholar 

  11. Gelade, W., Idziaszek, T., Martens, W., Neven, F.: Simplifying XML Schema: Single-type approximations of regular tree languages. In: PODS (2010)

    Google Scholar 

  12. Hashimoto, K., Kusunoki, Y., Ishihara, Y., Fujiwara, T.: Validity of positive XPath queries with wildcard in the presence of DTDs. In: DBPL (2011)

    Google Scholar 

  13. Martens, W., Neven, F., Schwentick, T.: Simple off the shelf abstractions for XML Schema. SIGMOD Record 36(3), 15–22 (2007)

    Article  Google Scholar 

  14. Martens, W., Neven, F., Schwentick, T., Bex, G.J.: Expressiveness and complexity of XML Schema. ACM Trans. Database Syst. 31(3), 770–813 (2006)

    Article  Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  16. Murlak, F., Ogiński, M., Przybyłko, M.: Between tree patterns and conjunctive queries: Is there tractability beyond acyclicity? In: Rovan, B., Sassone, V., Widmayer, P. (eds.) MFCS 2012. LNCS, vol. 7464, pp. 705–717. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  17. Neven, F., Schwentick, T.: On the complexity of XPath containment in the presence of disjunction, DTDs, and variables. LMCS 2(3) (2006)

    Google Scholar 

  18. Stockmeyer, L., Meyer, A.: Word problems requiring exponential time: Preliminary report. In: STOC, pp. 1–9 (1973)

    Google Scholar 

  19. Thompson, H.S., Mendelsohn, N., Beech, D., Maloney, M.: XML Schema Definition Language (XSD) 1.1, http://www.w3.org/TR/xmlschema11-1/

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Björklund, H., Martens, W., Schwentick, T. (2013). Validity of Tree Pattern Queries with Respect to Schema Information. In: Chatterjee, K., Sgall, J. (eds) Mathematical Foundations of Computer Science 2013. MFCS 2013. Lecture Notes in Computer Science, vol 8087. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-40313-2_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-40313-2_17

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-40312-5

  • Online ISBN: 978-3-642-40313-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics