|
ABSTRACT
We study the satisfiability problem associated with XPath in the presence of DTDs. This is the problem of determining, given a query p in an XPath fragment and a DTD D, whether or not there exists an XML document T such that T conforms to D and the answer of p on T is nonempty. We consider a variety of XPath fragments widely used in practice, and investigate the impact of different XPath operators on the satisfiability analysis. We first study the problem for negation-free XPath fragments with and without upward axes, recursion and data-value joins, identifying which factors lead to tractability and which to NP-completeness. We then turn to fragments with negation but without data values, establishing lower and upper bounds in the absence and in the presence of upward modalities and recursion. We show that with negation the complexity ranges from PSPACE to EXPTIME. Moreover, when both data values and negation are in place, we find that the complexity ranges from NEXPTIME to undecidable. Furthermore, we give a finer analysis of the problem for particular classes of DTDs, exploring the impact of various DTD constructs, identifying tractable cases, as well as providing the complexity in the query size alone. Finally, we investigate the problem for XPath fragments with sibling axes, exploring the impact of horizontal modalities on the satisfiability analysis.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Afanasiev, L., Blackburn, P., Dimitriou, I., Gaiffe, B., Goris, E., Marx, M., and de Rijke, M. 2005. PDL for ordered trees. J. Non-Classical Logics 15, 115--135.
|
| |
2
|
|
 |
3
|
|
| |
4
|
|
| |
5
|
Börger, E., Grädel, E., and Gurevich, Y. 1997. The Classical Decision Problem. Springer-Verlag, New York.
|
| |
6
|
Bray, T., Paoli, J., and Sperberg-McQueen, C. M. 1998. Extensible markup language (XML) 1.0. W3C Recommendation. http://www.w3.org/TR/REC-xml.
|
| |
7
|
|
| |
8
|
Chamberlin, D., Boag, S., Fernández, M. F., Florescu, D., Robie, J., and Siméon, J. 2001. XQuery 1.0: An XML query language. W3C Working Draft.
|
| |
9
|
|
| |
10
|
|
| |
11
|
Clark, J., and DeRose, S. 1999. XML Path Language (XPath). W3C Recommendation.
|
| |
12
|
|
 |
13
|
|
 |
14
|
|
| |
15
|
Geerts, F., and Fan, W. 2005. Satisfiability of XPath queries with sibling axes. In Proceedings of the 10th International Symposium on Database Programming Languages (DBPL). Lecture Notes in Computer Science, vol. 3774. Springer-Verlag, New York, 122--137.
|
 |
16
|
|
| |
17
|
Hidders, J. 2004. Satisfiability of XPath expressions. In Proceedings of the 9th International Workshop on Database Programming Languages (DBPL). Lecture Notes in Computer Science, vol. 2921. Springer-Verlag, New York, 21--36.
|
| |
18
|
John E. Hopcroft , Rajeev Motwani , Jeffrey D. Ullman, Introduction to Automata Theory, Languages, and Computation (3rd Edition), Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 2006
|
| |
19
|
|
| |
20
|
|
| |
21
|
Laks V. S. Lakshmanan , Ganesh Ramesh , Hui Wang , Zheng Zhao, On testing satisfiability of tree pattern queries, Proceedings of the Thirtieth international conference on Very large data bases, p.120-131, August 31-September 03, 2004, Toronto, Canada
|
 |
22
|
|
| |
23
|
|
| |
24
|
Marx, M. 2004. XPath with conditional axis relations. In Proceedings of the 9th International Conference on Extending Database Technology (EDBT). Lecture Notes in Computer Science, vol. 2992. Springer-Verlag, New York, 477--494.
|
 |
25
|
|
 |
26
|
|
| |
27
|
|
 |
28
|
|
 |
29
|
|
| |
30
|
Neven, F., and Schwentick, T. 2006. On the complexity of XPath containment in the presence of disjunction, DTDs, and variables. Log. Meth. Comput. Sci. 2, 3, 1--30.
|
| |
31
|
Dan Olteanu , Holger Meuss , Tim Furche , François Bry, XPath: Looking Forward, Proceedings of the Worshops XMLDM, MDDE, and YRWS on XML-Based Data Management and Multimedia Engineering-Revised Papers, p.109-127, March 24-28, 2002
|
| |
32
|
Papadimitriou, C. H. 1994. Computational Complexity. Addison-Wesley, Reading, MA.
|
 |
33
|
|
| |
34
|
Stockmeyer, L. 1974. The complexity of decision problems in automata theory and logic. Tech. rep. MIT, Cambridge, MA.
|
| |
35
|
Sur, G., Hammer, J., and Siméon, J. 2004. An XQuery-based language for processing updates in XML. In Proceedings of Workshop on Programming Language Technologies for XML (Plan-X). 40--53.
|
| |
36
|
Thatcher, J., and Wright, J. 1968. Generalized finite automata with an application to a decision problem of second-order logic. Math. Syst. Theory 2, 57--82.
|
| |
37
|
|
| |
38
|
W3C. 2006. XML Path Language (XPath) 2.0. W3C Recommendation.
|
| |
39
|
Wood, P. 2001. Minimising simple XPath expressions. In Proceedings of the 4th International Workshop on the Web and Databases (WebDB). 13--18.
|
| |
40
|
|
CITED BY 5
|
|
Geert Jan Bex , Wouter Gelade , Wim Martens , Frank Neven, Simplifying XML schema: effortless handling of nondeterministic regular expressions, Proceedings of the 35th SIGMOD international conference on Management of data, June 29-July 02, 2009, Providence, Rhode Island, USA
|
|
|
|
|
|
|
|
|
|
|
|
Pablo Barceló , Leonid Libkin , Antonella Poggi , Cristina Sirangelo, XML with incomplete information: models, properties, and query answering, Proceedings of the twenty-eighth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, June 29-July 01, 2009, Providence, Rhode Island, USA
|
|