한국어 디비피다아 Sparql은 아래 URL로 접근 가능하다.
http://ko.dbpedia.org/sparql
1. 한국어 Sparql 활용 예제 1
장소 프로퍼티를 가지고 있는 아티클 100개를 가져온다.
select * where { ?s <http://ko.dbpedia.org/property/장소> ?o } LIMIT 100
2. 한국어 Sparql 활용 예제 2
대한 민국을 국적으로 가지고 있는 사람을 모두 가져온다.
PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbp: <http://ko.dbpedia.org/property/> PREFIX res: <http://ko.dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select * where { ?s rdf:type foaf:Person. ?s <http://ko.dbpedia.org/property/국가> '대한민국'@ko. }
3. 한국어 Sparql 활용 예제 3
생년월일과 사망일, 그리고 국적 정보가 함께있는 모든 사람을 가져온다.
PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbp: <http://ko.dbpedia.org/property/> PREFIX res: <http://ko.dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select count(*) where { ?s rdf:type foaf:Person. {?s dbp:출생일 ?Bdate.} UNION {?s dbp:사망일 ?Ddate.} ?s dbo:abstract ?abstract. ?s dbp:국적 ?nation. }