unorderedItems top-level constant
CollectionMapping
const unorderedItems
Maps Dart Iterable collections to multiple separate triples.
RDF Structure: Creates multiple triples with the same predicate
Dart Type: Works with Iterable<T> - will lead to compile errors in generated mappers if used with other types like Set<T> or List<T>.
Order: NOT preserved - each item becomes a separate triple
Use Case: Generic collections where order doesn't matter, maximum compatibility
Example Usage
@RdfProperty(SchemaBook.contributors, collection: unorderedItems)
final Iterable<Person> contributors;
Generated RDF
<book> schema:contributors <person1> .
<book> schema:contributors <person2> .
<book> schema:contributors <person3> .
Underlying Mapper: UnorderedItemsMapper<T> from locorda_rdf_mapper package
Implementation
const unorderedItems = CollectionMapping.withItemMappers(UnorderedItemsMapper);