Query Languages for Data Exchange: Beyond Unions of Conjunctive Queries

被引:10
|
作者
Arenas, Marcelo [1 ]
Barcelo, Pablo [2 ]
Reutter, Juan [3 ]
机构
[1] Pontificia Univ Catolica Chile, Dept Comp Sci, Santiago, Chile
[2] Univ Chile, Dept Comp Sci, Santiago, Chile
[3] Univ Edinburgh, Sch Informat, Edinburgh, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
Data exchange; Certain answers; Query languages; Datalog; Combined complexity; COMPLEXITY;
D O I
10.1007/s00224-010-9259-6
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The class of unions of conjunctive queries (UCQ) has been shown to be particularly well-behaved for data exchange; its certain answers can be computed in polynomial time (in terms of data complexity). However, this is not the only class with this property; the certain answers to any Datalog program can also can be computed in polynomial time. The problem is that both UCQ and Datalog do not allow negated atoms, as adding an unrestricted form of negation to these languages yields to intractability. In this paper, we propose a language called Datalog (C(not equal)) that extends Datalog with a restricted form of negation, and study some of its fundamental properties. In particular, we show that the certain answers to a Datalog (C(not equal)) program can be computed in polynomial time (in terms of data complexity), and that every union of conjunctive queries with at most one inequality or negated relational atom per disjunct, can be efficiently rewritten as a Datalog (C(not equal)) program in the context of data exchange. Furthermore, we show that this is also the case for a syntactic restriction of the class of unions of conjunctive queries with at most two inequalities per disjunct. This syntactic restriction is given by two conditions that are optimal, in the sense that computing certain answers becomes intractable if one removes any of them. Finally, we provide a thorough analysis of the combined complexity of computing certain answers to Datalog (C(not equal)) programs and other related query languages. In particular, we show that this problem is Exptime-complete for Datalog (C(not equal)), even if one restricts to conjunctive queries with single inequalities, which is a fragment of Datalog (C(not equal)) by the result mentioned above. Furthermore, we show that the combined complexity is coNexptime-complete for the case of conjunctive queries with k inequalities, for every ka parts per thousand yen2.
引用
收藏
页码:489 / 564
页数:76
相关论文
共 50 条
  • [1] Query Languages for Data Exchange: Beyond Unions of Conjunctive Queries
    Marcelo Arenas
    Pablo Barceló
    Juan Reutter
    [J]. Theory of Computing Systems, 2011, 49 : 489 - 564
  • [2] On the Enumeration Complexity of Unions of Conjunctive Queries
    Carmeli, Nofar
    Kroell, Markus
    [J]. PROCEEDINGS OF THE 38TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS (PODS '19), 2019, : 134 - 148
  • [3] On the Enumeration Complexity of Unions of Conjunctive Queries
    Carmeli, Nofar
    Kroell, Markus
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2021, 46 (02):
  • [4] On preservation under homomorphisms and unions of conjunctive queries
    Atserias, Albert
    Dawar, Anuj
    Kolaitis, Phokion G.
    [J]. JOURNAL OF THE ACM, 2006, 53 (02) : 208 - 237
  • [5] The Dichotomy of Probabilistic Inference for Unions of Conjunctive Queries
    Dalvi, Nilesh
    Suciu, Dan
    [J]. JOURNAL OF THE ACM, 2012, 59 (06)
  • [6] Determinacy and query rewriting for conjunctive queries and views
    Afrati, Foto N.
    [J]. THEORETICAL COMPUTER SCIENCE, 2011, 412 (11) : 1005 - 1021
  • [7] Rewriting unions of general conjunctive queries using views
    Wang, JH
    Maher, M
    Topor, R
    [J]. ADVANCES IN DATABASE TECHNOLOGY - EDBT 2002, 2002, 2287 : 52 - 69
  • [8] Leveraging the expressivity of grounded conjunctive query languages
    Kaplunova, Alissa
    Moeller, Ralf
    Wessel, Michael
    [J]. ON THE MOVE TO MEANINGFUL INTERNET SYSTEMS 2007: OTM 2007 WORKSHOPS, PT 2, PROCEEDINGS, 2007, 4806 : 1176 - 1186
  • [9] On the structure of queries in constraint query languages
    Benedikt, M
    Libkin, L
    [J]. 11TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 1996, : 25 - 34
  • [10] CONTAINMENT OF CONJUNCTIVE QUERIES - BEYOND RELATIONS AS SETS
    IOANNIDIS, YE
    RAMAKRISHNAN, R
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 1995, 20 (03): : 288 - 324