RdfUnmappedTriples constructor

const RdfUnmappedTriples({
  1. bool globalUnmapped = false,
})

Creates an @RdfUnmappedTriples annotation.

When applied to a property of type RdfGraph (or a custom type with registered UnmappedTriplesMapper), this annotation instructs the RDF mapper to capture and preserve unmapped RDF triples during object serialization/deserialization.

Parameters:

  • globalUnmapped: When true, collects unmapped triples from the entire RDF graph instead of just the current subject. Should only be used on top-level document containers. Defaults to false.

Example:

@RdfUnmappedTriples() // Subject-scoped (default)
late final RdfGraph unmappedTriples;

@RdfUnmappedTriples(globalUnmapped: true) // Global scope
late final RdfGraph globalUnmappedTriples;

Implementation

const RdfUnmappedTriples({this.globalUnmapped = false});