Query evaluation in deductive databases with alternating fixpoint semantics
- 1 September 1995
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 20 (3) , 239-287
- https://doi.org/10.1145/211414.211416
Abstract
First-order formulas allow natural descriptions of queries and rules. Van Gelder's alternating fixpoint semantics extends the well-founded semantics of normal logic programs to general logic programs with arbitrary first-order formulas in rule bodies. However, an implementation of general logic programs through the standard translation into normal logic programs does not preserve the alternating fixpoint semantics. This paper presents a direct method for goal-oriented query evaluation of general logic programs. Every general logic program is first transformed into a normal form where the body of each rule is either an existential conjunction of literals or a universal disjunction of literals. Techniques of memoing and loop checking are incorporated so that termination and polynomial-time data complexity are guaranteed for deductive databases (or function-free programs). Results of the soundness and search space completeness are established.Keywords
This publication has 11 references indexed in Scilit:
- Efficient top-down computation of queries under the well-founded semanticsThe Journal of Logic Programming, 1995
- XSB as an efficient deductive database enginePublished by Association for Computing Machinery (ACM) ,1994
- The alternating fixpoint of logic programs with negationJournal of Computer and System Sciences, 1993
- Query evaluation under the well-founded semanticsPublished by Association for Computing Machinery (ACM) ,1993
- The well-founded semantics for general logic programsJournal of the ACM, 1991
- Safety and translation of relational calculusACM Transactions on Database Systems, 1991
- A basis for deductive database systemsThe Journal of Logic Programming, 1985
- Making prolog more expressiveThe Journal of Logic Programming, 1984
- Contributions to the Theory of Logic ProgrammingJournal of the ACM, 1982
- The complexity of relational query languages (Extended Abstract)Published by Association for Computing Machinery (ACM) ,1982