Skip to content

Instantly share code, notes, and snippets.

@dpjanes
Last active May 2, 2019 01:35
Show Gist options
  • Save dpjanes/5481c1700bfcc0f168d0 to your computer and use it in GitHub Desktop.
Save dpjanes/5481c1700bfcc0f168d0 to your computer and use it in GitHub Desktop.
{
"@context": {
"@base": "http://example.com/th",
"@vocab": "http://example.com/th",
"iot": "https://iotdb.org/pub/iot#",
"schema": "http://schema.org/",
"iot-attribute": "https://iotdb.org/pub/iot-attribute#"
},
"@type": "iot:Model",
"iot:attribute": [
{
"@type": "iot:Attribute",
"iot:purpose": "iot-attribute:sensor.temperature",
"@id": "#temperature",
"schema:name": "ambient temperature",
"iot:type": "iot:number",
"iot:unit": "iot-unit:temperature.metric.celsius",
"iot:role": "iot-attribute:role-reading"
},
{
"@type": "iot:Attribute",
"iot:purpose": "iot-attribute:latitude",
"@id": "#latitude",
"schema:name": "longitude",
"iot:type": "iot:number"
},
{
"@type": "iot:Attribute",
"iot:purpose": "iot-attribute:longitude",
"@id": "#longitude",
"schema:name": "longitude",
"iot:type": "iot:number"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment