ACM Home Page
Please provide us with feedback. Feedback
Containment and equivalence for a fragment of XPath
Full text PdfPdf (367 KB)
Source Journal of the ACM (JACM) archive
Volume 51 ,  Issue 1  (January 2004) table of contents
Pages: 2 - 45  
Year of Publication: 2004
ISSN:0004-5411
Authors
Gerome Miklau  University of Washington, Seattle, Washington
Dan Suciu  University of Washington, Seattle, Washington
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 18,   Downloads (12 Months): 128,   Citation Count: 48
Additional Information:

abstract   references   cited by   index terms   review   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/962446.962448
What is a DOI?

ABSTRACT

XPath is a language for navigating an XML document and selecting a set of element nodes. XPath expressions are used to query XML data, describe key constraints, express transformations, and reference elements in remote documents. This article studies the containment and equivalence problems for a fragment of the XPath query language, with applications in all these contexts.In particular, we study a class of XPath queries that contain branching, label wildcards and can express descendant relationships between nodes. Prior work has shown that languages that combine any two of these three features have efficient containment algorithms. However, we show that for the combination of features, containment is coNP-complete. We provide a sound and complete algorithm for containment that runs in exponential time, and study parameterized PTIME special cases. While we identify one parameterized class of queries for which containment can be decided efficiently, we also show that even with some bounded parameters, containment remains coNP-complete. In response to these negative results, we describe a sound algorithm that is efficient for all queries, but may return false negatives in some cases.


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
2
 
3
 
4
 
5
Chamberlin, D., Clark, J., Florescu, D., Robie, J., Simeon, J., and Stefanascu, M. 2001. XQuery 1.0: An XML query language. http://www.w3.org/TR/xquery/.W3C working draft.
6
 
7
 
8
DeRose, S., Jr., R. D., and Maler, E. 1999. XML pointer language (XPointer) working draft. http://www.w3.org/TR/1999/WD-xptr-19991206.
 
9
DeRose, S., Maler, E., and Orchard, D. 2001. XML linking language (Xlink). http://www.w3.org/TR/2000/REC-xlink-20010627.
 
10
Deutsch, A. and Tannen, V. 2001. Containment and Integrity Constraints for XPath Fragments. In Proceedings of the 8th International Workshop on Knowledge Representation Meeting Database (KRDB) 2001 (Rome, Italy). CEUR Workshop Proceedings 45.
11
 
12
 
13
Gottlob, G., Koch, C., and Pichler, R. 2002. Efficient algorithms for processing xpath queries. In Proceedings of the 28th International Conference on Very Large Data Bases (VLDB 2002).
 
14
Gottlob, G., Koch, C., and Pichler, R. 2003. Xpath query evaluation: Improving time and space efficiency. In Proceedings of the 19th International Conference on Data Engineering (ICDE 2003).
15
 
16
 
17
Kosaraju, S. R. 1989. Efficient tree pattern matching. In FOCS: IEEE Symposium on Foundations of Computer Science (FOCS). IEEE Computer Society Press, Los Alamitos, Calif., 178--183.
 
18
 
19
Neven, F., and Schwentick, T. 2003. Xpath containment in the presence of disjunction, dtds, and variables. In Proceedings of the 19th International Conference on Data Engineering (ICDE 2003).
 
20
21
22
 
23
 
24
Vardi, M. 1997. Why is modal logic so robustly decidable. http://www.cs.rice.edu/∼vardi/papers/index.html.
 
25
 
26
 
27
Wood, P. T. 2001. Minimizing simple Xpath expressions. 4th International Workshop on the Web and Databases (WebDB'2001).
 
28
XSch 1999. XML Schema Part 1: Structures. http://www.w3.org/TR/1999/WD-xmlschema-1-19991217/. W3C Working Draft.
 
29
Yannakakis, M. 1981. Algorithms for acyclic database schemes. In Proceedings of the 7th Conference on Very Large Databases. Morgan-Kaufman, Los Altos, Calif.

CITED BY  48


REVIEW

"Jerzy W. Jaromczyk : Reviewer"

Extensible Markup Language (XML), a favorite for document markup, is commonly used for data transfer, and is a popular choice in business software solutions. In spite of its simplicity, the language, and the associated XPath query language, raises  more...

Collaborative Colleagues:
Gerome Miklau: colleagues
Dan Suciu: colleagues