fragmentTemplate property
Optional template for the fragment identifier to append to the base IRI.
When specified (via RdfIri.withFragment constructor), the generator will:
- Process template to get the base IRI
- Strip any existing fragment from the base IRI (everything after and including
#) - Process fragmentTemplate to get the fragment value
- Append
#${fragmentValue}to create the final IRI
This enables creating IRI term classes that differ from a base IRI only by their fragment identifier,
which works with any URI scheme (hierarchical or non-hierarchical like tag:).
Implementation
final String? fragmentTemplate;