1
我试图使用Fuseki在本地本体上运行SPARQL查询,但我无法获得任何结果。我的本体包含了像这样的国家的名单:SPARQL查询不会给出任何结果
### http://localhost:2020/country/6
<http://localhost:2020/country/6> rdf:type <http://localhost:2020/vocab/country> , owl:NamedIndividual ;
rdfs:label "country #6" ;
<http://localhost:2020/vocab/country_id> 6 ;
<http://localhost:2020/vocab/country_name_nl> "Nederland" ;
<http://localhost:2020/vocab/country_code> "nl" .
和属性像这样的:
### http://localhost:2020/vocab/country_code
<http://localhost:2020/vocab/country_code> rdfs:label "country code" .
测试查询我试图运行是:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?name WHERE {?name rdfs:type <http://localhost:2020/vocab/country>} LIMIT 50
为什么这不是给我一个国家的名单吗?我得到一个空的“名称”列而不是
不要忘记你可以接受你自己的答案(在一天左右) – RobV
@RobV感谢,我将设置一个提醒:) – Tumtum