Json-ld

提供:TogoWiki

移動: 案内, 検索

JSON-LD

json-ld で linked data を表現しよう!とりあえず仕様を読もう! http://www.w3.org/TR/json-ld/


tips

「単位を持つ値を空白ノードと sio の has_measurement_value/has_unit/has_value と obo の unit ontology を使って表現する」を json-ld でやります。

 {
   "@context": {
     "obo": "http://purl.obolibrary.org/obo/",
     "sio": "http://semanticscience.org/resource/",
     "xsd": "http://www.w3.org/2001/XMLSchema#",
   },
   "@id": "idOfSomething",
   "sio:SIO_000216": {
     "@type": "someDataType",
     "sio:SIO_000221": "obo:UO_0000244",
     "sio:SIO_000300": {
       "@value": 10,
       "@type": "xsd:integer"
     }
   }
 }


  • sio:SIO_000216: "has_measurement_value"
  • sio:SIO_000221: "has_unit"
  • obo:UO_0000244: "base pair"
  • sio:SIO_000300: "has_value"
/mw/Json-ld」より作成