Query Expressibility and Verification in Ontology-Based Data Access

Carsten Lutz, Johannes Marti, Leif SabellekKR 2018

Abstract

In Ontology-Based Data Access (OBDA), systems are often developed incrementally through a bootstrapping process. This paper investigates the theoretical foundations of this process by introducing and analyzing two fundamental reasoning tasks: expressibility and verification. By establishing tight complexity bounds across various Description Logics (DLs), the research reveals that these tasks are significantly more complex than previously suggested in database theory, with some instances reaching undecidability.

Introduction

Ontology-Based Data Access (OBDA) provides a high-level conceptual view of heterogeneous data sources through an ontology and a set of mappings. In practice, engineers rarely design these systems in a single phase. Instead, they employ an incremental approach: starting with a minimal set of critical queries and expanding the ontology and mappings as new requirements emerge.

Despite the prevalence of this "bootstrapping" methodology, formal support for managing this evolution has been lacking. This paper addresses this gap by formalizing two critical questions for developers:

  1. The Expressibility Problem: Given a source query, is it possible to answer it using the current ontology and mappings?
  2. The Verification Problem: Does a manually constructed target query correctly capture the semantics of the original source query?

Theoretical Framework

The authors evaluate these problems using a rigorous logical framework. The study focuses on Union of Conjunctive Queries (UCQs) for both source and target languages and utilizes Global-As-View (GAV) mappings, where target relations are defined as queries over the source data. The analysis spans a spectrum of Description Logics (DLs) commonly used in OBDA, including DL-Lite, $\mathcal{EL}$, and $\mathcal{ELHI}$.

To determine complexity upper bounds, the researchers utilized Two-Way Alternating Parity Automata (TWAPA) on infinite trees. Lower bounds were established through reductions from known hard problems, such as $\forall\exists$-QBF (Quantified Boolean Formulas) and Ontology-Mediated Query (OMQ) containment.

Key Findings and Complexity Analysis

The $\Pi^p_2$ Correction

A significant contribution of this work is the correction of a long-standing claim in database theory. While previous literature (Levy et al. 1995) suggested that the expressibility problem was NP-complete for empty ontologies, this research proves it is actually $\Pi^p_2$-complete. This indicates that even without the added complexity of an ontology, determining if a query can be expressed through mappings is inherently more difficult than previously assumed.

The "Pollution" Effect

The paper introduces the concept of "pollution," where an ontology can inadvertently hinder the expressibility of source queries. By defining broad target concepts, an ontology may "blur" the distinctions between specific source relations. If the ontology states that two distinct source concepts are both subclasses of a single target concept, it may become impossible to separate data that was originally distinct at the source level, rendering certain source queries unexpressible.

Complexity Jumps in $\mathcal{EL}$

While the logic $\mathcal{EL}$ is typically considered computationally simpler than $\mathcal{ELI}$ (which includes inverse roles), this paper identifies a "complexity jump" in the context of OBDA. The authors demonstrate that GAV mappings allow $\mathcal{EL}$ to simulate inverse roles. This simulation pushes the complexity of expressibility from CONEXPTIME (for rooted queries) to 2EXPTIME (for unrestricted queries), matching the complexity of the more expressive $\mathcal{ELI}$ logic.

Summary of Complexity Results

The following table summarizes the complexity bounds established for UCQ-to-UCQ expressibility and verification:

Ontology Logic Query Type Complexity
DL-Lite Any UCQ $\Pi^p_2$-complete
$\mathcal{EL}$ to $\mathcal{ELHI}$ Rooted UCQs CONEXPTIME-complete
$\mathcal{EL}$ to $\mathcal{ELHI}$ Unrestricted UCQs 2EXPTIME-complete
$\mathcal{ALCF}$ Any UCQ Undecidable

Conclusion and Future Work

The research demonstrates that while expressibility and verification are essential for the incremental development of OBDA systems, they carry high computational costs. The jump to undecidability for $\mathcal{ALCF}$ (which includes functional roles) suggests a clear boundary for the expressiveness of ontologies in automated management tasks.

Future research directions include expanding the scope to more complex mapping types, such as Local-As-View (LAV) or GLAV mappings. Additionally, the authors suggest investigating "maximally contained" realizations—approximations that provide the best possible answer when an exact match for a source query is not expressible—and accounting for source database constraints like primary keys.

Summary updated

BibTeX
@inproceedings{lutz2018query,
  author = {Carsten Lutz and Johannes Marti and Leif Sabellek},
  title = {{Query Expressibility and Verification in Ontology-Based Data Access}},
  booktitle = {KR},
  year = {2018},
}
Figure