Professional Documents
Culture Documents
DBpedia
http://DBpedia.org/
http://wiki.DBpedia.org/Datasets2014/DatasetStatistics
13
14
http://en.wikipedia.org/wiki/Steve_Jobs
2) Change it to DBpedia URI
http://DBpedia.org/resource/Steve_Jobs
3) Use SPARQL on DBpedia SPARQL Endpoint
15
16
17
18
select distinct ?s ?p ?o
where {
?s rdf:type foaf:Person .
?s ?p ?o .
} LIMIT 1000
19
Quiz (1)
Find soccer players who were born in South Korea (or in your
home country)
20
Answer (1)
select distinct ?s
where {
?s rdf:type foaf:Person .
?s a dbo:SoccerPlayer .
?s dbp:birthPlace dbr:South_Korea .
} order by ASC(?s)
rdf:type = a
21
22
23
24
25
26
Quiz (2)
Find companies on DBpedia which are located in South Korea
27
Answer (2)
select *
where {
?company_name rdf:type <http://DBpedia.org/ontology/Company> .
?company_name dbo:location dbr:South_Korea .
}
order by ASC(?company_name)
28
29
}
^^xsd:integer = data type
30
31
32
33
34
dbo:Game
dbo:Animal
dbo:Region
dbo:Book
dbo:Religious
dbo:City
dbo:Song
dbo:College
dbo:Mountain
dbo:Disease
dbo:Musical
dbo:Economist
dbo:Stream
dbo:Firm
dbo:Theatre
dbo:Food
dbo:Tower
35
DBO:City example
Search for cities in South Korea (dbr:South_Korea)
36
DBO:City example
select ?s
where {
?s a dbo:City.
?s dbo:country dbr:South_Korea
}
37
38
URL :
http://lov.okfn.org/
dataset/lov
39
40
41
42