Expressive and efficient pattern languages for tree-structured data (extended abstract)
- 1 January 2000
- proceedings article
- Published by Association for Computing Machinery (ACM)
- p. 145-156
- https://doi.org/10.1145/335168.335217
Abstract
It would be desirable to have a query language for tree-structured data that is (1) as easily usable as SQL, (2) as expressive as monadic second-order logic (MSO), and (3) efficiently evaluable. The paper develops some ideas in this direction. Towards (1) the specification of sets of vertices of a tree by combining conditions on their induced subtree with conditions on their path to the root is proposed. Existing query languages allow regular expressions (hence MSO logic) in path conditions but are limited in expressing subtree conditions. It is shown that such query languages fall short of capturing all MSO queries. On the other hand, allowing a certain guarded fragment of MSO-logic in the specification of subtree conditions results in a language fulfilling (2), (3) and, anguably, (1).Keywords
This publication has 0 references indexed in Scilit: