SlideShare a Scribd company logo
OWL 2.0 Primer
Classes, Properties, and Individuals
 Contents
• Basic Notions
• Classes, Properties, Individuals & basic
modeling with them

OWL 2.0

2
 Basic Notions
• OWL2 is a knowledge representation language.
Axioms: the basic statements that an OWL ontology expresses.

Entities: elements used to refer to real-world objects.

Expressions: combinations of entities to form complex descriptions
from basic ones

OWL 2.0

3
1. Mary and John are married.
2. Mary is female.

Axioms

individuals

properties

married

classes

Entities

Mary, John

female

Female professor

Expressions

Entity

+

Entity

female

OWL 2.0

+

professor

4
 Classes and Instances(Individuals)
An individual named Mary and states this
individual is a person

Functional-Style Syntax

RDF-XML Syntax
<owl:Class rdf:ID=“Person”/>

ClassAssertion( :Person :Mary)

1.<owl:Thing rdf:ID=“Mary”/>
<owl:Thing rdf:about=“Mary”>
<rdf:type rdf:resource=“#Person”>
</owl:Thing>
2.<Person rdf:ID=“Mary”/>

OWL 2.0

5
 Class Hierarchies
Every individual which is specified as an instance
of the class Woman is also an instance of the
class Person as well.

Functional-Style Syntax

RDF-XML Syntax
<owl:Class rdf:ID=“Woman”/>

SubClassOf( :Mother :Woman)

<owl:Class rdf:ID=“Mother”>
<rdfs:subClassOf rdf:resource=“#Woman”/>
</owl:Class>

OWL 2.0

6
 Class Hierarchies
Every instance of the class Person is also an
instance of class Human, and vice versa.

Functional-Style Syntax

RDF-XML Syntax
<owl:Class rdf:ID=“Human”/>

EquivalentClasses( :Person :Human )

<owl:Class rdf:ID=“Person”>
<owl:equivalentClass rdf:resource=“#Human”/>
</owl:Class>

OWL 2.0

7
 Class Disjointness
Incompatibility relationship between class of
Woman and Man.

Functional-Style Syntax

RDF-XML Syntax
<owl:Class rdf:ID=“Man”/>

DisjointClasses( :Woman :Man)

<owl:Class rdf:ID=“Woman”>
<owl:disjointWith rdf:resource=“#Man”/>
</owl:Class>

OWL 2.0

8
 Object Properties
John

hasWife

Mary

Mary is John’s wife

Functional-Style Syntax

RDF-XML Syntax
<Person rdf:ID=“Mary”/>

ObjectPropertyAssertion( :hasWife :John :Mary)

<Person rdf:ID=“John”>
<hasWife rdf:resource=“#Mary”/>
</Person>

OWL 2.0

9
 Property Hierarchies
Whenever B is known to be A’s wife, it is also
known to be A’s spouse.

Functional-Style Syntax

SubObjectPropertyOf( :hasWife :hasSpouse )

RDF-XML Syntax
<owl:ObjectProperty rdf:ID=“hasWife”>
<rdfs:subPropertyOf rdf:resource=“#hasSpouse”/>
…
…
</owl:ObjectProperty>

OWL 2.0

10
 Domain and Range Restrictions
B is the wife of A obviously implies that B is a
woman and A is a man.

Functional-Style Syntax

RDF-XML Syntax
<owl:Class rdf:ID=“Man”/>
<owl:Class rdf:ID=“Woman”/>

ObjectPropertyDomain( :hasWife :Man )
ObjectPropertyRange( :hasWife :Woman )

<owl:ObjectProperty rdf:ID=“hasWife”>
<rdfs:domain rdf:resource=“#Man”/>
<rdfs:range rdf:resource=“#Woman”/>
</owl:ObjectProperty>

OWL 2.0

11
 Equality and Inequality of Individuals
John and Bill are not the same individuals.
James and Jim are the same individuals.

Functional-Style Syntax

RDF-XML Syntax

1.DifferentIndividuals( :John :Bill )

<Man rdf:ID=“John”>
<owl:differentFrom rdf:resource=“#Bill”/>
</Man>

2.SameIndividual( :James :Jim )

<Man rdf:ID=“James”>
<owl:sameAs rdf:resource=“#Jim”/>
</Man>

OWL 2.0

12
 Datatypes
