SlideShare a Scribd company logo
+

RDFS
A little semantics goes a
long way
Mariano Rodriguez-Muro,
Free University of Bozen-Bolzano
+

Disclaimer


License




A few examples from these slides has been taken from




This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 License
(http://creativecommons.org/licenses/by-sa/3.0/)

Semantic Web for the working Ontologist. Chapter 6.

Some of the slides on the use of taxonomies are based on:


http://info.earley.com/webinar-replay-business-value-taxonomy-aug2012
+

Reading material


Semantic Web for the working Ontologist. Chapter 6
http://proquest.safaribooksonline.com/book/-/9780123859655
+

Motivation



Ontologies



RDFS ontologies



Overview



Annotations
+
Motivation
+

Motivation


Motivations for semantic
technology


Making the web machine
understandable



Expressing knowledge





However, points 2 and 3 are not
possible with the technologies
seen so far



RDF doesn’t define
vocabularies, and



Different datasets may use
different URI’s to represent the
same kind of data

Reasoning with knowledge
+

Motivation


Agreement in RDF graphs concerns only the data model and the use
of URI as identifiers



No semantics!
+

Ontologies and Ontology
Languages
+

What is an ontology language?


Specification of valid “axioms”



Specifications of vocabularies with “predefined” meaning in axioms



Informal: Topic Maps, UML diagrams



Formal examples: Predicate Logic, First Order Logic



Semantic Web examples:




RDFS
SWRL,
OWL



Different languages have different expressive power



Axioms allow to produce “inferences”



The more expressive power, more complex and costly the inferences
+

What is an ontology?


Collections of “axioms”



Describe the meaning of the vocabulary of a domain (e.g., an
area of expertise)



Expressed in an Ontology Language



Valuable on their own as knowledge repositories



In combination with data valuable to implement complex
behavior with little or no coding
+

Example: Schema.org


Schema.org IS a simple ontology



Organizes terms in hierarchies with
predefined meaning



The language is a variation of RDFS
+
RDFS
Introduction by example
+

RDFS


W3C standard for an ontology language



RDFS introduces resources (URIs) with a predefined meaning



Inference engines that support RDFS allow to take that
meaning into account



RDFS inferences extend the RDF graph by means of inference
and hence, affect query answering



RDFS is very simple compared to SWRL or OWL, however, it
is very useful in many context, allowing for increased
productivity, easy data integration and interesting AI
applications
+

Building blocks


New namespace rdfs:
<http://www.w3.org/2000/01/rdf-schema#>



New categories:

Commonly,
Class names
are nouns



Classes, resources that share something in common, allow us to
group things together. For example, Employee, Company.
Resources that identify classes have rdf:type rdfs:Class



Instances, resources that are “members” of a class
+

Building blocks

Resources can belong to multiple classes
+

Building blocks (cont.)


Properties: Resources used as a predicate in statements

Commonly, Property names are
multiple words, expressing direction
and in camel-casing
+

RDFS Ontologies


RDFS Axioms


Are RDF triples!



RDFS ontology is an RDF graph!



An RDF graph may have a subgraph expressed in RDFS


We call the RDFS axioms/triples the Tbox of the ontology
(terminological information, predefined meaning)



The rest is the Abox of the ontology (plain data, no predefined
meaning)
+

Type propagation


RDFS vocabulary:
rdfs:subClassOf



Key notions


sub class (on the left)



super class (on the right)



Intuitive meaning, if :mariano is
an instance of subclass it is
also an instance of superclass



Formal meaning: subsets



Inference: type propagation

Similar to inheritance
in Object Oriented
formalisms
+

Type propagation


RDFS vocabulary:
rdfs:subClassOf



Key notions


sub class (on the left)



super class (on the right)



Intuitive meaning, if :mariano is
an instance of subclass it is
also an instance of superclass



Formal meaning: subsets



Inference: type propagation

Similar to inheritance
in Object Oriented
formalisms
+

Relation propagation


RDFS vocabulary:
rdfs:subPropertyOf



Key notions
 sub property(on the left)
 super property(on the right)



Intuitive meaning, if (x,y) are connected with subproperty
they are also connected with superproperty



Formal meaning: subsets (of binary tuples)



Inference: relationship propagation
+

Relation propagation


RDFS vocabulary:
rdfs:subPropertyOf



Key notions
 sub property(on the left)
 super property(on the right)



Intuitive meaning, if (x,y) are connected with subproperty
they are also connected with superproperty



Formal meaning: subsets (of binary tuples)



Inference: relationship propagation
+

Types by usage


RDFS vocabulary:
rdfs:domain, rdfs:range



Key notions
 domain of a triple:
the subject
 range of a triple:
the object



:p rdfs:domain :C > the domain of any
triple where :p is the predicate is an
instance of :C
(similar for rdfs:range)



Formal meaning:
if (x,y) in P, then x in :C



Inference: type assignment by property
usage
+

Types by usage


RDFS vocabulary:
rdfs:domain, rdfs:range



Key notions
 domain of a triple:
the subject
 range of a triple:
the object



:p rdfs:domain :C > the domain of any
triple where :p is the predicate is an
instance of :C
(similar for rdfs:range)



Formal meaning:
if (x,y) in P, then x in :C



Inference: type assignment by property
usage
+

Interactions


All inferences interact to allow
complex behavior
+

Interactions


All inferences interact to allow
complex behavior
+

Set intersection


Proper set intersection is not
possible in RDFS



However, expressing necessary
membership to multiple classes
is possible, i.e., A subset B AND
C
A rdfs:subClassOf B
A rdfs:subClassOf C
consider
x rdf:type A
+

Set intersection


Proper set intersection is not
possible in RDFS



However, expressing necessary
membership to multiple classes
is possible, i.e., A subset B AND
C
A rdfs:subClassOf B
A rdfs:subClassOf C
consider
x rdf:type A
+

Set intersection


Proper set intersection is not
possible in RDFS



However, expressing necessary
membership to multiple classes
is possible, i.e., A subset B AND
C
A rdfs:subClassOf B
A rdfs:subClassOf C
consider
x rdf:type A

One direction
only!
+

Set intersection


Similar for roles
+

Set intersection


Similar for roles
+

Set union


Proper set union is not possible
in RDFS



However, A OR B subsetOf C
B rdfs:subClassOf A
C rdfs:subClassOf A
consider
x rdf:type B
or
x rdf:type C
+

Set union


Proper set union is not possible
in RDFS



However, A OR B subsetOf C
B rdfs:subClassOf A
C rdfs:subClassOf A
consider
x rdf:type B
or
x rdf:type C
+

Set union


For roles. Aligning to a global
vocabulary
+

Set union


For roles. Aligning to a global
vocabulary
+

Equivalence


Merging vocabularies



To account for same use of
different terms (classes or
properties)



For classes or proeperties
+

Equivalence


Merging vocabularies



To account for same use of
different terms (classes or
properties)



For classes or proeperties
+

Last notes on RDFS axioms


Main new vocabulary:


rdfs:subClassOf



rdfs:subPropertyOf



rdfs:domain



rdfs:range



Different from CONSTRAINTS, missing triples are NOT a
violation



Allow to infer new information



Allows to implement system behavior!
+

Open lists revisited


RDFS also facilitates access to Lists



Elements of lists are a possibly
infinite set of elements of the form
rdf:_1, rdf:_2, etc

RDFS facilitates this by enforcing that:
if x rdfs:_1 y
then x rdfs:member b



Access difficult in practice
+

Open lists revisited


RDFS also facilitates access to Lists



Elements of lists are a possibly
infinite set of elements of the form
rdf:_1, rdf:_2, etc



Access difficult in practice

RDFS facilitates this by enforcing that:
if x rdfs:_1 y
then x rdfs:member b

More detail on this on the lecture about
RDFS semantics
+

Axiomatic triples


RDFS enforces certain facts to be always true



These facts are statements (triples)



Referred as Axiomatic triples



Listed in http://www.w3.org/TR/rdf-mt/

More detail on this on the lecture about
RDFS semantics
+

RDFS Semantic Conditions


Every resource x
x rdf:type rdfs:Resource



Every literal x
x rdf:type rdfs:Literal



… etc
More detail on this on the lecture about
RDFS semantics
+

Last notes on RDFS axioms


Main new vocabulary (not the only one):


rdfs:subClassOf



rdfs:subPropertyOf



rdfs:domain



rdfs:range



Different from CONSTRAINTS, missing triples are NOT a
violation



Allow to infer new information



Allows to implement system behavior!
+
Hands on examples
From Semantic Web for the Working Ontologist
+

Automatic classification of
employees (part 1)


Transform into an RDF representation



Automatically catalog objects as Employees, and as Active
employees, Suspended employees and Ex-employees
using a minimal set of “axioms”
<ID>

Project
Assignment

Absent
Until

Termination Date

22

24

-

-

34

24

Dec 23, 2012

-

73

-

-

Jun 4, 2010

Employee table. Primary key: 10
Active employees are assigned to projects
+

Automatic classification of
employees (part 2)


Transform into an RDF representation



Automatically catalog objects as Employees as managers
<ID>

Project Name

<Manager>

24

Project-x

34

25

Project Mayhem

22

Project table. Primary key: ID
Foreign key <Manager> to Employee table
+ Align vocabularies

• Align corresponding properties
using RDFS
• Align with FOAF vocabulary
(when possible) using RDFS (use
foaf:name, foaf:homepage)
+
Annotations
+

Annotations


URI’s are not readable



Readable information (comments, names, etc.) can be stored
using properties, but



Property names are not standard, however, we could like some
standard names for “human oriented information”



RDFS defines:


rdfs:label
A readable name for a resource



rdfs:comment
Human focused comments

These are properties
So, subPropertyOf can be used
with them
+

Redirection


Redirecting to location of documents (RDF) with additional
information about a subject



No formal semantics



RDFS provides:


rdfs:seeAlso. Additional information



rdfs:definedBy. Authority information, primary source.

Recall the semantic web
idea, linked databases

These are properties
So, subPropertyOf can be used
with them

More Related Content

What's hot

SWT Lecture Session 9 - RDB2RDF direct mapping
SWT Lecture Session 9 - RDB2RDF direct mappingSWT Lecture Session 9 - RDB2RDF direct mapping
SWT Lecture Session 9 - RDB2RDF direct mappingMariano Rodriguez-Muro
 
RDF data model
RDF data modelRDF data model
RDF data model
Jose Emilio Labra Gayo
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesAlexandra Roatiș
 
Introduction to RDF Data Model
Introduction to RDF Data ModelIntroduction to RDF Data Model
Introduction to RDF Data Model
Cesar Augusto Nogueira
 
Semantic web
Semantic webSemantic web
Semantic web
tariq1352
 
Another RDF Encoding Form
Another RDF Encoding FormAnother RDF Encoding Form
Another RDF Encoding Form
Jakob .
 
Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF
Emanuele Della Valle
 
RDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic RepositoriesRDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic Repositories
Marin Dimitrov
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
Narni Rajesh
 
Rdf Overview Presentation
Rdf Overview PresentationRdf Overview Presentation
Rdf Overview Presentation
Ken Varnum
 
Rdf
RdfRdf
RDF Data Model
RDF Data ModelRDF Data Model
RDF Data Model
Jose Emilio Labra Gayo
 
An Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of DataAn Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of Data
Olaf Hartig
 
Scaling the (evolving) web data –at low cost-
Scaling the (evolving) web data –at low cost-Scaling the (evolving) web data –at low cost-
Scaling the (evolving) web data –at low cost-
WU (Vienna University of Economics and Business)
 
Efficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data StreamsEfficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data Streams
WU (Vienna University of Economics and Business)
 
Understanding RDF: the Resource Description Framework in Context (1999)
Understanding RDF: the Resource Description Framework in Context  (1999)Understanding RDF: the Resource Description Framework in Context  (1999)
Understanding RDF: the Resource Description Framework in Context (1999)
Dan Brickley
 

What's hot (20)

SWT Lecture Session 10 R2RML Part 1
SWT Lecture Session 10 R2RML Part 1SWT Lecture Session 10 R2RML Part 1
SWT Lecture Session 10 R2RML Part 1
 
SWT Lecture Session 9 - RDB2RDF direct mapping
SWT Lecture Session 9 - RDB2RDF direct mappingSWT Lecture Session 9 - RDB2RDF direct mapping
SWT Lecture Session 9 - RDB2RDF direct mapping
 
4 sw architectures and sparql
4 sw architectures and sparql4 sw architectures and sparql
4 sw architectures and sparql
 
RDF data model
RDF data modelRDF data model
RDF data model
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF Databases
 
Introduction to RDF Data Model
Introduction to RDF Data ModelIntroduction to RDF Data Model
Introduction to RDF Data Model
 
Semantic web
Semantic webSemantic web
Semantic web
 
Another RDF Encoding Form
Another RDF Encoding FormAnother RDF Encoding Form
Another RDF Encoding Form
 
Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF
 
RDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic RepositoriesRDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic Repositories
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
 
Rdf Overview Presentation
Rdf Overview PresentationRdf Overview Presentation
Rdf Overview Presentation
 
Data in RDF
Data in RDFData in RDF
Data in RDF
 
Rdf
RdfRdf
Rdf
 
RDF Data Model
RDF Data ModelRDF Data Model
RDF Data Model
 
An Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of DataAn Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of Data
 
Ontologies in RDF-S/OWL
Ontologies in RDF-S/OWLOntologies in RDF-S/OWL
Ontologies in RDF-S/OWL
 
Scaling the (evolving) web data –at low cost-
Scaling the (evolving) web data –at low cost-Scaling the (evolving) web data –at low cost-
Scaling the (evolving) web data –at low cost-
 
Efficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data StreamsEfficient RDF Interchange (ERI) Format for RDF Data Streams
Efficient RDF Interchange (ERI) Format for RDF Data Streams
 
Understanding RDF: the Resource Description Framework in Context (1999)
Understanding RDF: the Resource Description Framework in Context  (1999)Understanding RDF: the Resource Description Framework in Context  (1999)
Understanding RDF: the Resource Description Framework in Context (1999)
 

Similar to 5 rdfs

RDFa Semantic Web
RDFa Semantic WebRDFa Semantic Web
RDFa Semantic Web
Rob Paok
 
RDF and Java
RDF and JavaRDF and Java
RDF and Java
Constantin Stan
 
SNSW CO3.pptx
SNSW CO3.pptxSNSW CO3.pptx
SNSW CO3.pptx
harishdhanukonda48
 
Deploying PHP applications using Virtuoso as Application Server
Deploying PHP applications using Virtuoso as Application ServerDeploying PHP applications using Virtuoso as Application Server
Deploying PHP applications using Virtuoso as Application Serverwebhostingguy
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
Rama Bastola
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
Rama Bastola
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
Rama Bastola
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World."
Avalon Media System
 
A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)
Raphael Troncy
 
