Rewriting Consistent Answers on Annotated Data

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kolaitis, Phokion G., Pardal, Nina, Virtema, Jonni, Wijsen, Jef
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908297931522048
author Kolaitis, Phokion G.
Pardal, Nina
Virtema, Jonni
Wijsen, Jef
author_facet Kolaitis, Phokion G.
Pardal, Nina
Virtema, Jonni
Wijsen, Jef
contents We embark on a study of the consistent answers of queries over databases annotated with values from a naturally ordered positive semiring. In this setting, the consistent answers of a query are defined as the minimum of the semiring values that the query takes over all repairs of an inconsistent database. The main focus is on self-join free conjunctive queries and key constraints, which is the most extensively studied case of consistent query answering over standard databases. We introduce a variant of first-order logic with a limited form of negation, define suitable semiring semantics, and then establish the main result of the paper: the consistent query answers of a self-join free conjunctive query under key constraints are rewritable in this logic if and only if the attack graph of the query contains no cycles. This result generalizes an analogous result of Koutris and Wijsen for ordinary databases, but also yields new results for a multitude of semirings, including the bag semiring, the tropical semiring, and the fuzzy semiring. Further, for the bag semiring, we show that computing the consistent answers of any self-join free conjunctive query whose attack graph has a strong cycle is not only NP-hard but also it is NP-hard to even approximate the consistent answers with a constant relative approximation guarantee.
format Preprint
id arxiv_https___arxiv_org_abs_2412_11661
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rewriting Consistent Answers on Annotated Data
Kolaitis, Phokion G.
Pardal, Nina
Virtema, Jonni
Wijsen, Jef
Databases
Logic in Computer Science
68P15, 03B70
H.2
We embark on a study of the consistent answers of queries over databases annotated with values from a naturally ordered positive semiring. In this setting, the consistent answers of a query are defined as the minimum of the semiring values that the query takes over all repairs of an inconsistent database. The main focus is on self-join free conjunctive queries and key constraints, which is the most extensively studied case of consistent query answering over standard databases. We introduce a variant of first-order logic with a limited form of negation, define suitable semiring semantics, and then establish the main result of the paper: the consistent query answers of a self-join free conjunctive query under key constraints are rewritable in this logic if and only if the attack graph of the query contains no cycles. This result generalizes an analogous result of Koutris and Wijsen for ordinary databases, but also yields new results for a multitude of semirings, including the bag semiring, the tropical semiring, and the fuzzy semiring. Further, for the bag semiring, we show that computing the consistent answers of any self-join free conjunctive query whose attack graph has a strong cycle is not only NP-hard but also it is NP-hard to even approximate the consistent answers with a constant relative approximation guarantee.
title Rewriting Consistent Answers on Annotated Data
topic Databases
Logic in Computer Science
68P15, 03B70
H.2
url https://arxiv.org/abs/2412.11661