1. Certain Answers of Extensions of Conjunctive Queries by Datalog and First-Order Rewriting
- Author
-
Amélie Gheerbrant, Leonid Libkin, Alexandra Rogova, Cristina Sirangelo, Alviano, Mario, Pieris, Andreas, Institut de Recherche en Informatique Fondamentale (IRIF (UMR_8243)), Centre National de la Recherche Scientifique (CNRS)-Université Paris Cité (UPCité), Université Paris Cité (UPCité), Value from Data (VALDA ), Département d'informatique - ENS Paris (DI-ENS), École normale supérieure - Paris (ENS-PSL), Université Paris sciences et lettres (PSL)-Université Paris sciences et lettres (PSL)-Institut National de Recherche en Informatique et en Automatique (Inria)-Centre National de la Recherche Scientifique (CNRS)-École normale supérieure - Paris (ENS-PSL), Université Paris sciences et lettres (PSL)-Université Paris sciences et lettres (PSL)-Institut National de Recherche en Informatique et en Automatique (Inria)-Centre National de la Recherche Scientifique (CNRS)-Inria de Paris, Institut National de Recherche en Informatique et en Automatique (Inria), University of Edinburgh, Centre National de la Recherche Scientifique (CNRS), and Rogova, Alexandra
- Subjects
[INFO.INFO-DB]Computer Science [cs]/Databases [cs.DB] ,Datalog rewritings ,First-order rewritings ,[INFO.INFO-DB] Computer Science [cs]/Databases [cs.DB] ,[INFO]Computer Science [cs] ,Certain answers ,Functional dependencies ,Chase ,[INFO] Computer Science [cs] ,Incomplete information - Abstract
To answer database queries over incomplete data the gold standard is finding certain answers: those that are true regardless of how incomplete data is interpreted. Such answers can be found efficiently for conjunctive queries and their unions, even in the presence of constraints such as keys or functional dependencies. With negation added, the complexity of finding certain answers becomes intractable however.In this paper we exhibit a well-behaved class of queries that extends unions of conjunctive queries with a limited form of negation and that permits efficient computation of certain answers even in the presence of constraints by means of rewriting into Datalog with negation. The class consists of queries that are the closure of conjunctive queries under Boolean operations of union, intersection and difference. We show that for these queries, certain answers can be expressed in Datalog with negation, even in the presence of functional dependencies, thus making them tractable in data complexity. We show that in general Datalog cannot be replaced by first-order logic, but without constraints such a rewriting can be done in first-order.
- Published
- 2022