get_curie_pattern

get_curie_pattern(prefix: str, *, use_preferred: bool = False) str | None[source]

Get the CURIE pattern for this resource.

Parameters:
  • prefix – The prefix to look up

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

Returns:

The regular expression pattern to match CURIEs against