ACM Home Page
Please provide us with feedback. Feedback
XPath satisfiability in the presence of DTDs
Full text PdfPdf (917 KB)
Source
Journal of the ACM (JACM) archive
Volume 55 ,  Issue 2  (May 2008) table of contents
Article No. 8  
Year of Publication: 2008
ISSN:0004-5411
Authors
Michael Benedikt  Oxford University, Oxford, UK
Wenfei Fan  University of Edinburgh, Edinburgh, UK, and Bell Laboratories, Murray Hill, New Jersey
Floris Geerts  University of Edinburgh, Edinburgh, UK, and Hasselt University, and Transnational University of Limburg, Limburg, Belgium
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 14,   Downloads (12 Months): 208,   Citation Count: 5
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1346330.1346333
What is a DOI?

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
 
19
 
20
 
21
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
 
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


Collaborative Colleagues:
Michael Benedikt: colleagues
Wenfei Fan: colleagues
Floris Geerts: colleagues