One of the most important reasoning tasks on queries is checking containment, i.e., verifying whether one query yields necessarily a subset of the result of another one. Query containment is crucial in several contexts, such as query optimization, query reformulation, knowledge-base verification, information integration, integrity checking, and cooperative answering. Containment is undecidable in general for Datalog, the fundamental language for expressing recursive queries. On the other hand, it is known that containment between monadic Datalog queries and between Datalog queries and unions of conjunctive queries are decidable. It is also known that containment between unions of conjunctive two-way regular path queries, which are queries used in the context of semistructured data models containing a limited form of recursion in the form of transitive closure, is decidable. In this paper, we combine the automata-theoretic techniques at the base of these two decidability results to show that containment of Datalog in union of conjunctive two-way regular path queries is decidable in 2EXPTIME. By sharpening a known lower bound result for containment of Datalog in union of conjunctive queries we show also a matching lower bound. (c) 2004 Elsevier B.V. All rights reserved.

Decidable containment of recursive queries / Diego, Calvanese; DE GIACOMO, Giuseppe; Y., Vardi Moshe. - In: THEORETICAL COMPUTER SCIENCE. - ISSN 0304-3975. - 336:1(2005), pp. 33-56. (Intervento presentato al convegno 9th International Conference on Database Theory (ICDT) tenutosi a SIENA, ITALY nel JAN 08-10, 2003) [10.1016/j.tcs.2004.10.031].

Decidable containment of recursive queries

DE GIACOMO, Giuseppe;
2005

Abstract

One of the most important reasoning tasks on queries is checking containment, i.e., verifying whether one query yields necessarily a subset of the result of another one. Query containment is crucial in several contexts, such as query optimization, query reformulation, knowledge-base verification, information integration, integrity checking, and cooperative answering. Containment is undecidable in general for Datalog, the fundamental language for expressing recursive queries. On the other hand, it is known that containment between monadic Datalog queries and between Datalog queries and unions of conjunctive queries are decidable. It is also known that containment between unions of conjunctive two-way regular path queries, which are queries used in the context of semistructured data models containing a limited form of recursion in the form of transitive closure, is decidable. In this paper, we combine the automata-theoretic techniques at the base of these two decidability results to show that containment of Datalog in union of conjunctive two-way regular path queries is decidable in 2EXPTIME. By sharpening a known lower bound result for containment of Datalog in union of conjunctive queries we show also a matching lower bound. (c) 2004 Elsevier B.V. All rights reserved.
2005
datalog; query containment; regular path queries; semistructured data
01 Pubblicazione su rivista::01a Articolo in rivista
Decidable containment of recursive queries / Diego, Calvanese; DE GIACOMO, Giuseppe; Y., Vardi Moshe. - In: THEORETICAL COMPUTER SCIENCE. - ISSN 0304-3975. - 336:1(2005), pp. 33-56. (Intervento presentato al convegno 9th International Conference on Database Theory (ICDT) tenutosi a SIENA, ITALY nel JAN 08-10, 2003) [10.1016/j.tcs.2004.10.031].
File allegati a questo prodotto
File Dimensione Formato  
VE_2005_11573-42840.pdf

solo gestori archivio

Tipologia: Versione editoriale (versione pubblicata con il layout dell'editore)
Licenza: Tutti i diritti riservati (All rights reserved)
Dimensione 327.61 kB
Formato Adobe PDF
327.61 kB Adobe PDF   Contatta l'autore

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/42840
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 25
  • ???jsp.display-item.citation.isi??? 17
social impact