MR^3: Meta-Model Management based on RDFs Revision Reflection
MR^3: Meta-Model Management based on RDFs Revision ReflectionMR^3: Meta-Model Management based on RDFs Revision Reflection
MR^3: Meta-Model Management based on RDFs Revision Reflection
Takeshi Morita
 
Semantic web Technology
Semantic web TechnologySemantic web Technology
Semantic web Technology
Abdelrahman Ibrahim
 
semantic web resource description framework
semantic web resource description frameworksemantic web resource description framework
semantic web resource description framework
KomalFatima37
 
Lee Iverson - How does the web connect content?
Lee Iverson - How does the web connect content?Lee Iverson - How does the web connect content?
Lee Iverson - How does the web connect content?Museums Computer Group
 
Hack U Barcelona 2011
Hack U Barcelona 2011Hack U Barcelona 2011
Hack U Barcelona 2011
Peter Mika
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Mikael Nilsson
 
Semantic Web and Linked Open Data
Semantic Web and Linked Open DataSemantic Web and Linked Open Data
Semantic Web and Linked Open Data
University of Wisconsin-Madison
 
State of the Semantic Web
State of the Semantic WebState of the Semantic Web
State of the Semantic Web
Ivan Herman
 
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
Linking Open, Big Data Using Semantic Web Technologies - An IntroductionLinking Open, Big Data Using Semantic Web Technologies - An Introduction
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
Ronald Ashri
 
RDF for Librarians
RDF for LibrariansRDF for Librarians
RDF for Librarians
Jenn Riley
 
Semantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to Applications
Guus Schreiber
 

Similar to 5 rdfs (20)

RDFa Semantic Web
RDFa Semantic WebRDFa Semantic Web
RDFa Semantic Web
 
RDF and Java
RDF and JavaRDF and Java
RDF and Java
 
SNSW CO3.pptx
SNSW CO3.pptxSNSW CO3.pptx
SNSW CO3.pptx
 
Deploying PHP applications using Virtuoso as Application Server
Deploying PHP applications using Virtuoso as Application ServerDeploying PHP applications using Virtuoso as Application Server
Deploying PHP applications using Virtuoso as Application Server
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World." DLF 2015 Presentation, "RDF in the Real World."
DLF 2015 Presentation, "RDF in the Real World."
 
A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)
 
MR^3: Meta-Model Management based on RDFs Revision Reflection
MR^3: Meta-Model Management based on RDFs Revision ReflectionMR^3: Meta-Model Management based on RDFs Revision Reflection
MR^3: Meta-Model Management based on RDFs Revision Reflection
 
Semantic web Technology
Semantic web TechnologySemantic web Technology
Semantic web Technology
 
semantic web resource description framework
semantic web resource description frameworksemantic web resource description framework
semantic web resource description framework
 
