Extending Sticky-Datalog+/- via Finite-Position Selection Functions: Tractability, Algorithms, and Optimization

08/02/2021
by   Leopoldo Bertossi, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/10/2016

Extending Weakly-Sticky Datalog+/-: Query-Answering Tractability and Optimizations

Weakly-sticky (WS) Datalog+/- is an expressive member of the family of D...
research
04/13/2015

Tractable Query Answering and Optimization for Extensions of Weakly-Sticky Datalog+-

We consider a semantic class, weakly-chase-sticky (WChS), and a syntacti...
research
09/27/2022

A characterization of polynomial time computable functions from the integers to the reals using discrete ordinary differential equations

In a recent article, the class of functions from the integers to the int...
research
01/23/2018

Type-two polynomial-time and restricted lookahead

This paper provides an alternate characterization of type-two polynomial...
research
09/27/2022

Polynomial time computable functions over the reals characterized using discrete ordinary differential equations

The class of functions from the integers to the integers computable in p...
research
02/03/2018

Parametric Presburger Arithmetic: Complexity of Counting and Quantifier Elimination

We consider an expansion of Presburger arithmetic which allows multiplic...
research
03/19/2019

Semantic programming: method Δ_0^p-enrichments and polynomial computable fixed points

Computer programs fast entered in our live and the questions associated ...

Please sign up or login with your details

Forgot password? Click here to reset