get_ols_uri_format
- get_ols_uri_format(prefix)[source]
Get the URI format for an OLS entry.
- Parameters:
prefix (
str
) – The prefix to lookup.- Returns:
The OLS format string, if available.
- Return type:
Warning
This doesn’t have a normal form, so it only works for OBO Foundry at the moment.
>>> import bioregistry >>> bioregistry.get_ols_uri_format('go') # standard 'https://www.ebi.ac.uk/ols/ontologies/go/terms?iri=http://purl.obolibrary.org/obo/GO_$1' >>> bioregistry.get_ols_uri_format('ncbitaxon') # mixed case 'https://www.ebi.ac.uk/ols/ontologies/ncbitaxon/terms?iri=http://purl.obolibrary.org/obo/NCBITaxon_$1' >>> assert bioregistry.get_ols_uri_format('sty') is None