RdfUnmappedTriples constructor
const
RdfUnmappedTriples({
- 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: Whentrue, collects unmapped triples from the entire RDF graph instead of just the current subject. Should only be used on top-level document containers. Defaults tofalse.
Example:
@RdfUnmappedTriples() // Subject-scoped (default)
late final RdfGraph unmappedTriples;
@RdfUnmappedTriples(globalUnmapped: true) // Global scope
late final RdfGraph globalUnmappedTriples;
Implementation
const RdfUnmappedTriples({this.globalUnmapped = false});