CEX and MEX: Logical Diff and Logic-based Module Extraction in a Fragment of OWL

Boris Konev, Carsten Lutz, Dirk Walther, Frank WolterOWLED (Spring) 2008

Abstract

Managing large-scale ontologies, such as the medical terminology SNOMED CT, presents significant challenges for version control and modularization. Traditional syntactic "diff" tools and simple hierarchy comparisons often fail to capture the true logical implications of changes. This paper introduces two tools, CEX and MEX, designed for the $\mathcal{EL}$ fragment of OWL. CEX performs "logical diffs" to identify changes in logical consequences between ontology versions, while MEX extracts minimal "semantic modules" that preserve all logical properties for a given set of terms. Experimental results on SNOMED CT demonstrate that these tools are both highly sensitive to logical changes and computationally efficient.

Introduction

As ontologies grow to encompass hundreds of thousands of axioms, manual management becomes infeasible. Two primary issues arise: the need for meaningful comparisons between versions and the need to extract small, manageable subsets for specific applications. Standard text-based diff tools are inadequate because ontologies are sets of axioms where syntactic changes may have no logical impact, and vice versa. Furthermore, simple "copy-paste" modularization often misses indirect logical dependencies. This work addresses these issues by leveraging the polynomial-time reasoning properties of the $\mathcal{EL}$ logic fragment.

Methodology

The proposed tools focus on the $\mathcal{EL}$ fragment of the Web Ontology Language (OWL), which supports lightweight reasoning tasks like subsumption in polynomial time.

CEX: Logical Diff

CEX identifies differences in logical consequences rather than syntax. Given a signature $\Sigma$ (a set of relevant terms), CEX detects concept names involved in new or lost subsumptions between two ontology versions. This approach is grounded in the theory of "conservative extensions," ensuring that all relevant logical changes are captured.

MEX: Module Extraction

MEX is a tool for extracting semantic modules. Unlike traditional "definition-closed" strategies that include all definitions for a term, MEX uses model theory to identify the smallest fragment $T_0$ that is logically equivalent to the full ontology $T$ with respect to a signature $\Sigma$. This results in significantly smaller modules that are still logically complete for the chosen terms.

Evaluation and Results

The tools were evaluated using SNOMED CT, comparing versions from February 2005 (~380k axioms) and December 2006 (~390k axioms), as well as randomly generated acyclic TBoxes.

Sensitivity and Efficiency

CEX proved to be far more sensitive than traditional methods. It identified five times as many differences as a simple comparison of class hierarchies, highlighting the "hidden" logical changes that syntactic tools miss.

Comparison of CEX and classification-based approach in terms of difference size and proportion.

In terms of performance, CEX processed the full SNOMED CT ontology in approximately 8-9 minutes on a standard PC. For a signature of 100 terms, MEX produced modules averaging 370 axioms, compared to 2,462 axioms required by standard "definition-closed" approaches.

Scalability

The tools demonstrate strong scalability. As shown in the performance metrics, both execution time and memory consumption scale linearly with the number of defined concept names, making them suitable for massive real-world datasets.

Scalability of the approach showing execution time and memory consumption.

By combining the tools—using MEX to extract relevant modules before running CEX—the time required for a logical diff on a 100-term signature was reduced from over 500 seconds to just 3.66 seconds.

Discussion and Conclusion

The logic-based approach of CEX and MEX provides a robust framework for ontology management. By prioritizing semantics over syntax, these tools offer deeper insights into ontology evolution and more efficient modularization.

However, limitations remain. The current implementation is restricted to the $\mathcal{EL}$ fragment and does not handle more expressive features like negation or universal restrictions. Future work will focus on extending these techniques to more complex logics and fully integrating role inclusions into the diffing process. Despite these constraints, CEX and MEX represent a significant step forward in making large-scale ontology maintenance computationally feasible and logically sound.

Summary updated

BibTeX
@inproceedings{konev2008cex,
  author = {Boris Konev and Carsten Lutz and Dirk Walther and Frank Wolter},
  title = {{CEX and MEX: Logical Diff and Logic-based Module Extraction in a Fragment of OWL}},
  booktitle = {OWLED (Spring)},
  year = {2008},
}
Figure