{"title":"Complete Approximations of Incomplete Queries","authors":"Julien Corman, Werner Nutt, Ognjen Savković","doi":"arxiv-2407.20932","DOIUrl":null,"url":null,"abstract":"This paper studies the completeness of conjunctive queries over a partially\ncomplete database and the approximation of incomplete queries. Given a query\nand a set of completeness rules (a special kind of tuple generating\ndependencies) that specify which parts of the database are complete, we\ninvestigate whether the query can be fully answered, as if all data were\navailable. If not, we explore reformulating the query into either Maximal\nComplete Specializations (MCSs) or the (unique up to equivalence) Minimal\nComplete Generalization (MCG) that can be fully answered, that is, the best\ncomplete approximations of the query from below or above in the sense of query\ncontainment. We show that the MSG can be characterized as the least fixed-point\nof a monotonic operator in a preorder. Then, we show that an MCS can be\ncomputed by recursive backward application of completeness rules. We study the\ncomplexity of both problems and discuss implementation techniques that rely on\nan ASP and Prolog engines, respectively.","PeriodicalId":501123,"journal":{"name":"arXiv - CS - Databases","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Databases","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.20932","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This paper studies the completeness of conjunctive queries over a partially
complete database and the approximation of incomplete queries. Given a query
and a set of completeness rules (a special kind of tuple generating
dependencies) that specify which parts of the database are complete, we
investigate whether the query can be fully answered, as if all data were
available. If not, we explore reformulating the query into either Maximal
Complete Specializations (MCSs) or the (unique up to equivalence) Minimal
Complete Generalization (MCG) that can be fully answered, that is, the best
complete approximations of the query from below or above in the sense of query
containment. We show that the MSG can be characterized as the least fixed-point
of a monotonic operator in a preorder. Then, we show that an MCS can be
computed by recursive backward application of completeness rules. We study the
complexity of both problems and discuss implementation techniques that rely on
an ASP and Prolog engines, respectively.