Skip to content

Bidirectional OO-LD <-> LinkML converter #110

Description

@SimonStier

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

Metadata

Metadata

Assignees

Labels

converterSchema conversion to/from another schema or modelling language

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions