0
这是我的sparql查询来获取所有国家名称与该国家的一些财产。sparql查询没有返回所需的输出
SELECT distinct ?country ?capital ?currency ?lat ?long
WHERE {
?country rdf:type dbo:Country .
?country dbo:capital ?capital .
?country dbo:currency ?currency .
?country geo:lat ?lat.
?country geo:long ?long.
}
ORDER BY ?country
但问题是,有些国家失踪,如“瑞士”。你去http://dbpedia.org/page/Switzerland这个页面,你会看到它的类型是国家。你也不会找到确切的“奥地利”而不是“奥地利_Empire”。为什么?有一个名为“奥地利”的实体,它是dbo:国家类型。
可选是要走的路。 – chile