Lee Iverson - How does the web connect content?
Lee Iverson - How does the web connect content?Lee Iverson - How does the web connect content?
Lee Iverson - How does the web connect content?
 
Hack U Barcelona 2011
Hack U Barcelona 2011Hack U Barcelona 2011
Hack U Barcelona 2011
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19
 
Semantic Web and Linked Open Data
Semantic Web and Linked Open DataSemantic Web and Linked Open Data
Semantic Web and Linked Open Data
 
State of the Semantic Web
State of the Semantic WebState of the Semantic Web
State of the Semantic Web
 
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
Linking Open, Big Data Using Semantic Web Technologies - An IntroductionLinking Open, Big Data Using Semantic Web Technologies - An Introduction
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
 
RDF for Librarians
RDF for LibrariansRDF for Librarians
RDF for Librarians
 
Semantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to Applications
 

More from Mariano Rodriguez-Muro

SWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaSWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaMariano Rodriguez-Muro
 
SWT Lecture Session 7 - Advanced uses of RDFS
SWT Lecture Session 7 - Advanced uses of RDFSSWT Lecture Session 7 - Advanced uses of RDFS
SWT Lecture Session 7 - Advanced uses of RDFSMariano Rodriguez-Muro
 
SWT Lecture Session 4 - SW architectures and SPARQL
SWT Lecture Session 4 - SW architectures and SPARQLSWT Lecture Session 4 - SW architectures and SPARQL
SWT Lecture Session 4 - SW architectures and SPARQLMariano Rodriguez-Muro
 
