XPath, transitive closure logic, and nested tree walking automata

Authors
Publication date 2008
Host editors
  • M. Lenzerini
  • D. Lembo
Book title PODS’08: Proceedings of the twenty-seventh ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems
ISBN
  • 9781605581088
Event 27th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (SIGMOD/PODS 2008), Vancouver, Canada
Pages (from-to) 251-260
Publisher Vancouver: ACM
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
We consider the navigational core of XPath, extended with two operators: the Kleene star for taking the transitive closure of path expressions, and a subtree relativisation operator, allowing one to restrict attention to a specific subtree while evaluating a subexpression. We show that the expressive power of this XPath dialect equals that of FO(MTC), first order logic extended with monadic transitive closure. We also give a characterization in terms of nested tree-walking automata. Using the latter we then proceed to show that the language is strictly less expressive than MSO. This solves an open question about the relative expressive power of FO(MTC) and MSO on trees. We also investigate the complexity for our XPath dialect. We show that query evaluation be done in polynomial time (combined complexity), but that satisfiability and query containment (as well as emptiness for our automaton model) are 2ExpTime-complete (it is ExpTime-complete for Core XPath).
Document type Conference contribution
Published at http://doi.acm.org/10.1145/1376916.1376952
Permalink to this page
Back