Semantic Web Rule Language (SWRL) Process Modeling Tutorial
- Michael DeBellis
- Jul 22, 2019
- 2 min read
Updated: Aug 29, 2023
The following is a tutorial for using the Semantic Web Rule Language (SWRL) with the Protege ontology editor. I chose the process modeling domain because I think it is something many people can relate to. Also, it's a simple example that highlights some of the powerful mathematical capabilities that are a result of the set theoretic foundation of OWL and SWRL. At least that was my hope.
Here is the PDF of the tutorial: SWRL Process Modeling Tutorial
The initial ontology to start the tutorial is here: SWRLProcessTutorialStart-V2.owl
The final version of the ontology, with an example waterfall model is here: SWRLProcessTutorialFinal.owl
Thanks to all the people on the Protege user support list for answering my endless stream of questions, special thanks to Martin O'Connor.
If you have questions or comments about the tutorial feel free to email me: mdebellissf@gmail.com
Also, the following document has nothing to do with SWRL but it is something I think many new comers to working with Protege and OWL might find useful. OWL (the language underneath Protege) is based on logic and set theory. For those who don't know or are rusty on those concepts here is a PDF that is a good overview of the basics. Don't be misled by the cover page, this is from a book on Mathematical Methods in Linguistics but this is just the first chapter which is a nice overview of logic and set theory: Partee, et. al. Basic Concepts of Set Theory
8/29/2023 Edit: Two updates:
1) If you don't see the appropriate inferences, make sure you have loaded the Pellet reasoner plugin and make sure you do Reasoner>Configure and check all the boxes. By default many of them are not checked because for large ontologies they can make the reasoner slow but for the tutorial and most ontologies created by new users reasoner performance is just fine with all possible inferencing turned on. IMO, it is good to start with that so you can see the full power of the reasoner, then scale it back if and whey you get into medium (thousands of entities) to large (millions of triples) ontologies where performance may become an issue. Thanks to Xiaoqi Zhao for pointing this out.
2) In this tutorial and the revised Pizza tutorial I only mention using the SWRLTab. The SWRLTab is great for many use cases but it only can reference entities by their IRIs. For ontologies such as those in the OBO foundry that have codes for IRIs you need the Rules view. In a recent post, I've created a mini-tutorial on how to setup your own custom Rules Tab for editing SWRL rules with the Rules view. I hope this will be helpful both for those who need to edit rules by their rdfs:label as well as an example of how you can create your own custom tabs with any arbitrary combination of Views you find useful. The new mini-tutorial is at: https://www.michaeldebellis.com/post/creating-a-rules-view-tab

Greetings everyone! As a Hot Lady, I am SNETHI ROY pleased to offer you high-class Kolkata Call Girls and Hyderabad Escorts. Our agency is authentic and we provide the most desirable and alluring Hyderabad Escorts Service. Our services are available 24/7, 365 days a year with safety and security as our top priority. Our girls are accommodating, cooperative, and have a friendly nature. Come and experience the beauty of our Lucknow Call Girls.
https://www.sexyescorts.in
I Know You Are a Great Author. You Have Shared Such Nice Information with Everyone. Keep It Up Sharing Like This. Ahmedabad escort service
Bracelet link codes are stamped inside the clasp. In these early years, a batch and production link year were also stamped on the clasp. In the '70s, Rolex began using a system where a letter represented the year, and the number represented the month. You can find a number of these code tables on the Internet, but look at this link one from Bob's Watches, for example, and you can tell that a bracelet stamped "G6" dates to June 1982.
Running an ETA 2824 automatic movement link – which has been modified for a no-date application, so no phantom date position – either colorway appears to be available on one of three quick-change leather straps (black, black carbon-effect, or brown) and Vulcain link will be selling their new diver for CHF 1490, which is roughly $1,618 at the time link this story was published.
Greetings everyone! As a Hot Lady, I am SNETHI ROY pleased to offer you high-class Kolkata Call Girls and Hyderabad Escorts. Our agency is authentic and we provide the most desirable and alluring Hyderabad Escorts Service. Our services are available 24/7, 365 days a year with safety and security as our top priority. Our girls are accommodating, cooperative, and have a friendly nature. Come and experience the beauty of our Lucknow Call Girls.
https://www.sexyescorts.in
https://www.hotescorts.in
https://www.hyderabadescortgirls.in