IriCompaction class

Utility class for analyzing RDF graphs and generating namespace prefixes.

This class provides static methods for extracting used prefixes from RDF graphs and automatically generating new prefixes for unknown namespaces. The logic is shared between different RDF serializers to ensure consistent behavior.

Constructors

IriCompaction.new(RdfNamespaceMappings _namespaceMappings, IriCompactionSettings _settings, bool _isValidIriLocalPart(String))
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compactAllIris(RdfGraph graph, Map<String, String> customPrefixes, {String? baseUri}) IriCompactionResult
compactIri(IriTerm term, IriRole role, String? baseUri, Map<String, String> iriToPrefixMap, Map<String, String> prefixCandidates, Map<String, String> customPrefixes) CompactIri
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited