invert_narrow_matches

invert_narrow_matches(mappings: Iterable[MappingTypeVar], *, converter: Converter, justification_policy: InversionJustificationPolicy | str | None = None) Iterable[MappingTypeVar][source]

Invert narrow matches into broad matches.

Parameters:
  • mappings – An iterable of semantic mappings

  • converter – A converter function hashing the mapping to fill the “derives_from” field

  • justification_policy – The policy for how the original evidence is mutated during inversion. Defaults to InversionDerivationPolicy.retain, where the original justification is retained

Returns:

An iterable of semantic mappings, with the narrow matches inverted into broad ones

This is useful when creating OWL bridging axioms.