O'Reilly logo

Semantic Web Programming by Mike Dean, Andrew Perez-Lopez, Ryan Blace, Matthew Fisher, John Hebeler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Adding Rules

"Hell, there are no rules here—we're trying to accomplish something."

Thomas Edison

At this point, you've been exposed to a wide variety of knowledge representations, ranging from RDF to the latest version of OWL. Before the advent of OWL 2, OWL 1 had limits on the amount of expressivity it could offer users. One solution to this issue was to keep the OWL recommendations unaltered but support the inclusion of rules to expand the expressive nature of RDF/OWL data. In this chapter, you will learn about the need for rules to augment OWL as well as a particular rule implementation called the Semantic Web Rule Language (SWRL), whose Member Submission can be found at http://www.w3.org/Submission/SWRL/. There will also be a short discussion of Jena rules, a rule language specifically implemented for the Jena API.

Since Semantic Web rules were first proposed in 2003 and 2004, the Semantic Web landscape has significantly changed. OWL 2, as discussed in Chapters 5 and 6, has addressed some of the shortcomings of the original OWL recommendation and implements functionality previously unavailable. In addition, the W3C chartered the Rule Interchange Format (RIF) Working Group to "produce a core rule language plus extensions which together allow rules to be translated between rule languages and thus transferred between rule systems." Therefore, RIF is not about developing the preeminent rule language but rather considers the more difficult issue of rule interoperability ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required