2019
DOI: 10.1017/s1471068419000115
|View full text |Cite
|
Sign up to set email alerts
|

Enhancing Magic Sets with an Application to Ontological Reasoning

Abstract: 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 tha… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1

Citation Types

0
3
0

Year Published

2020
2020
2022
2022

Publication Types

Select...
2
1
1

Relationship

2
2

Authors

Journals

citations
Cited by 4 publications
(3 citation statements)
references
References 43 publications
0
3
0
Order By: Relevance
“…The implementations of Datalog ± and its extensions sometimes adopt optimization techniques developed for deductive databases, such as magic sets, that -like module extraction -have the purpose of focussing reasoning on the symbols relevant to the query. Magic sets have been applied both to the implementation of (monotonic) Datalog ± [56], and to the implementation of Datalog with nonmonotonic negation and aggregates [57]. Therefore, magic sets constitute an appealing candidate for optimized implementations of nonmonotonic Datalog ± .…”
Section: Related Work On Optimizations For Nonmonotonic DLmentioning
confidence: 99%
“…The implementations of Datalog ± and its extensions sometimes adopt optimization techniques developed for deductive databases, such as magic sets, that -like module extraction -have the purpose of focussing reasoning on the symbols relevant to the query. Magic sets have been applied both to the implementation of (monotonic) Datalog ± [56], and to the implementation of Datalog with nonmonotonic negation and aggregates [57]. Therefore, magic sets constitute an appealing candidate for optimized implementations of nonmonotonic Datalog ± .…”
Section: Related Work On Optimizations For Nonmonotonic DLmentioning
confidence: 99%
“…In this former set of experiments, we first generated Clipper-Rew and DaRLing rewritings for all queries of LUBM, Adolena, Stock Exchange and Vicodì; then, over these rewritings and for all considered datasets, we executed I-DLV under two different scenarios: in the scenario materialize the system is forced to materialize the whole ontology and then prompted to answer to each query individually; in the scenario query-driven the system still runs each query one by one, but performs a more efficient evaluation tailored on the query at hand by enabling the magic sets technique (Alviano et al 2019). Figure 2 reports average running times in seconds of I-DLV executions over all datasets on LUBM, Adolena, Stock Exchange and Vicodì, respectively.…”
Section: Qualitymentioning
confidence: 99%
“…This idea has been also implemented in a specific branch of DLV2 [3], with promising results. The rewriting implemented by DLV2 is further processed by a new version of the magic sets algorithm [5], which inhibits the creation of new recursive dependencies and partially unroll the magic sets rewriting if binding information are lost. The inhibition of new recursive definitions is important because magic sets were originally introduced for Datalog programs [10], and their extension to programs with stratified negation was nontrivial; indeed, the perfect model semantics [48] is not applicable to the rewritten program if recursive negation is introduced by magic sets, and several semantics were considered in the literature to overcome this limitation [9,13,37,38,52].…”
Section: Introductionmentioning
confidence: 99%