John’s age is 51

Functional-Style Syntax

RDF-XML Syntax
<Man rdf:ID=“John”>
<hasAge rdf:datatype=“&xsd;integer”>51</hasAge>
</Man>

DataPropertyAssertion( :hasAge :John “51”^^xsd:integer )

OWL 2.0

13
 Domain and range of Datatypes
Domain and range of datatypeproperty

Functional-Style Syntax

RDF-XML Syntax

DataPropertyDomain( :hasAge :Person )
DataPropertyRange( :hasAge xsd:nonNegativeInteger )

OWL 2.0

<owl:DatatypeProperty rdf:ID=“hasAge”>
<rdfs:domain rdf:resource=“Person”/>
<rdfs:range
rdf:resource=“&xsd;nonNegativeInteger”/>
</owl:DatatypeProperty>

14
Protégé 3.4.4

Protégé 4.1 beta

OWL 2.0

15
Q&A
OWL 2.0

16

More Related Content

More from GUANGYUAN PIAO

Env2Vec: Accelerating VNF Testing with Deep Learning
Env2Vec: Accelerating VNF Testing with Deep LearningEnv2Vec: Accelerating VNF Testing with Deep Learning
Env2Vec: Accelerating VNF Testing with Deep LearningGUANGYUAN PIAO
 
Domain-Aware Sentiment Classification with GRUs and CNNs
Domain-Aware Sentiment Classification with GRUs and CNNsDomain-Aware Sentiment Classification with GRUs and CNNs
Domain-Aware Sentiment Classification with GRUs and CNNsGUANGYUAN PIAO
 
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...GUANGYUAN PIAO
 
Retweet Prediction with Attention-based Deep Neural Network
Retweet Prediction with Attention-based Deep Neural NetworkRetweet Prediction with Attention-based Deep Neural Network
Retweet Prediction with Attention-based Deep Neural NetworkGUANGYUAN PIAO
 
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...GUANGYUAN PIAO
 
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...GUANGYUAN PIAO
 
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...GUANGYUAN PIAO
 
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...GUANGYUAN PIAO
 
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...GUANGYUAN PIAO
 
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...GUANGYUAN PIAO
 
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...GUANGYUAN PIAO
 
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...GUANGYUAN PIAO
 
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...GUANGYUAN PIAO
 
JIST2015-data challenge
JIST2015-data challengeJIST2015-data challenge
JIST2015-data challengeGUANGYUAN PIAO
 
Analyzing User Modeling on Twitter for Personalized News Recommendations
Analyzing User Modeling on Twitter for Personalized News RecommendationsAnalyzing User Modeling on Twitter for Personalized News Recommendations
Analyzing User Modeling on Twitter for Personalized News RecommendationsGUANGYUAN PIAO
 

More from GUANGYUAN PIAO (19)

Env2Vec: Accelerating VNF Testing with Deep Learning
Env2Vec: Accelerating VNF Testing with Deep LearningEnv2Vec: Accelerating VNF Testing with Deep Learning
Env2Vec: Accelerating VNF Testing with Deep Learning
 
Domain-Aware Sentiment Classification with GRUs and CNNs
Domain-Aware Sentiment Classification with GRUs and CNNsDomain-Aware Sentiment Classification with GRUs and CNNs
Domain-Aware Sentiment Classification with GRUs and CNNs
 
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
A Study of the Similarities of Entity Embeddings Learned from Different Aspec...
 
Retweet Prediction with Attention-based Deep Neural Network
Retweet Prediction with Attention-based Deep Neural NetworkRetweet Prediction with Attention-based Deep Neural Network
Retweet Prediction with Attention-based Deep Neural Network
 
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...
WISE2017 - Factorization Machines Leveraging Lightweight Linked Open Data-ena...
 
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...
Hypertext2017-Leveraging Followee List Memberships for Inferring User Interes...
 
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...
ECIR2017-Inferring User Interests for Passive Users on Twitter by Leveraging ...
 
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
EKAW2016 - Interest Representation, Enrichment, Dynamics, and Propagation: A ...
 
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...
SEMANTiCS2016 - Exploring Dynamics and Semantics of User Interests for User ...
 
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
UMAP2016EA - Analyzing MOOC Entries of Professionals on LinkedIn for User Mod...
 
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
UMAP2016 - Analyzing Aggregated Semantics-enabled User Modeling on Google+ an...
 
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...
SAC2016-Measuring Semantic Distance for Linked Open Data-enabled Recommender ...
 
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...
JIST2015-Computing the Semantic Similarity of Resources in DBpedia for Recomm...
 
