IriRelativizationOptions class
Configuration options for IRI relativization behavior.
Controls how IRIs are relativized when a base IRI is provided during encoding. Relativization can make RDF serializations more compact and readable by expressing IRIs relative to a base, but different use cases may prefer different levels of aggressiveness.
Constructors
- IriRelativizationOptions.new({required int? maxUpLevels, required int? maxAdditionalLength, required bool allowSiblingDirectories, required bool allowAbsolutePath})
-
Creates new IRI relativization options with explicit configuration.
const
- IriRelativizationOptions.full()
-
Full relativization - allow any valid relative path structure.
const
- IriRelativizationOptions.local()
-
Local relativization - same directory and child directories only.
const
- IriRelativizationOptions.none()
-
No relativization - always use absolute IRIs.
const
Properties
- allowAbsolutePath → bool
-
Whether to allow absolute-path relativization (starting with '/').
final
- allowSiblingDirectories → bool
-
Whether to allow relativization between sibling directories with no common parent.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxAdditionalLength → int?
-
Maximum additional length allowed for relative paths compared to absolute paths.
final
- maxUpLevels → int?
-
Maximum number of "../" path components allowed in relative paths.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? maxUpLevels, int? maxAdditionalLength, bool? allowSiblingDirectories, bool? allowAbsolutePath}) → IriRelativizationOptions - Creates a copy of these options with specified overrides.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override