Hi,

when I try to perform an delete against my external endpoint (Virtuoso), the query gets modified by Jena.

Original

DELETE FROM <http://test> { ?s <http://purl.org/dc/terms/identifier> "21818744"^^<http://www.w3.org/2001/XMLSchema#string> . } WHERE { GRAPH <http://test> {?s <http://purl.org/dc/terms/identifier> "21818744"^^<http://www.w3.org/2001/XMLSchema#string> . }}

Modified by Jena

DELETE {
  GRAPH <http://test> {
?s <http://purl.org/dc/terms/identifier> "21818744"^^<http://www.w3.org/2001/XMLSchema#string> .
  }
}
WHERE
  { GRAPH <http://test>
{ ?s <http://purl.org/dc/terms/identifier> "21818744"^^<http://www.w3.org/2001/XMLSchema#string> }
  }

Virtuoso cannot handle the second syntax. I also tried all given syntax formats provided by Jena, but only ARQ does not throws an exception, but does this modification instead.

Code I use:

UpdateRequest update = UpdateFactory.create(deleteString);
UpdateProcessor uExec = UpdateExecutionFactory.createRemote(update, endpoint) ;
uExec.execute();


On 10.01.2013 19:44, Andy Seaborne wrote:
On 10/01/13 16:52, Carina Haupt wrote:
Hi,

is it possible to delete triples from an external triple store like
Virtuoso using the Jena API?

I found examples to use SPARQL/UPDATE statements for in memory stores,
but not external hosted ones.

Regards,
Carina


You can create executions on remote endpoints by:

UpdateExecution uExec =
    UpdateExecutionFactory.createRemote(Update, remoteEndpoint) ;
uExec.execute() ;

     Andy


--
Carina Haupt

Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Schloss Birlinghoven
D-53754 Sankt Augustin

Tel.: +49 - 2241 - 14 - 3480
E-mail: [email protected]
Internet: http://www.scai.fraunhofer.de

and

Bonn-Aachen International Center for Information Technology (B-IT)
Dahlmannstrasse 2
D-53113 Bonn

E-mail: [email protected]
Internet: http://www.b-it-center.de

Reply via email to