A data complexity and rewritability tetrachotomy of ontology-mediated queries with a covering axiom

Olga Gerasimova, Stanislav Kikot, Agi Kurucz, Vladimir V. Podolskii, Michael Zakharyaschev

Introduction

In the field of Ontology-Based Data Access (OBDA), the goal is to query databases through a conceptual lens—an ontology—that provides background knowledge. While this is well-understood for "Horn" ontologies, which do not allow for "either/or" choices, it becomes significantly more complex when ontologies include covering axioms. A covering axiom expresses that every member of a class must belong to one of two or more subclasses (e.g., "every Scientist is either a Brexiteer or a Remainer").

Example of Description Logic axioms including a covering axiom (4).

This paper establishes a definitive map of the computational landscape for a fundamental class of non-Horn ontology-mediated queries. By focusing on a single covering axiom and path-shaped queries, the authors establish a complete tetrachotomy, categorizing these queries into four distinct data complexity classes based on their syntactic structure.

Methodology: d-sirups and Path Queries

The authors introduce disjunctive sirups (d-sirups)—rudimentary ontology-mediated queries consisting of one covering axiom ($A \sqsubseteq F \sqcup T$) and a Boolean conjunctive query. They further refine this to dd-sirups, where the covering classes are disjoint ($F \sqcap T \sqsubseteq \bot$).

To classify these queries, the researchers employed several advanced techniques:

  • Automata-Theoretic Methods: Used to analyze First-Order (FO) and Datalog rewritability.
  • Cactuses: A specialized Datalog expansion technique used to characterize the semantic criteria for FO-rewritability.
  • The "Bike Technique": A novel reduction method developed by the authors to prove coNP-hardness by encoding 3SAT instances into the query answering problem.
A path-shaped query structure used to analyze complexity.

The Tetrachotomy of Data Complexity

The core technical contribution is a complete syntactic classification for path-shaped dd-sirups into four distinct complexity classes:

  1. AC$^0$ (Easy): Occurs if the query has "twins" (nodes that must satisfy both $F$ and $T$) or lacks one of the covering predicates entirely. These are First-Order rewritable (SQL-compatible).
  2. NL (Medium): Occurs for "periodic" queries with a single $F$ or $T$ node.
  3. P (Harder): Occurs for "aperiodic" queries with a single $F$ or $T$ node.
  4. coNP (Hardest): Occurs when the query contains at least two $F$ nodes and two $T$ nodes.

Key Insights and Results

The study reveals that simplicity is deceptive. Even with just one simple "either/or" axiom, recognizing whether a query can be rewritten into SQL is 2ExpTime-hard, and some rewritings can explode to double-exponential size. Furthermore, the authors prove that answering these simple queries can require resolution proofs of exponential size, highlighting why standard automated reasoners often struggle in these settings.

In terms of combined complexity, answering d-sirups is proved to be $\Pi^p_2$-complete. The results also show that some d-sirups only have double-exponential-size positive existential FO-rewritings.

Conclusion and Future Work

While this work provides a definitive map for path-shaped queries with disjoint covering classes, several avenues remain open. The authors suggest extending the classification to tree-shaped or undirected path-shaped queries, investigating non-disjoint covering classes ($F$ and $T$ allowed to overlap), and further exploring the link between these queries and Constraint Satisfaction Problems (CSPs).

Summary updated

BibTeX
@article{gerasimova2022data,
  author = {Olga Gerasimova and Stanislav Kikot and Agi Kurucz and Vladimir V. Podolskii and Michael Zakharyaschev},
  title = {{A data complexity and rewritability tetrachotomy of ontology-mediated queries with a covering axiom}},
  journal = {Artificial Intelligence},
  year = {2022},
  doi = {10.1016/j.artint.2022.103738},
}
Figure