Using the Semantic Web Rule Language in the Development of Ontology-Driven Applications

Using the Semantic Web Rule Language in the Development of Ontology-Driven Applications

Martin O’Connor, Mark Musen, Amar Das
DOI: 10.4018/978-1-60566-402-6.ch022
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

The Semantic Web Rule Language (SWRL) is an expressive OWL-based rule language. SWRL allows users to write Horn-like rules that can be expressed in terms of OWL concepts to provide more powerful deductive reasoning capabilities than OWL alone. Semantically, SWRL is built on the same description logic foundation as OWL and provides similar strong formal guarantees when performing inference. Due to its description logics foundation, rule-based applications developed using SWRL have a number of relatively novel characteristics. For example, SWRL shares OWL’s open world assumption so certain types of rules that assume a closed world may be difficult or impossible to write in SWRL. In addition, all inference in SWRL is monotonic so deductions cannot be updated or retracted. These formal characteristic have a strong influence on the development and use of SWRL rules in ontology-driven applications. In this chapter, we describe the primary features of SWRL and outline how, despite some limitations, SWRL can be used to dramatically increase amount of knowledge that be represented in OWL ontologies.
Chapter Preview
Top

Introduction

The Semantic Web project is a shared research plan that aims to provide explicit semantic meaning to data and knowledge on the World Wide Web (Berners-Lee et al., 2001). One of the goals of the Semantic Web is to enable applications to integrate data and knowledge automatically through the use of standardized languages that describe the content of Web-accessible resources. The Web Ontology Language (OWL; OWL, 2004) is emerging as a core Semantic Web language. OWL provides a language for constructing ontologies that provide high-level descriptions of Web content. This language is built on a description logic foundation and provides strong formal consistency guarantees when checking ontologies for inconsistencies and when deducing new knowledge. OWL has three sublanguages—OWL Lite, OWL-DL, OWL Full—that provide varying levels of expressive power. An important characteristic of OWL-DL is that it provides strong decidablilty guarantees – that is, the consistency checking and inference processes are guaranteed to terminate with definite conclusions no matter how large or complex the underlying ontologies.

OWL-DL’s formal underpinnings also limit its expressive power. While it provides a rich set of modeling constructs, it restricts those constructs to the set that meet its decidability guarantees. As a result, certain concepts can not be expressed in OWL-DL. In particular, OWL-DL has poor support for reasoning with data values and certain types of interrelationships between multiple entities in an ontology can not be represented. OWL Full, which is slightly more expressive than OWL DL, shares these limitations. The proposed OWL 2 standard (OWL 2, 2008) addresses some, though not all, of the limitations.

Some researchers have proposed adding rules to OWL to expand its expressiveness. The Semantic Web Rule Language (SWRL; Horrocks et al., 2004) is one of the primary results of these activities. Semantically, SWRL is built on the same description logic foundation as OWL and provides strong formal guarantees when performing inference. SWRL provides considerably more expressive power than OWL alone, particularly when dealing with complex interrelationships between OWL individuals, or when reasoning with data values. It is rapidly become the de facto OWL rule language.

Background

Rule-bases developed using SWRL have a number of relatively novel characteristics. Instead being a standalone rule language, SWRL can be considered as a formal extension of the OWL language. Each SWRL rule is a sort of OWL axiom that is added to and interacts with existing OWL axioms in an ontology. That is, SWRL rules are formal logical statements about entities in an OWL ontology. This logical underpinning has significant consequences for rule development. A major consequence is that SWRL rules cannot be considered independently from OWL axioms during inference: SWRL rules and standard OWL axioms must be reasoned with together, which can make the reasoning process computationally expensive. This interdependence is such that a serial reasoning with OWL axioms followed by inference with SWRL rules does not guarantee completeness (Motik at al., 2005). As a result, OWL reasoners have to be extended to support SWRL, which is not a trivial undertaking.

As a practical consequence, SWRL rule development is deeply intertwined with the development of the associated OWL ontology. Since a SWRL rule may potentially interact with any OWL axiom in an ontology care must be taken to ensure that they do not conflict. Fortunately, these conflicts can be identified by a SWRL-aware OWL reasoner. An important further consequence is that SWRL rules bases cannot be considered independently of their associated OWL ontology.

The formal underpinnings of SWRL also results in some unexpected expressive limitations when writing rules, which has important consequence for rule development. SWRL rules are not as free form as many rule languages and many common rule constructs are not allowed. Techniques to work around these limitations may be required for many applications.

In this chapter, we explore some of SWRL’s idiosyncrasies and show that despite them SWRL is a very expressive language that dramatically increase the amount of knowledge that can be represented in OWL ontologies. We describe how SWRL can be used to address a variety of tasks in the development of knowledge-driven applications.

Key Terms in this Chapter

Semantic Web: The Semantic Web project is a shared research plan that aims to provide explicit semantic meaning to data and knowledge on the World Wide Web. One of the goals of the Semantic Web is to enable applications to integrate data and knowledge automatically through the use of standardized languages that describe the content of Web-accessible resources.

Description Logic: Description logic (DL) is a knowledge representation formalism for representing and reasoning about knowledge. DL languages have formal logic-based semantics that allow them to deduce new knowledge from explicitly asserted knowledge.

Open World Assumption: The open world assumption is describes the assumption in formal logic that one cannot conclude that some statement is false unless that it is explicitly stated to be is false. The assumption is that the statement has not yet been added to the knowledge base not the more common closed world assumption that a statement that is not known to be true is false

SQWRL: SQWRL (Semantic Query-Enhanced Web Rule Language; pronounced squirrel) is a SWRL-based query language that can be used to query OWL ontologies. SQWRL provides SQL-like operations to format knowledge retrieved fro

OWL: The Web Ontology Language (OWL) is emerging as a core Semantic Web language. OWL provides a language for constructing ontologies that provide high-level descriptions of Web content. This language is built on a description logic foundation and provides strong formal consistency guarantees when checking ontologies for inconsistencies and when deducing new knowledge.

Datalog: Datalog is a declarative, formal logic based query language based on Prolog.

SWRL: The Semantic Web Rule Language (SWRL) is an expressive OWL-based rule language. SWRL allows users to write rules that can be expressed in terms of OWL concepts to provide more powerful deductive reasoning capabilities than OWL alone. Semantically, SWRL is built on the same description logic foundation as OWL and provides similar strong formal guarantees when performing inference.

Complete Chapter List

Search this Book:
Reset