OWL is a knowledge representation language used to build ontologies
OWL 2 is the latest version of the W3C standard
Three types of entities (elements used to refer to real-world objects)
Classes: They are used to group sets of individuals that have something in common among them.
Eg: Car, Student, Employee, Father, Mother
Properties: They are the binary relations between the individuals. Eg: hasDaughter, hasSpouse, worksFor
Individuals: They are the instances or constants in the domain
Eg: mary (is a Woman), julie (is a Parent)
All the entities are identified by using IRIs
Identifiers and Naming Conventions
Identifiers
URL (Uniform Resource Locator)
It is a mechanism to specify and locate a web resource on a computer network.
Eg: http://, ftp://
URN (Uniform Resource Name)
They are persistent location independent identifiers that use the urn scheme.
Eg: ISBN of a book is a URN used to identify a book uniquely
Identifiers
URI (Uniform Resource Identifier)
It is an identifier that can uniquely and unambiguously identify resources
ASCII encoding is used in the identifiers
URL and URN are type of URIs. URIs and URNs need not be resolvable to a location, which is the case with URL
Eg: http://www.w3.org/2002/07/owl#
IRI (International Resource Identifier)
IRI is similar to URI except that the character set for encoding the identifier is Universal Character Set (UTF-8)
Eg: é, ö could be used in IRI
Naming Conventions
Class: They are written in upper camel case (or Pascal case) where every first letter in a compound word is capitalized
Eg: Father, Parent, MyBirthdayGuests
Properties: They are written in lower camel case where every first letter in a compound word excluding the first word is capitalized
Eg: hasDaughter, hasAge
Individuals: same as Properties
Eg: mary, john, julie
OWL Syntax
Following syntaxes are supported by OWL
Functional-Style syntax
RDF/XML
OWL/XML
Manchester syntax
We will follow the functional syntax since it is human friendly
Declaration(Class(Person))
Declaration(NamedIndividual(mary))
ClassAssertion(Person mary)
ClassAssertion(Women mary)
ObjectPropertyAssertion(hasWife john mary)
Axioms: Basic statements such as the above are called axioms of an OWL ontology
Entities: Class, Properties, and Individuals
Expression: combinations of entities to form complex descriptions from basic ones
All these together capture the knowledge of a domain
Class Hierarchy
SubClassOf(Woman Person)
SubClassOf(Mother Woman)
EquivalentClasses(Person Human)
SubClassOf(Person Human)
SubClassOf(Human Person)
DisjointClasses(Mother Father)
Property Hierarchy
SubPropertyOf(hasDaughter hasChild)
SubPropertyOf(parentOf ancestorOf)
DisjointProperties(parentOf childOf)
Object and Data Properties
Object Property: One individual is related to another individual by a property
Eg: ObjectPropertyAssertion(hasWife john mary)
Data Property: A property relates an individual to a data value
Eg: DataPropertyAssertion(hasAge john "51"^^xsd:integer)
Domain and Range of Properties
Additional information about the properties can be provided using domain and range
They are the "semantic link" between classes and properties