Closed putmantime closed 1 year ago
There is a flag here, inject_metadata
, default True:
But this may have some side effects if this is not stored - schemaview works with an import closure by default and the semantics of some slots may be relative to the containing schema; e.g:
I think this should be redesigned such we don't rely on injection but instead on a separate map of (unique) elements to schemas; this is essentially what is done here: https://github.com/linkml/linkml-runtime/blob/a1d2c0c728ed4d260869c877a033e2827e5173ef/linkml_runtime/utils/schemaview.py#L781-L788
so I think we should be fine if we modify the logic here
But we will want lots more tests here
in the interim I would just add something here: https://github.com/linkml/linkml-runtime/blob/main/linkml_runtime/utils/schema_as_dict.py
You will likely want to use this anyway, to avoid the repetition of name as both a key and a slot
it looks like schema_as_dict is working now, @putmantime? closing for now; please reopen if this is still an issue?
It doesn't appear to be possible to silence the "from_schema" in sheets2linkml command. It is very redundant and causes the linkml yaml to balloon. It would be great to have a parameter where this could be toggled on or off defending on how suitable it is for the given model.
Example: