Hi Nikolaos,
you can use the new LARQ (the one from the separate module) but you need to 
wire it into ARQ yourself.

Package has changed but not the class names. See org.apache.jena.larq.LARQ:
https://jena.svn.sourceforge.net/svnroot/jena/LARQ/trunk/src/main/java/org/apache/jena/larq/LARQ.java

LARQ.init() should work.

Then, in your code, be careful to use classes from the org.apache.jena.larq.* 
package.

I also updated the ARQ dependency pointing to the latest stable release of ARQ.

You can find Maven artifacts here:
http://oss.talisplatform.com/content/repositories/talis-releases/org/apache/jena/larq/
http://oss.talisplatform.com/content/repositories/talis-snapshots/org/apache/jena/larq/

I hope to have have this "fixed" with the next ARQ release or so.

In the meantime, please, give it another try and let me know how it goes.
Testing and feedback from users is really useful.

Paolo


Nikolaos Abatzis wrote:
Paolo,

Thanks for all your help.
We were preparing for a customer demo, hence my delayed response. I did get LARQ and 
build it successfuly. Unless I am doing something wrong the problem is that there is no 
"stripped down" arq and it seems that the classloader picks up the larq classes 
from the arq jar versus the larq jar, I created and bundled with my project.

Am I missing something or should I just wait for the LARQ-less arq jar?

Please do not hesitate to contact me if you need additional information. Thank 
you.

Regards,

Nikolaos Abatzis
New River Systems Corporation
1890 Preston White Drive, Suite 240
Reston, VA 20191
________________________________________
From: Paolo Castagna [[email protected]]
Sent: Wednesday, March 16, 2011 3:00 PM
To: [email protected]
Subject: Re: ARQ + Lucene

Nikolaos Abatzis wrote:
All:

I just did a check on the 2.6.4 Jena bundle and I see that even the latest ARQ 
(2.8.7) seems to use the lucene-core-2.3.1.

Are there any plans to port ARQ so that it uses a more recent version of 
Lucene. 2.3.1 is kind of ancient, current in the 2.x series is 2.9.4
and my understanding is that it uses Java 1.4. There is also a 3.x series that 
uses Java 1.5. per the lucene docs, the latest versions offer
significant enhancements and have fixed memory leaks, etc...

"Lucene 2.3.1 is kind of ancient", I agree. :-)

Yes, the plan is to extract LARQ as a separate module (which will depend on 
ARQ).

You can look here: https://jena.svn.sourceforge.net/svnroot/jena/LARQ/trunk/
As you can see, it is using Lucene 3.0.3 (and it is backward compatible with 
2.9.x
... as just a drop-in replacement if somebody needs an older version of Lucene).

We are currently waiting the "all clear" to move source code from SourceForge 
to the
Apache SVN repository. Once we do that, little changes are necessary in the ARQ
source code to dynamically look for LARQ and wiring it in (if present in the 
class
path).

The LARQ separate module has already a few improvements (i.e. avoiding 
duplicates
with subsequents updates and removals).

Still pending:

  - a way to support RDF Datasets in addition to Jena Models and proper 
assemblers.
  - a tool to make it easier to build Lucene indexes pointing to a TDB location.
  - (at one point, I'd like to see LARQ in Fuseki ;-))

Later:

  - Solr? https://github.com/castagna/SARQ
  - ElasticSearch? https://github.com/castagna/EARQ

To checkout LARQ and compile it type:
svn co https://jena.svn.sourceforge.net/svnroot/jena/LARQ/trunk/ LARQ
cd LARQ
mvn package

Let me know if you have problems,
Paolo

Please do not hesitate to contact me if you need additional information. Thank 
you.

Regards,

Nikolaos Abatzis
New River Systems Corporation
1890 Preston White Drive, Suite 240
Reston, VA 20191

Reply via email to