-
|
I was trying to get something like this to work: But linkml-validate does not accept It seems I can get around this by (EDIT: actually not, it passes linkml-validate, but fails when trying to gen-python. It is not correct to use slots in this way I suppose): For anyone looking for syntax examples on this topic, here are some (but the examples do not cover this case): Also for the record, I believe this is equivalent (but not sufficient for me, as I will need more dimensions down the road): |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Right, thanks. It would be great that the documentation was more explicit on what is supported. At least on the generator pages. I have switched to using gen-pydantic, but even then I cannot get everything I need to work. I would also need labeled arrays and they are not yet supported as it says here: https://linkml.io/linkml/schemas/arrays.html. So, my solution for now is to just read what I need into Python using linkml-runtime yaml_loader and continue from there. |
Beta Was this translation helpful? Give feedback.
gen-pythondoesn't supportany_ofat all, we are in the progress of making this more transparent..