Sparql 从statistics.gov.scot获取可用层次结构列表

Sparql 从statistics.gov.scot获取可用层次结构列表,sparql,opendata,Sparql,Opendata,我感兴趣的是从中获取可用的不同层次结构的列表。我想列出的最佳层次结构如下: 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 可通过API的部分获得

我感兴趣的是从中获取可用的不同层次结构的列表。我想列出的最佳层次结构如下:

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
可通过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
前缀sdmx:
选择不同的?框架
在哪里{
?sdmx:Refrea?框架。
}限制10
我在网上试着:

PREFIX fits: <http://statistics.gov.scot/def/hierarchy/best-fit#>
SELECT DISTINCT ?framework 
WHERE {
    ?a fits ?framework .
} LIMIT 10
前缀匹配:
选择不同的?框架
在哪里{
一个合适的框架。
}限制10
但是这种语法自然是不正确的。

从开始,您可以这样做--

描述
然后,根据这些结果,你可以尝试类似的方法,这些方法的结果并不完全符合你的要求,但可能会更好--

前缀rdfs:
选择?层次结构
?标签
哪里
{?层次结构rdfs:subpertyof
;rdfs:标签?标签
}

如果对象B通过某个对象属性链接到对象A,如何获取对象B的数据属性。就像在我的案例中,汽车和注册是两个类,汽车有注册对象属性。注册数据包含财产注册号。所以我想得到注册号值和汽车的数据属性?Thanks@MohsinSaeed-这就是我们所说的“新问题”,拜托。
DESCRIBE <http://statistics.gov.scot/def/hierarchy/best-fit#country>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT  ?hierarchy
        ?label
WHERE
  { ?hierarchy  rdfs:subPropertyOf  <http://statistics.gov.scot/def/hierarchy/best-fit>
             ;  rdfs:label          ?label
  }