-
Notifications
You must be signed in to change notification settings - Fork 1
/
slides.vroom
188 lines (129 loc) · 3.81 KB
/
slides.vroom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# Run `vroom --vroom` to start the show!
---- config
# Basic config options.
title: Intro to the Semantic Web
indent: 5
height: 18
width: 69
skip: 0
#skip: 100
#vimrc: |
# echo "test"
# The following options are for Gvim usage.
# vim: gvim
# gvimrc: |
# set fuopt=maxhorz,maxvert
# set guioptions=egmLtT
# set guifont=Bitstream_Vera_Sans_Mono:h18
# set guicursor=a:blinkon0-ver25-Cursor
# colorscheme default
---- center
Introduction to the
Semantic Web
by zaki
2012-01-26
----
== Introduction
What?
A collection of technologies for organizing data and
their relationships with other data in a machine-readable
format.
+
It's all about metadata.
----
Relational model? SQL?
+
- Relational DBs use tables
rows and columns, strict set of data per entity,
need ORMs to help think about extensions
+
- Semantic Web tech uses graphs [1]
allows for looser data
- missing values,
- multiple relationships per entity
[1]: a simplification, actually a hypergraph
<http://www.appzdata.com/fyd/2011/08/28/rdf-is-not-a-directed-labeled-graph/>
---- center
graph -> explore the data
----
== RDF: Resource Description Framework
model for representing relatioships
based on sets of triples
[subject] [predicate] [object]
+ e.g.
[earth_sky] [has_color] [color_blue]
+ except RDF uses URIs as identifiers.
----
RDF is not a file format
multiple serializations, e.g.:
- XML (cumbersome to write by hand)
- Turtle & N3 (newer)
Turtle is the simplest
----
It looks like this:
----------------------------------------------------------
| @prefix dc: <http://purl.org/dc/elements/1.1/> . |
| |
| <http://cougarcs.com/> dc:title "CougarCS". |
| <http://www.uh.edu/> dc:title "University of Houston". |
----------------------------------------------------------
----
----------------------------------------------------------
| @prefix dc: <http://purl.org/dc/elements/1.1/> . |
| |
| <http://cougarcs.com/> dc:title "CougarCS". |
| <http://www.uh.edu/> dc:title "University of Houston". |
----------------------------------------------------------
The @prefix part refers to a namespace that is expanded.
------------------------------------------------------------------
| <http://cougarcs.com/> <http://purl.org/dc/elements/1.1/title> |
| "CougarCS". |
------------------------------------------------------------------
----
As a graph this would be:
-------------------------------------------------------
| -------------------------- dc:title ------------ |
| | <http://cougarcs.com/> | ----------> | CougarCS | |
| -------------------------- ------------ |
-------------------------------------------------------
----
<http://purl.org/dc/elements/1.1/>
- URI for the Dublin Core metadata standard
- defines a vocabulary for describing works
title, creator, subject, description, publisher,
contributor, date, type, format, identifier, source,
language, relation, coverage, rights
- digital libraries!
---- center
What else?
Just storing data?
----
SPARQL:
SPARQL Protocol and RDF Query Language
(yes, it's recursive)
---- center
DBpedia
<http://dbpedia.org/>
----
== Examples
<http://wiki.dbpedia.org/OnlineAccess#h28-5>
---- center
DBtune
<http://dbtune.org/>
----
SPARQL examples:
<url:ex01.rq>
<url:ex02.rq>
<url:query.pl>
----
The Linking Open Data cloud diagram
<http://richard.cyganiak.de/2007/10/lod/>
Lots of datasets!!!
----
Further information
Semantic Web wiki
<http://semanticweb.org/wiki/Main_Page>
Linked Data
<http://linkeddata.org/>
SPARQL By Example: A Tutorial
<http://www.cambridgesemantics.com/2008/09/sparql-by-example/>