Lecture 05 An Introduction To Ontology Engineering - Compressed
Lecture 05 An Introduction To Ontology Engineering - Compressed
(Part 4/6)
Dr. Yongxin Liao
Course Outlines
• Important Terms in an Ontology (4/6)
– Data Ranges
• Data Types
• Enumera@on of Data Values (Literals)
• Data Range Connec@ves
– Complex Class Expressions (2/2)
• Data Property Restric@ons
• Protégé Prac@ces
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
Data Ranges
• Data Type
– Each kind of data values is called a data type.
– Data Types for Numbers
nega@veInteger posi@veInteger
25
-25 0
250
-250
-0.25 0.25
-2.5 2.5
integer
decimal
Data Ranges
• Data Type
– Data Types for Strings
• string character strings
E.g. “A pizza that only has Mozzarella and Tomato Sauce Toppings.”^^string
“Harry James Poaer”^^string
Bitmap
Examples
integer[> 1, < 5]
Data Ranges
• Datatype Restric@ons
– Restric@ons on Data types for strings
A data type + “[” + value space restric@ons + ”]”
Zero or a posi@ve integer
“string” • Each value space restric@on is composed of:
a restric/on symbol + a number
• It is possible to have mul@ple restric@ons that are
The rela@on among those
separated by “,”.
restric@ons is intersec@on. • The restric@on symbol can be “length”, “minLength”,
or “maxLength”
posi@veInteger nega@veInteger
integer
Data Ranges
• Data Range Connec@ves
– Union of Data Ranges
• A union data range contains all the data values that are
contained in at least one data range in this expression
• In protégé, it is described by combining two or more data
ranges using the “or” operator.
posi@veInteger or nega@veInteger
posi@veInteger nega@veInteger
integer
Data Ranges
• Data Range Connec@ves
– Complement of Data Ranges
• The complement of the data range x contains all the data
values that are not contained in the data range x.
• In protégé, it is described by placing a “not” operator at the
beginning of that data range.
not posi@veInteger
posi@veInteger nega@veInteger
integer
p Value n
Class Expressions p
p Value x
Value y
p
Value z
hasBirthday “1968-04-13T00:00:00”
^^dateTime
All its Individuals should JamesBond
have at least one birthday hasBirthday
HarryPoaer “1980-07-31T00:00:00”
which is in the range of ^^dateTime
dateTime dateTime
p
Class Expressions
Value n
p
p Value x
p Value y
Value z
hasBirthday
“1968-04-13T00:00:00”
All it Individuals should have JamesBond ^^dateTime
p Value x
• Value Restric@ons
Data value Restric@on on p and x
– Data Value Restric@on
• A data value restric@on expression consists of a data
property p and a data value x
• It contains all those individuals that are connected by p to x.
• In Protégé, it is described as
a data property + “value” + a data value
Up to n Other Values
• Cardinality Restric@ons
Maximum cardinality
Value x
restric@on on p, n and dr p
dr
JamesBond hasAlias
string
if n+1 p
hasAlias
“Mr. Fisher”^^xsd:string
JamesBond hasAlias
string
Protégé Prac@ces
• The “Classes” Tab
– Complex Class Expressions (via Data Proper@es)
• Equivalent Classes Axioms
• Subclass Axioms
Any Ques@ons?