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 条
  • [1] RELATIONAL SPECIFICATIONS OF INFINITE QUERY ANSWERS
    CHOMICKI, J
    IMIELINSKI, T
    PROCEEDINGS OF THE 1989 ACM SIGMOD INTERNATIONAL CONFERENCE ON THE MANAGEMENT OF DATA, 1989, 18 : 174 - 183
  • [2] A filter representation of diffraction at infinite and finite wedges
    Ewert, Stephan D.
    JASA EXPRESS LETTERS, 2022, 2 (09):
  • [3] Model representation over finite and infinite signatures
    Fermueller, Christian G.
    Pichler, Reinhard
    LOGICS IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2006, 4160 : 164 - 176
  • [5] Model representation over finite and infinite signatures
    Fermueller, Christian G.
    Pichler, Reinhard
    JOURNAL OF LOGIC AND COMPUTATION, 2007, 17 (03) : 453 - 477
  • [6] Counting the Answers to a Query
    Arenas, Marcelo
    Croquevielle, Luis Alberto
    Jayaram, Rajesh
    Riveros, Cristian
    SIGMOD RECORD, 2022, 51 (03) : 6 - 17
  • [7] A basis of finite and infinite sets with small representation function
    Dubickas, Arturas
    ELECTRONIC JOURNAL OF COMBINATORICS, 2012, 19 (01):
  • [8] Computing query answers in databases
    Xie Dong
    Yang Luming
    ADVANCED COMPUTER TECHNOLOGY, NEW EDUCATION, PROCEEDINGS, 2007, : 503 - 508
  • [9] Conceptual summaries as query answers
    Bulskov, H.
    Andreasen, T.
    Terney, T. V.
    NAFIPS 2007 - 2007 ANNUAL MEETING OF THE NORTH AMERICAN FUZZY INFORMATION PROCESSING SOCIETY, 2007, : 458 - +
  • [10] Query answers on inconsistent databases
    Xie, Dong
    Yang, Luming
    Journal of Computational Information Systems, 2007, 3 (01): : 9 - 16