SlideShare une entreprise Scribd logo
1  sur  53
Télécharger pour lire hors ligne
Introduction Knowledge Representation Semantic Web Reasoning
Adding Semantics to Ontologies
Cristiano Longo
Dipartimento di Matematica e Informatica, Universit`a di Catania, Italy
mailto://longo@dmi.unict.it
SOD2014
Introduction Knowledge Representation Semantic Web Reasoning
About
This talk is about the word Semantic in the “Semantic Web.”
It will provides some basic theoretical notions for a better understanding of Semantic
Web technologies (in particular OWL).
Introduction Knowledge Representation Semantic Web Reasoning
Topics
Some answers for the following questions will be provided:
How can we represent knowledge? (ontologies)
Which tools the Semantic Web framework offer to this end? (OWL)
How representing knowledge with these tools can be useful? (reasoning)
Introduction Knowledge Representation Semantic Web Reasoning
Topics
Some answers for the following questions will be provided:
How can we represent knowledge? (ontologies)
Which tools the Semantic Web framework offer to this end? (OWL)
How representing knowledge with these tools can be useful? (reasoning)
Introduction Knowledge Representation Semantic Web Reasoning
Topics
Some answers for the following questions will be provided:
How can we represent knowledge? (ontologies)
Which tools the Semantic Web framework offer to this end? (OWL)
How representing knowledge with these tools can be useful? (reasoning)
Introduction Knowledge Representation Semantic Web Reasoning
Notice
For the sake of readability and for historical reason, we will use notation and
terminology from Descriptio Logics, which underpin Semantic Web languages (in
particular OWL).
Introduction Knowledge Representation Semantic Web Reasoning
Representing Knowledge in Logic and Computer Science
Introduction Knowledge Representation Semantic Web Reasoning
Ontologies
An ontology is a (partial) description of the world.
Usually, it is a finite set of statements such as, for example,
human beings are mortals,
Alice is the Bob’s mother,
Federico II was an emperor.
Introduction Knowledge Representation Semantic Web Reasoning
Basics
A knowledge domain is described in terms of
individuals, to indicate domain items (Alice, Bob, . . . ),
concepts (aka classes), which denote sets of domain objects (Person, Male, . . . ),
and
roles (aka properties), which are relations on domain items (parentOf,
partnerOf, . . . ).
Introduction Knowledge Representation Semantic Web Reasoning
Vocabulary and Assertions
Each ontology is divided into two parts:
the TBox(vocabulary), in which vocabulary terms for concepts (i.e. sets) and roles
(i.e. relations) are defined, and
the ABox, which contains statements (namely, assertions) about real world items.
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
Introduction Knowledge Representation Semantic Web Reasoning
Vocabulary and Assertions
Each ontology is divided into two parts:
the TBox(vocabulary), in which vocabulary terms for concepts (i.e. sets) and roles
(i.e. relations) are defined, and
the ABox, which contains statements (namely, assertions) about real world items.
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption
Facts not explicitly mentioned in the ontology are not assumed to be false, their truth
value is just unknown.
In general, no one has complete knowledge.
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
What is the kinship relation between Alice and Bob? Charlie childOf Alice?
Is Charlie a man? Is Charlie a human being?
What about other persons in the world?
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption
Facts not explicitly mentioned in the ontology are not assumed to be false, their truth
value is just unknown.
In general, no one has complete knowledge.
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
What is the kinship relation between Alice and Bob? Charlie childOf Alice?
Is Charlie a man? Is Charlie a human being?
What about other persons in the world?
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption - Interpretations
All the possible worlds must be taken into account.
An interpretation associates sets, relations, and items of a given domain (i.e.
Universe) ∆ to concepts and roles in the vocabulary.
For example:
∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob
Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob
Female := {Alice, Dana, Edwige}
Male := {Bob, Charlie}
Woman := {Alice, Dana}
Man := {BobCharlie}
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption - Interpretations
All the possible worlds must be taken into account.
An interpretation associates sets, relations, and items of a given domain (i.e.
Universe) ∆ to concepts and roles in the vocabulary.
For example:
∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob
Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob
Female := {Alice, Dana, Edwige}
Male := {Bob, Charlie}
Woman := {Alice, Dana}
Man := {BobCharlie}
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption - Interpretations
All the possible worlds must be taken into account.
An interpretation associates sets, relations, and items of a given domain (i.e.
Universe) ∆ to concepts and roles in the vocabulary.
For example:
∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob
Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob
Female := {Alice, Dana, Edwige}
Male := {Bob, Charlie}
Woman := {Alice, Dana}
Man := {BobCharlie}
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption - Models (1/2)
Roughly speaking, an interpretation is a model for an ontology if it does not
contradicts the ontology itself
For example:
∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob
Female := {Alice, Dana, Edwige}
Male := {Bob, Charlie}
Woman := {Alice, Dana}
Man := {BobCharlie}
is a model for
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
Introduction Knowledge Representation Semantic Web Reasoning
Open World Assumption - Models (2/2)
Wherease the following is not.
∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice relativeOf Charlie
Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob
Female := {Alice, Dana, Edwige}
Male := {Bob, Charlie}
Woman := {Alice, Dana}
Man := {BobCharlie}
TBox Concepts: Male, Female,Human,Woman, Man.
Roles: relativeOf, childOf, grandChildOf.
ABox Woman(Alice), Man(Bob), Alice relativeOf Bob,
Alice childOf Charlie.
Introduction Knowledge Representation Semantic Web Reasoning
Constraints
How to to associate meanings to vocabulary terms:
by means of constraints (placed in the TBox) expressed in a mathematical fashion
involving concepts, roles, individuals.
Example
Human Mortal all persons are mortal;
Woman ≡ Human Female women are female human beings;
childOf ◦ childOf ⊆ grandChildOf the child of the child is the grandchild.
In general, the syntax of a Knowledge Representation Language is characterized by the
types of constraints it allows, mainly in term of operators (eg. , ◦, . . . ).
Introduction Knowledge Representation Semantic Web Reasoning
Constraints
How to to associate meanings to vocabulary terms:
by means of constraints (placed in the TBox) expressed in a mathematical fashion
involving concepts, roles, individuals.
Example
Human Mortal all persons are mortal;
Woman ≡ Human Female women are female human beings;
childOf ◦ childOf ⊆ grandChildOf the child of the child is the grandchild.
In general, the syntax of a Knowledge Representation Language is characterized by the
types of constraints it allows, mainly in term of operators (eg. , ◦, . . . ).
Introduction Knowledge Representation Semantic Web Reasoning
Representing Knowledge the Semantic Web
Introduction Knowledge Representation Semantic Web Reasoning
Semantic Web Stack
Semantic Web technologies are stratified.
Figure: The Semantic Web stack
Introduction Knowledge Representation Semantic Web Reasoning
Representing Knowledge the Semantic Web
Semantic Web technologies are stratified.
Some of these are knowledge representation languages.
Figure: The Semantic Web stack
Introduction Knowledge Representation Semantic Web Reasoning
OWL
OWL is the concise name of the Web Ontology Language, currently at version 2.
http://www.w3.org/TR/2012/REC-owl2-primer-20121211/
Three different profiles (fragments) have been defined for it (see
http://www.w3.org/TR/2012/REC-owl2-profiles-20121211/):
OWL-RL quite good expressive power;
OWL-QL for large ABox;
OWL-EL very efficient, also in presence of large TBox.
Here we consider OWL-EL.
Introduction Knowledge Representation Semantic Web Reasoning
OWL
OWL is the concise name of the Web Ontology Language, currently at version 2.
http://www.w3.org/TR/2012/REC-owl2-primer-20121211/
Three different profiles (fragments) have been defined for it (see
http://www.w3.org/TR/2012/REC-owl2-profiles-20121211/):
OWL-RL quite good expressive power;
OWL-QL for large ABox;
OWL-EL very efficient, also in presence of large TBox.
Here we consider OWL-EL.
Introduction Knowledge Representation Semantic Web Reasoning
OWL-EL and EL++
OWL-EL is underpinned by the description logic EL++. It has been devided in the
biohealth domain (SNOMED-CT).
Concept constructors of EL++ are:
(every)thing;
⊥ nothing;
{a} nominal, the set with only member a;
∃R.C existential restriction, all those items related with some element in C;
C D conjunction, all the members of both C and D;
concrete domains (e.g. age > 18).
Such constructors can be used to form complex concepts, e.g.
∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
Introduction Knowledge Representation Semantic Web Reasoning
OWL-EL and EL++
OWL-EL is underpinned by the description logic EL++. It has been devided in the
biohealth domain (SNOMED-CT).
Concept constructors of EL++ are:
(every)thing;
⊥ nothing;
{a} nominal, the set with only member a;
∃R.C existential restriction, all those items related with some element in C;
C D conjunction, all the members of both C and D;
concrete domains (e.g. age > 18).
Such constructors can be used to form complex concepts, e.g.
∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
Introduction Knowledge Representation Semantic Web Reasoning
OWL-EL and EL++
OWL-EL is underpinned by the description logic EL++. It has been devided in the
biohealth domain (SNOMED-CT).
Concept constructors of EL++ are:
(every)thing;
⊥ nothing;
{a} nominal, the set with only member a;
∃R.C existential restriction, all those items related with some element in C;
C D conjunction, all the members of both C and D;
concrete domains (e.g. age > 18).
Such constructors can be used to form complex concepts, e.g.
∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - Thing
Let us consider the following possible world (interpretation)
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - Thing
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
:= {Alice, Bob, Charlie, Dana, Edwige, Fido}
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - Nothing
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
⊥ := ∅
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - Nominal
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
{Alice} := {Alice}
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - existential restriction
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
∃ownerOf.Male := {Bob}
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - conjunction (intersection)
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
Female Human := {Alice, Dana}
Introduction Knowledge Representation Semantic Web Reasoning
EL++
concepts - complex concepts
Let us consider the following possible world
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Bob ownerOf Fido.
∃childOf.{Fido} := {Edwige}
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints
Constraints allowed in EL++ TBox are of the types:
C D every member of C is a member of D as well;
C ≡ D the sets C and D coincide;
R1 ◦ . . . ◦ Rn S the composition of R1, . . . , Rn is a subrelation of S;
dom(R) C if x is related to y by R, then x must be a member of C;
range(R) C if x is related to y by R, then y must be a member of C.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - subsumption
The following is a model for
Man Human
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - equivalence
The same is a model for
Man ≡ Human Male
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - composition (1/2)
Let us consider
childOf ◦ relativeOf ⊆ relativeOf the child of a relative is a relative as well.
The following is not a model for this constraint (Alice should be relative of Charlie):
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - composition (2/2)
A model for childOf ◦ relativeOf ⊆ relativeOf is:
The following is not a model for this constraint (Alice should be relative of Bob):
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido
Alice relativeOf Bob.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - domain
It is a model for
dom(ownerOf) Human all owners are humans.
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
EL++
constraints - range
But this is not a model for
range(ownerOf) Human all owned are humans.
∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie
Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana
Female := {Alice, Dana, Edwige} Edwige childOf Fido
Male := {Bob, Charlie, Fido} Charlie relativeOf Bob
Man := {Bob, Charlie} Bob ownerOf Fido.
Introduction Knowledge Representation Semantic Web Reasoning
Using Knowledge encoded in EL++
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning
Defining a formal semantics enables some reasoning task to be performed
automatically.
Here we will see
consistency checking, to check the absence of logical errors,
inferencing, to extract hidden knowledge.
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Consistency
An ontology is consistent if a possible world which matches it exists.
Let us consider the following ontology:
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
It is consistent (see before for a model).
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Consistency - example 2
The following one is not consistent.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Male Female ≡ ⊥ Bob ownerOf Fido
Female(Bob)
Bob must be Male, as it is a Man, all men are Male and Male and Female are disjoint.
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Consistency - example 3
The following one is not consistent.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Human Edwige ≡ ⊥ Bob ownerOf Fido
Edwige ownerOf Fido
Edwige can’t be the owner of Fido because Edwige is not a member of Human.
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Inference
Inferences retrieves all the assertions which hold in all the possible models.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
Inferred Statements
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Inference
Inferences retrieves all the assertions which hold in all the possible models.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
Inferred Statements
Female(Alice)
Human(Alice)
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Inference
Inferences retrieves all the assertions which hold in all the possible models.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
Inferred Statements
Female(Alice)
Human(Alice)
Male(Charlie)
Human(Charlie)
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Inference
Inferences retrieves all the assertions which hold in all the possible models.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
Inferred Statements
Female(Alice)
Human(Alice)
Male(Charlie)
Human(Charlie)
Alice relativeOf Bob
Introduction Knowledge Representation Semantic Web Reasoning
Reasoning - Inference
Inferences retrieves all the assertions which hold in all the possible models.
TBox ABox
Woman ≡ Female Human Woman(Alice)
Man ≡ Male Human Man(Charlie)
childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie
dom(ownerOf) Human Charlie relativeOf Bob
Bob ownerOf Fido
Inferred Statements
Female(Alice)
Human(Alice)
Male(Charlie)
Human(Charlie)
Alice relativeOf Bob
Human(Bob)
Introduction Knowledge Representation Semantic Web Reasoning
Thank You!
(questions?)

Contenu connexe

En vedette

Knowledge Representation essay outline
Knowledge Representation essay outlineKnowledge Representation essay outline
Knowledge Representation essay outline
mondesser
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relations
Baran Kaynak
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
Vishal Singh
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
lpaviglianiti
 

En vedette (13)

Artificial intelligence and Neural Network
Artificial intelligence and Neural NetworkArtificial intelligence and Neural Network
Artificial intelligence and Neural Network
 
Knowledge Representation essay outline
Knowledge Representation essay outlineKnowledge Representation essay outline
Knowledge Representation essay outline
 
What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?
 
Knowledge Representation on the Web
Knowledge Representation on the WebKnowledge Representation on the Web
Knowledge Representation on the Web
 
Semantic Perspectives for Contemporary Question Answering Systems
Semantic Perspectives for Contemporary Question Answering SystemsSemantic Perspectives for Contemporary Question Answering Systems
Semantic Perspectives for Contemporary Question Answering Systems
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relations
 
First order logic
First order logicFirst order logic
First order logic
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
Robotics & Artificial Intelligence
Robotics &  Artificial  IntelligenceRobotics &  Artificial  Intelligence
Robotics & Artificial Intelligence
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
 

Similaire à Adding Semantics to Ontologies

Towards Linked Ontologies and Data on the Semantic Web
Towards Linked Ontologies and Data on the Semantic WebTowards Linked Ontologies and Data on the Semantic Web
Towards Linked Ontologies and Data on the Semantic Web
Jie Bao
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
Rafael Alvarado
 
Lri Owl And Ontologies 04 04
Lri Owl And Ontologies 04 04Lri Owl And Ontologies 04 04
Lri Owl And Ontologies 04 04
Rinke Hoekstra
 

Similaire à Adding Semantics to Ontologies (20)

A Simple Introduction to Word Embeddings
A Simple Introduction to Word EmbeddingsA Simple Introduction to Word Embeddings
A Simple Introduction to Word Embeddings
 
Learning ontologies
Learning ontologiesLearning ontologies
Learning ontologies
 
Ontologies in RDF-S/OWL
Ontologies in RDF-S/OWLOntologies in RDF-S/OWL
Ontologies in RDF-S/OWL
 
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
BACK TO THE DRAWING BOARD - The Myth of Data-Driven NLU and How to go Forward...
 
Advances In Wsd Aaai 2005
Advances In Wsd Aaai 2005Advances In Wsd Aaai 2005
Advances In Wsd Aaai 2005
 
Advances In Wsd Aaai 2005
Advances In Wsd Aaai 2005Advances In Wsd Aaai 2005
Advances In Wsd Aaai 2005
 
Modeling Ontologies with Natural Language
Modeling Ontologies with Natural LanguageModeling Ontologies with Natural Language
Modeling Ontologies with Natural Language
 
Advances In Wsd Acl 2005
Advances In Wsd Acl 2005Advances In Wsd Acl 2005
Advances In Wsd Acl 2005
 
Towards Linked Ontologies and Data on the Semantic Web
Towards Linked Ontologies and Data on the Semantic WebTowards Linked Ontologies and Data on the Semantic Web
Towards Linked Ontologies and Data on the Semantic Web
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
 
A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)
 
The Web - A World of Avatars
The Web - A World of AvatarsThe Web - A World of Avatars
The Web - A World of Avatars
 
Semantic Web - Ontologies
Semantic Web - OntologiesSemantic Web - Ontologies
Semantic Web - Ontologies
 
Lri Owl And Ontologies 04 04
Lri Owl And Ontologies 04 04Lri Owl And Ontologies 04 04
Lri Owl And Ontologies 04 04
 
Prolog PPT_merged.pdf
Prolog PPT_merged.pdfProlog PPT_merged.pdf
Prolog PPT_merged.pdf
 
semantics nour.pptx
semantics nour.pptxsemantics nour.pptx
semantics nour.pptx
 
Study_Report
Study_ReportStudy_Report
Study_Report
 
Knowledge Representation in the Age of Deep Learning, Watson, and the Semanti...
Knowledge Representation in the Age of Deep Learning, Watson, and the Semanti...Knowledge Representation in the Age of Deep Learning, Watson, and the Semanti...
Knowledge Representation in the Age of Deep Learning, Watson, and the Semanti...
 
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedLean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction Revisited
 
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural Logic
 

Plus de Cristiano Longo

Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Cristiano Longo
 

Plus de Cristiano Longo (11)

Open Data di Comunità
Open Data di ComunitàOpen Data di Comunità
Open Data di Comunità
 
Attivismo Open Data a Catania: dal tour all'hacklab
Attivismo Open Data a Catania: dal tour all'hacklabAttivismo Open Data a Catania: dal tour all'hacklab
Attivismo Open Data a Catania: dal tour all'hacklab
 
OpenDataTour: CO.P.E.
OpenDataTour: CO.P.E.OpenDataTour: CO.P.E.
OpenDataTour: CO.P.E.
 
Introduzione ai Linked Open Data e al Web Semantico
Introduzione ai Linked Open Data e al Web SemanticoIntroduzione ai Linked Open Data e al Web Semantico
Introduzione ai Linked Open Data e al Web Semantico
 
Open Data e Open Data Sicilia
Open Data e Open Data SiciliaOpen Data e Open Data Sicilia
Open Data e Open Data Sicilia
 
Linked Open Data for Cultural Heritage
Linked Open Data for Cultural HeritageLinked Open Data for Cultural Heritage
Linked Open Data for Cultural Heritage
 
Linked Open Data e Semantic Web: Fondamenti e Linguaggi di Interrogazione - P...
Linked Open Data e Semantic Web: Fondamenti e Linguaggi di Interrogazione - P...Linked Open Data e Semantic Web: Fondamenti e Linguaggi di Interrogazione - P...
Linked Open Data e Semantic Web: Fondamenti e Linguaggi di Interrogazione - P...
 
Sulle Linee Guida per gli Open Data nei Comuni
Sulle Linee Guida per gli Open Data nei ComuniSulle Linee Guida per gli Open Data nei Comuni
Sulle Linee Guida per gli Open Data nei Comuni
 
Semantic Web e Linked Open Data - Parte I
Semantic Web e Linked Open Data - Parte ISemantic Web e Linked Open Data - Parte I
Semantic Web e Linked Open Data - Parte I
 
Beni Culturali Aperti
Beni Culturali ApertiBeni Culturali Aperti
Beni Culturali Aperti
 
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
Herbrand-satisfiability of a Quantified Set-theoretical Fragment (Cantone, Lo...
 

Dernier

GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
Lokesh Kothari
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Lokesh Kothari
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
Areesha Ahmad
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
RizalinePalanog2
 

Dernier (20)

Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
GUIDELINES ON SIMILAR BIOLOGICS Regulatory Requirements for Marketing Authori...
 
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 

Adding Semantics to Ontologies

  • 1. Introduction Knowledge Representation Semantic Web Reasoning Adding Semantics to Ontologies Cristiano Longo Dipartimento di Matematica e Informatica, Universit`a di Catania, Italy mailto://longo@dmi.unict.it SOD2014
  • 2. Introduction Knowledge Representation Semantic Web Reasoning About This talk is about the word Semantic in the “Semantic Web.” It will provides some basic theoretical notions for a better understanding of Semantic Web technologies (in particular OWL).
  • 3. Introduction Knowledge Representation Semantic Web Reasoning Topics Some answers for the following questions will be provided: How can we represent knowledge? (ontologies) Which tools the Semantic Web framework offer to this end? (OWL) How representing knowledge with these tools can be useful? (reasoning)
  • 4. Introduction Knowledge Representation Semantic Web Reasoning Topics Some answers for the following questions will be provided: How can we represent knowledge? (ontologies) Which tools the Semantic Web framework offer to this end? (OWL) How representing knowledge with these tools can be useful? (reasoning)
  • 5. Introduction Knowledge Representation Semantic Web Reasoning Topics Some answers for the following questions will be provided: How can we represent knowledge? (ontologies) Which tools the Semantic Web framework offer to this end? (OWL) How representing knowledge with these tools can be useful? (reasoning)
  • 6. Introduction Knowledge Representation Semantic Web Reasoning Notice For the sake of readability and for historical reason, we will use notation and terminology from Descriptio Logics, which underpin Semantic Web languages (in particular OWL).
  • 7. Introduction Knowledge Representation Semantic Web Reasoning Representing Knowledge in Logic and Computer Science
  • 8. Introduction Knowledge Representation Semantic Web Reasoning Ontologies An ontology is a (partial) description of the world. Usually, it is a finite set of statements such as, for example, human beings are mortals, Alice is the Bob’s mother, Federico II was an emperor.
  • 9. Introduction Knowledge Representation Semantic Web Reasoning Basics A knowledge domain is described in terms of individuals, to indicate domain items (Alice, Bob, . . . ), concepts (aka classes), which denote sets of domain objects (Person, Male, . . . ), and roles (aka properties), which are relations on domain items (parentOf, partnerOf, . . . ).
  • 10. Introduction Knowledge Representation Semantic Web Reasoning Vocabulary and Assertions Each ontology is divided into two parts: the TBox(vocabulary), in which vocabulary terms for concepts (i.e. sets) and roles (i.e. relations) are defined, and the ABox, which contains statements (namely, assertions) about real world items. TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie.
  • 11. Introduction Knowledge Representation Semantic Web Reasoning Vocabulary and Assertions Each ontology is divided into two parts: the TBox(vocabulary), in which vocabulary terms for concepts (i.e. sets) and roles (i.e. relations) are defined, and the ABox, which contains statements (namely, assertions) about real world items. TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie.
  • 12. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption Facts not explicitly mentioned in the ontology are not assumed to be false, their truth value is just unknown. In general, no one has complete knowledge. TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie. What is the kinship relation between Alice and Bob? Charlie childOf Alice? Is Charlie a man? Is Charlie a human being? What about other persons in the world?
  • 13. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption Facts not explicitly mentioned in the ontology are not assumed to be false, their truth value is just unknown. In general, no one has complete knowledge. TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie. What is the kinship relation between Alice and Bob? Charlie childOf Alice? Is Charlie a man? Is Charlie a human being? What about other persons in the world?
  • 14. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption - Interpretations All the possible worlds must be taken into account. An interpretation associates sets, relations, and items of a given domain (i.e. Universe) ∆ to concepts and roles in the vocabulary. For example: ∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob Female := {Alice, Dana, Edwige} Male := {Bob, Charlie} Woman := {Alice, Dana} Man := {BobCharlie}
  • 15. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption - Interpretations All the possible worlds must be taken into account. An interpretation associates sets, relations, and items of a given domain (i.e. Universe) ∆ to concepts and roles in the vocabulary. For example: ∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob Female := {Alice, Dana, Edwige} Male := {Bob, Charlie} Woman := {Alice, Dana} Man := {BobCharlie}
  • 16. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption - Interpretations All the possible worlds must be taken into account. An interpretation associates sets, relations, and items of a given domain (i.e. Universe) ∆ to concepts and roles in the vocabulary. For example: ∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Bob Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob Female := {Alice, Dana, Edwige} Male := {Bob, Charlie} Woman := {Alice, Dana} Man := {BobCharlie}
  • 17. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption - Models (1/2) Roughly speaking, an interpretation is a model for an ontology if it does not contradicts the ontology itself For example: ∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob Female := {Alice, Dana, Edwige} Male := {Bob, Charlie} Woman := {Alice, Dana} Man := {BobCharlie} is a model for TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie.
  • 18. Introduction Knowledge Representation Semantic Web Reasoning Open World Assumption - Models (2/2) Wherease the following is not. ∆ := {Alice, Bob, Charlie, Dana, Edwige} Alice relativeOf Charlie Human := {Alice, Bob, Charlie, Dana} Charlie relativeOf Bob Female := {Alice, Dana, Edwige} Male := {Bob, Charlie} Woman := {Alice, Dana} Man := {BobCharlie} TBox Concepts: Male, Female,Human,Woman, Man. Roles: relativeOf, childOf, grandChildOf. ABox Woman(Alice), Man(Bob), Alice relativeOf Bob, Alice childOf Charlie.
  • 19. Introduction Knowledge Representation Semantic Web Reasoning Constraints How to to associate meanings to vocabulary terms: by means of constraints (placed in the TBox) expressed in a mathematical fashion involving concepts, roles, individuals. Example Human Mortal all persons are mortal; Woman ≡ Human Female women are female human beings; childOf ◦ childOf ⊆ grandChildOf the child of the child is the grandchild. In general, the syntax of a Knowledge Representation Language is characterized by the types of constraints it allows, mainly in term of operators (eg. , ◦, . . . ).
  • 20. Introduction Knowledge Representation Semantic Web Reasoning Constraints How to to associate meanings to vocabulary terms: by means of constraints (placed in the TBox) expressed in a mathematical fashion involving concepts, roles, individuals. Example Human Mortal all persons are mortal; Woman ≡ Human Female women are female human beings; childOf ◦ childOf ⊆ grandChildOf the child of the child is the grandchild. In general, the syntax of a Knowledge Representation Language is characterized by the types of constraints it allows, mainly in term of operators (eg. , ◦, . . . ).
  • 21. Introduction Knowledge Representation Semantic Web Reasoning Representing Knowledge the Semantic Web
  • 22. Introduction Knowledge Representation Semantic Web Reasoning Semantic Web Stack Semantic Web technologies are stratified. Figure: The Semantic Web stack
  • 23. Introduction Knowledge Representation Semantic Web Reasoning Representing Knowledge the Semantic Web Semantic Web technologies are stratified. Some of these are knowledge representation languages. Figure: The Semantic Web stack
  • 24. Introduction Knowledge Representation Semantic Web Reasoning OWL OWL is the concise name of the Web Ontology Language, currently at version 2. http://www.w3.org/TR/2012/REC-owl2-primer-20121211/ Three different profiles (fragments) have been defined for it (see http://www.w3.org/TR/2012/REC-owl2-profiles-20121211/): OWL-RL quite good expressive power; OWL-QL for large ABox; OWL-EL very efficient, also in presence of large TBox. Here we consider OWL-EL.
  • 25. Introduction Knowledge Representation Semantic Web Reasoning OWL OWL is the concise name of the Web Ontology Language, currently at version 2. http://www.w3.org/TR/2012/REC-owl2-primer-20121211/ Three different profiles (fragments) have been defined for it (see http://www.w3.org/TR/2012/REC-owl2-profiles-20121211/): OWL-RL quite good expressive power; OWL-QL for large ABox; OWL-EL very efficient, also in presence of large TBox. Here we consider OWL-EL.
  • 26. Introduction Knowledge Representation Semantic Web Reasoning OWL-EL and EL++ OWL-EL is underpinned by the description logic EL++. It has been devided in the biohealth domain (SNOMED-CT). Concept constructors of EL++ are: (every)thing; ⊥ nothing; {a} nominal, the set with only member a; ∃R.C existential restriction, all those items related with some element in C; C D conjunction, all the members of both C and D; concrete domains (e.g. age > 18). Such constructors can be used to form complex concepts, e.g. ∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
  • 27. Introduction Knowledge Representation Semantic Web Reasoning OWL-EL and EL++ OWL-EL is underpinned by the description logic EL++. It has been devided in the biohealth domain (SNOMED-CT). Concept constructors of EL++ are: (every)thing; ⊥ nothing; {a} nominal, the set with only member a; ∃R.C existential restriction, all those items related with some element in C; C D conjunction, all the members of both C and D; concrete domains (e.g. age > 18). Such constructors can be used to form complex concepts, e.g. ∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
  • 28. Introduction Knowledge Representation Semantic Web Reasoning OWL-EL and EL++ OWL-EL is underpinned by the description logic EL++. It has been devided in the biohealth domain (SNOMED-CT). Concept constructors of EL++ are: (every)thing; ⊥ nothing; {a} nominal, the set with only member a; ∃R.C existential restriction, all those items related with some element in C; C D conjunction, all the members of both C and D; concrete domains (e.g. age > 18). Such constructors can be used to form complex concepts, e.g. ∃childOf.{Fido} := {Edwige}, ∃childOf.(Male Human).
  • 29. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - Thing Let us consider the following possible world (interpretation) ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido.
  • 30. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - Thing Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. := {Alice, Bob, Charlie, Dana, Edwige, Fido}
  • 31. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - Nothing Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. ⊥ := ∅
  • 32. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - Nominal Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. {Alice} := {Alice}
  • 33. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - existential restriction Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. ∃ownerOf.Male := {Bob}
  • 34. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - conjunction (intersection) Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. Female Human := {Alice, Dana}
  • 35. Introduction Knowledge Representation Semantic Web Reasoning EL++ concepts - complex concepts Let us consider the following possible world ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Bob ownerOf Fido. ∃childOf.{Fido} := {Edwige}
  • 36. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints Constraints allowed in EL++ TBox are of the types: C D every member of C is a member of D as well; C ≡ D the sets C and D coincide; R1 ◦ . . . ◦ Rn S the composition of R1, . . . , Rn is a subrelation of S; dom(R) C if x is related to y by R, then x must be a member of C; range(R) C if x is related to y by R, then y must be a member of C.
  • 37. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - subsumption The following is a model for Man Human ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido.
  • 38. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - equivalence The same is a model for Man ≡ Human Male ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido.
  • 39. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - composition (1/2) Let us consider childOf ◦ relativeOf ⊆ relativeOf the child of a relative is a relative as well. The following is not a model for this constraint (Alice should be relative of Charlie): ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido.
  • 40. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - composition (2/2) A model for childOf ◦ relativeOf ⊆ relativeOf is: The following is not a model for this constraint (Alice should be relative of Bob): ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido Alice relativeOf Bob.
  • 41. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - domain It is a model for dom(ownerOf) Human all owners are humans. ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido.
  • 42. Introduction Knowledge Representation Semantic Web Reasoning EL++ constraints - range But this is not a model for range(ownerOf) Human all owned are humans. ∆ := {Alice, Bob, Charlie, Dana, Edwige, Fido} Alice childOf Charlie Human := {Alice, Bob, Charlie, Dana} Alice childOf Dana Female := {Alice, Dana, Edwige} Edwige childOf Fido Male := {Bob, Charlie, Fido} Charlie relativeOf Bob Man := {Bob, Charlie} Bob ownerOf Fido.
  • 43. Introduction Knowledge Representation Semantic Web Reasoning Using Knowledge encoded in EL++
  • 44. Introduction Knowledge Representation Semantic Web Reasoning Reasoning Defining a formal semantics enables some reasoning task to be performed automatically. Here we will see consistency checking, to check the absence of logical errors, inferencing, to extract hidden knowledge.
  • 45. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Consistency An ontology is consistent if a possible world which matches it exists. Let us consider the following ontology: TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido It is consistent (see before for a model).
  • 46. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Consistency - example 2 The following one is not consistent. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Male Female ≡ ⊥ Bob ownerOf Fido Female(Bob) Bob must be Male, as it is a Man, all men are Male and Male and Female are disjoint.
  • 47. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Consistency - example 3 The following one is not consistent. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Human Edwige ≡ ⊥ Bob ownerOf Fido Edwige ownerOf Fido Edwige can’t be the owner of Fido because Edwige is not a member of Human.
  • 48. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Inference Inferences retrieves all the assertions which hold in all the possible models. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido Inferred Statements
  • 49. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Inference Inferences retrieves all the assertions which hold in all the possible models. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido Inferred Statements Female(Alice) Human(Alice)
  • 50. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Inference Inferences retrieves all the assertions which hold in all the possible models. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido Inferred Statements Female(Alice) Human(Alice) Male(Charlie) Human(Charlie)
  • 51. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Inference Inferences retrieves all the assertions which hold in all the possible models. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido Inferred Statements Female(Alice) Human(Alice) Male(Charlie) Human(Charlie) Alice relativeOf Bob
  • 52. Introduction Knowledge Representation Semantic Web Reasoning Reasoning - Inference Inferences retrieves all the assertions which hold in all the possible models. TBox ABox Woman ≡ Female Human Woman(Alice) Man ≡ Male Human Man(Charlie) childOf ◦ relativeOf ⊆ relativeOf Alice childOf Charlie dom(ownerOf) Human Charlie relativeOf Bob Bob ownerOf Fido Inferred Statements Female(Alice) Human(Alice) Male(Charlie) Human(Charlie) Alice relativeOf Bob Human(Bob)
  • 53. Introduction Knowledge Representation Semantic Web Reasoning Thank You! (questions?)