|
ABSTRACT
We define here a formal notion of finite representation of infinite query answers in logic programs. We apply this notion to DatalognS programs may be infinite and consequently queries may have infinite answers.
We present a method to finitely represent infinite least Herbrand models of DatalognS 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 DatalognS program. We also show that for some very simple non-DatalognS logic programs, finite representations of query answers do not exist.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
|
 |
3
|
|
| |
4
|
BAUDINET, M. On the expressiveness of temporal logic programming. Submitted, Sept. 1991.
|
| |
5
|
BEZEM, M. Characterizing termination of logic programs with level mappings. In North American Conference on Logic Programming (1989).
|
| |
6
|
B~Am, H.A. Decidabihty in the Herbrand base. In Workshop on Foundations of Deductive Databases and Logic Programming (Washington, D.C., 1986). Manuscript.
|
 |
7
|
Marianne Baudinet , Marc Niézette , Pierre Wolper, On the representation of infinite temporal data and queries (extended abstract), Proceedings of the tenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.280-290, May 29-31, 1991, Denver, Colorado, United States
[doi> 10.1145/113413.113439]
|
 |
8
|
|
| |
9
|
CHOLVY~ L, AND DEMOLOMBE, R. Querying a rule base. In Expert Database Systems. L. Kerschberg, Ed. Benjamin Cummings, 1987, 477-485.
|
| |
10
|
CttANDRA, A. K., AND HAREL, D. Computable queries for relational databases. J. Comput. Syst. Sct. 21 (1980), 156-178.
|
| |
11
|
CHANDRA, A. K., AND HAREL, D. Horn clause queries and generalizations. J. Logic Programm. 2, i (Apr. 1985). i 16.
|
| |
12
|
|
| |
13
|
CHOMICKI, J. A decidable class of logic programs with function symbols. Tech. Rep. TR-CS- 90-11, Dept. of Computing and Information Sciences, Kansas State Univ., Sept. 1990, 44 pp.
|
| |
14
|
|
 |
15
|
|
 |
16
|
|
 |
17
|
|
| |
18
|
CORELLA, F. Semantic retrieval and levels of abstraction. In Expert Database Syst., L. Kerschberg, Ed. Benjamin Cummings, 1987, 477 485.
|
 |
19
|
|
| |
20
|
ENDERTON, H.B. A Mathematzcal Introduction to Logic. Academic Press, New York, 1972.
|
| |
21
|
FR{IHWlRTH, T., SHAPIRO, E., VARDI, M. Y., AND YARDENI, E. Logic programs as types for logic programs. In IEEE Symposium on Logic in Computer Science (1991).
|
| |
22
|
Ff~RER, M. Alternation and the Ackermann case of the decision problem. L'Enseignement Mathemattque, 1981.
|
| |
23
|
GREEN, C. Application of theorem proving to problem solving. In Internattonal Joint Conference on Artificial Intelltgence (1969).
|
| |
24
|
GI~CSEG, F., AND STEINB~, M. Tree Automata. Akad6miai Kiad6, Budapest, 1984.
|
| |
25
|
HEINTZE, N., AND JAFFAR, J. A decismn procedure for a class of set constraints. In IEEE Sympostum on Logic m Computer Science (1990).
|
 |
26
|
|
| |
27
|
IMIELII(ISKI, T. Domain abstractmn and limited reasoning. In Internattonal Joint Conference on Artificial Intelligence (1987).
|
| |
28
|
|
 |
29
|
|
 |
30
|
Paris C. Kanellakis , Gabriel M. Kuper , Peter Z. Revesz, Constraint query languages (preliminary report), Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.299-313, April 02-04, 1990, Nashville, Tennessee, United States
[doi> 10.1145/298514.298582]
|
 |
31
|
|
 |
32
|
|
 |
33
|
F. Kabanza , J.-M. Stevenne , P. Wolper, Handling infinite temporal data, Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.392-403, April 02-04, 1990, Nashville, Tennessee, United States
[doi> 10.1145/298514.298590]
|
| |
34
|
|
| |
35
|
|
| |
36
|
MONK, J.D. Mathematical Logic. Springer-Verlag, New York, 1976.
|
 |
37
|
|
| |
38
|
|
| |
39
|
PLAISTED, D.A. Complete problems in the first-order predicate calculus. J. Comput. Syst. Sct. 29 (1984), 8-35.
|
 |
40
|
R. Ramakrishnan , F. Bancilhon , A. Silberschatz, Safety of recursive Horn clauses with infinite relations, Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.328-339, March 23-25, 1987, San Diego, California, United States
[doi> 10.1145/28659.28694]
|
| |
41
|
|
| |
42
|
|
| |
43
|
SHUM, C.-D., AND MUNTZ, R. Implicit representation for extensional answers. In International Conference on Expert Database Systems, L. Kerschberg, Ed. (Tysons Corner, Va., April 1988), 257-273.
|
| |
44
|
TARNLUND, S.A. Horn clause computability. BIT 17, 2 (1977), 215-226.
|
| |
45
|
|
| |
46
|
|
| |
47
|
|
 |
48
|
|
 |
49
|
|
| |
50
|
WAND, M. Final algebra semantics and data type extensions. J. Comput. Syst. Sct. 19 (1979), 27-44.
|
|