Skip to content

Instantly share code, notes, and snippets.

@helxsz
Forked from dpjanes/hue-light.jsonld
Created February 17, 2017 04:07
Show Gist options
  • Save helxsz/87c04c59b85ef33eb5d6082a8dd2e76b to your computer and use it in GitHub Desktop.
Save helxsz/87c04c59b85ef33eb5d6082a8dd2e76b to your computer and use it in GitHub Desktop.
JSON-LD Description of Hue Light
{
"@context": {
"@base": "file:///hue-light",
"@vocab": "file:///hue-light#",
"iot": "https://iotdb.org/pub/iot#",
"iot-attribute": "https://iotdb.org/pub/iot-attribute#",
"schema": "http://schema.org/"
},
"@id": "",
"@type": "iot:Model",
"schema:name": "Hue Light",
"schema:description": "Philips Hue colored light",
"iot:attribute": [
{
"@type": "iot:Attribute",
"iot:purpose": "iot-attribute:on",
"@id": "#on",
"schema:name": "on",
"iot:type": "iot:boolean",
"iot:role": "iot-attribute:role-control"
},
{
"@type": "iot:Attribute",
"iot:purpose": "iot-attribute:color",
"@id": "#color",
"schema:name": "color",
"iot:type": "iot:string",
"iot:format": "iot:color",
"iot:role": "iot-attribute:role-control"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment