HermiT: A Highly-Efficient OWL Reasoner

Robert D. C. Shearer, Boris Motik, Ian HorrocksOWLED 2008

Introduction

Reasoning serves as the foundational "brain" of the Semantic Web, enabling systems to deduce implicit relationships within ontologies—structured vocabularies defined in the Web Ontology Language (OWL). Despite its importance, standard "tableau" reasoners frequently encounter performance bottlenecks when processing large-scale, real-world ontologies. HermiT is a high-performance OWL reasoner designed to overcome these limitations through a novel "hypertableau" calculus and an "anywhere blocking" strategy. These innovations allow HermiT to classify complex ontologies, such as the GALEN medical ontology, which previously caused state-of-the-art reasoners to fail.

The Challenges of OWL Reasoning

Standard tableau-based reasoners face two primary "performance killers":

  1. Or-Branching (Nondeterminism): When a reasoner encounters a choice—for instance, "An animal is either a Herbivore or a Carnivore"—it must make a guess. Incorrect guesses necessitate backtracking, leading to an exponential explosion in the search space.
  2. And-Branching (Model Size): To verify ontology consistency, reasoners construct a "model" representing individuals and their relationships. In complex ontologies, these models can grow excessively large, exceeding available memory.

Methodology: Hypertableau and Anywhere Blocking

HermiT addresses these issues by departing from standard tableau algorithms with several key technical advancements:

Hypertableau Calculus

The core engine of HermiT is its hypertableau calculus. This approach generalizes "absorption" optimizations by treating many ontology axioms as Horn clauses (e.g., "if A and B, then C"). By doing so, the reasoning process becomes significantly more deterministic, drastically reducing the number of nondeterministic "guesses" required.

Anywhere Blocking

Traditional reasoners utilize "ancestor blocking," where a new individual in a model can only be "blocked" (preventing further expansion) by one of its direct ancestors. HermiT introduces "anywhere blocking," allowing any individual in the model to block another if they share identical characteristics. This shift from a tree-based to a graph-based model construction significantly reduces memory consumption.

Comparison of blocking strategies: (a) Without blocking, (b) Ancestor Blocking, and (c) Anywhere Blocking.

Additional Optimizations

  • Individual Reuse: HermiT attempts to reuse existing individuals to satisfy requirements before creating new ones.
  • NI-Rule for Nominals: A specialized rule handles "nominals" (specific individuals like United_Kingdom) more efficiently, preventing the "nominal generation" explosion common in other systems.

Experimental Evaluation and Results

HermiT was evaluated against leading reasoners, Pellet and FaCT++, using benchmarks such as the Gardiner Ontology Suite, the OBO Foundry, and various versions of the GALEN ontology.

The most significant result was the GALEN Breakthrough: HermiT was the only reasoner capable of classifying the original GALEN ontology, completing the task in approximately 12 seconds. In contrast, both Pellet and FaCT++ exceeded memory limits. Furthermore, on the BP XP OBOL ontology, HermiT achieved a completion time of ~9 seconds, whereas Pellet and FaCT++ required over 8 and 30 minutes, respectively. Even on simpler tasks, HermiT remains competitive, demonstrating that its advanced optimizations do not introduce significant overhead for less complex ontologies.

Conclusion and Future Work

HermiT represents a paradigm shift in OWL reasoning by prioritizing determinism and global model efficiency. While it excels at TBox (schema) reasoning, future work aims to further optimize ABox (data) reasoning and improve performance on transitivity axioms, which currently rely on a rewriting process. Additionally, the authors plan to extend support for the OWL 2.0 standard, including enhanced datatype handling and more expressive query interfaces.

Summary updated

BibTeX
@inproceedings{shearer2008hermit,
  author = {Robert D. C. Shearer and Boris Motik and Ian Horrocks},
  title = {{HermiT: A Highly-Efficient OWL Reasoner}},
  booktitle = {OWLED},
  year = {2008},
}
Figure