virtuoso-opensource
virtuoso-opensource copied to clipboard
Delete data and Language-tagged strings
We're having problems with DELETE DATA queries and language-tagged strings. It seems batching statements doesn't work as expected. Sample data set:
INSERT DATA
{
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 1"@nl.
}
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 2"@nl.
}
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 3"@nl.
}
}
Executing delete
DELETE DATA
{
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 1"@nl.
}
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 2"@nl.
}
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 3"@nl.
}
}
Checking the result:
SELECT DISTINCT * {
GRAPH ?g {
<http://example.com/foo/bar/test/1> ?p ?o.
}
}
No triples removed
However splitting the batched DELETE DATA as:
DELETE DATA
{
GRAPH <http://example.com/graphs/1>
{
<http://example.com/foo/bar/test/1> <http://purl.org/dc/terms/title> "hello 1"@nl.
}
}
Removes the expected triple.
Virtuoso version
# virtuoso-t -?
Virtuoso Open Source Edition (Column Store) (multi threaded)
Version 7.2.6.3233-pthreads as of Nov 24 2021 (000000)
Compiled for Linux (x86_64-pc-linux-gnu)
Copyright (C) 1998-2021 OpenLink Software
Can anyone reproduce this issue? thanks!
Note: with untyped strings everything behaves as expected
I have been able to reproduce against the latest version of VOS.
I will discuss it with the development team.
I have been able to reproduce against the latest version of VOS.
I will discuss it with the development team.
Thanks for your swift reply!
Sorry to ask, any updates on this?
This has been fixed on the develop/7 branch