-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create hierarchie with linkml-map #38
Comments
I moved this to linkml-map as it isn't considered core yet. Yes, this should be possible, there are some examples here: https://linkml.io/linkml-map/#examples/Tutorial/#unit-conversions It looks like you have seen these and something in your spec isn't working - can you post a reproducible example? |
Actually the unit conversion is not my priority problem, but here is what I tested.
Question here would be: How to handle multiple frequency units in enums together with The data.json from above together with the linkml-map
works. I get:
But if I exchange A workaround would be to use |
I was not sure where to put that issue and there where no issues in linkml-map. That's why I put it here. My actual problem is deflatten the structure. Starting with the data.json from my question at the top, the linkml model from the comment above and the linkml-map:
I get If I perform the invert transformation It is the same error if I use the generated target schema via The question is how can I transform
into
using linkml-map? |
Is my example understandable and reproducable? |
What is your feature request?
I am currently testing linkml and linkml-map for the export of metadata from an electronic lab notebook (ELN) into a metadata catalogue.
The metadata in the ELN are collected via forms following a certain schema.
The metadata cataloque follows another schema and I wanted to use linkml-map to transform the metadata form one schema into another schema.
What I figured out so far is, that linkml-map can be use to modify the values, rename keys and flatten the structure.
But the flatten the structure is not reversable. Creating the inverse mapping file is not possible for those slots.
This brings me to the problem I have. How can I reduce and create hierarchy and how can i assign/rearrange slots to new classes?
As an examle I would like transform one of the following data.json into the other and back.
Can a mapping file be created for that case and if so, how?
The main problem I see is that flattened slots can not be inverted:
linkml_map.inference.inverter.NonInvertibleSpecification: Cannot invert expression scientificMetadata.frequency.value in slot derivation: Has Frequency
How important is this feature to you? Select from the options below:
• Important - it's a blocker and can't do work without it
Additional context
It is similar to linkml/linkml#2076
Is is currently possible to use
linkml-map
to create a structure schema from a flattened schema?The text was updated successfully, but these errors were encountered: