forked from telefonicaid/fiware-orion
-
Notifications
You must be signed in to change notification settings - Fork 39
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
format names for "cross-notifications" LD-V2 #623
Comments
Where x-ngsiv2-normalizedUses URNs for types, attribute names. Receiver can apply an {
"subscriptionId": "urn:ngsi-ld:Subscription:5fd1f31e8b9b83697b855a5d",
"data": [
{
"id": "urn:ngsi-ld:Device:filling001",
"type": "https://uri.etsi.org/ngsi-ld/default-context/FillingSensor",
"https://w3id.org/saref#fillingLevel": {
"type": "Property",
"value": 0.33,
"metadata": {
"unitCode": "C62",
"accuracy": {
"type": "Property",
"value": 0.05
},
"observedAt": "2020-12-10T10:11:57.000Z"
}
},
"https://uri.etsi.org/ngsi-ld/default-context/controllingAsset": {
"type": "Relationship",
"value": "urn:ngsi-ld:Building:farm001",
"metadata": {
"observedAt": "2020-12-10T10:11:57.000Z"
}
}
}
]
} x-ngsiv2-normalized-compactedUses shortnames for types, attribute names. Context broker pre-applies compaction operation. Receiver gets simple JSON payload {
"subscriptionId": "urn:ngsi-ld:Subscription:5fd1f31e8b9b83697b855a5d",
"data": [
{
"id": "urn:ngsi-ld:Device:filling001",
"type": "FillingSensor",
"fillingLevel": {
"type": "Property",
"value": 0.33,
"metadata": {
"unitCode": "C62",
"accuracy": {
"type": "Property",
"value": 0.05
},
"observedAt": "2020-12-10T10:11:57.000Z"
}
},
"https://uri.etsi.org/ngsi-ld/default-context/controllingAsset": {
"type": "Relationship",
"value": "urn:ngsi-ld:Building:farm001",
"metadata": {
"observedAt": "2020-12-10T10:11:57.000Z"
}
}
}
]
} |
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
x-ngsiv2-normalized
x-ngsiv2-normalized-compacted
x-nsgiv2-keyValues
x-nsgiv2-keyValues-compacted
The text was updated successfully, but these errors were encountered: