析取数据库程序的幻集
Magic Sets for Disjunctive Datalog Programs
摘要:
本文提出了一种新的技术,优化的(部分)绑定查询的析取数据库程序与分层否定。该技术利用查询绑定的传播,并扩展了魔术集(MS)优化技术。析取数据库的一个重要特性是非单调性,这需要非确定性的实现,例如回溯搜索。新方法的一个显着特点是,优化也可以利用在不确定性阶段。特别是,在计算过程中做出一些假设之后,程序的某些部分可能会变得与这些假设下的查询无关。这允许动态修剪搜索空间。相比之下,先前定义的用于析取数据库的MS方法的效果仅限于该过程的确定性部分。以这种方式,通过使用所提出的方法的潜在性能增益可以是指数的,如可以凭经验观察到的。MS的正确性是由于MS和无根据集之间的强关系建立的,这在以前的文献中还没有研究过。这种知识允许扩展的方法也以自然的方式与分层否定的程序。该方法已在DLV中实现,并进行了各种实验。合成数据上的实验结果证实了MS在析取数据处理中的实用性,并且它们突出了新方法可以获得的计算增益。先前提出的用于析取数据库程序的MS方法。对真实世界数据的进一步实验显示了MS在近年来受到相当关注的应用场景中的好处,回答可能不一致的数据库上的用户查询的问题源于自主信息源的集成。
英文摘要:
In this paper, a new technique for the optimization of (partially) bound queries over disjunctive Datalog programs with stratified negation is presented. The technique exploits the propagation of query bindings and extends the Magic Set (MS) optimization technique. An important feature of disjunctive Datalog is nonmonotonicity, which calls for nondeterministic implementations, such as backtracking search. A distinguishing characteristic of the new method is that the optimization can be exploited also during the nondeterministic phase. In particular, after some assumptions have been made during the computation, parts of the program may become irrelevant to a query under these assumptions. This allows for dynamic pruning of the search space. In contrast, the effect of the previously defined MS methods for disjunctive Datalog is limited to the deterministic portion of the process. In this way, the potential performance gain by using the proposed method can be exponential, as could be observed empirically. The correctness of MS is established thanks to a strong relationship between MS and unfounded sets that has not been studied in the literature before. This knowledge allows for extending the method also to programs with stratified negation in a natural way. The proposed method has been implemented in DLV and various experiments have been conducted. Experimental results on synthetic data confirm the utility of MS for disjunctive Datalog, and they highlight the computational gain that may be obtained by the new method w.r.t. the previously proposed MS methods for disjunctive Datalog programs. Further experiments on real-world data show the benefits of MS within an application scenario that has received considerable attention in recent years, the problem of answering user queries over possibly inconsistent databases originating from integration of autonomous sources of information.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。