【发布时间】:2017-12-28 21:39:16
【问题描述】:
我有兴趣从statistics.gov.scot 获取可用的不同层次结构的列表。我想列出的最合适的层次结构如下:
http://statistics.gov.scot/def/hierarchy/best-fit#community-health-partnership
http://statistics.gov.scot/def/hierarchy/best-fit#council-area
http://statistics.gov.scot/def/hierarchy/best-fit#country
可通过this sample geography 的API 部分获得。
期望的结果
我希望返回所需的结果:
community-health-partnership
council-area
country
我如何构建实际会产生该查询的查询,我可以通过以下方式获取所有可用地区的列表:
PREFIX sdmx: <http://purl.org/linked-data/sdmx/2009/dimension#>
SELECT DISTINCT ?framework
WHERE {
?a sdmx:refArea ?framework .
} LIMIT 10
我正在尝试一些东西:
PREFIX fits: <http://statistics.gov.scot/def/hierarchy/best-fit#>
SELECT DISTINCT ?framework
WHERE {
?a fits ?framework .
} LIMIT 10
但这种语法自然是不正确的。
【问题讨论】: