customPrefixes property

Map<String, String> customPrefixes
final

Custom namespace prefixes to use during encoding.

A mapping of prefix strings (without colon) to namespace URIs. These prefixes will be used when possible to produce more readable and compact output. For example, {'foaf': 'http://xmlns.com/foaf/0.1/'}.

But note that there is a set of well-known prefixes managed by RdfNamespaceMappings that will be used for well-known IRIs, so you will need this only rarely and not for well-known IRIs like foaf.

Implementation

final Map<String, String> customPrefixes;