Professional Documents
Culture Documents
Lecture 02 An Introduction To Ontology Engineering - Compressed
Lecture 02 An Introduction To Ontology Engineering - Compressed
(1/6)
Dr. Yongxin Liao
Course Outlines
• Previously on the IOE
• The Representa=on of Seman=cs
– What is “Pizza” ?
– How Dic=onary and Ontology Represent Seman=c of a Pizza?
• Web Ontology Language (OWL)
• Important Terms in an Ontology (1/6)
– Axioms
– Concepts (Classes and Individuals)
– Rela=onships (Class Asser=on, Subclass, Disjoint/Equivalent
Classes, and Individual Equality/Inequality Axioms)
• Protégé Prac=ces
Previously on the IOE
• The Defini=on of an Ontology
– An ontology is an explicit specifica=on of a
conceptualiza=on
• It is represented as a set of Concepts and Rela:onships
stands
for Fish
Pizza stands
stands for is a
for stands stands Tuna
Vegetable for stands for
for
contains contains
Sausage Pizza Tuna Pizza
Vegetable Pizza stands
stands contains stands
Sausage for for
for
stands
for is a
stands stands
stands
stands for for
for
for Meat
Vegetarian Pizza Non Vegetarian Pizza
is different from
Previously on the IOE
• The Defini=on of an Ontology
– An ontology is an explicit specifica=on of a
conceptualiza=on
• It is represented as a set of Concepts and Rela:onships
• It can exist for an agent or a community of agents in a
domain of interest
“Model“
Engineering Fashion
Domain Domain
Exchanging
Vegetarian Pizza Informa=on
agreement
Seman=cs of Exchanged Seman=cs of Exchanged
Meanings of Meanings of Informa=on Informa=on
Vegetarian Pizza Vegetarian Pizza Formalize Ontology Exchanging
agreement Meanings
(Seman=cs)
Knowledge Base
ot ot
It is n It is n Real World
Previously on the IOE
Produc=on
E.g. For Suppor=ng System
Post-development Maintenance Interoperability and Knowledge Sharing
Re=rement
Previously on the IOE
• Why Ontology?
– Formally Represent Knowledge
– Support the Reuse and Sharing of that Knowledge
– Assist the Iden=fica=on of Inconsistencies
– Support the Interoperability
– Discover New Knowledge
The Representa=on of Seman=cs
• How Dic=onary Represents the Seman=cs of “Pizza”?
Substance: …
The Representa=on of Seman=cs
• How Ontology Represent the Seman=cs of “Pizza”?
– Ontology represents the seman=cs of a Concept by formally
specifying how this concept interacts with other concepts
Web Ontology Language (OWL)
is a ……
is a food
has a topping of cheese
S=ll
Experimental
Standardized
Important Terms in an Ontology
• Several Important Terms
– Axioms
– Concepts (Individuals and Classes)
– Rela:onships (Class Asser:ons, Subclasses
Disjoint/Equivalent Classes, Individual Equality/Inequality
Proper=es, Property Asser=ons, Property Characteris=cs,
and Property Descrip=ons)
– Complex Class Expressions (Enumera=on of Individuals,
Proposi=onal Connec=ves, Object Property Restric=ons,
Necessary and Sufficient Condi=ons,
Data Property Restric=ons)
– Data Ranges (Data Types and Data Type Restric=ons)
– Reasoning Rules
– Knowledge Base (T-box and A-box)
– SPARQL Query
Important Terms in an Ontology
• Axioms
– An Axiom is a statement that says what is true in the
domain.
• Each axiom is considered as a piece of knowledge.
• E.g. “Brazil is a Country” (in natural language expression)
– An ontology is essen=ally a collec=on of Axioms (pieces
of knowledge).
• E.g. “Brazil is a country”
“Curi=ba is a city”
“Curi=ba is located in Brazil”
“Brasilia is a city” (in natural language expression)
“Brasilia is a capital”
“Brasilia is the capital of Brazil”
“Brasilia is located in Brazil”
…
Concepts in an Ontology
• Concepts
– Concepts in an ontology are abstrac=ons and
representa=ons of ideas, persons, processes, issues,
loca=ons, and etc.
• A concept can be a number, a word, a combina=on of
words, etc.
• E.g. 55, Curi=ba, Vegetarian Pizza
– Taxonomy
• The classifica=on of concepts
• The back bone of an ontology
Concepts in an Ontology
• Taxonomy Example
Axiom 13: “All ci=es are
administra=ve divisions”
Axiom 14: “All States are
administra=ve divisions” Saint Petersburg
Brasilia Curi=ba
Fujian Beijing
Harbin
Paraná Moscow
Brazil
Russia
State Capital
China
City
City
Country Administra=veDivision
Administra:ve Division
Concepts in an Ontology
• Individuals
– Each individual simplifies and abstracts one actual object
in a domain of interest.
– The most specific concepts that can not be subdivided
anymore in a domain of interest.
Paraná Fujian
Individuals
Moscow Brasilia Beijing Harbin Saint Petersburg Curi=ba
Concepts in an Ontology
• Classes
– Each class simplifies and abstracts a set of actual objects
that share some common proper=es in a domain of
interest.
– The concepts that can be subdivided into more specific
concepts in a domain of interest.
is a subclass of
Administra=ve (Subclass Axiom)
Country Division
is a member of
(Class Asser=on Axiom)
State City
Russia Brazil China
Class
Individuals
Moscow Brasilia Beijing Harbin Saint Petersburg Curi=ba
Rela=onships in an Ontology
• Class Asser=on Axioms
– Rela=onships between an individual and a class that
it belongs to
– The statement of an individual is a member of a
class
⇒The individual Brasilia is a member of the Class Capital
⇒The individual Beijing is a member of the Class Capital
⇒The individual Moscow is a member of the Class Capital
Capital
is a member of
(Class Asser=on Axiom)
Moscow Beijing
Brasilia
Rela=onships in an Ontology
• Subclass Axioms
– Rela=onships between a class and its subclasses
– A class contains a set of objects and its subclass
contains a subset of those objects
⇒The Class Capital is a subclass of the Class City
⇒The Class City is a subclass of the Class Administra>ve Division
⇒The Class State is a subclass of the Class Administra>ve Division
Saint Petersburg
Administra=ve Division
Paraná Harbin
is a subclass of Brasilia
(Subclass Axiom) Beijing Curi=ba
State City Fujian
Moscow Capital
State
Administra=ve Division City
Capital
How to create the Taxonomy?
• Determine Your Goal!
– What is the domain that your ontology will
cover?
– What are the main func=ons that the ontology
should provide?
• a number of detailed competency ques=ons should
be created for each func=on.
– Who will develop, use and maintain the
ontology?
• Consider Reusing Exis=ng Resources.
• Enumerate and Classify the Concepts
related to the Goal
Rela=onships in an Ontology
• Disjoint Classes Axioms
– OWL is based on Open World Assump=on.
• Open World Assump=on (OWA): Missing Informa=on
treated as unknown
• Close World Assump=on (CWA): Missing Informa=on
treated as false
– To emphasize two or more classes are disjoint
• They have no element in common.
– E.g. Class State is disjoint with Class City
Saint Petersburg
Axiom 13: “All ci=es are administra=ve divisions”
Axiom 14: “All States are administra=ve divisions” Paraná Harbin
Axiom 15: “Ci=es are different from States” Brasilia
Fujian Beijing Curi=ba
Ques=on: Is a city different from a state? Moscow
Answers: - No (CWA) - Yes (CWA) State
D i sj o i n
- Don’t know(OWA) - Yes (OWA) Administra=v Division t Classes AxCity
i om
Rela=onships in an Ontology
• Equivalent Classes Axioms
– To emphasize two or more classes are equal to each
other
• One can be used as a synonym for another.
– E.g. Class Cidade is equal to Class City
Class VegetarianPizza is equal to a Class Expression
VegetarianPizza
Saint Petersburg Saint Petersburg
Equivalent Classes Axiom
Harbin Harbin
Brasilia Brasilia Pizza
Beijing Curi=ba Beijing Curi=ba and (not (hasTopping some FishTopping))
Moscow Moscow and (not (hasTopping some MeatTopping))
City Cidade Class Expression.
It states the pizzas that have neither fish toppings
Equivalent Classes Axiom nor meat toppings
Rela=onships in an Ontology
• Individual Inequality Axioms
– OWL is based on No Unique Name Assump=on.
• Unique Name Assump=on(UNA): Each actual object is represented
by a single and unique individual.
• No Unique Name Assump=on (NUNA): Each actual object may be
represented by one or more individuals.
– To emphasize two or more individuals are different
from each other
• They are not represen=ng an instance with different names.
– E.g. Individual Beijing is different from Individual Brasilia
Add subclass
Protégé Prac=ces
• Classes and Subclass Axioms
• Disjoint Classes Axioms
Protégé Prac=ces
• Class Hierarchy Tool
(1)
(2) (3)
Protégé Prac=ces
• Subclasses of PizzaBase and PizzaTopping
Protégé Prac=ces
• The “Individuals by class” Tab
Protégé Prac=ces
• Individuals and Class Asser=ons
Protégé Prac=ces
• Individuals and Class Asser=on Axioms
• Individual Inequality Axioms
An Inconsistency Checking Prac=ce
• Exis=ng Knowledge
(1) CheeseMeatTopping is a sub class of CheeseTopping
(2) CheeseMeatTopping is a sub class of MeatTopping
(3) The class CheeseToppingis disjoint with the class
MeatTopping
CheeseMeatTopping
CheeseTopping MeatTopping
Disjoint Classes
An Inconsistency Checking Prac=ce
• Inference Result
An Inconsistency Checking Prac=ce
• Exis=ng Knowledge
(1) PizzaToppingSample is a member of CheeseTopping
(2) PizzaToppingSample is a member of VegetableTopping
(3) The class CheeseTopping is disjoint with the class
VegetableTopping
PizzaToppingSample
CheeseTopping VegetableTopping
Disjoint Classes
An Inconsistency Checking Prac=ce
• Inference Result
Thank you
for your aren=on!
Any Ques=ons?