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

ValueSetExpander is too eager in using sqlite:obo as a default resolver #718

Open
cmungall opened this issue Mar 15, 2024 · 0 comments
Open

Comments

@cmungall
Copy link
Collaborator

If you create a ValueSetExpander without specifying a configuration, it will include a default config:

DEFAULT_CONFIG = ValueSetConfiguration(default_resolver=Resolver("", shorthand_prefix="sqlite:obo"))

...
    configuration: ValueSetConfiguration = field(default_factory=lambda: DEFAULT_CONFIG)

This is handy for OBO ontologies but is too magical. Instead it should only match this when the user specified obo: as the prefix.

Also it's probably best if this is not the default resolver but instead something the user has to opt in to

See also monarch-initiative/ontogpt#346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant