Created on Feb. 18, 2013, 11:58 a.m. by Hevok & updated by Hevok on May 2, 2013, 5:16 p.m.
There are different kind of Containers in RDF. In a sequential container there is an ordered list of elements, thus the order is of somehow importance. On the other hand if there is simple a collection and it should represent and unordered set where the order has no importance at all then a rdf:Bag
is defined. It should be simple of type rdf:Bag and the order has no relevance. Another possibility is a third kind of collection where one has to choice among all of these elements just one then one defines an RDF alternative, rdf:Alt
.
the Root Node of the container is assigned a Container-type via rdf:type
.
rdf:Bag
rdf:Seq
rdf:Alt
For a RDF Sequence, Blank nodes need to be stated to be of type list, i.e. rdf:Seq
, which means Sequential List where the order of the items matters. The properties from this Blank Node are enumerated with rdf:_1, rdf:_2, etc.
In Turtle after defining some prefixes that are required to the necessary URIs, the beginning of the Blank Node bracket is followed by defining that it is of type a rdf:Seq;
and the items in the list separated by semicolon defined by their URI.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-synthax-nx#>] .
@prefix ev: <http://denigma.de/events>] .
@base <http://denigma.de/>] .
:swt ev:hasParticipants [
a rdf:Seq;
rdf:_1 <Hevok> ;
rdf:_2 <EVA> .
] .
Such a List can afterwards be extended.
Comment on This Data Unit