filter_prefixes

filter_prefixes(mappings: Iterable[Mapping], prefixes: str | Iterable[str], *, progress: bool = True) list[Mapping][source]

Filter out mappings whose subject or object are in the given list of prefixes.