Single Rule Evaluation (SRE): Computational Algorithmic Debugging
for Complex SWRL Rules
Jannik Geyer, Johannes Nguyen, Thomas Farrenkopf and Michael Guckert
KITE, Technische Hochschule Mittelhessen, Wilhelm-Leuschner-Straße 13, Friedberg, Germany
Keywords:
Rule Evaluation, SWRL, OWL, Ontology Debugging.
Abstract:
SWRL is an extension for OWL which allows the use of Horn clause like rules in ontologies. SWRL ru-
les are an expressive instrument for OWL-based ontologies simplifying and augmenting deductive reasoning
capabilities. With increasing size and complexity rule bases becomes more and more fragile as logical incon-
sistencies in the overall structure of the rule base are difficult to find. However, available debugging options
require immense manual effort, if not even become an impossible task. Therefore, there is an expressed need
for developers and end users to get an efficient and easy to use interactive rule evaluation instrument. In this
paper we present a new method for a simplified debugging process that we call Single Rule Evaluation (SRE).
This SRE method enables the user to iterate through the reasoning process of the ontology and the set of
inference rules and examines each atom of a selected SWRL Rule to deliver detailed information about the
inferred output. In addition to a theoretical concept, we present a prototypical implementation of SRE as a
Prot
´
eg
´
e plugin that can be invoked during the modelling process to test rules for consistency.
1 INTRODUCTION
SWRL (Semantic Web Rule Language) is a rule lan-
guage based on RuleML extending OWL (Web On-
tology Language) with Horn clause like if-then rules
(Horrocks et al., 2004). With a growing number of
developers the need for appropriate debugging tools
for SWRL rules in large knowledge bases becomes
more prominent as was already stated by the creator
of Prot
´
eg
´
e Martin O’Connor himself in a blog post
(O’Connor, 2018). Up to now there are only few
open source solutions for that purpose and only a sin-
gle commercial product called ODASE Rules Work-
bench (MacLarty et al., 2016). However, it should
be noted that most of the available solutions only of-
fer an insufficient scope of debugging functionalities.
An example is the Fluent Editor 2015, which is able
to display all SWRL rules together with all relevant
elements from the ontology executed by the Rule En-
gine (flu, ). Nonetheless, information about elements
that caused a rule to fail are missing. Computer-aided
debugging methods reduce manual efforts and incre-
ase the efficiency of the development process. Wit-
hout tool support, a developer must search for contra-
dictions in the rule antecedent of a rule manually, if
a rule consequent is not executed. For this purpose,
all atoms of the rule need to be individually examined
by hand, which often includes inspecting each corre-
sponding entry in the ontology. This tedious process
makes testing a long and inefficient task. Therefore,
there is an urgent demand for an efficient computer-
aided method for debugging single SWRL Rules.
1.1 Motivation
SWRL Rules consist of a rule antecedent (“if”) and a
rule consequent (“then”). If all conditions in the rule
antecedent are satisfied, the rule consequent is consi-
dered true and inferences are drawn. Otherwise, the
rule consequent is considered false and there is cur-
rently no method for developers to identify which of
the conditions in the rule antecedent are not met and
cause the rule to fail. SWRL does not provide infor-
mation about the evaluation process of an executed
rule. Therefore, it is difficult to identify atoms clas-
sified as false. A developer must manually resolve
the rules in the logical context of the relevant entities
in the ontology. In practical industrial applications
(e.g. from engineering disciplines), this issue beco-
mes considerably complicated and time consuming.
1.2 Idea
In this paper we address the task of developing a de-
bugging method for the evaluation of single SWRL
Geyer, J., Nguyen, J., Farrenkopf, T. and Guckert, M.
Single Rule Evaluation (SRE): Computational Algorithmic Debugging for Complex SWRL Rules.
DOI: 10.5220/0006924101910198
In Proceedings of the 10th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K 2018) - Volume 2: KEOD, pages 191-198
ISBN: 978-989-758-330-8
Copyright © 2018 by SCITEPRESS – Science and Technology Publications, Lda. All rights reserved
191