JIST2015-data challenge
JIST2015-data challengeJIST2015-data challenge
JIST2015-data challenge
 
Analyzing User Modeling on Twitter for Personalized News Recommendations
Analyzing User Modeling on Twitter for Personalized News RecommendationsAnalyzing User Modeling on Twitter for Personalized News Recommendations
Analyzing User Modeling on Twitter for Personalized News Recommendations
 
RDFa Basics
RDFa BasicsRDFa Basics
RDFa Basics
 
Owl 2.0 Overview
Owl 2.0 OverviewOwl 2.0 Overview
Owl 2.0 Overview
 
OWL2.0 Primer Part02
OWL2.0 Primer Part02OWL2.0 Primer Part02
OWL2.0 Primer Part02
 
Hdd industry
Hdd industryHdd industry
Hdd industry
 

Recently uploaded

Topology of the Network class 8 .ppt pdf
Topology of the Network class 8 .ppt pdfTopology of the Network class 8 .ppt pdf
Topology of the Network class 8 .ppt pdfAnushkaTripathi61
 
Reggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsrahman018755
 
Case study on merger of Vodafone and Idea (VI).pptx
Case study on merger of Vodafone and Idea (VI).pptxCase study on merger of Vodafone and Idea (VI).pptx
Case study on merger of Vodafone and Idea (VI).pptxAnkitscribd
 
Statistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdfStatistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdfOndejSur
 
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital PresenceCyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital PresencePC Doctors NET
 
How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?Linksys Velop Login
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkklolsDocherty
 
Development Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appsDevelopment Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appscristianmanaila2
 
Bug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's GuideBug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's GuideVarun Mithran
 
The Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case StudyThe Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case StudyDamar Juniarto
 
Article writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptxArticle writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptxabhinandnam9997
 
Thank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirtsThank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirtsrahman018755
 
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebiThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebJie Liau
 
Premier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfPremier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfappinfoedgeca
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxChloeMeadows1
 
Pvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdfPvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdfPvtaan
 

Recently uploaded (16)

Topology of the Network class 8 .ppt pdf
Topology of the Network class 8 .ppt pdfTopology of the Network class 8 .ppt pdf
Topology of the Network class 8 .ppt pdf
 
Reggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirts
 
Case study on merger of Vodafone and Idea (VI).pptx
Case study on merger of Vodafone and Idea (VI).pptxCase study on merger of Vodafone and Idea (VI).pptx
Case study on merger of Vodafone and Idea (VI).pptx
 
Statistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdfStatistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdf
 
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital PresenceCyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
 
How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?How Do I Begin the Linksys Velop Setup Process?
How Do I Begin the Linksys Velop Setup Process?
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
 
Development Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appsDevelopment Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of apps
 
Bug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's GuideBug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's Guide
 
The Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case StudyThe Use of AI in Indonesia Election 2024: A Case Study
The Use of AI in Indonesia Election 2024: A Case Study
 
Article writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptxArticle writing on excessive use of internet.pptx
Article writing on excessive use of internet.pptx
 
Thank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirtsThank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirts
 
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebiThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
 
Premier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfPremier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdf
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
 
Pvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdfPvtaan Social media marketing proposal.pdf
Pvtaan Social media marketing proposal.pdf
 

