Return-Path: Delivered-To: apmail-incubator-jena-users-archive@minotaur.apache.org Received: (qmail 84958 invoked from network); 1 Feb 2011 15:02:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2011 15:02:09 -0000 Received: (qmail 71560 invoked by uid 500); 1 Feb 2011 15:02:09 -0000 Delivered-To: apmail-incubator-jena-users-archive@incubator.apache.org Received: (qmail 71270 invoked by uid 500); 1 Feb 2011 15:02:07 -0000 Mailing-List: contact jena-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-users@incubator.apache.org Delivered-To: mailing list jena-users@incubator.apache.org Received: (qmail 70592 invoked by uid 99); 1 Feb 2011 15:02:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 15:02:06 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_FROM,FSL_RU_URL,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bimargulies@gmail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Feb 2011 15:02:00 +0000 Received: by iyj18 with SMTP id 18so6283884iyj.6 for ; Tue, 01 Feb 2011 07:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=b3f2NlKWJPDOuWGAYgV6LPB325z1i1NCay7L0jUq4no=; b=iFtbHHI4oCufBwuMZKaOrupnprwG7y3H1q31e8XGu47+E6opOZJv2zGzFcaJsa1ifd ZYN6Qx4W7LN2wGHN5PrALpzgBWDn9x84LxLunKgWHRNrSFac38tMjm1aC+XB27aqGUJj Z1H7mkNlCbuV5Y+rj73RKCw0sMdgYpDt1Z67g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=AaA1P59/ZyA8Hjh0T0r1kYosxFaXWrJKV6qdBFIHCAmSRPS/pTggvkizZeGn89o+x4 BLDjDSfNP+70gDIqL6idzpLk3fHpBS052iUEgk3CIm3CYkZenBbAZoXaZs0OE0N+YAqJ X71PoUm1xs3KjDM5QfM8zWmkuw4MLNcNtc5mc= MIME-Version: 1.0 Received: by 10.42.176.199 with SMTP id bf7mr9736602icb.82.1296572499723; Tue, 01 Feb 2011 07:01:39 -0800 (PST) Received: by 10.42.178.196 with HTTP; Tue, 1 Feb 2011 07:01:39 -0800 (PST) In-Reply-To: <4D481E80.2010504@epimorphics.com> References: <4D481E80.2010504@epimorphics.com> Date: Tue, 1 Feb 2011 10:01:39 -0500 Message-ID: Subject: Re: SPARQL update in TDB via command line From: Benson Margulies To: jena-users@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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: DELETE { ?sub ?rp ?sub . ?rei ?reip ?reio . } WHERE { GRAPH { ?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 --update=3DUPDATE.ru > > Will add tdbupdate sometime. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Andy >