|
ABSTRACT
We propose a class of programs, called modularly stratified programs that have several attractive properties. Modular stratification generalizes stratification and local stratification, while allowing programs that are not expressible by stratified programs. For modularly stratified programs the well-founded semantics coincides with the stable model semantics, and makes every ground literal true or false. Modularly stratified programs are all weakly stratified, but the converse is false. Unlike some weakly stratified programs, modularly stratified programs can be evaluated in a subgoal-at-a-time fashion. We demonstrate a technique for rewriting a modularly stratified program for bottom-up evaluation and extend this rewriting to include magic-set techniques. The rewritten program, when evaluated bottom-up, gives the same answers as the well-founded semantics. We discuss extending modular stratification to other operators such as set-grouping and aggregation that have traditionally been stratified to prevent semantic difficulties.
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.
| |
BMR88
|
I. Balbin, K. Meenkashi, and K. Ramamohanarao. An efficient labelling algorithm for magic set computation on stratified databases. Technical Report 88/1, Dept. of Computer Science, University of Melbourne, 1988.
|
| |
BPR87
|
I. Balbin, G. Port, and K. Ramamohanarao. Magic set computation for on stratified databases. Technical Report 87/3, Dept. of Computer Science, University of Melbourne, 1987.
|
| |
BPRMar
|
|
 |
BR86
|
|
 |
BR87
|
|
| |
BRSS89
|
C. Beeri, R. Ramakrishnan, D. Srivastava, and S. Sudarshan. Magic implementation of stratified logic programs. (manuscript), 1989.
|
| |
Bry89a
|
F. Bry, Dec. 1989. (personal communication).
|
 |
Bry89b
|
|
 |
BS89
|
|
| |
DW85
|
S. Dietrich and D. S. Warren. Dynamic programming strategies for the evaluation of recursive queries. Technical Report 85/31, Computer Science Department, State University of New York at Stony Brook, 1985.
|
| |
GL88
|
M. Gelfond and V. Lifschitz. The stable model semantics for logic programming. in Proc. Fifth International Conference and Symposium on Logic Programming, 1988.
|
| |
Kol87
|
P.G. Kolaitis. The expressive power of stratified programs. (manuscript), 1987.
|
| |
KP88
|
J.M. Kerisit and j.M. Pugin. Efficient query answering on stratified databases. In Proceedings of the International Conference on Fifth Generation Computer Systems, 1988.
|
| |
KT88
|
D. Kemp and R. Topor. Completeness of a top down query evaluation procedure for stratified databases. In Proc. Fifth international Conference and Symposium on Logic Programming, 1988.
|
| |
PP88
|
H. Przymusinska and T. Przymusinski. Weakly perfect model semantics for logic programs, in Proc. Fifth International Conference and Symposium on Logic Programming, 1988.
|
| |
Prz88
|
|
| |
Ram88
|
R. Ramakrishnan. Magic templates: A spellbinding approach to logic programs. In Proc. Fifth International Conference and Symposium on Logic Programming, 1988.
|
 |
Ros89
|
|
| |
SI88
|
Hirohisa Seki and Hidenori itoh. A query evaluation method for stratified programs under the extended cwa. In Proc. Fifth International Conference and Symposium on Logic Programming, 1988.
|
 |
Ull89a
|
|
| |
Ull89b
|
J.D. Ullman. Principles of Database and Knowledge Base Systems. Computer Science Press, Rockville, MD, 1989.
|
 |
VGRS88
|
|
| |
Vie86
|
L. Vielle. Recursive axioms in deductive databases: The query-subquery approach. In Proc. First International Conference on Expert Database Systems, 1986.
|
| |
Vie87
|
L. Vielle. A database-complete proof procedure based on sld-resolution. In Proc. Fourth International Conference on Logic Programming, 1987.
|
CITED BY 18
|
|
|
|
|
|
|
|
Catriel Beeri , Raghu Ramakrishnan , Divesh Srivastava , S. Sudarshan, The valid model semantics for logic programs, Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.91-104, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|