6
我想查询American Physicsts并获得物理学家名单。我怎样才能做到这一点?使用SPARQL从DBpedia获取美国物理学家名单
我想查询American Physicsts并获得物理学家名单。我怎样才能做到这一点?使用SPARQL从DBpedia获取美国物理学家名单
的,你需要看起来像这样SPARQL ....
PREFIX category: <http://dbpedia.org/resource/Category:>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT *
WHERE {
?s dcterms:subject category:American_physicists .
}
看到的结果here
如果你想与一些额外的谓词列表,你需要使用变量?s
加入更多的三模式。例如,要检索生日对于每个物理学家...
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