Title
Recursive queries on trees and data trees
Abstract
The analysis of datalog programs over relational structures has been studied in depth, most notably the problem of containment. The analysis problems that have been considered were shown to be undecidable with the exception of (i) containment of arbitrary programs in nonrecursive ones, (ii) containment of monadic programs, and (iii) emptiness. In this paper, we are concerned with a much less studied problem, the analysis of datalog programs over data trees. We show that the analysis of datalog programs is more complex for data trees than for arbitrary structures. In particular, we prove that the three aforementioned problems are undecidable for data trees. But in practice, data trees (e.g., XML trees) are often of bounded depth. We prove that all three problems are decidable over bounded depth data trees. Another contribution of the paper is the study of a new form of automata called pattern automata, that are essentially equivalent to linear datalog programs. We use pattern automata to show that the emptiness problem for linear monadic datalog programs with data value inequalities is decidable over arbitrary data trees.
Year
DOI
Venue
2013
10.1145/2448496.2448509
ICDT
Keywords
Field
DocType
recursive query,aforementioned problem,analysis problem,arbitrary data tree,data tree,data value inequality,linear monadic datalog program,linear datalog program,bounded depth data tree,pattern automaton,datalog program,conjunctive queries
Discrete mathematics,Conjunctive query,Computer science,Decidability,Theoretical computer science,Weight-balanced tree,Datalog,Monad (functional programming),Recursion,Bounded function,Undecidable problem
Conference
Citations 
PageRank 
References 
4
0.43
13
Authors
4
Name
Order
Citations
PageRank
Serge Abiteboul190952941.83
Pierre Bourhis267546.80
Anca Muscholl3117974.92
Zhilin Wu48014.53