Geonovum / uml2json

Best Practise for OGC - UML to JSON Encoding Rules
https://geonovum.github.io/uml2json/document.html
0 stars 1 forks source link

7.3.3.6 - pja - Is the identifier of a JSON object recognisable? #15

Closed PalmJanssen closed 1 year ago

PalmJanssen commented 1 year ago

Question? How does one know what the identifier of a JSON object is? Is it to the UML application schema to provide that information?

jechterhoff commented 1 year ago

The answer is given in the last paragraph of section 7.3.3.6. If the application schema does not model an identifier property (or maybe multiple such properties) for a type with identity, then an external means is required to identify such objects. That could be the URI of a JSON object, in a web publishing context. In certain encodings, like the GeoJSON and JSON-FG compliant encodings, the common base schema offers an id property that applications can use (however, the GeoJSON Feature schema does not require the id to be present). Also see sections 7.4.3 and 7.5.2.