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: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> DELETE { ?sub ?rp ?sub . ?rei ?reip ?reio . } WHERE { 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 <[email protected]> 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 --update=UPDATE.ru > > Will add tdbupdate sometime. > > Andy >
