Trying to get the name of charity organisations with their locations-SPARQL

烂漫一生 提交于 2019-12-25 18:24:56

问题


I am trying to create a SPARQL query which gets the charity organisations and their location from DBpedia.

Here is the link to one charity -- http://dbpedia.org/page/Stonewall_(charity).

I am trying to get all the charities that exist with the names and location.

I want to retrieve dbp:name along with dbo:headquarter.


回答1:


You could try this:

select distinct ?name (group_concat(?headquarter;separator=",")) where 

{?s a dbo:Organisation.
?s dbo:status "Charity".
?s dbp:name ?name.
?s  dbo:headquarter/rdfs:label ?headquarter } 

LIMIT 100


来源:https://stackoverflow.com/questions/41774220/trying-to-get-the-name-of-charity-organisations-with-their-locations-sparql

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