Difference between revisions of "MatVoc:BENTEN"

From matvoc.nims.go.jp
Jump to navigation Jump to search
m (1126f853-a65d-4e9d-976d-d293bab62975 moved page MatVoc:XAFS DB to MatVoc:BENTEN)
 
(No difference)

Latest revision as of 02:55, 7 June 2021

1回以上 has broader (P8) を辿ることにより NIMS XAFS DB Project Materials Dictionary (Q713) にたどり着けるリンクを持つ語を抽出し、それについて以下の結果を返します:

  1. Item ID
  2. 英語主ラベル
  3. 日本語主ラベル
  4. 化学式
  5. 英語別名一覧 (縦棒 | 区切り)
  6. 日本語別名一覧 (縦棒 | 区切り)
SELECT ?item ?enlabel ?jalabel ?chemformula ?enaliases ?jaaliases WHERE {
  ?item wdt:P8+ wd:Q713.
  OPTIONAL {
    ?item rdfs:label ?enlabel.
    FILTER((LANG(?enlabel)) = "en")
  }
  OPTIONAL {
    ?item rdfs:label ?jalabel.
    FILTER((LANG(?jalabel)) = "ja")
  }
  OPTIONAL { ?item wdt:P47 ?chemformula . }
  OPTIONAL {
    SELECT ?item (GROUP_CONCAT(DISTINCT ?enalias; SEPARATOR = "|") AS ?enaliases) WHERE {
      ?item skos:altLabel ?enalias.
      FILTER((LANG(?enalias)) = "en")
    }
    GROUP BY ?item
  }
  OPTIONAL {
    SELECT ?item (GROUP_CONCAT(DISTINCT ?jaalias; SEPARATOR = "|") AS ?jaaliases) WHERE {
      ?item skos:altLabel ?jaalias.
      FILTER((LANG(?jaalias)) = "ja")
    }
    GROUP BY ?item
  }
}
ORDER BY ?item

▶️ Try it!