Query Reasoning on Trees with Types, Interleaving, and Counting

A major challenge of query language design is the combination of expressivity with effective static analyses such as query containment. In the setting of XML, documents are seen as finite trees, whose structure may additionally be constrained by type constraints such as those described by an XML schema. We consider the problem of query containment in the presence of type constraints for a class of regular path queries extended with counting and interleaving operators. The counting operator restricts the number of occurrences of children nodes satisfying a given logical property. The interleaving operator provides a succinct notation for describing the absence of order between nodes satisfying a logical property. We provide a logic-based framework supporting these operators, which can be used to solve common query reasoning problems such as satisfiability and containment of queries in exponential time.

[1]  Wouter Gelade Succinctness of regular expressions with interleaving, intersection and counting , 2010, Theor. Comput. Sci..

[2]  Dario Colazzo,et al.  Linear inclusion for XML regular expression types , 2009, CIKM.

[3]  Stéphane Demri,et al.  Complexity of modal logics with Presburger constraints , 2010, J. Appl. Log..

[4]  Thomas Schwentick,et al.  Counting in Trees for Free , 2004, ICALP.

[5]  Thomas Wilke,et al.  Automata logics, and infinite games: a guide to current research , 2002 .

[6]  Eric van der Vlist,et al.  XML Schema , 2002 .

[7]  Moshe Y. Vardi Reasoning about The Past with Two-Way Automata , 1998, ICALP.

[8]  Benjamin C. Pierce,et al.  Regular expression types for XML , 2005, ACM Trans. Program. Lang. Syst..

[9]  Diego Calvanese,et al.  Node Selection Query Languages for Trees , 2010, AAAI.

[10]  Silvano Dal-Zilio,et al.  XML Schema, Tree Logic and Sheaves Automata , 2003, RTA.

[11]  Pablo Barceló,et al.  Temporal logics over unranked trees , 2005, 20th Annual IEEE Symposium on Logic in Computer Science (LICS' 05).

[12]  Pierre Genevès,et al.  Efficient static analysis of XML paths and types , 2007, PLDI '07.

[13]  Silvano Dal-Zilio,et al.  A logic you can count on , 2004, POPL.

[14]  Aniello Murano,et al.  The Complexity of Enriched Mu-Calculi , 2008, Log. Methods Comput. Sci..

[15]  Diego Calvanese,et al.  An Automata-Theoretic Approach to Regular XPath , 2009, DBPL.

[16]  Wouter Gelade,et al.  Succinctness of regular expressions with interleaving, intersection and counting , 2008, Theor. Comput. Sci..

[17]  Jim Melton,et al.  XML schema , 2003, SGMD.