Debugging Incoherent Terminologies

Stefan Schlobach, Zhisheng Huang, Ronald Cornet, Frank van HarmelenJ. Autom. Reason 2007

Abstract

As ontologies become central to knowledge sharing in the Semantic Web, the ability to maintain their logical consistency is paramount. While modern reasoners can detect unsatisfiable concepts, they often fail to provide actionable explanations for these errors. This paper presents a formal framework for "debugging" incoherent terminologies by identifying Minimal Unsatisfiability-Preserving sub-TBoxes (MUPS) and Minimal Incoherence-Preserving sub-TBoxes (MIPS). We evaluate two distinct algorithmic approaches—a "glass-box" method (MUPSter) and a "black-box" method (DION)—across real-world medical ontologies and synthetic benchmarks. Our results demonstrate that while debugging is computationally intensive, automated pinpointing can significantly reduce the manual effort required to repair complex, large-scale knowledge bases.

1. Introduction

In the Semantic Web, ontologies formalized through Description Logics (DL) provide the structural foundation for data interoperability. However, as these ontologies grow in size and complexity, they frequently become "incoherent"—containing concepts that are logically unsatisfiable. An unsatisfiable concept is one that, by definition, can have no instances. When a terminology contains such concepts, it indicates a modeling error that can cascade through the system.

Traditional reasoners are highly optimized for detecting these contradictions but offer little insight into their causes. For a human modeler, identifying the specific axioms responsible for a contradiction in a terminology with thousands of definitions is a daunting task. This research addresses the gap between error detection and error repair by providing automated tools to pinpoint the minimal sets of axioms that must be modified to restore coherence.

2. Formal Framework: MUPS and MIPS

The authors ground their work in traditional model-based diagnosis, specifically adapting Reiter’s hitting set theory to the context of Description Logics. They introduce two primary constructs to categorize logical conflicts:

  • Minimal Unsatisfiability-Preserving sub-TBoxes (MUPS): These are the smallest subsets of axioms within an ontology that render a specific concept unsatisfiable. Removing any single axiom from a MUPS would make that specific concept satisfiable again (relative to that subset).
  • Minimal Incoherence-Preserving sub-TBoxes (MIPS): These are the smallest subsets of axioms that make at least one concept in the ontology unsatisfiable. MIPS provide a global view of the "bugs" within a terminology.

By identifying these minimal sets, the framework allows developers to focus on the "root causes" of incoherence rather than the symptoms.

3. Algorithmic Approaches

The paper explores two competing strategies for calculating these minimal subsets, each with distinct advantages:

3.1 Top-down (The "Glass-Box" Approach)

Implemented in the MUPSter tool, this method involves modifying the internal "tableau" calculus of the reasoner itself. By labeling axioms and tracking them through the proof process, MUPSter can identify which axioms contribute to a logical "clash." Boolean minimization is then applied to extract the minimal set. This approach is precise but requires deep integration with the reasoner's internal logic.

3.2 Bottom-up (The "Black-Box" Approach)

Implemented in the DION tool, this method treats the reasoner as an external "oracle." It uses a selection function to isolate a relevant subset of the ontology where the error persists and then iteratively prunes that subset until only the minimal conflict remains. The advantage of this approach is its flexibility; it can utilize any highly optimized, off-the-shelf reasoner (such as RacerPro).

4. Evaluation and Insights

The tools were evaluated using three types of data: large-scale real-world terminologies (DICE, FMA, MGED, and Geo), adapted DL98 benchmarks, and a purpose-built set of 1,611 systematically generated TBoxes designed to test variables like concept length and logical operator ratios.

4.1 Structural Sensitivity and Complexity

The study reveals that the difficulty of debugging is less dependent on the total number of axioms and more sensitive to the length and complexity of concept definitions. Longer, nested definitions lead to an exponential increase in the search space for bottom-up methods. Furthermore, while standard reasoning in the ALC logic is PSPACE-complete, the search for minimal subsets adds an additional layer of exponential complexity.

4.2 Root Cause Analysis

A significant finding in the FMA case study was the discovery that 181 unsatisfiable concepts were caused by a single erroneous definition of the concept "Organ." This illustrates the "pinpointing" heuristic: by identifying "cores" (axioms that appear in multiple MUPS), modelers can fix hundreds of errors with a single correction. In the DICE medical study, the tools successfully reduced 175 MUPS into a manageable set of 142 MIPS, allowing human experts to fully debug the terminology for use in intensive care units.

5. Performance Comparison

In head-to-head testing, DION (bottom-up) was generally faster on average (1.68s vs 2.05s on the purpose-built set) and benefited from using highly optimized external reasoners. However, MUPSter (top-down) was more robust in cases where the ontology contained a massive number of modeling errors, where the selection functions of black-box methods might struggle to isolate a single conflict.

6. Conclusion and Future Work

This work provides a vital bridge between logical theory and practical ontology engineering. By automating the identification of MUPS and MIPS, the authors enable the repair of large-scale terminologies that would otherwise be unusable.

Current limitations include a focus on unfoldable ALC TBoxes and a lack of support for more expressive features like transitive roles or ABoxes. Future research aims to develop hybrid algorithms that combine the internal precision of glass-box methods with the external speed of black-box approaches.

Summary updated

BibTeX
@article{schlobach2007debugging,
  author = {Stefan Schlobach and Zhisheng Huang and Ronald Cornet and Frank van Harmelen},
  title = {{Debugging Incoherent Terminologies}},
  journal = {J. Autom. Reason.},
  year = {2007},
  doi = {10.1007/s10817-007-9076-z},
}
Figure