Journal of the ACM · 2004 · 304 citations · 23 references
ComputingComputer ScienceDatabasesNatural Language ProcessingProgramming LanguagesQuery ProcessingStructured Query LanguageXml DatabasesConstraintsExponential Time ComplexityTransformationsWildcardsXml Data ModelsXml Query LanguagesXml Query ProcessingXpath
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.
23
Optimal implementation of conjunctive queries in relational data bases
Ashok K. Chandra, Philip M. Merlin · 1977 · 1.2K citations · Full text
XQuery 1.0 : An XML Query Language
Scott Boag · Medical Entomology and Zoology · 2007 · 1.2K citations
Word problems requiring exponential time(Preliminary Report)
Larry J. Stockmeyer, Albert R. Meyer · 1973 · 874 citations
Algorithms for acyclic database schemes
Mihalis Yannakakis · Very Large Data Bases · 1981 · 500 citations