OWL 2.0 Primer Part01

  • 1. OWL 2.0 Primer Classes, Properties, and Individuals
  • 2.  Contents • Basic Notions • Classes, Properties, Individuals & basic modeling with them OWL 2.0 2
  • 3.  Basic Notions • OWL2 is a knowledge representation language. Axioms: the basic statements that an OWL ontology expresses. Entities: elements used to refer to real-world objects. Expressions: combinations of entities to form complex descriptions from basic ones OWL 2.0 3
  • 4. 1. Mary and John are married. 2. Mary is female. Axioms individuals properties married classes Entities Mary, John female Female professor Expressions Entity + Entity female OWL 2.0 + professor 4
  • 5.  Classes and Instances(Individuals) An individual named Mary and states this individual is a person Functional-Style Syntax RDF-XML Syntax <owl:Class rdf:ID=“Person”/> ClassAssertion( :Person :Mary) 1.<owl:Thing rdf:ID=“Mary”/> <owl:Thing rdf:about=“Mary”> <rdf:type rdf:resource=“#Person”> </owl:Thing> 2.<Person rdf:ID=“Mary”/> OWL 2.0 5
  • 6.  Class Hierarchies Every individual which is specified as an instance of the class Woman is also an instance of the class Person as well. Functional-Style Syntax RDF-XML Syntax <owl:Class rdf:ID=“Woman”/> SubClassOf( :Mother :Woman) <owl:Class rdf:ID=“Mother”> <rdfs:subClassOf rdf:resource=“#Woman”/> </owl:Class> OWL 2.0 6
  • 7.  Class Hierarchies Every instance of the class Person is also an instance of class Human, and vice versa. Functional-Style Syntax RDF-XML Syntax <owl:Class rdf:ID=“Human”/> EquivalentClasses( :Person :Human ) <owl:Class rdf:ID=“Person”> <owl:equivalentClass rdf:resource=“#Human”/> </owl:Class> OWL 2.0 7
  • 8.  Class Disjointness Incompatibility relationship between class of Woman and Man. Functional-Style Syntax RDF-XML Syntax <owl:Class rdf:ID=“Man”/> DisjointClasses( :Woman :Man) <owl:Class rdf:ID=“Woman”> <owl:disjointWith rdf:resource=“#Man”/> </owl:Class> OWL 2.0 8
  • 9.  Object Properties John hasWife Mary Mary is John’s wife Functional-Style Syntax RDF-XML Syntax <Person rdf:ID=“Mary”/> ObjectPropertyAssertion( :hasWife :John :Mary) <Person rdf:ID=“John”> <hasWife rdf:resource=“#Mary”/> </Person> OWL 2.0 9
  • 10.  Property Hierarchies Whenever B is known to be A’s wife, it is also known to be A’s spouse. Functional-Style Syntax SubObjectPropertyOf( :hasWife :hasSpouse ) RDF-XML Syntax <owl:ObjectProperty rdf:ID=“hasWife”> <rdfs:subPropertyOf rdf:resource=“#hasSpouse”/> … … </owl:ObjectProperty> OWL 2.0 10
  • 11.  Domain and Range Restrictions B is the wife of A obviously implies that B is a woman and A is a man. Functional-Style Syntax RDF-XML Syntax <owl:Class rdf:ID=“Man”/> <owl:Class rdf:ID=“Woman”/> ObjectPropertyDomain( :hasWife :Man ) ObjectPropertyRange( :hasWife :Woman ) <owl:ObjectProperty rdf:ID=“hasWife”> <rdfs:domain rdf:resource=“#Man”/> <rdfs:range rdf:resource=“#Woman”/> </owl:ObjectProperty> OWL 2.0 11
  • 12.  Equality and Inequality of Individuals John and Bill are not the same individuals. James and Jim are the same individuals. Functional-Style Syntax RDF-XML Syntax 1.DifferentIndividuals( :John :Bill ) <Man rdf:ID=“John”> <owl:differentFrom rdf:resource=“#Bill”/> </Man> 2.SameIndividual( :James :Jim ) <Man rdf:ID=“James”> <owl:sameAs rdf:resource=“#Jim”/> </Man> OWL 2.0 12
  • 13.  Datatypes John’s age is 51 Functional-Style Syntax RDF-XML Syntax <Man rdf:ID=“John”> <hasAge rdf:datatype=“&xsd;integer”>51</hasAge> </Man> DataPropertyAssertion( :hasAge :John “51”^^xsd:integer ) OWL 2.0 13
  • 14.  Domain and range of Datatypes Domain and range of datatypeproperty Functional-Style Syntax RDF-XML Syntax DataPropertyDomain( :hasAge :Person ) DataPropertyRange( :hasAge xsd:nonNegativeInteger ) OWL 2.0 <owl:DatatypeProperty rdf:ID=“hasAge”> <rdfs:domain rdf:resource=“Person”/> <rdfs:range rdf:resource=“&xsd;nonNegativeInteger”/> </owl:DatatypeProperty> 14
  • 15. Protégé 3.4.4 Protégé 4.1 beta OWL 2.0 15