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 条
  • [21] Federated mediators for query composite answers
    Cheng, Dong
    Boudjlida, Nacer
    ENTERPRISE INFORMATION SYSTEMS VI, 2006, : 261 - +
  • [22] On algebras of On-finite and O8-infinite representation type
    Barrios, Marcos
    Mata, Gustavo
    JOURNAL OF ALGEBRA AND ITS APPLICATIONS, 2024, 23 (11)
  • [23] On the finite rank and finite-dimensional representation of bounded semi-infinite Hankel operators
    Chu, Moody T.
    Lin, Matthew M.
    IMA JOURNAL OF NUMERICAL ANALYSIS, 2015, 35 (03) : 1256 - 1276
  • [24] DPXPlain: Privately Explaining Aggregate Query Answers
    Tao, Yuchao
    Gilad, Amir
    Machanavajjhala, Ashwin
    Roy, Sudeepa
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2022, 16 (01): : 113 - 126
  • [25] Differentially private explanations for aggregate query answers
    Tao, Yuchao
    Gilad, Amir
    Machanavajjhala, Ashwin
    Roy, Sudeepa
    VLDB JOURNAL, 2025, 34 (02):
  • [26] A Fuzzy Approach to the Characterization of Database Query Answers
    Moreau, Aurelien
    Pivert, Olivier
    Smits, Gregory
    INFORMATION PROCESSING AND MANAGEMENT OF UNCERTAINTY IN KNOWLEDGE-BASED SYSTEMS, IPMU 2016, PT II, 2016, 611 : 329 - 340
  • [27] Technical Perspective: Query Answers - Fewer is Faster
    Libkin, Leonid
    SIGMOD RECORD, 2023, 52 (01) : 63 - 63
  • [28] Linguistically characterizing clusters of database query answers
    Moreau, Aurelien
    Pivert, Olivier
    Smits, Gregory
    FUZZY SETS AND SYSTEMS, 2019, 366 : 18 - 33
  • [29] Explanations for query answers under existential rules
    Ceylan, Ismail Ilkan
    Lukasiewicz, Thomas
    Malizia, Enrico
    Vaicenavicius, Andrius
    ARTIFICIAL INTELLIGENCE, 2025, 341
  • [30] Explanations for Query Answers under Existential Rules
    Ceylan, Ismail Ilkan
    Lukasiewicz, Thomas
    Malizia, Enrico
    Vaicenavicius, Andrius
    PROCEEDINGS OF THE TWENTY-EIGHTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2019, : 1639 - 1646