2011-06-12 2 views
10

에 대한이 적어도 10 가지의 설명의 목록을 반환쿼리 DBpedia (SPARQL과) 영어로만 설명 나는이 SPARQL 쿼리와 빅 벤의 설명은 dbpedia.org를 조회하고있어

select ?desc 
where { 
<http://dbpedia.org/resource/Big_Ben> <http://www.w3.org/2000/01/rdf-schema#comment> ?desc 
} 

언어. 영어 설명 만 원한다고 어떻게 지정합니까? 당신이 알아야 할

+0

. Big Ben URI (정확히 일치 함)를 찾을 수있는 방법 –

+0

관련 질문 : http://stackoverflow.com/questions/6747019/how-get-dbpedia-data-in-a-specific-language –

답변

18

키는이 작업을 수행 할 수 있도록 STR()와 랭() 값의 간격 텍스트와 언어를 당겨 점이다 : BTW

select str(?desc) 
where { 
    <http://dbpedia.org/resource/Big_Ben> <http://www.w3.org/2000/01/rdf-schema#comment> ?desc 
    FILTER (langMatches(lang(?desc),"en")) 
} 
관련 문제