Datalog in Wonderland
Datalog in Wonderland
复制标题
DOI:
10.1145/3552490.3552492
复制
发表时间:
2022-07
期刊:
影响因子:
--
通讯作者:
Mahmoud Abo Khamis;RelationalAI;H. Ngo;R. Pichler;T. Wien;Dan Suciu
中科院分区:
文献类型:
--
作者:
Mahmoud Abo Khamis;RelationalAI;H. Ngo;R. Pichler;T. Wien;Dan Suciu
Modern data analytics applications, such as knowledge graph reasoning and machine learning, typically involve recursion through aggregation. Such computations pose great challenges to both system builders and theoreticians: first, to derive simple yet powerful abstractions for these computations; second, to define and study the semantics for the abstractions; third, to devise optimization techniques for these computations. In recent work we presented a generalization of Datalog called Datalog, which addresses these challenges. Datalog is a simple abstraction, which allows aggregates to be interleaved with recursion, and retains much of the simplicity and elegance of Datalog. We define its formal semantics based on an algebraic structure called Partially Ordered Pre-Semirings, and illustrate through several examples how Datalog can be used for a variety of applications. Finally, we describe a new optimization rule for Datalog, called the FGH-rule, then illustrate the FGH-rule on several examples, including a simple magic-set rewriting, generalized semi-naïve evaluation, and a bill-of-material example, and briefly discuss the implementation of the FGH-rule and present some experimental validation of its effectiveness.