I have read from a book
The difference between containers and collections lies in the fact that containers are always open (i.e., new members may be added through additional RDF statements) and collections may be closed.
I don't understand this difference clearly. It says that no new members can be added to a collection. What if I change the value of the last rdf:rest
property from rdf:nil
to _:xyz
and add
_:xyz rdf:first <ex:aaa> .
_:xyz rdf:rest rdf:nil .
I am thus able to add a new member _:xyz
. Why does it then say that collections are closed?
_:xyz rdf:first <ex:aaa> ; rdf:rest rdf:nil
, the element that you're adding to the list is<ex:aaa>
, not_:xyz
. The node_:xyz
is part of the structure of the list, the<ex:aaa>
is one of the elements of the list. – Joshua Taylor