如何从DBpedia获得英国和英国之间的关系? [英] How to get the relationship between United Kingdom and England from DBpedia?

查看:49
本文介绍了如何从DBpedia获得英国和英国之间的关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写SPARQL查询来获得英国和英格兰之间的关系,但没有成功:没有返回任何结果,如您所见解决方案

您的查询正确.如果没有结果,就没有这种关系.

DBpedia源自Wikipedia上的可用结构化数据. http://en.wikipedia.org/wiki/England 在连接英格兰和英国的权利.如果您在浏览器中查找资源,例如 http://dbpedia.org/resource/England ,您将获得有关该资源的所有已知信息.>

I'm trying to write a SPARQL query to obtain the relationship between the United Kingdom and England with no success: no result is returned, as you can see here:

SELECT ?property  
WHERE {
  <http://dbpedia.org/resource/England> ?property <http://dbpedia.org/resource/United_Kingdom>
}

Any suggestion? Is there any mistake between in the SPARQL query? How can I find through DBpedia that England is in the UK?

解决方案

Your query is correct. If you get no results, there is no such relationship.

DBpedia is derived from available structured data on Wikipedia. http://en.wikipedia.org/wiki/England shows no property in the Infobox on the right that links England to the UK. If you look up a resource in your browser, e.g. http://dbpedia.org/resource/England, you get all information known about the resource.

这篇关于如何从DBpedia获得英国和英国之间的关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