Pushing the Limits of OWL, Rules and Protege. A Simple Example

Anne Cregan, Malgorzata Mochól, Denny Vrandecic, Sean BechhoferOwled 2005

Abstract

This paper, originally presented at the 2005 Summer School on Ontological Engineering (SSSW05), provides a practical "field report" on the friction between theoretical knowledge representation and real-world implementation. By attempting to model a seemingly simple set of rules for student group formation, the authors expose the sharp edges of the Web Ontology Language (OWL) and the necessity—and complexity—of the Semantic Web Rule Language (SWRL).

Introduction

In the mid-2000s, the Semantic Web vision relied heavily on OWL, a language based on Description Logics. While OWL is powerful for defining hierarchies and constraints, it has inherent limitations when applied to real-world scenarios requiring multi-variable comparisons. This study explores these limitations by modeling "Good Groups" based on intuitive criteria such as size, gender diversity, and unique nationalities.

Modeling Methodology

The researchers adopted a "bottom-up" modeling approach using Protégé for ontology editing and the Racer reasoner for classification. The initial phase involved defining the core classes and properties that would represent the summer school participants.

The Protégé class editor showing the Person hierarchy, properties (hasName, hasNationality, worksAt), and disjoint class assertions.

As shown in the Protégé interface, the ontology defines a Person class with several subclasses and properties. However, the authors quickly encountered the Open World Assumption (OWA). Unlike standard databases, if a fact is not explicitly stated in OWL, it is considered "unknown" rather than "false." For instance, a group with four male members cannot be classified as an all-male group by a reasoner unless the group size is explicitly "closed" with a cardinality constraint, as the reasoner assumes a fifth female member might exist.

Transitioning to SWRL

When OWL reached its limits—specifically regarding property chains and identity comparisons—the authors transitioned to SWRL. OWL struggles to compare the values of different properties, such as checking if a student's favorite tutor is the same person as their group leader.

A significant challenge was modeling the requirement that "all members must have different nationalities." This is mathematically taxing in SWRL. For a 3-member group, three pairwise comparisons are needed; for a 5-member group, this escalates to ten comparisons, making rules unwieldy and hard to maintain.

A breakdown of a SWRL rule for a 'Good Group', illustrating the complex logic required to ensure member and nationality diversity.

As illustrated in the rule breakdown, defining a "Good Group" requires explicit logic to ensure that members $a, b,$ and $c$ are distinct individuals and that their respective nationalities $e, f,$ and $g$ are also unique.

Key Insights and Results

The study highlighted several critical gaps in the semantic web stack of the time:

  • Negative vs. Positive Modeling: Because of the OWA, "Not Bad" does not equal "Good." To classify a "Good Group," every rule had to be reformulated into a "positive" form, which was significantly more complex.
  • Property Chaining: OWL cannot easily assert equality between the ends of two different property paths (e.g., Student -> attractedTo -> Tutor vs. Student -> memberOf -> Group -> ledBy -> Tutor). This requires the join capabilities of SWRL.
  • Tooling Gaps: The authors noted a lack of high-level predicates (like a simple allDifferent function) in SWRL, forcing the creation of massive, hard-to-maintain rules.

Despite these hurdles, the authors successfully created a system that identified "Good Groups" among the 55 students and 7 tutors at SSSW05. Interestingly, their own project group ("ROVE") was the only one to satisfy all criteria.

Conclusion

The paper demonstrates that while OWL is excellent for taxonomic classification, it is insufficient for complex, multi-variable constraints without a rule layer. The primary challenge for ontology engineers is not syntax, but navigating the "asymmetric implications" of open-world logic. Future work suggests the need for "wizards" or templates to automate the creation of complex rule closures and improve user interfaces for managing orthogonal class partitions.

Summary updated

BibTeX
@inproceedings{cregan2005pushing,
  author = {Anne Cregan and Malgorzata Mochól and Denny Vrandecic and Sean Bechhofer},
  title = {{Pushing the Limits of OWL, Rules and Protege. A Simple Example}},
  booktitle = {Owled},
  year = {2005},
}
Figure