AIJul 19, 2019

Enhancing magic sets with an application to ontological reasoning

arXiv:1907.08424v16 citations
Originality Incremental advance
AI Analysis

This work addresses a bottleneck in optimizing query answering for Datalog systems, particularly for ontological reasoning, though it is incremental as it builds on existing magic set methods.

The paper tackled the problem of magic set rewriting introducing new recursive definitions that slow down program evaluation, and enhanced the technique to prevent such recursion, achieving efficient stable model computation for Datalog programs with stratified negation and aggregations.

Magic sets are a Datalog to Datalog rewriting technique to optimize query answering. The rewritten program focuses on a portion of the stable model(s) of the input program which is sufficient to answer the given query. However, the rewriting may introduce new recursive definitions, which can involve even negation and aggregations, and may slow down program evaluation. This paper enhances the magic set technique by preventing the creation of (new) recursive definitions in the rewritten program. It turns out that the new version of magic sets is closed for Datalog programs with stratified negation and aggregations, which is very convenient to obtain efficient computation of the stable model of the rewritten program. Moreover, the rewritten program is further optimized by the elimination of subsumed rules and by the efficient handling of the cases where binding propagation is lost. The research was stimulated by a challenge on the exploitation of Datalog/\textsc{dlv} for efficient reasoning on large ontologies. All proposed techniques have been hence implemented in the \textsc{dlv} system, and tested for ontological reasoning, confirming their effectiveness. Under consideration for publication in Theory and Practice of Logic Programming.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes