Kolaitis, P. orcid.org/0000-0002-8407-8563, Pardal, N. orcid.org/0000-0002-5150-6947, Virtema, J. orcid.org/0000-0002-1582-3718 et al. (1 more author) (2025) Rewriting consistent answers on annotated data. Proceedings of the ACM on Management of Data, 3 (2). 110. pp. 1-26. ISSN 2836-6573
Abstract
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.
Metadata
Item Type: | Article |
---|---|
Authors/Creators: |
|
Editors: |
|
Copyright, Publisher and Additional Information: | © 2025 Copyright held by the owner/author(s). This work is licensed under a Creative Commons Attribution International 4.0 License - https://creativecommons.org/licenses/by/4.0 |
Keywords: | conjunctive queries; consistent query answering; key constraints; repairs; semirings |
Dates: |
|
Institution: | The University of Sheffield |
Academic Units: | The University of Sheffield > Faculty of Engineering (Sheffield) > Department of Computer Science (Sheffield) |
Funding Information: | Funder Grant number DEUTSCHE FORSCHUNGSGEMEINSCHAFT 432788559 |
Depositing User: | Symplectic Sheffield |
Date Deposited: | 10 Jun 2025 13:56 |
Last Modified: | 10 Jun 2025 13:56 |
Status: | Published |
Publisher: | Association for Computing Machinery (ACM) |
Refereed: | Yes |
Identification Number: | 10.1145/3725247 |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:227670 |