Introduction
Modern ontologies, such as the medical terminology SNOMED CT, often contain hundreds of thousands of logical axioms. For most practical applications, users require only a small subset of the ontology relevant to a specific "signature"—a set of terms of interest. This process, known as module extraction, is critical for making large-scale ontologies manageable.
Traditional methods rely on locality-based module extraction. While computationally efficient, these syntactic approaches are often "one-size-fits-all," preserving every possible logical consequence. This frequently results in "bloated" modules containing unnecessary information. For highly expressive ontology languages, finding the absolute minimal module is often undecidable. This research bridges the gap between fast syntactic methods and slow semantic ones by leveraging Datalog reasoning.
Methodology: The Datalog-Based Framework
The authors propose a framework called a Module Setting, which reduces the extraction problem to reasoning in Datalog, a declarative logic programming language. The core idea is to "strengthen" a complex ontology into a Datalog program, where reasoning is more tractable.
The extraction process follows four key stages:
- Transformation: The source ontology (e.g., OWL 2) is translated into a Datalog program. This involves techniques like Skolemization to handle existential quantifiers.
- Materialization: A high-performance Datalog reasoner, such as RDFox, computes all facts derivable from an initial "seed" set related to the user's signature.
- Support Tracking: The system identifies which specific Datalog rules were necessary to derive the resulting facts.
- Mapping Back: These supporting rules are mapped back to their original axioms in the source ontology to form the final module.
Key Insights: Tailored Inseparability
A major contribution of this work is the move away from treating "sameness" (inseparability) as a binary property. Instead, the framework is parameterized, allowing users to define the level of logical preservation required.
- Classification Inseparability: Preserves only simple class-to-class implications, leading to the smallest modules.
- Model Inseparability: Preserves all logical models, resulting in larger but more comprehensive modules.
By adjusting the "seed facts" and the Datalog transformation, the system (named PrisM) can extract modules tailored to specific needs, such as query answering or hierarchy maintenance.
Evaluation and Results
PrisM was evaluated against 18 real-world ontologies, including SNOMED CT, GALEN, and NCI. The results demonstrate significant improvements over standard industry techniques:
- Size Reduction: In many cases, Datalog-based modules were significantly smaller than locality-based ones. For the
Fly-anatomy-XPontology, the reduction was by orders of magnitude. - Performance: While more intensive than syntactic checks, the process typically completes in under 10 seconds for most ontologies. Even for massive datasets like SNOMED, it rarely exceeds one minute.
- Property Preservation: The extracted modules are proven to be "depleting" (no relevant information is omitted) and "justification-preserving," which is essential for ontology debugging tools.
Conclusion and Future Work
By reducing module extraction to Datalog reasoning, this framework allows for the extraction of smaller, more efficient modules without sacrificing logical integrity. While these modules are not yet guaranteed to be the absolute "minimal" set, they represent a significant step forward in practical ontology management. Future work includes integrating this approach into "pay-as-you-go" reasoning systems and optimizing it for stream reasoning environments where data evolves rapidly.
Summary updated