There seems to be an issue with the way Update (INSERT/DELETE) behaves in 1.5.3, the attached data.trig file produces the right bindings for query q2, but on the update in q1, having the same WHERE patters, only the DELETE section seems to be executed.
If q2 is modified to contain only the INSERT part, it works inserting the required statements; if the same query then is modified to contain only the DELETE section the expected triples are removed.
The specific steps to reproduce are:
- Load the data.trig file
- Execute q2 (with SELECT) - this query shows the bindings for the specified patterns
- Execute q1 (DELETE/INSERT) - the issue happening is that it seems like only the DELETE part is being executed, but not the INSERT.
- If the test is done again (clean namespace and reload data), with the DELETE part removed, the INSERT is executed correctly. Next, if the INSERT part is removed and only the DELETE part is executed, it works deleting the desired results, having the desired result overall.