通过位置选择函数扩展Sticky-Datasheet +/-:可追溯性、算法和优化
Extending Sticky-Datalog+/- via Finite-Position Selection Functions: Tractability, Algorithms, and Optimization
摘要:
弱粘性(WS)Datasheet +/-是Datasheet +/-程序类家族的一个表达成员,它是基于粘性和弱非循环性条件定义的。研究了WS程序上的连接查询应答(QA),并证明了其在数据复杂度方面的易处理性。然而,实际QA算法及其优化的设计和实现一直是开放的。为了填补这一空白,我们首先研究粘性和WS程序的追逐过程的行为的角度来看。我们扩展的粘性属性的追逐,广义粘性的追逐(GSCh)模的甲骨文,选择(并提供)的谓词位置,在追逐过程中出现的值。粘性模仅提供那些位置的子集的选择函数S定义了sch(S),GSCh的语义子类。选择功能的程序类包括粘性和WS,和另一个语法类,我们介绍和特点,即JWS,联合弱粘性程序,其中包含WS。这最后三个类的选择功能是可计算的,没有外部的,可能是不可计算的甲骨文是必要的。对于一般的选择函数S,我们提出了一个自底向上的程序类sch(S)的QA算法。作为一种特殊情况,我们得到了一个多项式时间的QA算法的JWS和弱粘性程序。与WS不同,JWS在魔术集查询优化下是封闭的。因此,一般的多项式时间QA算法和它的魔集优化可以被具体化并应用于WS。
英文摘要:
Weakly-Sticky(WS) Datalog+/- is an expressive member of the family of Datalog+/- program classes that is defined on the basis of the conditions of stickiness and weak-acyclicity. Conjunctive query answering (QA) over the WS programs has been investigated, and its tractability in data complexity has been established. However, the design and implementation of practical QA algorithms and their optimizations have been open. In order to fill this gap, we first study Sticky and WS programs from the point of view of the behavior of the chase procedure. We extend the stickiness property of the chase to that of generalized stickiness of the chase (GSCh) modulo an oracle that selects (and provides) the predicate positions where finitely values appear during the chase. Stickiness modulo a selection function S that provides only a subset of those positions defines sch(S), a semantic subclass of GSCh. Program classes with selection functions include Sticky and WS, and another syntactic class that we introduce and characterize, namely JWS, of jointly-weakly-sticky programs, which contains WS. The selection functions for these last three classes are computable, and no external, possibly non-computable oracle is needed. We propose a bottom-up QA algorithm for programs in the class sch(S), for a general selection function S. As a particular case, we obtain a polynomial-time QA algorithm for JWS and weakly-sticky programs. Unlike WS, JWS turns out to be closed under magic-sets query optimization. As a consequence, both the generic polynomial-time QA algorithm and its magic-set optimization can be particularized and applied to WS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。