Skip to content

Comments

Enable overriding auto-generated URLs from registries#641

Draft
cthoyt wants to merge 2 commits intomainfrom
override-ols
Draft

Enable overriding auto-generated URLs from registries#641
cthoyt wants to merge 2 commits intomainfrom
override-ols

Conversation

@cthoyt
Copy link
Member

@cthoyt cthoyt commented Oct 25, 2022

Closes #572

There are some overly-generic rules that help generate URIs for various registries. For example, the OLS almost only contained OBO Foundry ontologies at the start of the Bioregistry, so it was a reasonable assumption to make the provider URI for OLS possible to construct in a similar way to OBO Foundry PURLs. This isn't generally the case, so there are a few options:

  1. make a more complicated set of rules for each registry where this is the case
  2. make a quick and dirty override system, that can be used in a small set of cases.

This PR implements option 2 and uses KISAO as an example.


An override for a metaregistry is built-in to the record
>>> get_iri("kisao:0000057", provider="ols")
'https://www.ebi.ac.uk/ols/ontologies/kisao/terms?iri=http://www.biomodels.net/kisao/KISAO#KISAO_0000057'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be able to get base IRI from ols, however, bioportal is a completely different situation

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.

Enable overriding default OLS and BioPortal URI construction

1 participant