You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Andy Seaborne <an...@epimorphics.com> on 2011/05/10 22:09:02 UTC
LARQ release
>>> Having LARQ is Fuseki is really valuable IMHO.
>>> Using the new LARQ keeps Lucene indexes up-to-date with TDB and it
>>> avoids
>>> duplicates. This, IMHO, is another really valuable thing for LARQ users.
>>
>> Not disagreeing but there seems to be no migration plan or documentation.
>
> If we leave the old/legacy LARQ in ARQ as it is, no migration plan is
> necessary.
> People can decide which one to use.
I thought that indexes built with ARQ do not work with LARQ ones due to
the new field. At least, flipping between the two could cause issues?
What describing about assembler file changes to connect the text index
to the dataset?
> Documentation: yes, necessary but there are no actual changes from an
> API or
> use point of view. For developers, I'll document how to add a dependency on
> LARQ artifacts if they want to use the new/separate module.
>
>> Why don't we just switch to LARQ now?
>
> I'd prefer to add LARQ to Fuseki first, so that we can make it easier for
> people to try it out, they can report us feedback and if it's ok we can
> then remove the old LARQ from ARQ.
I'm not sure how much feed back that'll produce.
Fuseki is distributed as a complete jar as well as via maven. As a
complete jar, it won't have LARQ in it, would it? So used that way, the
most common way, won't exercise LARQ?
And the assembler description needs to change to activeate the index so
even if it's included, the user has to do something to get it's benefits.
> Leaving LARQ in ARQ minimize risk and changes and it offers a fall back
> to people.
>
>> If it's not automatic (Lucene3 can read Lucen2 indexes?), then we need
>> to document how the user can do an upgrade.
>
> The new LARQ adds a new field to the Lucene index (i.e. "hash") to support
> unindex/deletes, see [1], therefore a reindex (using the usual larqbuild is
> necessary).
I think that needs explaining somewhere + the assembler changes, or
people may not realise the benefits of LARQ.
> Paolo
Re: LARQ release
Posted by Andy Seaborne <an...@epimorphics.com>.
On 11/05/11 11:27, Paolo Castagna wrote:
> I'd like to publish the documentation for the new LARQ module here:
> http://openjena.org/wiki/LARQ
> ... while things move further on the official Jena website.
> What do you think?
I think that the documentation might as well go straight to the jena web
site on Apache. Let's plan for success here - we ought to move to
Apache infrastructure ASAP. Material on openjena.org/wiki will need
converting -- may be it's a trivial task, maybe it's not (I don't know)
but why risk it? And openjena.org/wiki isn't well backed up.
Andy
Re: LARQ release
Posted by Andy Seaborne <an...@epimorphics.com>.
On 11/05/11 11:27, Paolo Castagna wrote:
> Hi Andy,
> short answer: I am happy to release LARQ and at the same time remove the
> old/legacy LARQ from ARQ.
OK
> My proposal to gather some feedback from users would be to add the
> new LARQ to Fuseki, as shown here: [1].
...
> For LARQ, the version number has little meaning at the moment. It could
> be 0.9.0 to signal that it has not been used in production (AFAIK) or it
> could be 1.0.0 (since LARQ is coming from ARQ anyway and it has been
> around for a while).
...
> However, I'd like to try to do a release "compliant" with the
> release process at Apache (should it switch license to ASL? Why not?)
so the next step then is a LARQ module release?
and before Fuseki should pick up the POM patch?
Unless the LARQ release is going to happen quite soon, I don't want to
leave Fuseki in a state for any significant period of time where a
release picks up unreleased code.
At the moment, if necessary, we can do ARQ and TDB releases -- this is
what I did for Fuseki 0.2.0 to make sure 0.2.0 picked up real versions:
fuseki-server --version ==>
Jena: VERSION: 2.6.4
Jena: BUILD_DATE: 2010-12-12T16:56:15+0000
ARQ: VERSION: 2.8.8
ARQ: BUILD_DATE: 2011-04-21T10:12:50+0100
TDB: VERSION: 0.8.10
TDB: BUILD_DATE: 2011-04-21T10:22:54+0100
Fuseki: VERSION: 0.2.0
Fuseki: BUILD_DATE: 2011-04-21T10:29:50+0100
Not a coincident that the build dates are 2011-04-21
Andy
Re: LARQ release
Posted by Paolo Castagna <ca...@googlemail.com>.
Hi Andy,
short answer: I am happy to release LARQ and at the same time remove the
old/legacy LARQ from ARQ.
long answer: inline.
Paolo
Andy Seaborne wrote:
> I'm still unclear as to why we don't just release LARQ as the way to do
> free text query with ARQ. Are there circustances when a user would not
> want to use LARQ - can we address them in LARQ in someway rather than
> having the user need to know the difference?
A release of LARQ does not imply removing the old LARQ from ARQ.
The two could coexist.
Leaving the old LARQ in ARQ allows people to chose when they want
to migrate, they could upgrade ARQ without the need to migrate their
Lucene indexes (via reindexing). Removing LARQ from ARQ implies we
decide for them that when they upgrade ARQ they will also be using
the new LARQ. If they are using LARQ, an ARQ upgrade will not be
a drop-in replacement (a reindex is necessary).
The separate LARQ module adds new features (i.e. removals, duplicate
avoidance) and it's an upgrade to Lucene v3.1.0. I'd prefer to gather
some feedback from users before removing what's there in ARQ.
My proposal to gather some feedback from users would be to add the
new LARQ to Fuseki, as shown here: [1].
We are using LARQ, the separate module, with Fuseki in a small internal
pilot. We do not use the old/legacy LARQ included in ARQ because it does
not provide removals and therefore the free text index is not kept up-to
-date with the RDF indexes as people add/remove data.
It seems to me you are in favor of: "releasing LARQ + removing
LARQ from ARQ" at the same time.
> This seems sufficiently useful that we could declare ARQ 2.9.0.
Yes.
> It seems to me that it's better to take the hit of changing over now to
> reduce long term support costs.
I am happy to release LARQ and at the same time remove the old/legacy
LARQ from ARQ.
For LARQ, the version number has little meaning at the moment. It could
be 0.9.0 to signal that it has not been used in production (AFAIK) or it
could be 1.0.0 (since LARQ is coming from ARQ anyway and it has been
around for a while).
AFAIK there are not pending changes from a code point of view.
However, I'd like to try to do a release "compliant" with the
release process at Apache (should it switch license to ASL? Why not?)
LARQ release needs to happen before we remove LARQ from ARQ.
LARQ release == Maven artifacts published on the Jena repo.
I don't see the need for a .tar.gz since LARQ is like a plug-in
for ARQ and it does not work on its own. It's a library aimed at
developers. Do you agree?
I'd like to publish the documentation for the new LARQ module here:
http://openjena.org/wiki/LARQ
... while things move further on the official Jena website.
What do you think?
For end users, it would be good to have LARQ included (by default)
in Fuseki.
Paolo
>
> Andy
>
[1]
https://issues.apache.org/jira/secure/attachment/12478735/JENA-63_Fuseki_r8810.patch
Re: LARQ release
Posted by Andy Seaborne <an...@epimorphics.com>.
I'm still unclear as to why we don't just release LARQ as the way to do
free text query with ARQ. Are there circustances when a user would not
want to use LARQ - can we address them in LARQ in someway rather than
having the user need to know the difference?
This seems sufficiently useful that we could declare ARQ 2.9.0.
It seems to me that it's better to take the hit of changing over now to
reduce long term support costs.
Andy
Re: LARQ release
Posted by Paolo Castagna <ca...@googlemail.com>.
On 10 May 2011 21:58, Paolo Castagna <ca...@googlemail.com> wrote:
> On 10 May 2011 21:09, Andy Seaborne <an...@epimorphics.com> wrote:
>> Fuseki is distributed as a complete jar as well as via maven. As a complete
>> jar, it won't have LARQ in it, would it? So used that way, the most common
>> way, won't exercise LARQ?
>
> Fuseki can have LARQ in it, one way to do is by adding a dependency to LARQ:
>
> <dependency>
> <groupId>org.apache.jena</groupId>
> <artifactId>larq</artifactId>
> <version>${ver.larq}</version>
> </dependency>
>
> Which has a transitive dependency on Lucene v3.1.0 and, therefore, we need to
> exclude the Lucene dependency from arq and arq-test in Fuseki's pom.xml.
> This is what I tried to do at r8810.
>
> Currently, the distribution of Fuseki as a complete jar includes ARQ (which has
> the old/legacy LARQ in it and Lucene v2.3.1). I don't see why it couldn't have
> the new LARQ with Lucene v3.1.0 in it, instead. If we decide to do so.
See JENA-63_Fuseki_r8810.patch here:
https://issues.apache.org/jira/secure/attachment/12478735/JENA-63_Fuseki_r8810.patch
Fuseki dependency on ARQ 2.8.9-SNAPSHOT has not changed.
Fuseki dependency on TDB 0.8.10 has been upgraded to 0.8.11-SNAPSHOT.
A new dependency on LARQ 0.2.2-SNAPSHOT has been added (and transitive
dependency to lucene-core v3.1.0).
Lucene dependency has been excluded from arq and arq-test, otherwise
Lucene v2.3.1 is included.
The result is Fuseki with LARQ in it.
Example assembler.ttl file:
------
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
<#dataset> rdf:type tdb:DatasetTDB ;
tdb:location "/path/to/your/tdb/indexes/" ;
ja:textIndex "/path/to/lucene/index/" ;
.
------
Lucene index can be built using larq.larqbuild:
java -cp fuseki-0.2.1-SNAPSHOT-sys.jar larq.larqbuilder
--allow-duplicates --larq=/path/to/lucene/index/
--desc=/path/to/your/assembler.ttl
Fuseki can be started as usual, if an assembler.ttl is used and
ja:textIndex is specified, LARQ works with Fuseki.
Paolo
Re: LARQ release
Posted by Paolo Castagna <ca...@googlemail.com>.
Hi Andy
On 10 May 2011 21:09, Andy Seaborne <an...@epimorphics.com> wrote:
>>>> Having LARQ is Fuseki is really valuable IMHO.
>>>> Using the new LARQ keeps Lucene indexes up-to-date with TDB and it
>>>> avoids
>>>> duplicates. This, IMHO, is another really valuable thing for LARQ users.
>>>
>>> Not disagreeing but there seems to be no migration plan or documentation.
>>
>> If we leave the old/legacy LARQ in ARQ as it is, no migration plan is
>> necessary.
>> People can decide which one to use.
>
> I thought that indexes built with ARQ do not work with LARQ ones due to the
> new field. At least, flipping between the two could cause issues?
I wrote: people can decide which one to use, not flip between the two.
Flipping between old/legacy LARQ in ARQ to new LARQ requires
re-indexing (larqbuild can be used for that).
However, leaving LARQ in ARQ allows people to chose when they want to migrate.
ARQ can be released, people can upgrade ARQ without reindexing (if
they are using the old LARQ).
> What describing about assembler file changes to connect the text index to
> the dataset?
As you suggested, changes to the assembler file are minimal:
<#ds1> rdf:type ja:RDFDataset ;
ja:textIndex "/path/to/lucene/index" ;
Should LARQ use ja namespace or a different one?
I'll provide a new paragraph describing this to be added to the LARQ
documentation.
>> Documentation: yes, necessary but there are no actual changes from an
>> API or
>> use point of view. For developers, I'll document how to add a dependency
>> on
>> LARQ artifacts if they want to use the new/separate module.
>>
>>> Why don't we just switch to LARQ now?
>>
>> I'd prefer to add LARQ to Fuseki first, so that we can make it easier for
>> people to try it out, they can report us feedback and if it's ok we can
>> then remove the old LARQ from ARQ.
>
> I'm not sure how much feed back that'll produce.
>
> Fuseki is distributed as a complete jar as well as via maven. As a complete
> jar, it won't have LARQ in it, would it? So used that way, the most common
> way, won't exercise LARQ?
Fuseki can have LARQ in it, one way to do is by adding a dependency to LARQ:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>larq</artifactId>
<version>${ver.larq}</version>
</dependency>
Which has a transitive dependency on Lucene v3.1.0 and, therefore, we need to
exclude the Lucene dependency from arq and arq-test in Fuseki's pom.xml.
This is what I tried to do at r8810.
Currently, the distribution of Fuseki as a complete jar includes ARQ (which has
the old/legacy LARQ in it and Lucene v2.3.1). I don't see why it couldn't have
the new LARQ with Lucene v3.1.0 in it, instead. If we decide to do so.
Having the new LARQ with Lucene v3.1.0 in Fuseki would be my favourite choice.
If the new LARQ is not in Fuseki, I don't see how one could use it with Fuseki
without patching the pom.xml and repackaging it or creating a new project which
depends on Fuseki and on LARQ.
> And the assembler description needs to change to activeate the index so even
> if it's included, the user has to do something to get it's benefits.
Yes, users will need to add one line (i.e. ja:textIndex
"/path/to/lucene/index" )
to their assembler file, supposing they are using an assembler file.
If they are not using an assembler file, a command line option could be added
to point to a Lucene index directory (same as it is done to point to a TDB index
directory). This would probably be even simpler for Fuseki users.
>> Leaving LARQ in ARQ minimize risk and changes and it offers a fall back
>> to people.
>>
>>> If it's not automatic (Lucene3 can read Lucen2 indexes?), then we need
>>> to document how the user can do an upgrade.
>>
>> The new LARQ adds a new field to the Lucene index (i.e. "hash") to support
>> unindex/deletes, see [1], therefore a reindex (using the usual larqbuild
>> is
>> necessary).
>
> I think that needs explaining somewhere + the assembler changes, or people
> may not realise the benefits of LARQ.
Yes, I agree. I'll do.
Paolo
>
>> Paolo
>