Difference between revisions of "Applying SWRL, DL Query and SPARQL to your ontology"

From its-wiki.no
Jump to: navigation, search
Line 1: Line 1:
 
{{Lecture
 
{{Lecture
 
|Course=UNIK4710, UNIK9710,
 
|Course=UNIK4710, UNIK9710,
|Title=Applying SWRL and SPARQL to your ontology
+
|Title=Applying SWRL, DL Query or SPARQL to your ontology
 
|Lecture date=2014/04/04
 
|Lecture date=2014/04/04
 
|time=09:15h
 
|time=09:15h
|Lecturer=Josef Noll,
+
|Lecturer=Josef Noll, Andreas Thuen
 
|Objective=Representing your scenario into a set of rules, and converting the rules to SPARQL queries or SWRL rules
 
|Objective=Representing your scenario into a set of rules, and converting the rules to SPARQL queries or SWRL rules
 
|Learning outcomes=Having visited the course, you will  
 
|Learning outcomes=Having visited the course, you will  
Line 13: Line 13:
 
|Pensum (read before)=Formulate a set of rules in a linguistic way
 
|Pensum (read before)=Formulate a set of rules in a linguistic way
 
* Understand and explain the components of a SWRL rule
 
* Understand and explain the components of a SWRL rule
* Run example  
+
* Run example
 
|References (further info)=References:
 
|References (further info)=References:
 
* OWL and Rules: http://semantic-web-book.org/w/images/5/5e/KI09-OWL-Rules-2.pdf
 
* OWL and Rules: http://semantic-web-book.org/w/images/5/5e/KI09-OWL-Rules-2.pdf
Line 34: Line 34:
  
 
= Lecture notes =
 
= Lecture notes =
 +
 +
* Presentation from Andreas: https://docs.google.com/file/d/0Bym8iViXFpvkMGwyaTE2Z0ZXeXM/edit?hl=en-GB&forcehl=1
 
== Lecture notes 2013==
 
== Lecture notes 2013==
 
* Notes: [[Media:UNIK4710-L7-v13.pdf]], [[Media:UNIK4710-L7-v13-part2.pdf]]
 
* Notes: [[Media:UNIK4710-L7-v13.pdf]], [[Media:UNIK4710-L7-v13-part2.pdf]]

Revision as of 09:40, 4 April 2014

Applying SWRL, DL Query and SPARQL to your ontology

Course UNIK4710, UNIK9710
Title Applying SWRL, DL Query or SPARQL to your ontology
Lecture date 2014/04/04 09:15h
presented by Josef Noll, Andreas Thuen
Objective Representing your scenario into a set of rules, and converting the rules to SPARQL queries or SWRL rules
Learning outcomes Having visited the course, you will
  • Understand how to describe a scenario through rules
  • Have identified the "input"....
  • Have learned how to apply a SPARQL query
  • Have learned how to create a SWRL rule
Pensum (read before) Formulate a set of rules in a linguistic way
  • Understand and explain the components of a SWRL rule
  • Run example
References (further info) References:
Keywords SWRL, RulesML, OWL-DL, Jess

this page was created by Special:FormEdit/Lecture, and can be edited by Special:FormEdit/Lecture/Applying SWRL, DL Query and SPARQL to your ontology.


Test yourself, answer these questions

Try to understand the examples.

Recall from last lecture

  • Discussion on short-term (decisions) versus long-term (knowledge-creation)
  • Discussion on "history" of decisions, to be taken into consideration through "weighted context"

Lecture notes

Lecture notes 2013

Lecture notes 2012

Presentations

Presentations 2012

Other info

SWRL examples

  • Is the person running?
Person(?person) ∧ hasSpeed(?person, ?speed)  ∧ swrlb:greaterThanOrEqual(?speed, 10) →  hasStatus(?person, running) 
  • Is Susana walking?
Person(Susana) ∧ hasSpeed(Susana, ?speed)  ∧ swrlb:greaterThanOrEqual(?speed, 1) →  hasStatus(Susana, walking) 
  • which songs the person likes
Person(?person) ∧ hasPreference(?person, ?prefer) ∧ Music(?music) ∧ hasStyle(?music, ?prefer) →  like(?person, ?music)  
  • LowRisk state range for the persons who have a passive action and a heart rate between 81 – 120
Person(?p) ∧ LowRiskState(?n) ∧ Passive(?y) ∧ hasAction(?x, ?y) ∧ hasHeartRateOf(?x, ?z)∧ swrlb:greatherThanOrEqual(?z, 81) 
∧ swrlb:lessThanOrEqual(?z, 120) →  hasHealthCondition(?x, ?n)

Ontology examples

RDF examples