Skip to content

Instantly share code, notes, and snippets.

@dpjanes
Last active May 2, 2019 01:36
Show Gist options
  • Save dpjanes/3e93aeaee274a8d6c82c to your computer and use it in GitHub Desktop.
Save dpjanes/3e93aeaee274a8d6c82c to your computer and use it in GitHub Desktop.
HueLight JSON-LD
{
"@context": {
"@base": "file:///hue-light",
"@vocab": "file:///hue-light#",
"iot": "https://iotdb.org/pub/iot#",
"schema": "http://schema.org/",
"iot-attribute": "https://iotdb.org/pub/iot-attribute#"
},
"@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