rewire

rewire(converter: Converter, rewiring: Mapping[str, str]) Converter[source]

Apply URI prefix upgrades.

Parameters:
  • converter – A converter

  • rewiring – A mapping from CURIE prefixes to new URI prefixes. If CURIE prefixes are not already in the converter, new records are created. If new URI prefixes clash with any existing ones, they are not added.

Returns:

An upgraded converter