Combining Deduction by Certainty with the Power of Magic

After about two decades since the origin of relational database technology its benefits and shortcomings are well recognized in academics and in the market place. Many efforts have been focused during the past five years on extending current relational database technology towards deductive databases which offer a more powerful reasoning capability based on Horn clause logic; i.e. perform exact reasoning. Due to the ubiquity of uncertain knowledge in real-life applications, the integration of uncertainty in deductive databases is highly desirable, too, and led to so-called quantitative deductive databases very recently. As this integration can be achieved in a natural way preserving the foundations of fixpoint semantics and relational algebra, established query optimization techniques can be taken over directly. This paper focuses on how to integrate the popular magic methods for optimizing recursion in the quantitative deductive database framework. We describe two refined methods, the QMagic Set method and the Supplementary QMagic Set method. Our performance results for a series of benchmarks demonstrate their increased efficiency compared to the standard magic methods. As a specialty we show how to efficiently implement certainty-guided deduction by Yo-Yo iteration.

[1]  Werner Kießling,et al.  Semantics and efficient compilation for quantitative deductive databases , 1989, [1989] Proceedings. Fifth International Conference on Data Engineering.

[2]  Georges Gardarin,et al.  Magic Functions: A Technique to Optimize Extended Datalog Recursive Programs , 1987, VLDB.

[3]  Werner Kießling,et al.  On the Evaluation of Recursion in (Deductive) Database Systems by Efficient Differential Fixpoint Iteration , 1987, ICDE.

[4]  Werner Kießling,et al.  Compiling Exploratory and Goal-Directed Deduction into Sloppy Delta-Iteration , 1987, SLP.

[5]  Johann-Christoph Freytag,et al.  A rule-based view of query optimization , 1987, SIGMOD '87.

[6]  Michael Kifer,et al.  On the Semantics of Rule-Based Expert Systems with Uncertainty , 1988, ICDT.

[7]  Yasubumi Sakakibara On semantics of logic programs with uncertainties , 1988 .

[8]  David Maier,et al.  Magic sets and other strange ways to implement logic programs (extended abstract) , 1985, PODS '86.

[9]  Carlo Zaniolo,et al.  Implementation of Recursive Queries for a Data Language Based on Pure Horn Logic , 1987, ICLP.

[10]  M. H. van Emden,et al.  Quantitative Deduction and its Fixpoint Theory , 1986, J. Log. Program..

[11]  Robert A. Kowalski,et al.  The Semantics of Predicate Logic as a Programming Language , 1976, JACM.

[12]  Piero P. Bonissone,et al.  Selecting Uncertainty Calculi and Granularity: An Experiment in Trading-off Precision and Complexity , 1985, UAI.

[13]  V. S. Subrahmanian On the Semantics of Quantitative Logic Programs , 1987, SLP.