Skip to content
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

Mapping slots with multiple enumerations as a range #2128

Open
martinwellman opened this issue May 24, 2024 · 0 comments · May be fixed by linkml/linkml-map#31
Open

Mapping slots with multiple enumerations as a range #2128

martinwellman opened this issue May 24, 2024 · 0 comments · May be fixed by linkml/linkml-map#31

Comments

@martinwellman
Copy link

Mapping of slots with multiple enumerations as a range is not currently supported. At the moment, if multiple enumerations are present in the range, then no enumeration mapping occurs for the slot, since the range (which is a list in string form, eg. "['myenum1', 'myenum2']") is not recognized as an enum as returned by SchemaView.all_enums().

To fix this, we should first convert the string form of the range to a list (or a single string if it is not a list), and then iterate over all the elements of the list to try the permissible_value_derivations.

Support for multiple enumerations as a range is supported with branch multi-enum

@sierra-moxon sierra-moxon transferred this issue from linkml/linkml-map May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants