-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We have a number of use cases where adding additional properties would be useful. For instance, some facilities may want to include some parameter for internal use. Such parameters would generally be ignored by any tools accepting OSC-EM as input. "Open schema" technologies like OWL and JSON-LD treat all data this way. However LinkML prefers "closed" schemas which prohibit additional properties.
Official support for open schemas is proposed in linkml/linkml#2241, but no implementation is available. JSON Schemas always seem to set additionalProperties: false for any class other than linkml:Any.
#13 introduces the Descriptor class to provide arbitrary key/value pairs, but this causes errors when generating the schema (@lolasanchezzz, can you add more details?).
How should we deal with this limitation?
- accept OSC-EM as a closed schema and don't use custom descriptors
- hack our JSON-Schema output to set
additionalProperties: true - redefined
Descriptorsomehow to fit the linkml limitations (how?)