-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hello,
This isn't really an issue (discussions are disabled) and it isn't exactly related to the Device model group, but since you, the Smart Data Model maintainers, have a lot of experience with JSON-LD and NGSI-LD I thought I'll use open an issue for an opportunity to clarify something that's bugging me related to JSON-LD encodings and NGSI-LD.
I'd like to know if the process of converting from normalised NGSI-LD entity representations to simplified (or pure JSON) representations has an official name and potentially also implementation specification? Are there any reference implementations that you'd recommend I should look at?
The example on https://ngsild.org/ shows an entity in its normalised, simplified, and pure JSON form.
Smart Data Model example files in this and other repositories also contain model examples in multiple different forms (normalised, pure JSON, etc.).
Some (or all?) of the rules related to the simplified encoding seem to be described in the official NGSI-LD API specification document - https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.09.01_60/gs_cim009v010901p.pdf.
JSON-LD has these standardised (API) operations called compaction, expansion, flattening, and normalisation (there might be more of them than that). I first thought that this denormalisation would be part of that as well but it doesn't seem to be related to JSON-LD but rather NGSI-LD if I understand correctly?
Feel free to ignore this if you don't like my approach but I'd appreciate any kind of help on this topic.
Thank you!