Tao (陶信东) wrote:
> Thanks Paolo, I'll try that.
>
> Meanwhile, would you please clarify whether Fuseki will build LARQ index
> automatically, after the patch?
Yes, if the directory does not exist LARQ will create it and build the Lucene
index automatically, if a directory exists a Lucene index will be opened
pointing to that directory (however, if the directory exists and it's empty,
you'll have an empty Lucene index as result):
if ( indexPath != null )
{
File path = new File(indexPath) ;
if ( !path.exists() )
{
log.debug("Directory {} does not exist, building Lucene
index...") ;
path.mkdirs() ;
build ( dataset, path ) ;
}
directory = FSDirectory.open(path);
} else {
directory = new RAMDirectory();
}
http://svn.apache.org/repos/asf/incubator/jena/Jena2/LARQ/tags/jena-larq-1.0.0-incubating/src/main/java/org/apache/jena/larq/assembler/AssemblerLARQ.java
> Your reply and Venkat's seemed different regarding this.
This is because things have been improved since the latest release.
Paolo
>
> Thanks
> Tao
>
> -----Original Message-----
> From: Paolo Castagna [mailto:[email protected]]
> Sent: Wednesday, April 25, 2012 6:51 PM
> To: [email protected]
> Subject: Re: [ANN] Release of Apache Jena LARQ 1.0.0-incubating
>
> Hi Tao
>
> Tao(陶信东) wrote:
>> Hi Paolo,
>>
>> This is great! I've been waiting for it since several weeks ago.
>
> Good to know.
>
>> However, after I configured Fuseki for it by adding LARQ to my class
>> path and the following lines to the assembly file, pf:textMatch
>> doesn't work (the usual sparql query works).
>>
>> <#dataset> rdf:type tdb:DatasetTDB ;
>> tdb:location "/path/to/my/tdb/indexes/" ;
>> ja:textIndex "/path/to/lucene/index/" ;
>> .
>>
>> Is Fuseki supported by this LARQ release?
>
> Fuseki does not include LARQ.
>
> For more details, please, see also:
> https://issues.apache.org/jira/browse/JENA-63
> https://issues.apache.org/jira/browse/JENA-164
>
> The good news is that it is extremely easy to check out Fuseki sources,
> patch the pom.xml file and repackage it (i.e. mvn package). See:
> https://issues.apache.org/jira/secure/attachment/12504042/JENA-63_Fuseki_r12
> 03107.patch
> (be warned, that patch might not be up-to-date, but you see it's just a new
> dependency on LARQ).
>
>> Or should I build the lucene index
>> by myself when Fuseki started?
>
> No, you do not need that.
>
> 1. Checkout Fuseki source code.
> 2. Add LARQ dependency to the Fuseki pom.xml file 3. mvn package
>
> Let me know how it goes and if you have problems.
>
> Cheers,
> Paolo
>
>> Thanks
>> Tao
>>
>> -----Original Message-----
>> From: Paolo Castagna [mailto:[email protected]]
>> Sent: Tuesday, April 24, 2012 5:43 AM
>> To: [email protected]
>> Subject: [ANN] Release of Apache Jena LARQ 1.0.0-incubating
>>
>> LARQ 1.0.0-incubating has been released, this is the first release of
>> LARQ as separate module and under the Apache License.
>>
>> LARQ is a combination of ARQ and Lucene aimed at providing developers
>> with the ability to perform free text searches within their SPARQL
> queries.
>> Documentation for LARQ is available here:
>>
>> - http://incubator.apache.org/jena/documentation/larq/
>> - http://incubator.apache.org/jena/documentation/javadoc/larq/
>>
>>
>> == Mailing lists
>>
>> The user mailing list for Jena is [email protected]
>> Send email to [email protected] to subscribe.
>>
>> See also:
>> http://incubator.apache.org/jena/help_and_support/index.html
>>
>>
>> == About This Release
>>
>> The main new feature in this release is support for updating the
>> Lucene index as RDF statements are added/removed to the Jena Model via
>> the Jena APIs.
>> Moreover, LARQ now depends on Apache Lucene 3.5.0.
>>
>>
>> == Download
>>
>> Maven artifacts are here:
>> http://repo1.maven.org/maven2/org/apache/jena/jena-larq/1.0.0-incubati
>> ng/
>>
>> Source release is here:
>> http://www.apache.org/dyn/closer.cgi/incubator/jena/jena-larq-1.0.0-in
>> cubati
>> ng
>>
>>
>> == Status
>>
>> Apache Jena is an effort undergoing incubation at the Apache Software
>> Foundation (ASF), sponsored by the Apache Incubator PMC.
>>
>> Incubation is required of all newly accepted projects until a further
>> review indicates that the infrastructure, communications, and decision
>> making process have stabilized in a manner consistent with other
>> successful ASF projects.
>>
>> While incubation status is not necessarily a reflection of the
>> completeness or stability of the code, it does indicate that the
>> project has yet to be fully endorsed by the ASF.
>>
>> For more information about the incubation status of the Jena project
>> you can go to the following page:
>> http://incubator.apache.org/projects/jena.html
>>
>