RDF(S): introduction Semantic Web and Linked Data Module 2 Lesson 1 Dr. Idafen Santana Pérez
[email protected] Ontology Engineering Group
Index • General introduction • RDF - RDF Components - RDF Serialisation - RDF Inference
• RDF Schema - RDFS Components - RDFS Serialisation - RDFS Inference
RDF(S): introduction
2
RDF and RDF Schema • RDF: Resource Description Framework Database
Schema
Data
• W3C Recommendation - Model - Syntax - Semantics RDF(S): introduction
3
RDF and RDF Schema • RDF: Resource Description Framework Database
XML
RDF(S)
Schema
RDF Schema
Data
RDF
• W3C Recommendation - Model - Syntax - Semantics RDF(S): introduction
4
RDF(S) and the Semantic Web
Source: http://w3.org/DesignIssues/diagrams/sweb-stack/2006a.png
RDF(S): introduction
5
Índice • General introduction • RDF - RDF Components - RDF Serialisation - RDF Inference
• RDF Schema - RDFS Components - RDFS Serialisation - RDFS Inference
RDF(S): introduction
6
RDF Components
< subject , predicate , object >
RDF(S): introduction
7
RDF Components
RDF Triples < subject , predicate , object >>
RDF(S): introduction
8
RDF Components •
RDF triples -
•
[Subject, Predicate, Object]
“Raúl is a member of the Ontology Engineering Group” -
[Raúl, is member of, Ontology Engineering Group] is member of
Raúl
•
“Raúl’s full name is Raúl García Castro” -
[Raúl, has full name, Raúl García Castro] Raúl
•
has full name
Raúl García Castro
“Raúl was born on December 26th 1975” -
[Raúl, was born, 26 December 1975] Raúl
•
Ontology Engineering Group
has birth date
26 December 1975
“The homepage of the Ontology Engineering Group is http://www.oeg-upm.net/” -
[Ontology Engineering Group, has web page, http://www.oeg-upm.net/] has web page
Ontology Engineering Group
RDF(S): introduction
9
http://www.oeg-upm.net/
RDF Components •
RDF triples -
•
[Subject, Predicate, Object]
“Raúl is a member of the Ontology Engineering Group” -
[Raúl, is member of, Ontology Engineering Group] is member of
Raúl
•
“Raúl’s full name is Raúl García Castro” -
[Raúl, has full name, Raúl García Castro] Raúl
•
has full name
Raúl García Castro
“Raúl was born on December 26th 1975” -
[Raúl, was born, 26 December 1975] Raúl
•
Ontology Engineering Group
has birth date
26 December 1975
“The homepage of the Ontology Engineering Group is http://www.oeg-upm.net/” -
[Ontology Engineering Group, has web page, http://www.oeg-upm.net/] has web page
Ontology Engineering Group
RDF(S): introduction
10
http://www.oeg-upm.net/
RDF Graphs and Datasets • RDF graphs are sets of triples has full name
Raúl García Castro
has birth date
26 December 1975
Raúl
is member of has web page
Ontology Engineering Group
http://www.oeg-upm.net/
• A set of RDF graphs is an RDF Dataset (in RDF1.1) - There is a default graph - And zero or more named graphs
RDF(S): introduction
11
RDF literals • Triple objects may be resources or literals - Subjects and predicates are always resources
• Literals may have a datatype - Commonly using XML Schema datatypes - And a few extra datatypes (RDF1.1) • rdf:langString (e.g., “Spain”@en) • rdf:HTML and rdf:XMLLiteral has full name
“Raúl García Castro”
has birth date
“1975-12-26”^^xsd:date
Raúl
is member of has web page
http://www.oeg-upm.net/
Ontology Engineering Group
RDF(S): introduction
12
RDF literals. Common datatypes
https://www.w3.org/TR/rdf11-concepts/#xsd-datatypes RDF(S): introduction
13
RDF(S): introduction © Idafen Santana Pérez