SWT Lecture Session 1 - Introduction
SWT Lecture Session 1 - IntroductionSWT Lecture Session 1 - Introduction
SWT Lecture Session 1 - Introduction
Mariano Rodriguez-Muro
 
ontop: A tutorial
ontop: A tutorialontop: A tutorial
ontop: A tutorial
Mariano Rodriguez-Muro
 
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
Mariano Rodriguez-Muro
 
Introduction to query rewriting optimisation with dependencies
Introduction to query rewriting optimisation with dependenciesIntroduction to query rewriting optimisation with dependencies
Introduction to query rewriting optimisation with dependencies
Mariano Rodriguez-Muro
 
OXFORD'13 Optimising OWL 2 QL query rewriring
OXFORD'13 Optimising OWL 2 QL query rewriringOXFORD'13 Optimising OWL 2 QL query rewriring
OXFORD'13 Optimising OWL 2 QL query rewriring
Mariano Rodriguez-Muro
 
OWLED'12 Quest
OWLED'12 QuestOWLED'12 Quest
OWLED'12 Quest
Mariano Rodriguez-Muro
 
ODBASE'08 dl-lite explanations
ODBASE'08 dl-lite explanationsODBASE'08 dl-lite explanations
ODBASE'08 dl-lite explanations
Mariano Rodriguez-Muro
 
IMAS'08 obda plugin
IMAS'08 obda pluginIMAS'08 obda plugin
IMAS'08 obda plugin
Mariano Rodriguez-Muro
 
DL'12 dl-lite explanations
DL'12 dl-lite explanationsDL'12 dl-lite explanations
DL'12 dl-lite explanations
Mariano Rodriguez-Muro
 

More from Mariano Rodriguez-Muro (20)

