小编Add*_*ore的帖子

访问属性的属性

我有以下查询,我在wikidata 查询服务 Web 界面上运行

SELECT ?objectLabel ?mass
WHERE {
  ?object wdt:P397 wd:Q525.  # the object should have the sun as parent astronomical body
  ?object wdt:P31 ?status.
  ?object wdt:P2067 ?mass.

  # Here are the accepted object status
  VALUES ?status {wd:Q128207 wd:Q121750 wd:Q1319599}.  # terrestrial planet, gas giant, ice giant

  # automatically use the english label for ?xLabel variables 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} 
Run Code Online (Sandbox Code Playgroud)

我发现质量以特定单位给出,在地球的情况下为 yottagram。我怎样才能访问这些信息?

我尝试添加如下内容:

?mass   wdt:P2237 ?mass_unit. …
Run Code Online (Sandbox Code Playgroud)

sparql triplestore triples wikidata

5
推荐指数
1
解决办法
256
查看次数

标签 统计

sparql ×1

triples ×1

triplestore ×1

wikidata ×1