get_ols_uri_format
- get_ols_uri_format(prefix: str) str | None [source]
Get the URI format for an OLS entry.
- Parameters:
prefix – The prefix to lookup.
- Returns:
The OLS format string, if available.
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