rdfSeq top-level constant
CollectionMapping
const rdfSeq
Maps Dart collections to RDF Sequence structures (rdf:_1, rdf:_2, rdf:_3...).
RDF Structure: Creates numbered properties for ordered sequences
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: Preserved - items are numbered consecutively starting from rdf:_1
Use Case: When order matters and you want clear indexing/numbering
Example Usage
@RdfProperty(SchemaBook.authors, collection: rdfSeq)
final List<Person> authors;
Generated RDF
<book> schema:authors _:seq1 .
_:seq1 rdf:type rdf:Seq ;
rdf:_1 <person1> ;
rdf:_2 <person2> ;
rdf:_3 <person3> .
Underlying Mapper: RdfSeqMapper<T> from locorda_rdf_mapper package
Implementation
const rdfSeq = CollectionMapping.withItemMappers(RdfSeqMapper);