Running SWRL rules on your ontology

= Test yourself, answer these questions =
 * Run example from http://wiki.unik.no/index.php/Courses/UNIK4710
 * Scenario (b) - role-based access. Try to understand the example.


 * Run example of slideshow and try to understand the rules and queries.

= Lecture notes =

Lecture notes 2013

 * Notes: [[Media:UNIK4710-L8-v13.pdf]]
 * Video: : mms://lux.unik.no/UNIK4710-JN/UNIK-20130308.wmv

Lecture notes 2012

 * Notes: [[Media:UNIK4710-L8-v12.pdf]]
 * Video: mms://lux.unik.no/UNIK4710-JN/2012/UNIK-20120316.wmv

= Presentations =

Presentations 2013

 * Presentation Martin: [[File: travel.owl]]
 * SHIELD:

Presentations 2012
ACO Algorithm Presentation by Sichao Song - [[Media:Ant-algorithm-Song.pdf]] = Other Info=


 * title: Running an example with SQWRL & SWRL
 * author: Susana R. de Novoa
 * subfooter: UNIK4710/UNIK9710

= ⌘ Ontology with Rules & Queries =


 * Ontology - Protege: [[Media:UNIK4710-OntologyCar.zip]]

= ⌘ Running SQWRL = Person(?p) ∧ hasAge(?p, ?age) ∧ hasName(?p, ?name) → sqwrl:select(?p, ?name, ?age)
 * Select instances of person: Name and Age

⌘ Creating Properties




⌘ Applied Properties

 * Have owl class called Person with properties hasAge and hasName:

⌘ Creating Queries

 * Creating a query to get information out of my ontology:

= ⌘ Running SWRL = Person(?p) ∧ hasAge(?p, ?age) ∧ swrlb:greaterThanOrEqual(?age, 18) ∧ hasCar(?p, ?car) → isDriver(?p, true)
 * Who is a driver?:

⌘ Creating Properties




⌘ Applied Properties

 * Before Jess Reasoning:

⌘ Creating Rules



 * After Jess Reasoning: