Certain Conjunctive Query Answering in First-Order Logic

被引:23
作者
Wijsen, Jef [1 ]
机构
[1] Univ Mons, B-7000 Mons, Belgium
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2012年 / 37卷 / 02期
关键词
Theory; Algorithms; Conjunctive queries; consistent query answering; first-order expressibility; primary keys;
D O I
10.1145/2188349.2188351
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Primary key violations provide a natural means for modeling uncertainty in the relational data model. A repair (or possible world) of a database is then obtained by selecting a maximal number of tuples without ever selecting two distinct tuples that have the same primary key value. For a Boolean query q, the problem CERTAINTY(q) takes as input a database db and asks whether q evaluates to true on every repair of db. We are interested in determining queries q for which CERTAINTY(q) is first-order expressible (and hence in the low complexity class AC(0)). For queries q in the class of conjunctive queries without self-join, we provide a necessary syntactic condition for first-order expressibility of CERTAINTY(q). For acyclic queries (in the sense of Beeri et al. [1983]), this necessary condition is also a sufficient condition. So we obtain a decision procedure for first-order expressibility of CERTAINTY(q) when q is acyclic and without self-join. We also show that if CERTAINTY(q) is first-order expressible, its first-order definition, commonly called certain first-order rewriting, can be constructed in a rather straightforward way.
引用
收藏
页数:35
相关论文
共 28 条
  • [1] Abiteboul S., 1995, Foundations of databases, V8
  • [2] [Anonymous], 1988, PRINCIPLES DATABASE
  • [3] [Anonymous], 2005, SIGMOD C, DOI DOI 10.1145/1066157.1066176
  • [4] [Anonymous], 2006, P ICDE C
  • [5] [Anonymous], 1983, The Theory of Relational Database
  • [6] Arenas M., 1999, Proceedings of the Eighteenth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, P68, DOI 10.1145/303976.303983
  • [7] ON THE DESIRABILITY OF ACYCLIC DATABASE SCHEMES
    BEERI, C
    FAGIN, R
    MAIER, D
    YANNAKAKIS, M
    [J]. JOURNAL OF THE ACM, 1983, 30 (03) : 479 - 513
  • [8] Beeri C., 1979, ACM Transactions on Database Systems, V4, P30, DOI 10.1145/320064.320066
  • [9] Cayley Arthur, 1889, Q. J. Pure Appl. Math., V23, P376
  • [10] Minimal-change integrity maintenance using tuple deletions
    Chomicki, J
    Marcinkowski, J
    [J]. INFORMATION AND COMPUTATION, 2005, 197 (1-2) : 90 - 121