Running SWRL rules on your ontology

From its-wiki.no
Jump to: navigation, search

Running SWRL rules on your ontology

Course UNIK4710, UNIK9710
Title Running SWRL rules on your ontology
Lecture date 2013/03/08 09:15h
presented by Josef.Noll
Objective Establish rules for your own scenario and get them implemented
Learning outcomes Having joined this lecture, you will
  • have experience in the formulation of rules
  • have an idea what "Business Rules" are
  • have tried to convert your rules into Semantic Web Rule Language (SWRL)
  • have seen the limitations of SWRL
  • have run the rules on your ontologies
  • got the desired results. And if not, have understood why you got other results than expected,
  • have learned who to write results back into your ontology
Pensum (read before) Read before:
  • PLEASE, DOWNLOAD PROTEGE 3.4.8 OR PROTEGE 4.1, INSTEAD PROTEGE 3.5 BETA
References (further info) References:
  • Book: See 2012/02/17 and 2012/03/09 "Other Info".
Keywords SWRL, Rules, OWL, Problem solving, ACO

this page was created by Special:FormEdit/Lecture, and can be edited by Special:FormEdit/Lecture/Running SWRL rules on your ontology.


Test yourself, answer these questions


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

Lecture notes

Lecture notes 2013

Lecture notes 2012

Presentations

Presentations 2013

NSHIELD-process.png

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
Footer
Running SWRL rules on your ontology
Subfooter
UNIK4710/UNIK9710


⌘ Ontology with Rules & Queries

⌘ Running SQWRL

  • Select instances of person: Name and Age
Person(?p) ∧ hasAge(?p, ?age) ∧ hasName(?p, ?name) →  sqwrl:select(?p, ?name, ?age)

⌘ Creating Properties

hasAge


hasName

⌘ Applied Properties

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

Person's Properties

⌘ Creating Queries

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

Result of running queries

⌘ Running SWRL

  • Who is a driver?:
Person(?p) ∧ hasAge(?p, ?age) ∧ swrlb:greaterThanOrEqual(?age, 18) ∧ hasCar(?p, ?car) →  isDriver(?p, true)

⌘ Creating Properties

hasCar

isDriver

⌘ Applied Properties

  • Before Jess Reasoning:

Person's Properties

⌘ Creating Rules

Rules

  • After Jess Reasoning:

Result of running rules