Foundations of Semantic Web Chapter 4 - OWL
Foundations of Semantic Web Chapter 4 - OWL
Foundations of Semantic Web Chapter 4 - OWL
Transform your PDFs into Flipbooks and boost your revenue!
Leverage SEO-optimized Flipbooks, powerful backlinks, and multimedia content to professionally showcase your products and significantly increase your reach.
<strong>Foundations</strong> <strong>of</strong> <strong>Semantic</strong> <strong>Web</strong><br />
<strong>Chapter</strong> 4 - <strong>OWL</strong><br />
Kent Robin Haugen & Severin Sverdvik
<strong>Web</strong> Ontology Language (<strong>OWL</strong>)<br />
● W3C recommended standard for the<br />
modeling <strong>of</strong> ontologies<br />
● Design issues: expressivity <strong>of</strong> the<br />
language ← → efficient reasoning (i.e.<br />
scalability)<br />
● <strong>OWL</strong> species<br />
○ <strong>OWL</strong> Full<br />
○ <strong>OWL</strong> DL<br />
○ <strong>OWL</strong> Lite
<strong>OWL</strong> Syntax and Intuitive<br />
<strong>Semantic</strong>s<br />
● <strong>OWL</strong> ontology is basically expressed in<br />
terms <strong>of</strong> classes and properties.<br />
● Much more complex relationships<br />
between these classes and properties can<br />
be expressed than with RDF(S)
For instance<br />
● Every project has at least one participant<br />
● Projects are always internal or external<br />
projects<br />
● Gisela Schillinger and Anne Eberhardt are<br />
the secretaries <strong>of</strong> Rudi Studer<br />
● The superior <strong>of</strong> my superior is also my<br />
superior
The header <strong>of</strong> an <strong>OWL</strong> Ontology<br />
● Contains information about<br />
○ namespaces<br />
○ versioning<br />
○ annotations<br />
● No direct impact on knowledge<br />
expressed by the ontology
The header <strong>of</strong> an <strong>OWL</strong> Ontology<br />
● Can contain some general information<br />
about the ontology
Classes, Roles, and Individuals<br />
● Classes, properties and individuals are<br />
basic building blocks in <strong>OWL</strong><br />
● Properties are also called Roles<br />
● Individuals are RDF instances <strong>of</strong> classes
Classes<br />
Class gets assigned to the name "Pr<strong>of</strong>essor"<br />
<br />
<br />
<br />
is equivalent to<br />
Classes<br />
● Two predefined classes<br />
○ owl:Thing<br />
■<br />
Every Class is a subclass <strong>of</strong> Thing<br />
○ owl:Nothing<br />
■<br />
Nothing is a subclass <strong>of</strong> every other class<br />
○ owl:Class subclass <strong>of</strong> rdfs:Class
Individuals<br />
● Individuals declared to be instances <strong>of</strong><br />
classes<br />
<br />
<br />
<br />
equivalent to<br />
Roles (Properties)<br />
Two roles in <strong>OWL</strong><br />
● Abstract<br />
● Concrete<br />
● Both are subproperties <strong>of</strong> rdf:<br />
Property
Abstract<br />
● Connects individuals with individuals<br />
<br />
● expresses which organization(s) a given<br />
person is affiliated with
Concrete<br />
● Connects individuals with data values (i.<br />
e. elements <strong>of</strong> datatypes)<br />
<br />
assigns first names to persons
XML datatypes for <strong>OWL</strong>
Role assignment<br />
● Possible to assign two affiliations to one<br />
person
Simple Class Relations<br />
● Subclassing
Simple Class Relations<br />
● Logical Inference by transitivity
Relations between individuals
Relations between individuals
Closed Classes<br />
● If for instance the Class has only two<br />
members. Closed Classes can be used<br />
<br />
<br />
<br />
<br />
<br />
Boolean class constructors<br />
● <strong>OWL</strong> provides language elements for<br />
logical operators<br />
● AND<br />
● OR<br />
● NOT
AND (conjunction)<br />
● owl:intersectionOf<br />
● the conjunction <strong>of</strong> two classes consists <strong>of</strong><br />
exactly those objects which belong to<br />
both classes<br />
<br />
<br />
<br />
<br />
<br />
OR (disjunction)<br />
● owl:unionOf<br />
● the disjunction <strong>of</strong> two classes means that<br />
an object belongs to at least on <strong>of</strong> the<br />
two classes.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
NOT (negation)<br />
● owl:complementOf<br />
● the complement <strong>of</strong> a class consists <strong>of</strong><br />
exactly those objects which are not<br />
members <strong>of</strong> the class itself.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
● No faculty member can be a publication
Role restrictions<br />
● Universal quantifier<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
● All examiners <strong>of</strong> an exam must be<br />
pr<strong>of</strong>essors
Role restrictions<br />
● Existential quantifier<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
● There exist at least one examiner <strong>of</strong> an<br />
exam
Role restrictions<br />
● Max two examiners<br />
<br />
<br />
<br />
<br />
<br />
2<br />
<br />
<br />
<br />
<br />
● Min two examiners<br />
○ minCardinality<br />
● Exactly two<br />
○ cardinality
Role Relationships<br />
● Roles may have subproperties:<br />
For instance, it can be declared that an<br />
examinator <strong>of</strong> an event is also present at<br />
the event.<br />
● Two roles can be declared to be inverse<br />
<strong>of</strong> each other
Role Characteristics<br />
● Roles may be given certain<br />
characteristics like transitivity or<br />
symmetry.<br />
● Example:<br />
<br />
<br />
Types <strong>of</strong> inferences<br />
● Classes can be declared to have different<br />
properties, for instance two classes may<br />
be defined as disjoint<br />
● Modelling errors may be produced by<br />
this, for instance if you say "A<br />
isSubClassOf B" and "A isDisjointWith B",<br />
this will return;<br />
owl:Nothing
Owl Species<br />
● <strong>OWL</strong> can be divided into sublanguages:<br />
<strong>OWL</strong> FULL<br />
<strong>OWL</strong> DL<br />
<strong>OWL</strong> Lite
<strong>OWL</strong> Full<br />
● <strong>OWL</strong> Full may be used and mixed freely<br />
with all valid RDF.<br />
● Cannot be used for s<strong>of</strong>tware inferences.<br />
● Can be used for purposes like translation
<strong>OWL</strong> DL and Lite<br />
● <strong>OWL</strong> DL is a restricted form <strong>of</strong>, that can<br />
be used by s<strong>of</strong>tware to make inferences<br />
● <strong>OWL</strong> Lite is an even more restricted form<br />
that was intended to be an easy-toimplement<br />
version <strong>of</strong> <strong>OWL</strong> DL.
<strong>OWL</strong> 2<br />
● From the creators <strong>of</strong> <strong>OWL</strong>(WWWC); an<br />
improvement <strong>of</strong> <strong>OWL</strong>
<strong>OWL</strong> 2 DL<br />
● A backwards compatible extension <strong>of</strong><br />
<strong>OWL</strong> 1 DL<br />
● Added type separation, punning and<br />
declarations<br />
● Relaxes old requirement that class<br />
names, role names and individual names<br />
must be distinct
Disjoint Classes<br />
● Introduces option to declare several<br />
classes to be mutually disjoint:
Role Characteristics and Relationshis<br />
● <strong>OWL</strong> 2 adds option to declare roles as:<br />
○ Asymmetric<br />
○ Reflexive<br />
○ Transitive
Inverse Roles<br />
● Like in <strong>OWL</strong> 1, except the inverse <strong>of</strong> a<br />
role may now be referred to without<br />
naming it:
Role Chains<br />
● Allows for role chains:<br />
○ Father has son, father has brother -><br />
Brother <strong>of</strong> father is uncle <strong>of</strong> son<br />
● Most substatial improvement <strong>of</strong> <strong>OWL</strong>2
Quality Cardinal Restrictions<br />
● Qualified cardinality:<br />
○ For example, we can specify that one exam<br />
may have at most two examinators
The Self Construct<br />
● Allows for individuals to be related to<br />
themselves under a given role:<br />
○ For instance, a person committing suicide is<br />
killedBy himself.
Negated Role Assignments<br />
● We may now declare that two individuals<br />
are NOT related by a given role.
Datatypes<br />
● Most XML Schema datatypes are already<br />
supported in <strong>OWL</strong>1.<br />
● <strong>OWL</strong> introduces some new ones:<br />
○ owl:real - the set <strong>of</strong> real numbers<br />
○ owl:rational<br />
○ rdf:plainLiteral<br />
○ xsd:dateTimeStamp - datetime w/ timezone<br />
● Supports use <strong>of</strong> constraining facets to restrict<br />
datavalues -> Teenager = person(age:13-19)
<strong>OWL</strong> 2 Pr<strong>of</strong>iles<br />
● Sublanguages <strong>of</strong> <strong>OWL</strong>2 are called pr<strong>of</strong>iles<br />
● <strong>OWL</strong> 2DL, <strong>OWL</strong>1 DL, <strong>OWL</strong>1 are all<br />
examples <strong>of</strong> pr<strong>of</strong>iles <strong>of</strong> <strong>OWL</strong>2.
Standard <strong>OWL</strong>2 pr<strong>of</strong>iles<br />
● <strong>OWL</strong>2<br />
○ DL<br />
○ EL<br />
○ QL<br />
○ RL<br />
○ Full
<strong>OWL</strong>2 EL<br />
● Fairly restricted version<br />
● Good computational properties<br />
● Allows polynomial time algorithms for all<br />
standard inferences<br />
● Designed for ontologies that include very<br />
large class and role hierarchies using only<br />
a small amount <strong>of</strong> <strong>OWL</strong> features
<strong>OWL</strong>2 QL<br />
● Allows conjunctive query answering<br />
● Designed for data-driven applications<br />
● Convenient for vendors <strong>of</strong> RDF stores to<br />
include <strong>OWL</strong> support
<strong>OWL</strong>2 RL<br />
● Good for rule-based reasoning<br />
● RL can be seen as a restriction <strong>of</strong> <strong>OWL</strong> 2<br />
DL
<strong>OWL</strong>2 Full<br />
● <strong>OWL</strong>2 equivalent <strong>of</strong> <strong>OWL</strong>1 really, used<br />
for conceptual modelling in cases where<br />
automated reasoning is not required
Thank you