|
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
|
Sihem Amer-Yahia , SungRan Cho , Laks V. S. Lakshmanan , Divesh Srivastava, Minimization of tree pattern queries, Proceedings of the 2001 ACM SIGMOD international conference on Management of data, p.497-508, May 21-24, 2001, Santa Barbara, California, United States
|
 |
2
|
Peter Buneman , Susan Davidson , Wenfei Fan , Carmem Hara , Wang-Chiew Tan, Keys for XML, Proceedings of the 10th international conference on World Wide Web, p.201-210, May 01-05, 2001, Hong Kong, Hong Kong
[doi> 10.1145/371920.371984]
|
| |
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
|
Richard Cole , Ramesh Hariharan , Piotr Indyk, Tree pattern matching and subset matching in deterministic O(n log3 n)-time, Proceedings of the tenth annual ACM-SIAM symposium on Discrete algorithms, p.245-254, January 17-19, 1999, Baltimore, Maryland, United States
|
| |
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
|
Daniela Florescu , Alon Levy , Dan Suciu, Query containment for conjunctive queries with regular expressions, Proceedings of the seventeenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.139-148, June 01-04, 1998, Seattle, Washington, United States
[doi> 10.1145/275487.275503]
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Marc Gyssens , Jan Paredaens , Dirk Van Gucht , George H. L. Fletcher, Structural characterizations of the semantics of XPath as navigation tool on a document, Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, June 26-28, 2006, Chicago, IL, USA
|
|
|
|
|
|
|
|
|
|
|
|
Songting Chen , Hua-Gang Li , Junichi Tatemura , Wang-Pin Hsiung , Divyakant Agrawal , K. Selçuk Candan, Twig2Stack: bottom-up processing of generalized-tree-pattern queries over XML documents, Proceedings of the 32nd international conference on Very large data bases, September 12-15, 2006, Seoul, Korea
|
|
|
Arsany Sawires , Junichi Tatemura , Oliver Po , Divyakant Agrawal , Amr El Abbadi , K. Selçuk Candan, Maintaining XPath views in loosely coupled systems, Proceedings of the 32nd international conference on Very large data bases, September 12-15, 2006, Seoul, Korea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Padmapriya Ayyagari , Prasenjit Mitra , Dongwon Lee , Peng Liu , Wang-Chien Lee, Incremental adaptation of XPath access control views, Proceedings of the 2nd ACM symposium on Information, computer and communications security, March 20-22, 2007, Singapore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Foto Afrati , Rada Chirkova , Manolis Gergatsoulis , Benny Kimelfeld , Vassia Pavlaki , Yehoshua Sagiv, On rewriting XPath queries using views, Proceedings of the 12th International Conference on Extending Database Technology: Advances in Database Technology, March 24-26, 2009, Saint Petersburg, Russia
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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...
|