Introduction
Ontology-Mediated Querying (OMQ) is a powerful paradigm that allows users to query data while leveraging the logical relationships defined in an ontology. However, a significant hurdle in OMQ is the "infinite data" problem. When ontologies contain recursive or cyclic rules—such as "every student has an advisor, and every advisor was once a student"—traditional reasoning engines can enter infinite loops during full materialization, the process of pre-calculating all inferable facts.
Existing solutions typically fall into two categories: query rewriting and full materialization. Query rewriting often results in massive, complex queries that are difficult to execute efficiently. Conversely, full materialization can fail or become logically incomplete when dealing with infinite models. To bridge this gap, we introduce SUMA, a system that utilizes partial materialization to achieve high performance and logical completeness on massive datasets.
Methodology: Partial Materialization and n-step Logic
The fundamental principle behind SUMA is that for a specific query, only a finite portion of the potentially infinite universal model is required to produce a complete set of answers.
The n-step Universal Model
SUMA's core is the n-step Universal Model. The researchers proved that for rooted conjunctive queries, the "anonymous" part of an inferred model follows a forest-like structure. Consequently, a query can only "reach" a certain depth within this structure. If a query contains $n$ quantified variables, materializing the ontology to a depth of $n$ steps is sufficient to guarantee a complete answer.
As shown in Figure 1, the query graph maps to a specific subset of the universal model (sRDF). By materializing only this necessary subset, SUMA avoids infinite loops while maintaining the efficiency of direct database lookups.
Expressive Reasoning with OWL 2 DL
While the n-step logic is straightforward for simpler description logics, SUMA extends this capability to the highly expressive OWL 2 DL language. The system employs syntactic approximation to simplify complex axioms into forms that are easier to materialize. This pragmatic approach ensures high performance while remaining complete for the vast majority of practical queries.
The expansion process, visualized in Figure 5, shows how the model grows in discrete steps ($d_0, d_1, d_2$) from the initial ABox. This controlled expansion is the key to SUMA's scalability.
System Optimizations
To further optimize performance, SUMA incorporates Role Rewriting. This technique identifies redundant relationships, such as inverse roles (e.g., "advisor" and "advisedBy"), and collapses them into a single canonical form. This reduces the total number of triples in the database, leading to faster reasoning and lower memory overhead.
SUMA is designed to function as a pre-processor for standard SPARQL engines like RDF-3X. This architecture allows it to leverage existing database optimizations while providing advanced ontological reasoning capabilities.
Evaluation and Results
The system was evaluated using several benchmarks, including LUBM, UOBM, and real-world data from DBPedia+ and YAGO. To test the limits of the system, the authors introduced cyclic rules into LUBM and UOBM (creating LUBM+ and UOBM+).
- Completeness: SUMA achieved 100% completeness on the LUBM+ dataset, outperforming the state-of-the-art PAGOdA system, which missed several answers.
- Performance: On the LUBM(1000) dataset (approx. 100 million facts), SUMA completed materialization in 124 seconds, compared to 1692 seconds for PAGOdA.
- Scalability: The system demonstrated near-linear scaling, successfully processing the challenging UOBM(500) dataset in 411 seconds.
- Memory Efficiency: Role rewriting reduced memory consumption by approximately 9.5% to 12.4% across various datasets.
Conclusion and Future Work
SUMA demonstrates that partial materialization is a viable and highly efficient strategy for query answering in OWL 2 DL. By bounding the reasoning process based on query structure, it overcomes the challenges of infinite models and provides a scalable solution for large-scale knowledge bases. Future research will explore distributed reasoning to further enhance scalability and support for additional normalized ontology models.
Summary updated