remap_literal_mappings

remap_literal_mappings(literal_mappings: list[LiteralMapping], mappings: list[tuple[R, R]], *, progress: bool = False) list[LiteralMapping][source]

Use a priority mapping to re-write terms with priority groundings.

Parameters:
  • literal_mappings – A list of literal mappings

  • mappings – A list of pairs that constitute mappings, e.g. from SeMRA

  • progress – Should a progress bar be shown?

Returns:

A new list of literal mapping objects that have been remapped