Skip to content

Commit

Permalink
Simplified the context definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-doyle committed Sep 12, 2018
1 parent 756ec3a commit aee450c
Show file tree
Hide file tree
Showing 92 changed files with 1,034 additions and 4,136 deletions.
50 changes: 10 additions & 40 deletions definitions/Agri-Crop.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,16 @@ The following NGSI-LD context definition applies to the **Agri Crop** entity

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"alternateName": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/alternatename",
"@type": "Property"
},
"agriSoil": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrisoil",
"@type": "Relationship"
},
"agriFertiliser": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrifertiliser",
"@type": "Relationship"
},
"agriPest": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agripest",
"@type": "Relationship"
},
"plantingFrom": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plantingfrom",
"@type": "Property"
},
"harvestingInterval": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/harvestinginterval",
"@type": "Property"
},
"wateringFrequency": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/wateringfrequency",
"@type": "Property"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"alternateName": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/alternatename",
"agriSoil": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrisoil",
"agriFertiliser": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrifertiliser",
"agriPest": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agripest",
"plantingFrom": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plantingfrom",
"harvestingInterval": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/harvestinginterval",
"wateringFrequency": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/wateringfrequency"
}
```
## Example of Agri Crop Entity
Expand Down
65 changes: 13 additions & 52 deletions definitions/Agri-Greenhouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,58 +28,19 @@ The following NGSI-LD context definition applies to the **Agri Greenhouse** enti

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"agriParcelParent": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelparent",
"@type": "Relationship"
},
"agriParcelChildren": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelchildren",
"@type": "Relationship"
},
"weatherObserved": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/weatherobserved",
"@type": "Relationship"
},
"waterQualityObserved": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/waterqualityobserved",
"@type": "Relationship"
},
"relativeHumidity": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/relativehumidity",
"@type": "Property"
},
"leafTemperature": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/leaftemperature",
"@type": "Property"
},
"co2": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/co2",
"@type": "Property"
},
"dailyLight": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dailylight",
"@type": "Property"
},
"drainFlow": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/drainflow",
"@type": "Property"
},
"devices": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices",
"@type": "Relationship"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"agriParcelParent": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelparent",
"agriParcelChildren": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelchildren",
"weatherObserved": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/weatherobserved",
"waterQualityObserved": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/waterqualityobserved",
"relativeHumidity": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/relativehumidity",
"leafTemperature": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/leaftemperature",
"co2": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/co2",
"dailyLight": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dailylight",
"drainFlow": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/drainflow",
"devices": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices"
}
```
## Example of Agri Greenhouse Entity
Expand Down
75 changes: 15 additions & 60 deletions definitions/Agri-Parcel-Operation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,66 +32,21 @@ The following NGSI-LD context definition applies to the **Agri Parcel Operation*

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"agriParcel": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcel",
"@type": "Relationship"
},
"operationType": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/operationtype",
"@type": "Property"
},
"result": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/result",
"@type": "Property"
},
"plannedStartAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plannedstartat",
"@type": "TemporalProperty"
},
"plannedEndAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plannedendat",
"@type": "TemporalProperty"
},
"operator": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/operator",
"@type": "Relationship"
},
"startedAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/startedat",
"@type": "TemporalProperty"
},
"endedAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/endedat",
"@type": "TemporalProperty"
},
"reportedAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/reportedat",
"@type": "TemporalProperty"
},
"agriProduct": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriproduct",
"@type": "Relationship"
},
"quantity": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/quantity",
"@type": "Property"
},
"waterSource": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/watersource",
"@type": "Property"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"agriParcel": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcel",
"operationType": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/operationtype",
"result": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/result",
"plannedStartAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plannedstartat",
"plannedEndAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/plannedendat",
"operator": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/operator",
"startedAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/startedat",
"endedAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/endedat",
"reportedAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/reportedat",
"agriProduct": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriproduct",
"quantity": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/quantity",
"waterSource": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/watersource"
}
```
## Example of Agri Parcel Operation Entity
Expand Down
60 changes: 12 additions & 48 deletions definitions/Agri-Parcel-Record.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,54 +30,18 @@ The following NGSI-LD context definition applies to the **Agri Parcel Record** e

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"agriParcel": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcel",
"@type": "Relationship"
},
"soilTemperature": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soiltemperature",
"@type": "Property"
},
"soilMoistureVwc": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soilmoisturevwc",
"@type": "Property"
},
"soilMoistureEc": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soilmoistureec",
"@type": "Property"
},
"airTemperature": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/airtemperature",
"@type": "Property"
},
"solarRadiation": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/solarradiation",
"@type": "Property"
},
"relativeHumidity": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/relativehumidity",
"@type": "Property"
},
"atmosphericPressure": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/atmosphericpressure",
"@type": "Property"
},
"devices": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices",
"@type": "Relationship"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"agriParcel": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcel",
"soilTemperature": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soiltemperature",
"soilMoistureVwc": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soilmoisturevwc",
"soilMoistureEc": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/soilmoistureec",
"airTemperature": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/airtemperature",
"solarRadiation": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/solarradiation",
"relativeHumidity": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/relativehumidity",
"atmosphericPressure": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/atmosphericpressure",
"devices": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices"
}
```
## Example of Agri Parcel Record Entity
Expand Down
60 changes: 12 additions & 48 deletions definitions/Agri-Parcel.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,54 +29,18 @@ The following NGSI-LD context definition applies to the **Agri Parcel** entity

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"area": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/area",
"@type": "Property"
},
"category": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/category",
"@type": "Property"
},
"agriParcelParent": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelparent",
"@type": "Relationship"
},
"agriParcelChildren": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelchildren",
"@type": "Relationship"
},
"agriCrop": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agricrop",
"@type": "Relationship"
},
"cropStatus": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/cropstatus",
"@type": "Property"
},
"lastPlantedAt": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/lastplantedat",
"@type": "TemporalProperty"
},
"agriSoil": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrisoil",
"@type": "Relationship"
},
"devices": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices",
"@type": "Relationship"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"area": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/area",
"category": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/category",
"agriParcelParent": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelparent",
"agriParcelChildren": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriparcelchildren",
"agriCrop": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agricrop",
"cropStatus": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/cropstatus",
"lastPlantedAt": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/lastplantedat",
"agriSoil": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agrisoil",
"devices": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices"
}
```
## Example of Agri Parcel Entity
Expand Down
25 changes: 5 additions & 20 deletions definitions/Agri-Pest.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,11 @@ The following NGSI-LD context definition applies to the **Agri Pest** entity

```JavaScript
{
"source": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"@type": "Property"
},
"dataProvider": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"@type": "Property"
},
"entityVersion": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"@type": "Property"
},
"alternateName": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/alternatename",
"@type": "Property"
},
"agriProduct": {
"@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriproduct",
"@type": "Relationship"
}
"source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
"dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
"entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
"alternateName": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/alternatename",
"agriProduct": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/agriproduct"
}
```
## Example of Agri Pest Entity
Expand Down
Loading

0 comments on commit aee450c

Please sign in to comment.