Upload
others
View
14
Download
0
Embed Size (px)
Citation preview
Semantic Data
Chapter 3 : The semantic web
resource description framework
Jean-Louis Binot
19/02/2020Semantic Data1
Course content outline
2
Sources and recommended readings
❑
◼
❑
◼
◼
◼
❑
◼
◼
◼
3
Agenda
4
Why not HTML or XML ?2
Resource description framework3
The semantic web stack1
RDF Schema4
The semantic web standards (W3C consortium)
❑
◼
❑
◼
❑
◼
❑
❑
5
Agenda
6
Why not HTML or XML ?2
Resource description framework3
The semantic web stack1
RDF Schema4
Why not just HTML ?
❑
❑
❑
❑
7
Might XML be a better solution ?
❑
◼
◼
◼
❑
◼
❑
8
Why not just XML : an example
❑
❑
❑
◼
◼
9
lecturer)
Agenda
10
Why not HTML or XML ?2
Resource description framework3
The semantic web stack1
RDF Schema4
Basic ideas of the Resource Description Framework (RDF)
❑
❑
❑
11
Properties
❑
◼
❑
❑
◼
◼
13
Statements
❑
◼
❑
◼
❑
14
The RDF data model is based on directed labelled graphs
❑
❑
❑
15
RDF serialization - Turtle
❑
◼
❑
◼
❑
17
Namespaces and reference vocabularies
❑
❑
◼
◼
◼
◼
❑
18
❑
❑
19
Some usual vocabularies
❑
❑
20
Namespaces ./.
❑
❑
❑
❑
21
Types of triple elements
❑
◼
◼
◼
❑
◼
◼
◼
22
✓ ✓ ✓
✕ ✕ ✓
✓ ✕ ✓
Example with URIs and literals
23
Literals and datatypes
❑
❑
◼
◼
◼
❑
◼
◼
24
Blank nodes
❑
◼
◼
❑
25
Use of blank nodes for structured data
26
❑
Instances and typing
❑
❑
❑
27
Syntactic sugar
❑
❑
❑
28
The Mona Lisa example in Turtle
29
Reification
❑
❑
◼
◼
❑
30
Syntaxes for expressing RDF graphs
❑
❑
◼
❑
◼
❑
31
The Mona Lisa example in RDF/XML
32
❑
❑
RDFa (RDF in HTML attributes)
❑
❑
◼
◼
◼
◼
❑
❑
33
A review snippet from Google
35
Triples generated from the review snipet
36
Semantics of RDF graphs
❑
◼
◼
❑
◼
◼
◼
◼
38
∃ ∧
Semantics of RDF graphs ./.
❑
◼ I I I I
◼ I I
◼
◼ ⊨
◼
39
The interpolation lemma
❑
◼
❑
◼
◼
❑
◼ ⊨
◼
40
Interpolation lemma: example
❑ ⊨
◼
❑ ⊭
❑
◼
41
Agenda
42
Why not HTML or XML ?2
Resource description framework3
The semantic web stack1
RDF Schema4
Motivation for RDFS
❑
❑
◼
❑
❑
43
Example of a simple RDFS ontology
44
RDFS
RDFS basic ideas
❑
◼
◼
◼
◼
❑
❑
◼
http://www.w3.org/2000/01/rdf-schema#>
45
RDFS main constructs
46
Construct (construct type) Syntactic form Description
Class (a class) C rdf:type rdfs:Class C (a resource) is an RDF class
Property (a class) P rdf:type rdf:Property P (a resource) is an RDF property
type (a property) I rdf:type C I (a resource) is an instance of C (a class)
subClassOf (a property) C1 rdfs:subClassOf C2 C1 (a class) is a subclass of C2 (a class)
subPropertyOf (a property) P1 rdfs:subPropertyOf P2 P1 (a property) is a sub-property of P2 (a property)
domain (a property) P rdfs:domain C domain of P (a property) is C (a class)
range (a property) P rdfs:range C range of P (a property) is C (a class)
Defining classes and instances
❑
❑
47
Defining classes and instances ./.
❑
❑
◼
◼
❑
48
More on RDFS classes
❑
❑
❑
❑
49
Subsumption
❑
❑
∧
❑
50
Class hierarchy and instances
❑
∧
❑
51
Example of hierarchy with corresponding triples
52
Defining Properties
❑
❑
❑
53
Range and domain of properties
❑
❑
54
Range and domain inference rules
❑
∧
❑
∧
❑
55
Specialization of properties
❑
❑
∧
56
Complex cases for range and domain of properties
57
Multiple range or domain statements
❑
❑
❑
58
❑
❑
◼
◼
◼
❑
◼
◼
59
RDFS Semantics
❑
◼
◼
◼
❑
◼
◼
61
Revisiting the example from chapter 1
62
(example after Paulheim, Semantic Web Technologies)
Revisiting the example from chapter 1
✓
✓
✓
✗
✗
✗
❑
63
(example after Paulheim, Semantic Web Technologies)
More on the limitations of RDFS
❑
❑
❑
❑
❑
64
(after Antoniou and Van Harmelen 2004)
Summary
❑
❑
❑
❑
❑
65
Annex : RDF/RDFS entailment patterns
If S contains: then S RDF(S)_entails :
rdfD1 a p "v"^^d . a p _:b . _b rdf:type d .
rdfD2 a p b . p rdf:type rdf:Property .
rdfs1 any IRI a in D a rdf:type rdfs:Datatype .
rdfs2p rdfs:domain x .
a p b .a rdf:type x .
rdfs3p rdfs:range x .
a p b .b rdf:type x .
rdfs4a a p b . a rdf:type rdf:Resource .
rdfs4b a p b . b rdf:type rdf:Resource .
rdfs5p rdfs:subPropertyOf q .
q rdfs:subPropertyOf r .p rdfs:subPropertyOf r .
rdfs6 a rdf:type rdf:Property . a rdfs:subPropertyOf a .
rdfs7rdfs:subPropertyOf q .
a p b.a q b .
rdfs8 c rdf:type rdfs:Class . c rdfs:subClassOf rdf:Resource .
rdfs9c rdfs:subClassOf d .
a rdf:type c.a rdf:type d .
rdfs10 c rdf:type rdfs:Class . c rdfs:subClassOf c .
rdfs11c rdfs:subClassOf d .
d rdfs:subClassOf e .c rdfs:subClassOf e .
rdfs12 rdf:type rdfs:ContainerMembershipProperty . p rdfs:subPropertyOf rdfs:member .
rdfs13 d rdf:type rdfs:Datatype . d rdfs:subClassOf rdfs:Literal .
66
References
❑
❑
67
THANK YOU
68