Reasoning about integrity constraints for tree-structured data

Abstract : We study a class of integrity constraints for tree-structured data modelled as data trees, whose nodes have a label from a finite alphabet and store a data value from an infinite data domain. The constraints require each tuple of nodes selected by a conjunctive query (using navigational axes and labels) to satisfy a positive combination of equalities and a positive combination of inequalities over the stored data values. Such constraints are instances of the general framework of XML-to-relational constraints proposed recently by Niewerth and Schwentick. They cover some common classes of constraints, including W3C XML Schema key and unique constraints, as well as domain restrictions and denial constraints, but cannot express inclusion constraints, such as reference keys. Our main result is that consistency of such integrity constraints with respect to a given schema (modelled as a tree automaton) is decidable. An easy extension gives decidability for the entailment problem. Equivalently, we show that validity and containment of unions of conjunctive queries using navigational axes, labels, data equalities and inequalities is decidable, as long as none of the conjunctive queries uses both equalities and inequalities; without this restriction, both problems are known to be undecidable. In the context of XML data exchange, our result can be used to establish decidability for a consistency problem for XML schema mappings. All the decision procedures are doubly exponential, with matching lower bounds. The complexity may be lowered to singly exponential, when conjunctive queries are replaced by tree patterns, and the number of data comparisons is bounded.
Complete list of metadatas

Cited literature [27 references]  Display  Hide  Download

https://hal-upec-upem.archives-ouvertes.fr/hal-01799446
Contributor : Admin Upem <>
Submitted on : Thursday, May 24, 2018 - 5:23:05 PM
Last modification on : Thursday, July 5, 2018 - 2:45:34 PM
Long-term archiving on : Saturday, August 25, 2018 - 2:40:40 PM

File

concon-tocs.pdf
Files produced by the author(s)

Identifiers

Citation

Wojciech Czerwiński, Claire David, Filip Murlak, Paweł Parys. Reasoning about integrity constraints for tree-structured data. Theory of Computing Systems, Springer Verlag, 2018, 62 (4), pp.941-976. ⟨10.1007/s00224-017-9771-z⟩. ⟨hal-01799446⟩

Share

Metrics

Record views

77

Files downloads

90