数据库程序的模块化实现
Modular Materialisation of Datalog Programs
摘要:
该算法可以具体化任意数据规则的所有结果,它也形成了增量算法的基础,随着输入事实的变化而更新具体化。然而,使用自定义算法可以更有效地处理某些规则(的组合)。为了将这些算法集成到可以处理任意规则的一般推理方法中,我们提出了一个用于物化计算及其维护的模块化框架。我们将一个数据库程序拆分成可以使用专门算法处理的模块,并使用Adjacent算法处理其余的规则。我们还提出了两个算法,用于计算可传递的关系,可以在我们的框架内使用的传递和传递闭包。最后,我们的经验表明,我们的框架可以处理任意的数据库程序,同时优于现有的方法,往往是数量级。
英文摘要:
The seminaïve algorithm can materialise all consequences of arbitrary datalog rules, and it also forms the basis for incremental algorithms that update a materialisation as the input facts change. Certain (combinations of) rules, however, can be handled much more efficiently using custom algorithms. To integrate such algorithms into a general reasoning approach that can handle arbitrary rules, we propose a modular framework for materialisation computation and its maintenance. We split a datalog program into modules that can be handled using specialised algorithms, and handle the remaining rules using the seminaïve algorithm. We also present two algorithms for computing the transitive and the symmetric-transitive closure of a relation that can be used within our framework. Finally, we show empirically that our framework can handle arbitrary datalog programs while outperforming existing approaches, often by orders of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。