SWT Lab 3
SWT Lab 3SWT Lab 3
SWT Lab 3
 
SWT Lab 5
SWT Lab 5SWT Lab 5
SWT Lab 5
 
SWT Lab 2
SWT Lab 2SWT Lab 2
SWT Lab 2
 
SWT Lab 1
SWT Lab 1SWT Lab 1
SWT Lab 1
 
SWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaSWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jena
 
SWT Lecture Session 7 - Advanced uses of RDFS
SWT Lecture Session 7 - Advanced uses of RDFSSWT Lecture Session 7 - Advanced uses of RDFS
SWT Lecture Session 7 - Advanced uses of RDFS
 
SWT Lecture Session 5 - RDFS
SWT Lecture Session 5 - RDFSSWT Lecture Session 5 - RDFS
SWT Lecture Session 5 - RDFS
 
SWT Lecture Session 4 - SW architectures and SPARQL
SWT Lecture Session 4 - SW architectures and SPARQLSWT Lecture Session 4 - SW architectures and SPARQL
SWT Lecture Session 4 - SW architectures and SPARQL
 
SWT Lecture Session 4 - Sesame
SWT Lecture Session 4 - SesameSWT Lecture Session 4 - Sesame
SWT Lecture Session 4 - Sesame
 
7 advanced uses of rdfs
7 advanced uses of rdfs7 advanced uses of rdfs
7 advanced uses of rdfs
 
4 sesame
4 sesame4 sesame
4 sesame
 
SWT Lecture Session 1 - Introduction
SWT Lecture Session 1 - IntroductionSWT Lecture Session 1 - Introduction
SWT Lecture Session 1 - Introduction
 
ontop: A tutorial
ontop: A tutorialontop: A tutorial
ontop: A tutorial
 
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
Stanford'12 Intro to Ontology Based Data Access for RDBMS through query rewri...
 
Introduction to query rewriting optimisation with dependencies
Introduction to query rewriting optimisation with dependenciesIntroduction to query rewriting optimisation with dependencies
Introduction to query rewriting optimisation with dependencies
 
OXFORD'13 Optimising OWL 2 QL query rewriring
OXFORD'13 Optimising OWL 2 QL query rewriringOXFORD'13 Optimising OWL 2 QL query rewriring
OXFORD'13 Optimising OWL 2 QL query rewriring
 
OWLED'12 Quest
OWLED'12 QuestOWLED'12 Quest
OWLED'12 Quest
 
ODBASE'08 dl-lite explanations
ODBASE'08 dl-lite explanationsODBASE'08 dl-lite explanations
ODBASE'08 dl-lite explanations
 
IMAS'08 obda plugin
IMAS'08 obda pluginIMAS'08 obda plugin
IMAS'08 obda plugin
 
DL'12 dl-lite explanations
DL'12 dl-lite explanationsDL'12 dl-lite explanations
DL'12 dl-lite explanations
 

Recently uploaded

Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 

Recently uploaded (20)

Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 

