FINITE REPRESENTATION OF INFINITE QUERY ANSWERS

被引:39
|
作者
CHOMICKI, J [1 ]
IMIELINSKI, T [1 ]
机构
[1] RUTGERS UNIV,DEPT COMP SCI,NEW BRUNSWICK,NJ 08903
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 1993年 / 18卷 / 02期
关键词
COMPUTATIONAL COMPLEXITY; DATALOG; DECIDABILITY; LOGIC PROGRAMMING; NON-HERBRAND MODELS; NONSTANDARD QUERY ANSWERS; QUERY PROCESSING; SAFETY;
D O I
10.1145/151634.151635
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We define here a formal notion of finite representation of infinite query answers in logic programs. We apply this notion to Datalog(nS) (Datalog with n successors): an extension of Datalog capable of representing infinite phenomena like flow of time or plan construction. Predicates in Datalog(nS) can have arbitrary unary and limited n-ary function symbols in one fixed position. This class of logic programs is known to be decidable. However, least Herbrand models of Datalog(nS) programs may be infinite and consequently queries may have infinite answers. We present a method to finitely represent infinite least Herbrand models of Datalog(nS) programs as relational specifications. A relational specification consists of a finite set of facts and a finitely specified congruence relation. A relational specification has the following desirable properties: First, it is explicit in the sense that once it is computed, the original Datalog(nS) program (and its underlying computational engine) can be forgotten. Given a query to be evaluated, it is easy to obtain from the relational specification finitely many answer substitutions that represent infinitely many answer substitutions to the query. The method involved is a combination of a simple, unificationless, computational mechanism (graph traversal, congruence closure, or term rewriting) and standard relational query evaluation methods. Second, a relational specification is effectively computable and its computation is no harder, in the sense of the complexity class, than answering yes-no queries. Our method is applicable to every range-restricted Datalog(nS) program. We also show that for some very simple non-Datalog(nS) logic programs, finite representations of query answers do not exist.
引用
收藏
页码:181 / 223
页数:43
相关论文
共 50 条
  • [11] The Logic of Counting Query Answers
    Chen, Hubie
    Mengel, Stefan
    2017 32ND ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2017,
  • [12] The Complexity of Causality and Responsibility for Query Answers and non-Answers
    Meliou, Alexandra
    Gatterbauer, Wolfgang
    Moore, Katherine F.
    Suciu, Dan
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2010, 4 (01): : 34 - 45
  • [13] Explaining Query Answers in Probabilistic Databases
    Debbi, Hichem
    INTERNATIONAL JOURNAL OF INTERACTIVE MULTIMEDIA AND ARTIFICIAL INTELLIGENCE, 2023, 8 (04): : 140 - 152
  • [14] Query rewriting for SWIFT (First) answers
    Tan, KL
    Goh, CH
    Ooi, BC
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2000, 12 (05) : 694 - 714
  • [15] Consistent query answers in inconsistent databases
    Arenas, Marcelo
    Bertossi, Leopoldo
    Chomicki, Jan
    Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 1999, : 68 - 79
  • [16] Concerning Referring Expressions in Query Answers
    Borgida, Alexander
    Toman, David
    Weddell, Grant
    PROCEEDINGS OF THE TWENTY-SIXTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2017, : 4791 - 4795
  • [17] Active XML and active query answers
    Abiteboul, S
    Benjelloun, O
    Milo, T
    FLEXIBLE QUERY ANSWERING SYSTEMS, PROCEEDINGS, 2004, 3055 : 17 - 27
  • [18] Negative Knowledge for Certain Query Answers
    Libkin, Leonid
    WEB REASONING AND RULE SYSTEMS, (RR 2016), 2016, 9898 : 111 - 127
  • [19] GUIDING STUDENTS TO ANSWERS: Query Recommendation
    Yilmazel, Ozgur
    TURKISH ONLINE JOURNAL OF DISTANCE EDUCATION, 2011, 12 (01): : 85 - 94
  • [20] Representative Query Answers on Uncertain Data
    Schmid, Klaus Arthur
    Zufle, Andreas
    SSTD '19 - PROCEEDINGS OF THE 16TH INTERNATIONAL SYMPOSIUM ON SPATIAL AND TEMPORAL DATABASES, 2019, : 140 - 149