Parallelisable Existential Rules: a Story of Pieces

Maxime Buron, Marie-Laure Mugnier, Michaël Thomazo

Abstract: In this paper, we consider existential rules, an expressive formalism well suited to the representation of ontological knowledge and data-to-ontology mappings in the context of ontology-based data integration. The chase is a fundamental tool to do reasoning with existential rules as it computes all the facts entailed by the rules from a database instance. We introduce parallelisable sets of existential rules, for which the chase can be computed in a single breadth-first step from any instance. The question we investigate is the characterization of such rule sets. We show that parallelisable rule sets are exactly those rule sets both bounded for the chase and belonging to a novel class of rules, called pieceful. The pieceful class includes in particular frontier-guarded existential rules and (plain) datalog. We also give another characterization of parallelisable rule sets in terms of rule composition based on rewriting.

Introduction

In Ontology-Based Data Access (OBDA), a conceptual layer (an ontology) is used to query underlying databases. To ensure query completeness, the system must account for the logical consequences of the rules defined in the ontology. This is typically achieved using the chase, an iterative algorithm that applies rules to a database until no further information can be inferred.

However, the chase is often recursive and computationally expensive. In high-performance systems, it is desirable to "compile" the ontology directly into the data mapping, allowing reasoning to occur in a single, parallelisable step. This paper addresses a fundamental theoretical question: Under what conditions can a multi-step chase be simulated in a single breadth-first step?

Characterizing Parallelisability

The authors introduce a novel class of rules called pieceful rules. They prove that a rule set can be parallelised if and only if it is both bounded and pieceful.

  • Parallelisability: A rule set $\mathcal{R}$ is parallelisable if it can be replaced by a finite set $\mathcal{R}'$ such that applying $\mathcal{R}'$ once produces the same results as running the full chase of $\mathcal{R}$.
  • Boundedness: A property where the chase is guaranteed to terminate within a fixed number of steps, regardless of the input data.
  • Piecefulness: This new concept restricts how rules can be triggered. In a "pieceful" derivation, the variables that trigger a rule must either originate from the initial database or from atoms generated by a single previous rule application. This prevents the "gluing together" of complex structures from disparate branches of the chase, which would otherwise require multiple steps to resolve.

The "Story of Pieces" and Rule Hierarchy

The core insight of the paper is that existential rules generate "pieces" of information. If a rule requires variables from two different "pieces" generated in distinct steps, the process cannot be collapsed into a single step without losing information.

Hierarchy of existential rule classes, showing the position of the novel 'pieceful' class.

As shown in the hierarchy above, the pieceful class is broad. It encompasses all of Datalog and "frontier-guarded" rules—both of which are in the PTime-c complexity class—but it excludes "weakly frontier-guarded" (wfg) rules. This classification places pieceful rules as a distinct and useful subclass for optimization within the existing landscape of existential rule hierarchies.

Key Results and Theoretical Insights

The paper provides two primary characterizations of parallelisable rule sets:

  1. Syntactic/Structural: A set of existential rules is parallelisable if and only if it is both bounded and pieceful.
  2. Compositional: A rule set is pieceful if and only if it is "stable at the infinite" under rule composition. This second characterization is based on how rules behave when combined (composed) using existential and compact composition operators.

Conclusion and Future Work

While this work provides a robust theoretical foundation for parallelising the chase, several avenues for future research remain. The current study is based on the "semi-oblivious" chase; exploring other variants, such as the "core chase," might lead to different definitions of parallelisability. Additionally, while the authors conjecture that query answering with pieceful rules is in PTime for data complexity, formal proofs for the exact complexity bounds of checking piecefulness are still needed. Finally, the compact composition operator introduced here suggests more expressive fragments of logic that lie beyond standard existential rules, warranting further investigation.

Summary updated

Abstract

In this paper, we consider existential rules, an expressive formalism well suited to the representation of ontological knowledge and data-to-ontology mappings in the context of ontology-based data integration. The chase is a fundamental tool to do reasoning with existential rules as it computes all the facts entailed by the rules from a database instance. We introduce parallelisable sets of existential rules, for which the chase can be computed in a single breadth-first step from any instance. The question we investigate is the characterization of such rule sets. We show that parallelisable rule sets are exactly those rule sets both bounded for the chase and belonging to a novel class of rules, called pieceful. The pieceful class includes in particular frontier-guarded existential rules and (plain) datalog. We also give another characterization of parallelisable rule sets in terms of rule composition based on rewriting.
BibTeX
@inproceedings{buron2021parallelisable,
  author = {Maxime Buron and Marie-Laure Mugnier and Michaël Thomazo},
  title = {{Parallelisable Existential Rules: a Story of Pieces}},
  booktitle = {KR},
  year = {2021},
  doi = {10.24963/kr.2021/16},
}
Figure