fragmentTemplate property

String? fragmentTemplate
final

Optional template for the fragment identifier to append to the base IRI.

When specified (via IriMapping.withFragment constructor), the generator will:

  1. Process template to get the base IRI
  2. Strip any existing fragment from the base IRI (everything after and including #)
  3. Process fragmentTemplate to get the fragment value
  4. Append #${fragmentValue} to create the final IRI

This enables creating property IRIs 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;