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 条
  • [31] Consistent query answers in the presence of universal constraints
    Staworko, Slawomir
    Chomicki, Jan
    INFORMATION SYSTEMS, 2010, 35 (01) : 1 - 22
  • [32] On finite truncation of infinite shot noise series representation of tempered stable laws
    Imai, Junichi
    Kawai, Reiichiro
    PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2011, 390 (23-24) : 4411 - 4425
  • [33] Four drafts on the representation theory of the group of infinite matrices over a finite field
    Vershik A.M.
    Kerov S.V.
    Journal of Mathematical Sciences, 2007, 147 (6) : 7129 - 7144
  • [34] INFINITE TO FINITE
    HOUCK, JW
    REVIEW OF POLITICS, 1974, 36 (01): : 198 - 200
  • [35] The Finite and the Infinite
    Horst Herrlich
    Applied Categorical Structures, 2011, 19 : 455 - 468
  • [36] FINITE AND INFINITE
    MCPHERSON, T
    MIND, 1957, 66 (263) : 379 - 384
  • [37] The Finite and the Infinite
    Herrlich, Horst
    APPLIED CATEGORICAL STRUCTURES, 2011, 19 (02) : 455 - 468
  • [38] What Does a Query Answer Tell You? Informativeness of Query Answers for Knowledge Bases
    Andolfi, Luca
    Cima, Gianluca
    Console, Marco
    Lenzerini, Maurizio
    THIRTY-EIGHTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 9, 2024, : 10442 - 10449
  • [39] INFINITE PRODUCT REPRESENTATION
    CARLITZ, L
    SURYANAR.D
    AMERICAN MATHEMATICAL MONTHLY, 1965, 72 (05): : 563 - &
  • [40] Privacy Preserving Aggregate Query of OLAP for Accurate Answers
    Zhu, Youwen
    Huang, Liusheng
    Yang, Wei
    Dong, Fan
    JOURNAL OF COMPUTERS, 2010, 5 (11) : 1678 - 1685