Skip to content

Latest commit

 

History

History
74 lines (67 loc) · 1.33 KB

query-entities.md

File metadata and controls

74 lines (67 loc) · 1.33 KB

Store

{
   "type":"store", "id":"urn:ngsi-ld:store:<UUID>",
   "temperature": {
      "type": "Property",
      "value": <RANDOM_NUMBER>
      },
   "humidity": {
      "type": "Property",
      "value": <RANDOM_NUMBER>
    },
   "open": {
     "type": "Property",
     "value": "true"
   },
   "owner": {
    "type": "Relationship",
    "object": "urn:ngsi-ld:owner:<RANDOM_OWNER_NAME>"
   },
   "@context": "https://fiware.github.io/data-models/context.jsonld"
}

Owner

{
    "@context": "https://fiware.github.io/data-models/context.jsonld",
    "id": "<ID>",
    "type": "owner",
    "name": {
        "type": "Property",
        "value": "<OWNER_NAME>"
    }
}

Product

{
    "@context": "https://fiware.github.io/data-models/context.jsonld",
    "id": "<ID>",
    "type": "product",
    "producer": {
        "type": "Property",
        "value": "<PRODUCER_NAME>"
    }
}

Inventory

{
     "@context": "https://fiware.github.io/data-models/context.jsonld",
    "id": "<ID>",
    "type": "inventory",
    "available": {
       "type": "Property",
      "value": <BOOLEAN>
     },
    "store": {
      "type": "Relationship",
      "object": "urn:ngsi-ld:store:<STORE_ID>"
    },
    "product": {
      "type": "Relationship",
      "object": "urn:ngsi-ld:product:<PRODUCT_ID"
    }
}