Hi,
>> stardog vcs commit —Commits a new version by adding and removing triples specified in files. Different from the 'data add/remove' commands, this command allows one to add and remove triples in one commit and associate a commit message. Removals are performed before additions. <<
I'm trying to use this promissed behavour to implement an update mechanism for some triples.
For simplicity assume we have a file 01.ttl storing some tripple.
02.ttl is a newer version of this file (with some changes, added or removed triples)
after:
stardog-admin db create -o versioning.enabled=true -n vt
stardog vcs commit --add 01.ttl -m "added version 1" vt
version 1 of my file was successfully insert into stardog
however if I try to replace the old version 1 with the newer one with:
stardog vcs commit --add 02.ttl --remove 01.ttl -m "updated to version 2" vt
stardog promts >> Adding data from file: 02.ttl Removing data from file: 01.ttl << as a responce and performance the operations (additions and removals) in wrong order.
So the store data in the new version are not (all of) the triples from 02.ttl.
Is this a bug, or is there a possibility to change the order of operation?
Thanks,
Philipp Schindler
=======================================================================================================
01.ttl:
p:P0 p:name "Frige" .
p:P0 p:price "449" .
p:P1 p:name "Cooler" .
p:P1 p:price "30" .
p:P0 p:requires p:P1 .
p:P2 p:name "clock" .
p:P2 p:price "50" .
02.ttl:
p:P0 p:name "Fridge" .
p:P0 p:price "499" .
p:P1 p:name "Cooler" .
p:P1 p:price "30" .
p:P0 p:requires p:P1 .
p:P3 p:name "glasses" .
p:P3 p:price "120" .