IriFilter typedef

IriFilter = bool Function(IriTerm iri, {required IriRole role})

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:

  • iri The IRI to check
  • isPredicate Whether 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});