尝试获取慈善组织的名称及其位置-SPARQL
Trying to get the name of charity organisations with their locations-SPARQL
我正在尝试创建一个 SPARQL 查询,它从 DBpedia 获取慈善组织及其位置。
这是 link 一个慈善机构 -- http://dbpedia.org/page/Stonewall_(charity)。
我正在尝试获取所有存在的慈善机构的名称和位置。
我想检索 dbp:name
和 dbo:headquarter
。
你可以试试这个:
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
我正在尝试创建一个 SPARQL 查询,它从 DBpedia 获取慈善组织及其位置。
这是 link 一个慈善机构 -- http://dbpedia.org/page/Stonewall_(charity)。
我正在尝试获取所有存在的慈善机构的名称和位置。
我想检索 dbp:name
和 dbo:headquarter
。
你可以试试这个:
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