Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21C856932 for ; Fri, 20 May 2011 09:56:28 +0000 (UTC) Received: (qmail 42196 invoked by uid 500); 20 May 2011 09:56:28 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 42172 invoked by uid 500); 20 May 2011 09:56:28 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 42163 invoked by uid 99); 20 May 2011 09:56:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 09:56:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2011 09:56:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 66604D2C60 for ; Fri, 20 May 2011 09:55:47 +0000 (UTC) Date: Fri, 20 May 2011 09:55:47 +0000 (UTC) From: "Andy Seaborne (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <1982769085.30087.1305885347416.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1893834907.18819.1305630107842.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (JENA-65) Provide add and remove methods with nodes as paramaters in DatasetGraph MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JENA-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne resolved JENA-65. ------------------------------- Resolution: Fixed Patch checked and applied. > Provide add and remove methods with nodes as paramaters in DatasetGraph > ------------------------------------------------------------------------ > > Key: JENA-65 > URL: https://issues.apache.org/jira/browse/JENA-65 > Project: Jena > Issue Type: Improvement > Components: ARQ > Reporter: Laurent Pellegrino > Assignee: Andy Seaborne > Labels: api, arq > Attachments: arq-add-delete.patch > > > From an instance of DatasetGraphTDB for example, it is possible to add or to remove quads with a Quad as parameter. However if we have the set of nodes associated to a Quad (g, s, p, o), it is not possible to directly add or delete a quad by using these nodes. In order to do that we have to create a new Quad with the nodes. I think it would be nice to provide an add(Node g, Node s, Node p, Node o) and a delete(Node g, Node s, Node p, Node o). First, to be consistent because you already provide it for contains(Node g, Node s, Node p, Node o), find(Node g, Node s, Node p, Node o) and deleteAny(Node g, Node s, Node p, Node o). But also because it offers the possibility to avoid to create Quads for people who provide their own Quadruple abstraction (which uses Jena Nodes). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira