Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to send to CB batch update for multimeasures for NGSI-LD #1623

Merged
merged 8 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading