Querying Dbpedia by DBO - SPARQL

こ雲淡風輕ζ 提交于 2019-12-02 08:21:10

In DBpedia, an entity page displays statements in which an entity may be not only a subject, but also an object. In the latter case, respective property appears as "is ... of".

Conversely, the page you have linked to says that dbr:Diageo is dbo:manufacturer of dbr:Johnnie_Walker etc. This means that dbr:Johnnie_Walker dbo:manufacturer dbr:Diageo holds, not that dbr:Diageo dbo:manufacturer dbr:Johnnie_Walker does.

By the way, rdfs:range of dbo:manufacturer is dbo:Organization.

Thus, you should looking for triples that match reversed pattern:

SELECT * WHERE { ?variable dbo:manufacturer ?dbr:Diageo . }

Or, using property paths:

SELECT * WHERE { dbr:Diageo ^dbo:manufacturer ?variable . }

Try it on DBpedia

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!