Return-Path: Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: (qmail 50741 invoked from network); 30 Mar 2011 15:28:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2011 15:28:31 -0000 Received: (qmail 16721 invoked by uid 500); 30 Mar 2011 15:28:31 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 16703 invoked by uid 500); 30 Mar 2011 15:28:31 -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 16695 invoked by uid 99); 30 Mar 2011 15:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 15:28:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Wed, 30 Mar 2011 15:28:25 +0000 Received: by wwb17 with SMTP id 17so1616667wwb.0 for ; Wed, 30 Mar 2011 08:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=+Z/JT9n+4vMTHglLKBQ+kglKa25e5T5D1EYOPNTbDK0=; b=jePBBgoPWjZI12MFka3pRaWUU3tXNIBxivqSkLA63r9JoaQXKd2v/6DzG0ax+2rJZv pYxmyemiR/IEyCeISuGeYTj8nXwMR0/k3io1TGjqgTMnWoijiwuBnVvuV7ZcyA/gWkwQ A2i64CZF1eaCh/l/1BeOCGxwsEKGD/NS4G0rA= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=k1+2KjDSmMIQ4rLXmwnYeBr0xhazUqbHMbR2Zc4kOl9rXreV8xivKTmXsKQpPIY9Ne Q4APCdDJQglHZrshnrEN8+uX1b4OwgMFnhqIEO+jEIajG2C0V4V15CaO6g4DN0hfvRG1 RI5T8vJAsy8dyuoYQdpN80vim0JxNdGXt6YcY= Received: by 10.227.140.32 with SMTP id g32mr1425262wbu.83.1301498883894; Wed, 30 Mar 2011 08:28:03 -0700 (PDT) Received: from [192.168.10.128] ([212.36.55.94]) by mx.google.com with ESMTPS id ed10sm108472wbb.49.2011.03.30.08.28.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2011 08:28:02 -0700 (PDT) Message-ID: <4D934C00.8050104@googlemail.com> Date: Wed, 30 Mar 2011 16:28:00 +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: LARQ indexes and assemblers References: <4D6F7CA0.8050904@epimorphics.com> <4D9040C6.5000501@googlemail.com> <4D922502.1090207@epimorphics.com> <201103300803.11939.chris.dollin@epimorphics.com> In-Reply-To: <201103300803.11939.chris.dollin@epimorphics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Chris Dollin wrote: > On Tuesday, March 29, 2011 07:29:22 pm Andy Seaborne wrote: > >> Chris - if a call to assemble the same resource is made does the >> assembler code return exactly the same (==) object? > > Short answer: no. > > Longer answer: It depends. > > The code that actually does the assembling could cache if it wanted > to. In general it probably shouldn't. And it should be straightforward > to write an assembler wrapper which wrapped a (general) assembler and > cached some (not necessarily all) of the assemblies done. > > Chris Hi Chris, thanks for your answer. This means that LARQ assembler would need to be added to the current RDF Dataset assemblers. For example, for TDB, see DatasetAssemblerTDB: https://jena.svn.sourceforge.net/svnroot/jena/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/assembler/DatasetAssemblerTDB.java We should check if the root resource has a larq:textIndex property and if LARQ jar is in the classpath, if so: create the necessary LARQ specific objects and attach them to the DatasetGraphTDB. I'll try that. Thanks, Paolo