RdfNamespaceMappings.custom constructor
Creates a new RdfNamespaceMappings instance with custom mappings.
Custom mappings take precedence over standard mappings when there are conflicts.
The customMappings
parameter specifies the mappings to add to the standard ones.
If useDefaults
is true (default), the standard mappings are included as well.
Implementation
RdfNamespaceMappings.custom(
Map<String, String> customMappings, {
useDefaults = true,
}) : _mappings =
useDefaults
? {..._rdfNamespaceMappings, ...customMappings}
: customMappings;