get_bioregistry_converter
- get_bioregistry_converter(web: bool = False, **kwargs: Any) Converter [source]
Get the latest extended prefix map from the Bioregistry [hoyt2022].
- Parameters:
web – If false, tries to import
bioregistry
and usebioregistry.get_converter()
to get the converter. Otherwise, falls back to using the GitHub-hosted EPM export.kwargs – Keyword arguments to pass to :meth`:curies.Converter.from_extended_prefix_map` when using web-based loading.
- Returns:
A converter representing the Bioregistry, which includes a comprehensive collection of prefixes, prefix synonyms, and URI prefix synonyms.
Short summary of the Bioregistry:
It deduplicates and harmonizes dozens of different resources that curate partially overlapping and conflicting prefix maps
It contains detailed CURIE prefix synonyms to support standardization
It enforces the generation of a self-consistent extended prefix map
The Bioregistry’s primary prefixes are all standardized to be lowercase, have minimal punctuation, and be the most idiomatic possible. When this conflicts with your personal preferences/community preferences, you can chain another converter in front of the Bioregistry converter using
curies.chain()
.However, the Bioregistry itself presents a more sustainable way of documenting these deviations in a community-oriented way using its “context” configurations. See https://bioregistry.io/context/ for more information. One excellent example of a community context is for the OBO community (see https://bioregistry.io/context/obo), which prioritizes OBO capitalized prefixes and makes a few minor changes for backwards compatibility (e.g., renaming Orphanet).