jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <>
Subject Re: SPARQL update in TDB via command line
Date Tue, 01 Feb 2011 15:01:39 GMT
OK, well, I cooked up a shell script that set classpath to include TDB
and invoke the Jena 'update' command (in my bin dir it's just update,
not arq.update), and an assembler file, and now I am having some
trouble with some SPARQL. goal: to delete some triples of the form X
pred X, and their associated reifications. I derived the following
from a query that lists the pesky items, but it doesn't delete them.

prefix rdf: <>
{ ?sub ?rp ?sub .
  ?rei ?reip ?reio .
  GRAPH <urn:jug:global> {
   ?rei  rdf:type rdf:Statement .
   ?rei  rdf:subject ?sub .
   ?rei  rdf:predicate ?rp .
   ?rei  rdf:object ?sub .
   ?rei ?reip ?reio .

On Tue, Feb 1, 2011 at 9:53 AM, Andy Seaborne
<> wrote:
> On 01/02/11 14:19, Benson Margulies wrote:
>> i was hoping that I could do a DELETE DATA with tdbquery. No such
>> luck, I see. Do I have to have a running fuseki, or is there a simpler
>> solution?
> You can (for all the commands) call the generic ARQ ones, you just need a
> assembler file, not the shortcut of --loc:
> arq.update --desc ASSEMB
> Will add tdbupdate sometime.
>        Andy

View raw message