Skip to main content
QUICK REVIEW

[Paper Review] Tractable Query Answering and Optimization for Extensions of Weakly-Sticky Datalog+-

Mostafa Milani, Leopoldo Bertossi|arXiv (Cornell University)|Apr 13, 2015
Semantic Web and OntologiesComputer Science9 references6 citations
TL;DR

This paper introduces the weakly-chase-sticky (WChS) and jointly-weakly-sticky (JWS) classes of Datalog± programs, proposing a polynomial-time, sound, and complete query answering algorithm (AL^S) that leverages parsimonious chase and freezing of nulls in finite positions. The algorithm is efficient and closed under magic-set rewriting, enabling optimization while preserving correctness for both WChS and JWS subclasses.

ABSTRACT

We consider a semantic class, weakly-chase-sticky (WChS), and a syntactic subclass, jointly-weakly-sticky (JWS), of Datalog+- programs. Both extend that of weakly-sticky (WS) programs, which appear in our applications to data quality. For WChS programs we propose a practical, polynomial-time query answering algorithm (QAA). We establish that the two classes are closed under magic-sets rewritings. As a consequence, QAA can be applied to the optimized programs. QAA takes as inputs the program (including the query) and semantic information about the "finiteness" of predicate positions. For the syntactic subclasses JWS and WS of WChS, this additional information is computable.

Motivation & Objective

  • To address the challenge of tractable query answering in Datalog± programs with potentially infinite chase instances.
  • To extend the expressive power of weakly-sticky (WS) programs while preserving tractability of query answering.
  • To develop a practical, polynomial-time query answering algorithm (AL^S) that operates under semantic finiteness constraints on predicate positions.
  • To ensure compatibility with optimization techniques such as magic-set rewriting, enabling efficient query processing.
  • To establish that the JWS class is syntactically defined and strictly larger than WS, with computable finite-position functions for practical use.

Proposed method

  • Proposes a new semantic class, weakly-chase-sticky (WChS), defined by a finite-position function S that identifies positions where nulls remain finite during the chase.
  • Introduces a novel query answering algorithm, AL^S, which combines the parsimonious chase (pChase) with immediate freezing of nulls in S-finite positions after each pChase step.
  • Employs a two-phase execution: first, a pChase runs until no new atoms can be added; second, the pChase is resumed iteratively to handle query joins, with nulls in finite positions frozen to prevent further expansion.
  • Defines the jointly-weakly-sticky (JWS) class as a syntactic subclass of WChS, based on existential dependency graphs (EDGs), ensuring that finite positions are computable.
  • Demonstrates that JWS and WChS are closed under magic-set rewriting, preserving the finiteness of positions and enabling integration with query optimization.
  • Uses the concept of freezing nulls to prevent infinite propagation of nulls in finite positions, ensuring termination and correctness of the algorithm.

Experimental results

Research questions

  • RQ1Can a tractable, polynomial-time query answering algorithm be designed for a semantic extension of weakly-sticky Datalog± programs that allows for infinite chase instances?
  • RQ2Does the proposed algorithm AL^S maintain soundness and completeness when applied to WChS programs under a finite-position function S?
  • RQ3Can the JWS syntactic class be defined such that finite positions are computable and the algorithm remains efficient?
  • RQ4Is the magic-set rewriting technique compatible with the WChS and JWS classes, preserving the finiteness of positions and enabling optimization?
  • RQ5How does the integration of freezing nulls in finite positions improve the efficiency and correctness of query answering in the presence of existential variables?

Key findings

  • The proposed AL^S algorithm runs in polynomial time in data size for all WChS programs, providing a practical solution to query answering where previous algorithms were not efficient.
  • The WChS class is closed under magic-set rewriting, allowing the optimized program to be processed with the same algorithm without loss of correctness.
  • The JWS class is a strictly larger syntactic subclass of WChS than WS, defined via existential dependency graphs (EDGs), and its finite-position function S^ext is computable.
  • The algorithm remains sound for all WChS programs even when S is not fully accurate, but completeness is guaranteed only when S correctly identifies finite positions.
  • The use of freezing nulls in finite positions ensures that no further nulls are generated in those positions, preventing infinite chase expansion and enabling termination.
  • The algorithm’s two-phase structure—pChase followed by resumption with frozen nulls—effectively handles conjunctive queries with joins, ensuring completeness for WChS programs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.