get_curie_pattern

get_curie_pattern(prefix, use_preferred=False)[source]

Get the CURIE pattern for this resource.

Parameters
  • prefix (str) – The prefix to look up

  • use_preferred (bool) – Should the preferred prefix be used instead of the Bioregistry prefix (if it exists)?

Return type

Optional[str]

Returns

The regular expression pattern to match CURIEs against