unorderedItemsList top-level constant
CollectionMapping
const unorderedItemsList
Maps Dart List collections to multiple separate triples.
RDF Structure: Creates multiple triples with the same predicate
Dart Type: Works with List<T> - will lead to compile errors in generated mappers if used with other types like Set<T> or Iterable<T>.
Order: NOT preserved - each item becomes a separate triple
Use Case: When you want explicit control over List serialization as multiple triples
Example Usage
@RdfProperty(SchemaBook.tags, collection: unorderedItemsList)
final List<String> tags;
Generated RDF
<book> schema:tags "tag1" .
<book> schema:tags "tag2" .
<book> schema:tags "tag3" .
Note: This is the default behavior for List<T> when no collection is specified.
Only use explicitly when you need to override other collection mapping defaults.
Underlying Mapper: UnorderedItemsListMapper<T> from locorda_rdf_mapper package
Implementation
const unorderedItemsList =
CollectionMapping.withItemMappers(UnorderedItemsListMapper);