Abstract
In this paper, we investigate the complexity of deciding the satisfiability of XPath 2.0 expressions, i.e., whether there is an XML document for which their result is nonempty. Several fragments that allow certain types of expressions are classified as either in PTIME or NP-hard to see which type of expression make this a hard problem. Finally, we establish a link between XPath expressions and partial tree descriptions which are studied in computational linguistics.
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
Amer-Yahia, S., Cho, S., Lakshmanan, L.V.S., Srivastava, D.: Minimization of tree pattern queries. In: SIGMOD Conference (2001)
Benedikt, M., Fan, W., Kuper, G.M.: Structural properties of XPath fragments. In: Calvanese, D., Lenzerini, M., Motwani, R. (eds.) ICDT 2003. LNCS, vol. 2572, pp. 79–95. Springer, Heidelberg (2002)
Berglund, A., Boag, S., Chamberlin, D., Fernández, M.F., Kay, M., Robie, J., Siméon, J.: XML path language (XPath) 2.0. W3C Working Draft (2002), http://www.w3.org/TR/xpath20/
Bodirsky, M., Kutz, M.: Pure dominance constraints. In: Proceedings of the 19th Annual Symposium on Theoretical Aspects of Computer Science, STACS 2002 (2002)
Cornell, T.: On determining the consistency of partial descriptions of trees. In: Proceedings of the 32nd Annual Meeting of the Association for Computational Linguistics, pp. 163–170. Morgan Kaufmann, San Francisco (1994)
Deutsch, A., Tannen, V.: Containment and integrity constraints for XPath fragments. In: Proceedings of the 8th International Workshop on Knowledge Representation Meets Databases, KRDB 2001 (2001)
Draper, D., Fankhauser, P., Fernández, M.F., Malhotra, A., Rose, K., Rys, M., Siméon, J., Wadler, P.: XQuery 1.0 and XPath 2.0 formal semantics (2002), http://www.w3.org/TR/xquery-semantics/
Fernández, M.F., Malhotra, A., Marsh, J., Nagy, M., Walsh, N.: XQuery 1.0 and XPath 2.0 data model. W3C Working Draft (2002), http://www.w3.org/TR/xpath-datamodel/
Garey, M.R., Johnson, D.S.: Computers and Intractability – A guide to NP-completeness. W. H. Freeman and Company, San Francisco (1979)
Koller, A., Niehren, J., Treinen, R.: Dominance constraints: Algorithms and complexity. In: Moortgat, M. (ed.) LACL 1998. LNCS (LNAI), vol. 2014, pp. 106–125. Springer, Heidelberg (2001)
Kwong, A., Gertz, M.: Schema-based optimization of xpath expressions. Technical report, University of California at Davis (2002)
Miklau, G., Suciu, D.: Containment and equivalence for an XPath fragment. In: Symposium on Principles of Database Systems, pp. 65–76 (2002)
Neven, F., Schwentick, T.: XPath containment in the presence of disjunction, DTDs and variables. In: Calvanese, D., Lenzerini, M., Motwani, R. (eds.) ICDT 2003. LNCS, vol. 2572, pp. 315–329. Springer, Heidelberg (2002)
Rogers, J., Vijay-Shanker, K.: Reasoning with descriptions of trees. In: Proceedings of the 30th Annual Meeting of the Association for Computational Linguistics, pp. 72–80 (1992)
Wadler, P.: Two semantics for XPath (1999), http://www.cs.bell-labs.com/who/wadler/topics/xml.html
Wood, P.T.: Minimising simple XPath expressions. In: Proceedings of the Fourth International Workshop on the Web and Databases (WebDB 2001), Santa Barbara, California, May 2001, pp. 13–18 (2001)
Wood, P.T.: Containment for XPath fragments under DTD constraints. In: Calvanese, D., Lenzerini, M., Motwani, R. (eds.) ICDT 2003. LNCS, vol. 2572, pp. 300–314. Springer, Heidelberg (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
Hidders, J. (2004). Satisfiability of XPath Expressions. In: Lausen, G., Suciu, D. (eds) Database Programming Languages. DBPL 2003. Lecture Notes in Computer Science, vol 2921. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24607-7_3
Download citation
DOI: https://doi.org/10.1007/978-3-540-24607-7_3
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-20896-9
Online ISBN: 978-3-540-24607-7
eBook Packages: Springer Book Archive