NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Combined Approach to OBDA: Taming Role Hierarchies using Filters

Carsten Lutz, Inanç Seylan, David Toman, Frank Wolter

Introduction

Ontology-Based Data Access (OBDA) provides a semantic layer over relational databases, allowing users to query data using high-level concepts while the system automatically infers missing facts based on ontological rules. For expressive description logics like DL-Lite$_{\mathcal{R}}$ (the basis of OWL2 QL), a significant challenge is "exponential query blowup." Traditional query rewriting techniques, which compile ontological rules into SQL, often produce queries too large for standard database engines to execute efficiently.

The Problem: Materialization and Spurious Answers

An alternative to query rewriting is materialization (forward chaining), where inferred facts are pre-computed. However, existential rules (e.g., "Every employee works for some employer") can lead to infinite chains of inferred individuals. The "combined approach" addresses this by creating a finite, cyclic representation of the data using "dummy" individuals (labeled nulls).

While this makes the data finite, the introduced cycles create spurious answers—matches in the materialized data that do not exist in the true, infinite model of the ontology. Historically, filtering these required another round of query rewriting, reintroducing the exponential blowup problem for logics with role hierarchies and inverse roles.

Example axioms in DL-Lite$_{\mathcal{R}}$ involving existential restrictions and role hierarchies.

Methods: Polynomial-Time Filtering

The authors propose replacing the auxiliary rewriting step with a polynomial-time filtering procedure implemented as a database User-Defined Function (UDF).

Smart ABox Completion

To enable efficient filtering, the authors introduce a specific materialization strategy. If a role is part of a cycle in the ontology, the system generates two distinct dummy individuals instead of one. This slight expansion of the "canonical model" ensures that the filtering check becomes deterministic.

UDF-Based Validation

When a query runs, the database identifies all structural matches in the materialized data. The UDF then evaluates each match by checking if it can be validly mapped to a theoretical "unraveled" (infinite) version of the data. Thanks to the two-dummy node trick, this validation runs in polynomial time relative to the query size.

The finite canonical model with doubled dummy nodes (left) and its corresponding infinite unraveling (right) used for deterministic filtering.

Evaluation and Results

The approach was evaluated using a modified Lehigh University Benchmark (LUBM$^{\exists}_n$), designed to stress-test deep hierarchies and data incompleteness.

  • Scalability: Tested on IBM DB2 with up to 13.5 million assertions, the system successfully answered complex queries that caused pure rewriting tools to fail.
  • Robustness: Performance remained stable despite varying levels of data incompleteness and hierarchy depth.
  • Efficiency: Even in "nasty" scenarios generating millions of spurious matches, the UDF-based filter successfully processed the results, though performance was eventually limited by the I/O overhead of passing rows from the SQL engine to the UDF.

Conclusion

By shifting the burden of handling role hierarchies from query rewriting to a post-execution filtering stage, the authors eliminate the exponential blowup inherent in expressive OBDA. The "two-dummy" materialization trick is a practical optimization that makes this filtering computationally feasible for real-world ontologies, paving the way for more scalable semantic data integration.

Summary updated

BibTeX
@inproceedings{lutz2012combined,
  author = {Carsten Lutz and Inanç Seylan and David Toman and Frank Wolter},
  title = {{The Combined Approach to OBDA: Taming Role Hierarchies using Filters}},
  booktitle = {SSWS+HPCSW@ISWC},
  year = {2012},
}
Figure