invert_broad_matches
- invert_broad_matches(mappings: Iterable[MappingTypeVar], *, converter: Converter, justification_policy: InversionJustificationPolicy | str | None = None) Iterable[MappingTypeVar][source]
Invert broad matches into narrow 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