Skip to content

Replace use_base option by a generic use_variant option.#9

Open
gouttegd wants to merge 2 commits intomainfrom
add-use-variant-option
Open

Replace use_base option by a generic use_variant option.#9
gouttegd wants to merge 2 commits intomainfrom
add-use-variant-option

Conversation

@gouttegd
Copy link
Copy Markdown
Collaborator

This PR generalizes the use_base: True option by replacing it by a new use_variant option, which takes the name of the ontology variant to use as an argument.

For any given import IMP, setting use_variant to FOO instructs the ODK to download the IMP ontology from http://purl.obolibrary.org/obo/IMP/IMP-FOO.owl.

This option is intended to make it easier to import arbitrary ontology variants without having to always specify their full URL using mirror_from.

The old use_base: True option is exactly equivalent to use_variant: base, and whenever the old option is encountered in a configuration file, it is automatically interpreted as such.

closes INCATools/ontology-development-kit#1321

This commit generalizes the `use_base: True` option by replacing it by a
new `use_variant` option, which takes the name of the ontology variant
to use as an argument.

For any given import IMP, setting `use_variant` to `FOO` instructs the
ODK to download the IMP ontology from
`http://purl.obolibrary.org/obo/IMP/IMP-FOO.owl`.

This option is intended to make it easier to import arbitrary ontology
variants without having to always specify their full URL using
`mirror_from`.

The old `use_base: True` option is exactly equivalent to `use_variant:
base`, and whenever the old option is encountered in a configuration
file, it is automatically interpreted as such.

closes INCATools/ontology-development-kit#1321
@gouttegd gouttegd self-assigned this Mar 15, 2026
@gouttegd gouttegd requested a review from matentzn March 17, 2026 18:17
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

Successfully merging this pull request may close these issues.

Replace use_base: True by use_variant: base

1 participant