Query Abduction for ELH Ontologies

Mahsa Chitsaz, Zhe Wang, Kewen Wang

Abstract

Query abduction is a critical task in Ontology-Based Data Access (OBDA) for identifying missing data required to satisfy a query. This paper introduces ABEL, a scalable system for query abduction over $\mathcal{ELH}_\perp$ ontologies. ABEL utilizes a two-step "approximate and filter" approach, transforming ontologies into Datalog programs and applying query rewriting to eliminate unsound explanations. Experimental results on the LSTW benchmark demonstrate that ABEL can handle up to 10 million assertions, providing a practical solution for large-scale abductive reasoning.

Introduction

In the context of Ontology-Based Data Access (OBDA), formal logic provides a unified view over heterogeneous and distributed data sources. However, users often encounter scenarios where a query fails to return expected results due to missing information. Query Abduction addresses this by reasoning backward to identify the set of facts (explanations) that, if added to the knowledge base, would satisfy the query.

Scaling abduction to large datasets is a significant challenge. Traditional tableau-based algorithms, while logically sound and complete, often fail to scale. Previous research has either restricted query expressivity or focused on simpler First-Order rewritable ontologies. This work targets the $\mathcal{ELH}_\perp$ family of description logics, which is widely used in domains like medicine and biology but presents substantial computational hurdles for abduction at scale.

Methodology: The ABEL System

ABEL employs a two-step "approximate and filter" strategy to bridge the gap between expressive logic and high-performance database operations:

  1. Datalog Approximation: The $\mathcal{ELH}_\perp$ ontology is transformed into a simpler Datalog program. This approximation is complete—ensuring no valid explanations are missed—but unsound, meaning it may generate "fake" solutions that do not hold in the original logic.
  2. Query Rewriting and Filtering: To address unsoundness, ABEL identifies that incorrect explanations typically stem from specific structural patterns, such as fork-shaped or cyclic structures created during approximation. The system automatically rewrites the user's query to include filters that discard these invalid results.

ABEL is implemented using the XSB Prolog engine, which facilitates efficient resolution and seamless integration with large-scale databases.

Experimental Evaluation

The system was evaluated using the LSTW(n) benchmark, an extension of the Lehigh University Benchmark (LUBM). The evaluation spanned scales from LSTW(1) to LSTW(100), with the latter containing approximately 10 million assertions and 1.7 million individuals. The test suite included 13 atomic queries and 27 conjunctive queries (CQs), supplemented by manually crafted "torture test" queries designed to challenge the approximation logic with complex cycles.

Results and Discussion

ABEL demonstrated significant milestones in scalability and practical utility. For atomic queries, the system achieved a 100% success rate across all scales, with average execution times remaining under 500 seconds even at the 10-million-assertion mark.

Performance summary for atomic and conjunctive queries on the LSTW benchmark.

As shown in the performance summary above, the aggregate success rate for LSTW(1) reached 70% (combining 100% for atomic and 56% for conjunctive queries). While execution times for conjunctive queries were generally lower on average, the system faced increased difficulty as the dataset size grew, particularly with complex structural patterns.

Execution times (s) for complex 'torture test' queries (Q1-Q4) across different dataset scales.

The "torture test" results highlight the system's robustness but also its limits. While ABEL successfully handled most complex queries, Q4 triggered Out of Memory (OM) errors at scales beyond LSTW1, illustrating the computational intensity of handling deep recursion and complex forks in large-scale data environments.

Conclusion and Future Work

ABEL represents a major step forward in making abductive reasoning practical for real-world, large-scale ontologies. By leveraging structural filters and high-performance Prolog engines, it successfully processes millions of records. Future work will focus on refining the rewriting process to better handle recursive axioms (e.g., ∃advisor.Professor ⊑ Professor) and optimizing memory management to improve the success rate for highly complex conjunctive queries.

Summary updated

BibTeX
@inproceedings{chitsaz2015query,
  author = {Mahsa Chitsaz and Zhe Wang and Kewen Wang},
  title = {{Query Abduction for ELH Ontologies}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9717},
}
Figure