get_extended_prefix_map(prefix_priority: Sequence[str] | None = None, uri_prefix_priority: Sequence[str] | None = None, include_prefixes: bool = False, strict: bool = False, remapping: Mapping[str, str] | None = None, blacklist: Collection[str] | None = None) List[Record][source]

Get an extended prefix map.

An extended prefix map is a collection of curies.Record objects, each of which has the following fields:

  • prefix - the canonical prefix

  • uri_prefix - the canonical URI prefix (i.e., namespace)

  • prefix_synonyms - optional extra prefixes such as capitialization variants. No prefix synonyms are allowed to be duplicate across any canonical prefixes or synonyms in other records in the extended prefix

  • uri_prefix_synonyms - optional extra URI prefixes such as variants of URLs, PURLs, etc. No URI prefix synyonms are allowed to be duplicates of either canonical or other URI prefix synonyms.

Extended prefix maps have the benefit over regular prefix maps in that they keep extra information. This can be utilized by curies.Converter to make URI compression and CURIE expansion aware of synonyms and other lexical variants. Further, an extended prefix map can be readily collapsed into a normal prefix map by getting the prefix and uri_prefix fields.

  • prefix_priority – The order of metaprefixes OR “preferred” for choosing a primary prefix OR “default” for Bioregistry prefixes

  • uri_prefix_priority – The order of metaprefixes for choosing the primary URI prefix OR “default” for Bioregistry prefixes

  • include_prefixes – Should prefixes be included with colon delimiters? Setting this to true makes an “omni”-reverse prefix map that can be used to parse both URIs and CURIEs

  • strict – If true, errors on URI prefix collisions. If false, sends logging and skips them.

  • remapping – A mapping from bioregistry prefixes to preferred prefixes.

  • blacklist – A collection of prefixes to skip


A list of records for curies.Converter