5 rdfs

  • 1. + RDFS A little semantics goes a long way Mariano Rodriguez-Muro, Free University of Bozen-Bolzano
  • 2. + Disclaimer  License   A few examples from these slides has been taken from   This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/) Semantic Web for the working Ontologist. Chapter 6. Some of the slides on the use of taxonomies are based on:  http://info.earley.com/webinar-replay-business-value-taxonomy-aug2012
  • 3. + Reading material  Semantic Web for the working Ontologist. Chapter 6 http://proquest.safaribooksonline.com/book/-/9780123859655
  • 6. + Motivation  Motivations for semantic technology  Making the web machine understandable  Expressing knowledge   However, points 2 and 3 are not possible with the technologies seen so far  RDF doesn’t define vocabularies, and  Different datasets may use different URI’s to represent the same kind of data Reasoning with knowledge
  • 7. + Motivation  Agreement in RDF graphs concerns only the data model and the use of URI as identifiers  No semantics!
  • 9. + What is an ontology language?  Specification of valid “axioms”  Specifications of vocabularies with “predefined” meaning in axioms  Informal: Topic Maps, UML diagrams  Formal examples: Predicate Logic, First Order Logic  Semantic Web examples:    RDFS SWRL, OWL  Different languages have different expressive power  Axioms allow to produce “inferences”  The more expressive power, more complex and costly the inferences
  • 10. + What is an ontology?  Collections of “axioms”  Describe the meaning of the vocabulary of a domain (e.g., an area of expertise)  Expressed in an Ontology Language  Valuable on their own as knowledge repositories  In combination with data valuable to implement complex behavior with little or no coding
  • 11. + Example: Schema.org  Schema.org IS a simple ontology  Organizes terms in hierarchies with predefined meaning  The language is a variation of RDFS
  • 13. + RDFS  W3C standard for an ontology language  RDFS introduces resources (URIs) with a predefined meaning  Inference engines that support RDFS allow to take that meaning into account  RDFS inferences extend the RDF graph by means of inference and hence, affect query answering  RDFS is very simple compared to SWRL or OWL, however, it is very useful in many context, allowing for increased productivity, easy data integration and interesting AI applications
  • 14. + Building blocks  New namespace rdfs: <http://www.w3.org/2000/01/rdf-schema#>  New categories: Commonly, Class names are nouns  Classes, resources that share something in common, allow us to group things together. For example, Employee, Company. Resources that identify classes have rdf:type rdfs:Class  Instances, resources that are “members” of a class
  • 15. + Building blocks Resources can belong to multiple classes
  • 16. + Building blocks (cont.)  Properties: Resources used as a predicate in statements Commonly, Property names are multiple words, expressing direction and in camel-casing
  • 17. + RDFS Ontologies  RDFS Axioms  Are RDF triples!  RDFS ontology is an RDF graph!  An RDF graph may have a subgraph expressed in RDFS  We call the RDFS axioms/triples the Tbox of the ontology (terminological information, predefined meaning)  The rest is the Abox of the ontology (plain data, no predefined meaning)
  • 18. + Type propagation  RDFS vocabulary: rdfs:subClassOf  Key notions  sub class (on the left)  super class (on the right)  Intuitive meaning, if :mariano is an instance of subclass it is also an instance of superclass  Formal meaning: subsets  Inference: type propagation Similar to inheritance in Object Oriented formalisms
  • 19. + Type propagation  RDFS vocabulary: rdfs:subClassOf  Key notions  sub class (on the left)  super class (on the right)  Intuitive meaning, if :mariano is an instance of subclass it is also an instance of superclass  Formal meaning: subsets  Inference: type propagation Similar to inheritance in Object Oriented formalisms
  • 20. + Relation propagation  RDFS vocabulary: rdfs:subPropertyOf  Key notions  sub property(on the left)  super property(on the right)  Intuitive meaning, if (x,y) are connected with subproperty they are also connected with superproperty  Formal meaning: subsets (of binary tuples)  Inference: relationship propagation
  • 21. + Relation propagation  RDFS vocabulary: rdfs:subPropertyOf  Key notions  sub property(on the left)  super property(on the right)  Intuitive meaning, if (x,y) are connected with subproperty they are also connected with superproperty  Formal meaning: subsets (of binary tuples)  Inference: relationship propagation
  • 22. + Types by usage  RDFS vocabulary: rdfs:domain, rdfs:range  Key notions  domain of a triple: the subject  range of a triple: the object  :p rdfs:domain :C > the domain of any triple where :p is the predicate is an instance of :C (similar for rdfs:range)  Formal meaning: if (x,y) in P, then x in :C  Inference: type assignment by property usage
  • 23. + Types by usage  RDFS vocabulary: rdfs:domain, rdfs:range  Key notions  domain of a triple: the subject  range of a triple: the object  :p rdfs:domain :C > the domain of any triple where :p is the predicate is an instance of :C (similar for rdfs:range)  Formal meaning: if (x,y) in P, then x in :C  Inference: type assignment by property usage
  • 24. + Interactions  All inferences interact to allow complex behavior
  • 25. + Interactions  All inferences interact to allow complex behavior
  • 26. + Set intersection  Proper set intersection is not possible in RDFS  However, expressing necessary membership to multiple classes is possible, i.e., A subset B AND C A rdfs:subClassOf B A rdfs:subClassOf C consider x rdf:type A
  • 27. + Set intersection  Proper set intersection is not possible in RDFS  However, expressing necessary membership to multiple classes is possible, i.e., A subset B AND C A rdfs:subClassOf B A rdfs:subClassOf C consider x rdf:type A
  • 28. + Set intersection  Proper set intersection is not possible in RDFS  However, expressing necessary membership to multiple classes is possible, i.e., A subset B AND C A rdfs:subClassOf B A rdfs:subClassOf C consider x rdf:type A One direction only!
  • 31. + Set union  Proper set union is not possible in RDFS  However, A OR B subsetOf C B rdfs:subClassOf A C rdfs:subClassOf A consider x rdf:type B or x rdf:type C
  • 32. + Set union  Proper set union is not possible in RDFS  However, A OR B subsetOf C B rdfs:subClassOf A C rdfs:subClassOf A consider x rdf:type B or x rdf:type C
  • 33. + Set union  For roles. Aligning to a global vocabulary
  • 34. + Set union  For roles. Aligning to a global vocabulary
  • 35. + Equivalence  Merging vocabularies  To account for same use of different terms (classes or properties)  For classes or proeperties
  • 36. + Equivalence  Merging vocabularies  To account for same use of different terms (classes or properties)  For classes or proeperties
  • 37. + Last notes on RDFS axioms  Main new vocabulary:  rdfs:subClassOf  rdfs:subPropertyOf  rdfs:domain  rdfs:range  Different from CONSTRAINTS, missing triples are NOT a violation  Allow to infer new information  Allows to implement system behavior!
  • 38. + Open lists revisited  RDFS also facilitates access to Lists  Elements of lists are a possibly infinite set of elements of the form rdf:_1, rdf:_2, etc RDFS facilitates this by enforcing that: if x rdfs:_1 y then x rdfs:member b  Access difficult in practice
  • 39. + Open lists revisited  RDFS also facilitates access to Lists  Elements of lists are a possibly infinite set of elements of the form rdf:_1, rdf:_2, etc  Access difficult in practice RDFS facilitates this by enforcing that: if x rdfs:_1 y then x rdfs:member b More detail on this on the lecture about RDFS semantics
  • 40. + Axiomatic triples  RDFS enforces certain facts to be always true  These facts are statements (triples)  Referred as Axiomatic triples  Listed in http://www.w3.org/TR/rdf-mt/ More detail on this on the lecture about RDFS semantics
  • 41. + RDFS Semantic Conditions  Every resource x x rdf:type rdfs:Resource  Every literal x x rdf:type rdfs:Literal  … etc More detail on this on the lecture about RDFS semantics
  • 42. + Last notes on RDFS axioms  Main new vocabulary (not the only one):  rdfs:subClassOf  rdfs:subPropertyOf  rdfs:domain  rdfs:range  Different from CONSTRAINTS, missing triples are NOT a violation  Allow to infer new information  Allows to implement system behavior!
  • 43. + Hands on examples From Semantic Web for the Working Ontologist
  • 44. + Automatic classification of employees (part 1)  Transform into an RDF representation  Automatically catalog objects as Employees, and as Active employees, Suspended employees and Ex-employees using a minimal set of “axioms” <ID> Project Assignment Absent Until Termination Date 22 24 - - 34 24 Dec 23, 2012 - 73 - - Jun 4, 2010 Employee table. Primary key: 10 Active employees are assigned to projects
  • 45. + Automatic classification of employees (part 2)  Transform into an RDF representation  Automatically catalog objects as Employees as managers <ID> Project Name <Manager> 24 Project-x 34 25 Project Mayhem 22 Project table. Primary key: ID Foreign key <Manager> to Employee table
  • 46. + Align vocabularies • Align corresponding properties using RDFS • Align with FOAF vocabulary (when possible) using RDFS (use foaf:name, foaf:homepage)
  • 48. + Annotations  URI’s are not readable  Readable information (comments, names, etc.) can be stored using properties, but  Property names are not standard, however, we could like some standard names for “human oriented information”  RDFS defines:  rdfs:label A readable name for a resource  rdfs:comment Human focused comments These are properties So, subPropertyOf can be used with them
  • 49. + Redirection  Redirecting to location of documents (RDF) with additional information about a subject  No formal semantics  RDFS provides:  rdfs:seeAlso. Additional information  rdfs:definedBy. Authority information, primary source. Recall the semantic web idea, linked databases These are properties So, subPropertyOf can be used with them

Editor's Notes

  1. Exercise 1