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 D10C38315 for ; Tue, 13 Sep 2011 16:46:06 +0000 (UTC) Received: (qmail 50123 invoked by uid 500); 13 Sep 2011 16:46:06 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 50095 invoked by uid 500); 13 Sep 2011 16:46:06 -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 50087 invoked by uid 99); 13 Sep 2011 16:46:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 16:46:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,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 castagna.lists@googlemail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 16:45:59 +0000 Received: by wwf27 with SMTP id 27so971967wwf.0 for ; Tue, 13 Sep 2011 09:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=IHbBP3En+EYSHoEwxXcDYQgDnw+EWovPEOsD0n2hqes=; b=dh07RYla2DamzD+0GCQiJV33hXgHEmmAEgVflaVCKwXTMAk3rYe6irTua59BrEz02d Axqkss0gzyP9r0RFieELOt79sX7LQBAhqttWdru72/mv+6G5koYKtQ+t9godAskNfWPV lSmjSKtReoMUX8/hMlUQk7LQGZ2b5dmarCYTE= Received: by 10.227.59.211 with SMTP id m19mr1621908wbh.56.1315932338861; Tue, 13 Sep 2011 09:45:38 -0700 (PDT) Received: from [192.168.10.120] ([212.36.55.94]) by mx.google.com with ESMTPS id fp17sm1022683wbb.6.2011.09.13.09.45.37 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Sep 2011 09:45:38 -0700 (PDT) Message-ID: <4E6F88B0.6030705@googlemail.com> Date: Tue, 13 Sep 2011 17:45:36 +0100 From: Paolo Castagna User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: jena-dev@incubator.apache.org Subject: Re: Jena and PostGIS =?UTF-8?B?KMOgIGxhIExBUlEp?= References: <4E6F41B8.8050600@oucs.ox.ac.uk> <4E6F6E49.50502@googlemail.com> <4E6F7355.6090408@oucs.ox.ac.uk> <4E6F867C.10506@epimorphics.com> In-Reply-To: <4E6F867C.10506@epimorphics.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Andy Seaborne wrote: > > > On 13/09/11 16:14, Alexander Dutton wrote: >> Does Fuseki/TDB currently fire off some kind of signal when updates >> happen? > > Handling of events isn't consistent yet. > > Each GraphStore sees startRequest()/finishRequest() around a SPARQL > Update. That should be roughly what you are looking for, I guess. > > There isn't an event down to the level of each quad added or removed. This might be easier for developers (since they don't need to parse the SPARQL Update request). But, maybe there is a good reason why there isn't an event down to the level of each quad added|removed. Let me guess: performances? :-) > Now is a good time to work out the details of what's wanted. The > original jena events mechanism works well but places the events on an > object, so only objects supporting the event interface participate. > Makes global or general events unnatural as well. Yep. From a LARQ or similar point of view (i.e. third party custom indexes) it would be extremely easy to be able to be notified for each quad added or removed. This way and external index can be kept up-to-date as data changes. Often, there are little changes and it's a waste of time/resources (and it require manual intervention or automated scripts) to re-index everything just because a small percentage of data has changed. > > The package org.openjena.atlas.event (in ARQ) is my attempt to retain > the light weigh event mechanism but decouple it from an event interface. > You can send events relating to objects without the objects participation. I'll have a look (and see if I can use that in LARQ). Thanks, Paolo > > Andy