Abstract
This paper establishes a formal framework for Ontology-Based Data Access (OBDA) over probabilistic datasets, focusing on the OWL 2 QL profile. By demonstrating that traditional query rewriting techniques can be "lifted" into the probabilistic domain, the authors provide a bridge between semantic reasoning and uncertainty management. The research identifies a sharp computational dichotomy: determining answer probabilities is either efficiently solvable in polynomial time or belongs to the #P-hard complexity class.
Introduction
In contemporary data management, two significant challenges often collide: the inherent uncertainty of information extracted from unstructured sources and the lack of formal schema to guide reasoning. While Probabilistic Database Management Systems (PDBMS) address the former and Ontology-Based Data Access (OBDA) addresses the latter, their integration remains a complex theoretical hurdle. This paper explores the intersection of these fields, specifically using the OWL 2 QL profile—a logic designed for efficient query answering over large datasets.
The core objective is to compute the exact probability of a query answer given a probabilistic dataset (ABox) and a set of ontological constraints (TBox). This requires reconciling the open-world assumption of ontologies with the closed-world or specific distributional assumptions of probabilistic databases.
The Probabilistic OBDA Framework
The authors define two primary models for probabilistic datasets:
- pABoxes: These associate facts with complex Boolean events, allowing for dependencies between different assertions.
- ipABoxes (Assertion-Independent): A simpler model where each fact is treated as an independent random variable, analogous to the "tuple-independent" model in standard database theory.
By using these models, the authors can represent uncertainty in data extracted via heuristic tools (e.g., web scrapers) while maintaining the semantic richness provided by OWL 2 QL. For example, while an extraction tool might only be 80% certain that "Messi plays for Barca," an ontology can use this fact to infer broader knowledge about the team's roster or league participation.
The Lifting Theorem and Query Rewriting
A fundamental property of OWL 2 QL is its support for query rewriting. In standard OBDA, a Conjunctive Query (CQ) is rewritten into a First-Order (FO) logic query (essentially SQL) that incorporates the knowledge contained in the ontology.
The authors' "Lifting Theorem" proves that these FO-rewritings are sound for computing probabilities. This means that the existing machinery for backwards chaining in OBDA can be directly applied to probabilistic contexts. If a query can be rewritten to account for the ontology in a deterministic database, that same rewriting can be used to calculate the probability of the query being satisfied in a probabilistic database.
Complexity and the Tractability Dichotomy
A major contribution of this work is the adaptation of the "Dalvi-Suciu Dichotomy" to the ontological setting. The authors investigate data complexity—how the computational effort scales with the size of the dataset—and establish a sharp boundary:
- PTime: For certain "simple tree queries," computing the probability is efficient.
- #P-hard: For most other queries, the problem is computationally daunting, exceeding the difficulty of NP-complete problems.
This dichotomy provides a roadmap for developers, identifying which types of semantic queries can be answered exactly in real-time and which will require approximation.
Beyond OWL 2 QL: Expressivity and Approximation
The research extends into more expressive logics, such as $\mathcal{ELI}$ and $\mathcal{ALC}$. In $\mathcal{ELI}$, the authors demonstrate a deep link between logical structure and complexity: if a query cannot be rewritten into First-Order logic, it is guaranteed to be #P-hard.
For cases where exact computation is #P-hard, the authors offer a "safety valve" in the form of a Fully Polynomial Randomized Approximation Scheme (FPRAS). They show that for OWL 2 QL, it is always possible to find a "good enough" probabilistic answer within a reasonable timeframe. However, they also prove that for more complex fragments like $\mathcal{ALC}$, even this level of approximation can become impossible.
Conclusion and Future Work
This paper provides the theoretical foundation for building probabilistic OBDA systems on top of existing PDBMS engines like MayBMS or MystiQ. By proving that query rewriting is "liftable," the authors show that we do not need to reinvent the wheel to handle uncertainty in semantic data.
Future research directions include:
- Probabilistic Inconsistencies: Developing methods to handle data that contradicts the ontology with certain probabilities (e.g., a fact that is 90% likely but logically impossible given the rules).
- TBox Probabilities: Moving beyond uncertain data to uncertain rules (probabilistic ontologies).
- Broadening the Dichotomy: Extending the characterization of tractable queries to include role hierarchies and non-connected queries.
Summary updated