Ontology-Mediated Queries for Probabilistic Databases

Stefan Borgwardt, Ismail Ilkan Ceylan, Thomas Lukasiewicz

Abstract

Probabilistic databases (PDBs) often struggle with the closed-world assumption, where missing data is treated as false. Open-world PDBs (OpenPDBs) address this by assigning default probability intervals to unknown facts. This paper enhances OpenPDBs by integrating Datalog± ontologies, allowing for logical deduction of implicit facts and tighter probability bounds. We analyze the computational complexity of ontology-mediated queries across various Datalog± fragments and propose "intersection semantics" to maintain tractability when negative constraints are introduced.

Introduction

Automated knowledge bases, such as NELL or Google's Knowledge Vault, extract vast amounts of uncertain data from the web. Traditionally, this data is stored in Probabilistic Databases (PDBs) under a closed-world assumption: if a fact is not explicitly present, its probability is zero. This leads to unintuitive results for incomplete knowledge bases.

Open-World Probabilistic Databases (OpenPDBs) were introduced to mitigate this by assigning a default probability interval $[0, \lambda]$ to unknown facts (open tuples). However, OpenPDBs treat all unknown facts identically, lacking the domain knowledge to distinguish between plausible and implausible missing data. This research addresses this gap by injecting logical rules, or ontologies, into the OpenPDB framework to provide more realistic probability bounds.

Integrating Datalog± Ontologies

The authors combine OpenPDBs with Datalog±, a family of expressive rule-based languages. This framework enables Ontology-Mediated Queries (OMQs), where logical rules constrain the possible distributions of data. For instance, a rule stating that "anyone who publishes a novel is an author" can significantly tighten the probability bounds for a query about an individual's profession based on their known activities.

Hierarchy of Datalog± language fragments and their relationship to standard complexity classes.

To evaluate these queries, the system considers $\lambda$-completions—possible worlds where open tuples are assigned probabilities. A key methodological innovation is the restriction to consistent distributions, preventing "drowning effects" where logical inconsistencies artificially inflate query probabilities.

Complexity and Tractability

A major focus of the paper is mapping the computational complexity of evaluating OMQs. The research reveals a sharp divide based on the types of rules used:

  • Positive Rules: If the ontology contains only positive rules, the complexity generally follows the tractability dichotomy of standard PDBs (either solvable in polynomial time $P$ or $PP$-hard).
  • Negative Constraints: Adding negative constraints (e.g., "novels and authors are disjoint") causes a complexity explosion. The system must find a valid completion that doesn't violate these rules, pushing complexity to $NP^{PP}$-complete for many fragments.

To address this, the authors propose "intersection semantics." This approximation technique looks at the intersection of maximal consistent subsets of data, restoring the $P$ vs. $PP$ dichotomy while maintaining the utility of negative constraints.

Key Results

The paper provides a comprehensive theoretical landscape of the complexity of probabilistic query entailment. These results are summarized across various Datalog± language subsets, including Linear (L), Guarded (G), and Sticky (S) fragments.

Complexity of probabilistic query entailment across different Datalog± languages for PDBs and OpenPDBs.

Major findings include:

  • Theoretical Dichotomy: Proved that for positive Datalog± programs, entailment is $PP$-complete but drops to $P$ for "safe" queries.
  • Hardness Proofs: Demonstrated that upper probabilistic entailment becomes $NP^{PP}$-complete for guarded programs when negative constraints are present.
  • Approximation Viability: Showed that intersection semantics successfully reduces complexity back to $PP$-complete levels.

Conclusion and Future Work

This work demonstrates that ontologies can drastically improve the informativeness of open-world probabilistic queries. While negative constraints introduce significant computational challenges, the proposed intersection semantics offer a viable path forward. Future research may explore more flexible consistency thresholds or extend the framework to handle distributions over infinitely many unknown individuals.

Summary updated

BibTeX
@inproceedings{borgwardt2017ontology,
  author = {Stefan Borgwardt and Ismail Ilkan Ceylan and Thomas Lukasiewicz},
  title = {{Ontology-Mediated Queries for Probabilistic Databases}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10680},
}
Figure