Semantic Web LEcture 5
Semantic Web LEcture 5
Semantic Web
Introduction To Semantic Web
5 • LECTURE 5: Ontologies
The Semantic Web is a vision for the future of the Web in which information is given
explicit meaning, making it easier for machines to automatically process and integrate
information available on the Web.
The Semantic Web builds on
- XML's ability to define customized tagging schemes
- RDF approach to represent data.
The first level above RDF for the Semantic Web is an ontology language which is used to
describe the meaning of terminology used in Web documents.
Ontology: Origins and History
No existence/cardinality constraints
No transitive, inverse or symmetrical properties
No localized range and domain constraints
Difficult to provide reasoning support
From RDFS to OWL
Two languages developed to address deficiencies & problems of RDFS:
The language used to build ontologies that describe information on the Semantic Web.
» OWL facilitates greater machine interpretability of Web content than that supported by XML, RDF,
and RDF Schema (RDF-S) by providing additional vocabulary along with a formal semantics
OWL Web Ontology Language cont.
Common Ontologies
OWL Sublanguages
» OWL Lite
OWL-Lite is the syntactically simplest sub-language. It is intended to be used in situations where only
a simple class hierarchy and simple constraints are needed.
» OWL DL
provides users who need the maximum expressiveness while retaining number of constraints on the
use of the OWL language constructs such as :
OWL DL requires a separation between classes, datatypes, datatype properties, object properties. This
means that, a class cannot be at the same time an individual.
» OWL Full
provides users who need maximum expressiveness and free unrestricted use of RDF constructs.
OWL Full allows classes to be treated as individuals.
ex: it is legal in OWL Full to use a “Ferrari" identifier as a class name and as an individual name (ex: an
instance of the class CarType).
OWL
Sublanguage
s cont.
OWL Web Ontology Language
a series of classes
property definitions
descriptions of individuals
data range descriptions.
• A property is a relationship, and it can be either between two individuals or between an individual and a
literal value.
OWL class
• These restrictions represent descriptions of the class and form the basis of the class
definition.
OWL Web Ontology Language cont.
rdfs:subClassOf Relationship between two classes that states that one class is more
specific than the other.
owl:equivalentClass Relationship that specifies that the extensions of two classes are
equivalent.
• Annotation properties can be used to describe resources in the ontology, including classes,
properties, individuals, ontologies, and data types.
• The following is a list of the annotation properties that are provided in OWL to describe new
annotation properties:
rdfs:isDefinedBy : property that specifies a resource that defines the subject resource.
OWL Web Ontology Language cont.
Properties
owl:DatatypeProperty The class of all properties that link an individual with a literal value.
rdfs:subPropertyOf Relationship between two properties that specifies that one property is more
Datatypes
• OWL allows you to use a number of predefined datatypes, of which most are defined in the
XML Schema Definition (xsd) namespace.
• In addition to the predefined datatypes, OWL introduces the ability to define your own
datatypes.
OWL Web Ontology Language cont.
• A functional property can have only one member in the range for any member of the domain.
EX: hasGender is marked as functional so that each person can have only one gender.
• An Inverse functional : each member of the domain can correspond only one member of the
range.
EX: idFor property could be marked as Inverse functional, since you want each ID to correspond
to only one Person.
• Transitive This means that "x hasProperty y" and "y hasProperty z" implies "x hasProperty z".
• Symmetric This means that "x hasProperty y" implies "y hasProperty x".
• Asymmetric This means that if "x hasProperty y" then "y hasProperty x" cannot be true as well.
OWL Web Ontology Language cont.
Individuals
owl:sameAs A relationship that specifies that two individuals are the same individual.
owl:differentFrom A relationship that specifies that two individuals are not the same
individual.
Why Ontology Reasoning?
Given key role of ontologies in many applications, it is essential to provide tools and services to help
users:
Medicine
Building/maintaining terminologies such as Snomed, NCI & Galen
Central Sulcus
Parietal Lobe
Frontal Lobe
Occipital
Lobe
Temporal Lobe
Lateral Sulcus
Applications of Ontologies