IriFilter typedef
Function type for filtering IRIs that should be considered for prefix generation.
This allows different serializers to implement their own logic for determining which IRIs should have prefixes generated (vs being relativized, etc).
Parameters:
iriThe IRI to checkisPredicateWhether this IRI is being used as a predicate
Returns true if the IRI should be processed for prefix generation.
Implementation
typedef IriFilter = bool Function(IriTerm iri, {required IriRole role});