2011-09-14 3 views

답변

10

SPARQL은 ....

PREFIX category: <http://dbpedia.org/resource/Category:> 
PREFIX dcterms: <http://purl.org/dc/terms/> 

SELECT * 
WHERE { 
    ?s dcterms:subject category:American_physicists . 
} 

?s 변수를 사용하여 더 많은 트리플 패턴에 가입해야 결과 here

참조 . 예를 들어,

PREFIX category: <http://dbpedia.org/resource/Category:> 
PREFIX dcterms: <http://purl.org/dc/terms/> 
PREFIX dbpedia: <http://dbpedia.org/ontology/> 

SELECT * 
WHERE { 
    ?s dcterms:subject category:American_physicists . 
    ?s dbpedia:birthDate ?bithdate . 
} 

here

결과 ... 각 물리학의 생년월일을 검색 할