Skip to content

Handle LinkML migration issue of pydantic2linkml: Impossible to generate slot usage entry for the #389

@candleindark

Description

@candleindark

pydantic2link has the complains about not able to generate some slot usage entries in generation of some class definitions

such as in the translation of the Dandiset class

Image

Stats of such complains

Total: 54 count
Ones about the schemaKey usage slots at different class defintions: 41 counts

Cause

pydantic2link unable to generate the usage slot cause by the fact that LinkML schema are monotonic. Restrictions from a slot usage definition are only additive and can not override the restrictions in the corresponding slot definition.

TODOs:

  • Come up with a custom patch to each of these complains in the generated LinkML schema (the patching can be done with the --merge-file option in pydantic2linkml
    • The ones about schemaKey should be able to be handled the same way (do these first)

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