Skip to content

question: Support custom properties in the processing schema #16

@sbliven

Description

@sbliven

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 Descriptor somehow to fit the linkml limitations (how?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions