Beruflich Dokumente
Kultur Dokumente
March 2011
Outline
2
Introduction
Semantic Web Technologies
Resource Description Framework (RDF)
Querying RDF data (SPARQL)
Linked Data
Linked Data Principles
Linking Open Data Community Project
Example Data Sources
Example Applications
Introduction
Web of Documents vs. Web of Data
Web of Documents
4
Untyped
Links
Untyped
Links
Untyped
Links
HTML
HTML
HTML
API/
XML
thing
?
thing
?
?
Untyped
Links
Untyped
Links
Untyped
Links
HTML
HTML
HTML
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
API/
XML
Example Query
6
Elvis Presley
1935 - 1977
Will there ever be someone like him again?
Based on presentation by Lauw, Schenkel, Suchanek, Theobald and Weikum, available at http://www.mpi-inf.mpg.de/yago-naga/CIKM10-tutorial/
Example Query
7
Another Elvis
Based on presentation by Lauw, Schenkel, Suchanek, Theobald and Weikum, available at http://www.mpi-inf.mpg.de/yago-naga/CIKM10-tutorial/
Example Query
8
Based on presentation by Lauw, Schenkel, Suchanek, Theobald and Weikum, available at http://www.mpi-inf.mpg.de/yago-naga/CIKM10-tutorial/
Example Query
9
Based on presentation by Lauw, Schenkel, Suchanek, Theobald and Weikum, available at http://www.mpi-inf.mpg.de/yago-naga/CIKM10-tutorial/
Example Query
10
Integrate all the data, join the facts that come from
heterogeneous sources
thin
gthin
gthin
gthin
g
Typed
Links
thin
gthin
gthin
gthin
g
Typed
Links
thin
gthin
gthin
gthin
g
Typed
Links
thin
gthin
gthin
gthin
g
Web of Data
12
Typed
Links
thing
thing
thing
thing
Typed
Links
thing
thing
thing
thing
HTML
thing
thing
thing
thing
HTML
thing
thing
thing
thing
HTML
Typed
Links
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Introduction to
Semantic Web Technologies
Resource Description Framework (RDF)
Source: http://en.wikipedia.org/wiki/Semantic_Web
object
Renee Miller
Teaches
CSC443
Renee Miller
Lives in
Toronto
subject
<http://cs.toronto.edu/~miller>
predicate
<uri>
<http://xmlns.com/foaf/spec/#term_based_near>
object
<uri> or literal
<http://dbpedia.org/resource/Toronto>
or
<http://cs.toronto.edu/~miller>
<http://xmlns.com/foaf/spec/#term_based_near>
Toronto
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
foaf:based_near
dbpedia:Toronto
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
foaf:based_near
dbpedia:Toronto
bb:rjmiller = http://data.bibbase.org/author/renee-j-miller/
dbpedia:Toronto = http://dbpedia.org/resource/Toronto
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
4,753,120
dp:populationUrban
foaf:based_near
dbpedia:Toronto
skos:subject
skos:subject
dbpedia:Ottawa
dbpedia:Montreal
dp:Cities_in_Canada
skos:subject
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
foaf:based_near
dbpedia:Toronto
<?xml
<?xml version="1.0"?>
version="1.0"?>
<rdf:RDF
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/spec/#"
xmlns:foaf="http://xmlns.com/foaf/spec/#"
xmlns:bb="http://data.bibbase.org/ontology/">
xmlns:bb="http://data.bibbase.org/ontology/">
<rdf:Description
<rdf:Description rdf:about="http://.../author/renee-j-miller/">
rdf:about="http://.../author/renee-j-miller/">
<rdf:type
rdf:resource="http://xmlns.com/foaf/spec/#term_Person"/>
<rdf:type rdf:resource="http://xmlns.com/foaf/spec/#term_Person"/>
<foaf:name
<foaf:name xml:lang=en">Rene
xml:lang=en">Rene J.
J. Miller</foaf:name>
Miller</foaf:name>
<foaf:based_near
rdf:resource="
http://dbpedia.org/resource/Toronto
<foaf:based_near rdf:resource="http://dbpedia.org/resource/Toronto"/>
"/>
</rdf:Description>
</rdf:Description>
</rdf:RDF>
</rdf:RDF>
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
foaf:based_near
dbpedia:Toronto
@prefix
@prefix rdf:
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> ..
@prefix
@prefix foaf:
foaf: <http://xmlns.com/foaf/spec/#>
<http://xmlns.com/foaf/spec/#> ..
@prefix
@prefix bb:
bb: <http://data.bibbase.org/ontology/>
<http://data.bibbase.org/ontology/> ..
<http://data.bibbase.org/author/renee-j-miller/>
<http://data.bibbase.org/author/renee-j-miller/>
rdf:type
rdf:type foaf:person
foaf:person ..
foaf:name
foaf:name Rene
Rene J.
J. Miller@en
Miller@en ;;
foaf:based_near
foaf:based_near <<http://dbpedia.org/resource/Toronto
http://dbpedia.org/resource/Toronto>>
rdf:type
bb:renee-j-miller
foaf:name
foaf:Person
Rene J. Miller
foaf:based_near
dbpedia:Toronto
<p
<p about="http://.../author/renee-j-miller">The
about="http://.../author/renee-j-miller">The author
author
<span
property=foaf:name
lang=en>Rene
J.
Miller</span>
<span property=foaf:name lang=en>Rene J. Miller</span>
lives
lives in
in the
the city
city
<span
rel=foaf:based_near
<span rel=foaf:based_near resource="http:///Toronto">Toronto</span>
resource="http:///Toronto">Toronto</span>
</p>
.
</p> .
Introduction to
Semantic Web Technologies
Storing & Querying RDF
Its like saving data into file system, instead of using a DBMS,
although its still data so it can be retrieved and processed by
crawlers (machines)
StmtIterator
StmtIterator iter=model.listStatements(subject,null,null);
iter=model.listStatements(subject,null,null);
while(iter.hasNext())
while(iter.hasNext()) {{
st
st == iter.next();
iter.next();
pp == st.getProperty();
st.getProperty(); oo == st.getObject();
st.getObject();
do_something(p,o);
}
do_something(p,o); }
StmtIterator
StmtIterator iter=model.listStatements(subject,null,null);
iter=model.listStatements(subject,null,null);
while(iter.hasNext())
while(iter.hasNext()) {{
st
st == iter.next();
iter.next();
pp == st.getProperty();
st.getProperty(); oo == st.getObject();
st.getObject();
do_something(p,o);
do_something(p,o);
?p
?p
subject
subject
?o
?o
?o
?o
?p
?o
?o
?p
?o
?o
SELECT
SELECT ?p
?p ?o
?o
WHERE
WHERE {subject
{subject ?p
?p ?o}
?o}
?p
?p
subject
subject
?o
?o
?o
?o
?p
?o
?o
?p
?o
?o
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency. }}
a:name
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency. }}
Returns: [<409X>,33,:]
a:name
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency. }}
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency. }}
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency. }}
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
Pattern constraints
34
SELECT
SELECT ?isbn
?isbn ?price
?price ?currency
?currency ## note:
note: not
not ?x!
?x!
WHERE
{
?isbn
a:price
?x
.
WHERE { ?isbn a:price ?x .
?x
?x rdf:value
rdf:value ?price
?price ..
?x
?x p:currency
p:currency ?currency.
?currency.
FILTER(?currency
FILTER(?currency ==
== :)
:) }}
a:author
Ghosh,
Ghosh, Amitav
Amitav
a:author
http://isbn/000651409X
http://isbn/000651409X
a:price
rdf:value
33
33
p:currency
:
:
http://isbn/2020386682
http://isbn/2020386682
a:price
rdf:value
50
50
a:price
p:currency
:
:
rdf:value
60
60
p:currency
:
:
a:price
rdf:value
78
78
p:currency
:$
:$
SP
Con
ARQL
struct
SPARQL Processor
SPARQL Endpoint
Constr
uct
R
L,
DD
GR
a
DF
NLP Techniques
SPARQ
L
Database
SQL
RDF
Application
RD
Fa
Triple store
SPARQL Endpoint
37
Relational
Database
RDF Graph
HTML
Unstructured Text
XML/XHTML
http://www.w3.org/TR/rdf-schema/
How to use RDF to describe RDF vocabularies
Linked Data
Linked Data Principles
Linking Open Data Community Project
Linked Data
40
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Overall Statistics
Triples #: 7.7 billion
Links (external) #: 142 million
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Linking Open Data cloud diagram, by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/
Data is self-describing
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Linked Data
Example Linked Data Sources
Example Applications
DBpedia
52
Information Extraction
54
Penn
U Penn
Sean Penn
University of
Pennsylvania
Penn State
Pennsylvania
State University
PSU
Pennsylvania
(US State)
Passenger
Service Unit
Based on presentation by Lauw, Schenkel, Suchanek, Theobald and Weikum, available at http://www.mpi-inf.mpg.de/yago-naga/CIKM10-tutorial/
DBpedia Data
55
Figures from: Christian Becker, Christian Bizer: DBpedia Mobile: A Location-Enabled Linked Data Browser. LDOW 2008
Freebase
58
Freebase Interface
59
Freebase snapshot
Freebase Data
60
Freebase Data
61
Freebase Applications
62
LinkedMDB
64
The first Linked Data source dedicated to movies and movierelated information
Meta-data about how the links are discovered are published in the
form of Linked Data
Automaticallygenerated quiz
about your favorite
actor or actress
Try it out:
http://10k.aneventapart.com/
Uploads/310/
Part of the Linking Open Drug Data Project under W3Cs Health Care
and Life Sciences (HCLS) task force
Online registry of clinical trials conducted in the United States and around the
world
Published in XML
See: Enabling Tailored Therapeutics with Linked Data By A. Jentzsch et al. at LDOW2010
BibBase
67
Goals
BibBase
68
BibBase
69
(from http://www.cs.toronto.edu/~miller)
BibBase
70
Browsing
Searching
http://browse.semanticweb.org/
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Marbles
77
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
78
79
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Google
Facebook
Based on presentations by Chris Bizer, Richard Cyganiak, Tom Heath, available at http://linkeddata.org/guides-and-tutorials
Note: Watson was not connected to the Internet during the game, so the (linked) data has been used offline.
Source: Chris Weltys talk at ISWC2010 &
IBM China Research Labs DeepQA home page http://www.research.ibm.com/deepqa/china_research_lab.shtml
Also see Weltys talk at ISWC 2007: http://videolectures.net/iswc07_welty_hiwr/
http://people.csail.mit.edu/pcm/SemWebTutorial.html
References
85
http://linkeddata.org