virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

Delete data and Language-tagged strings

Open cecemel opened this issue 3 years ago • 2 comments

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

cecemel avatar Jul 04 '22 11:07 cecemel

I have been able to reproduce against the latest version of VOS.

I will discuss it with the development team.

pkleef avatar Jul 04 '22 12:07 pkleef

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!

cecemel avatar Jul 04 '22 12:07 cecemel

Sorry to ask, any updates on this?

cecemel avatar Mar 28 '23 15:03 cecemel

This has been fixed on the develop/7 branch

pkleef avatar Mar 29 '23 14:03 pkleef