Information Model

The Information Model used to describe devices (also referred to as “Things”) is the one defined by Web-of-Things where the Edge Compute Platform follows the Mozilla Web Thing API which is derived from the W3C Web of Things Architecture.

Background

The Thing description is used to store configuration details. The associated (REST) API can be used to retrieve property values, request actions, etc.

Example

Example of a Thing description for a Virtual Meter:

{
  "@context": [    
   "https://www.w3.org/2019/wot/td/v1",
   {
     "swx": "https://swx.altairone.com/schemas"
   }
],
  "@type": [
    "swx:Meter",
    "swx:Virtual"
],
  "id": "/things/MyVirtualMeter",
  "title": "My Virtual Meter",
  "properties": {
    "UD_DTYPE_KWH_ODM": {
      "title": "UD_DTYPE_KWH_ODM",
      "description": "",
      "type": "number",
      "minimum": 50,
      "maximum": 100,
      "readOnly": true
    },
    "UD_DTYPE_KW_AVG": {
      "title": "UD_DTYPE_KW_AVG",
      "description": "",
      "type": "number",
      "minimum": 5,
      "maximum": 30,
      "readOnly": true
    },
    "dataUsagePollSecs": {
      "title": "Data Usage Poll Secs",
      "description": "",
      "type": "integer",
      "readOnly": false
    }
  }
}