Rdf_assert_list -- and adding to a list

Hi,

It looks like that a list can only be created when all elements of the list are known a-priori – then rdf_assert_list creates such a list. Is it possible to add elements to a list over time?

Or would this require to retract the “old” list and assert a “new”, expanded list?

thank you,

Dan

From the previous answer you know how they work. So, yes you can insert elements at the start by adding two triples. You can also find the last element and use rdf_update/5 to replace
the rdf:nil with another list. There is no magic, just RDF triples.