remap_uri_prefixes

remap_uri_prefixes(converter: Converter, remapping: Mapping[str, str]) Converter[source]

Apply URI prefix remappings.

Parameters:
  • converter – A converter

  • remapping – A mapping from URI prefixes to new URI prefixes. Old URI prefixes become synonyms in the records (i.e., they aren’t forgotten)

Returns:

An upgraded converter

Raises:

TransitiveError – If there are any strings that appear in both the key and values of the remapping