Convert between OO-LD schemas and LinkML schemas.
Spec-side siblings: OO-LD/oold-schema#119 (generating OO-LD schemas from an existing source model) and OO-LD/oold-schema#9 (inheritance, composition and mixins, which LinkML models explicitly).
Mapping
- LinkML classes to object schemas, slots to properties
class_uri and slot_uri correspond to the entries in the OO-LD @context
- Ranges,
multivalued and required to JSON Schema types, arrays and required
is_a and mixins to the OO-LD composition mechanism
Open questions
- LinkML already generates JSON Schema and a JSON-LD context of its own. Reuse that path and only post-process, or convert independently? Document where the two disagree
- How LinkML slot usage overrides and induced slots are represented
- Which direction is authoritative when a schema round-trips
Convert between OO-LD schemas and LinkML schemas.
Spec-side siblings: OO-LD/oold-schema#119 (generating OO-LD schemas from an existing source model) and OO-LD/oold-schema#9 (inheritance, composition and mixins, which LinkML models explicitly).
Mapping
class_uriandslot_uricorrespond to the entries in the OO-LD@contextmultivaluedandrequiredto JSON Schema types, arrays andrequiredis_aandmixinsto the OO-LD composition mechanismOpen questions