Skip to content

Commit

Permalink
Merge pull request #1623 from jason-fox/fix-ld-entities
Browse files Browse the repository at this point in the history
Allow to send to CB batch update for multimeasures for NGSI-LD
  • Loading branch information
fgalan authored Jun 26, 2024
2 parents 093c96f + 8de86c7 commit 237aaeb
Show file tree
Hide file tree
Showing 19 changed files with 482 additions and 1,012 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fix: service header to use uppercase in case of update and delete (#1528)
- Fix: Allow to send to CB batch update for multimeasures for NGSI-LD (#1623)
890 changes: 320 additions & 570 deletions lib/services/ngsi/entities-NGSI-LD.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws1",
"type": "WeatherStation",
"pressure": {
"type": "Property",
"value": 1040
Expand All @@ -9,10 +11,8 @@
"type": "Property",
"value": {
"@type": "Summary",
"@value": "Humidity NaN and pressure 1040"
"@value": "Humidity NaN and pressure 20800"
}
},
"id": "urn:ngsi-ld:WeatherStation:ws1",
"type": "WeatherStation"
}
}
]
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[
{
"@context": "http://context.json-ld",
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
}
},
"id": "urn:ngsi-ld:WeatherStation:ws1",
"pressure": {
"type": "Property",
"value": 1040
},
"type": "WeatherStation",
"weather": {
"type": "Property",
"value": {
"@type": "Summary",
"@value": "Humidity 6 and pressure 1040"
}
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws1",
"type": "WeatherStation",
"pressure": {
"type": "Property",
"value": 1040
},
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
}
},
"weather": {
"type": "Property",
"value": {
"@type": "Summary",
"@value": "Humidity 6 and pressure 20800"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws1",
"type": "WeatherStation",
"pressure": {
"type": "Property",
"value": 1040
Expand All @@ -9,10 +11,8 @@
"type": "Property",
"value": {
"@type": "Summary",
"@value": "Humidity NaN and pressure 1040"
"@value": "Humidity NaN and pressure 20800"
}
},
"id": "urn:ngsi-ld:WeatherStation:ws1",
"type": "WeatherStation"
}
}
]
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:GPS:gps1",
"type": "GPS",
"location": {
"type": "GeoProperty",
"value": {
"coordinates": [
13,
52
],
"type": "Point"
},
"observedAt": "1970-01-01T00:00:00.001Z"
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:GPS:gps1",
"type": "GPS",
"location": {
"type": "GeoProperty",
"value": {
"coordinates": [
13,
52
],
"type": "Point"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws4",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "52"
}
},
"type": "WeatherStation"
},
{
"@context": "http://context.json-ld",
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
}
},
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer"
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws4",
"type": "WeatherStation",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "52"
}
}
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:GPS:gps1",
"type": "GPS"
},
{
"@context": "http://context.json-ld",
"explicit": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws5",
"type": "WeatherStation"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
},
"type": "Higrometer"
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws6",
"type": "WeatherStation"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
}
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2002",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "17"
}
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2002",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "17"
}
}
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Sensor:Sensor",
"type": "Sensor"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WM:SO1",
"type": "WM",
"vol": {
"type": "Property",
"value": 38
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WM:SO1",
"type": "WM",
"vol": {
"type": "Property",
"value": 38
}
}
]
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Sensor:Sensor",
"type": "Sensor"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WM:SO1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws7",
"type": "WeatherStation"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
}
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2002",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "17"
},
"unitCode": "Hgmm"
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2002",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "17"
},
"unitCode": "Hgmm"
}
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"pressure": {
"type": "Property",
"value": {
"@type": "Hgmm",
"@value": "16"
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
[
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:WeatherStation:ws4",
"type": "WeatherStation"
},
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
},
"observedAt": "2023-03-21T16:54:11.464Z"
}
{
"@context": "http://context.json-ld",
"id": "urn:ngsi-ld:Higrometer:Higro2000",
"type": "Higrometer",
"humidity": {
"type": "Property",
"value": {
"@type": "Percentage",
"@value": "12"
},
"observedAt": "2024-06-25T16:04:13.914Z"
}
}
]
Loading

0 comments on commit 237aaeb

Please sign in to comment.