Affiliation:
1. Kansas State Univ., Lawrence
2. Rutgers Univ., New Brunswick, NJ
Abstract
We define here a formal notion of finite representation of infinite query answers in logic programs. We apply this notion to 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
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.
Publisher
Association for Computing Machinery (ACM)
Cited by
47 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Linear-Time Temporal Answer Set Programming;Theory and Practice of Logic Programming;2021-12-27
2. FunDL;Lecture Notes in Computer Science;2019
3. Minimal bases of temporal attribute implications;Annals of Mathematics and Artificial Intelligence;2018-03-06
4. Logic of temporal attribute implications;Annals of Mathematics and Artificial Intelligence;2016-10-01
5. Declarative Networking;ACM SIGMOD Record;2014-12-04