Le 11/10/11 10:08, Andy Seaborne a écrit :
Jérôme,
Sorry if you've said this before in previous emails but what's the
query and what's the data like? When did you last update LARQ?
Hi Andy,
I did my last LARQ update 2 days ago. The problem is not about datas,
because the result is the same with the books.ttl file: 0 result with a
very simple query like:
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
SELECT ?doc
{
?lit pf:textMatch 'Potter' .
?doc ?p ?lit
}
I'm trying to find out if something in the chain of packages has
changed and whether we've introduced a a regression in ARQ or LARQ.
The only ARQ change I can think of relates to named graphs but you're
not using named graphs and the change to correctly handle property
functions would only go from 0 to some results.
You have the same data available via <#books> and via <#dataset> --
does the query work one route and not the other or are both now
showing 0 results?
No, simple SPARQL queries works fine. I only have problem on the lucene
indexed datas with LARQ queries.
Jérôme
Andy
On 10/10/11 17:01, Paolo Castagna wrote:
Hi Jérôme,
first of all, thanks for helping out testing the LARQ
0.2.2-incubating-SNAPSHOT
and for your patience. ;-)
This hopefully will help to spot problems early one and reduce
problems once ARQ
and LARQ are released within Apache.
Jérôme wrote:
Hi,
i've recently made an svn up on my LARQ directory.
Now, my LARQ queries return 0 solution (they returned before).
I'm using:
- fuseki 0.2.1-SNAPSHOT
-arq 2.8.9-SNAPSHOT
-larq 0.2.2-incubating-SNAPSHOT
According to the LARQ's pom.xml file [1], LARQ
0.2.2-incubating-SNAPSHOT now
depends on the new ARQ SNAPSHOTs.
Precisely, it depends on
org.apache.jena:jena-arq:2.8.9-incubating-SNAPSHOT
Please note the new groupId and artifactId for ARQ.
New ARQ SNAPSHOTs are available here [2].
[1]
https://svn.apache.org/repos/asf/incubator/jena/Jena2/LARQ/trunk/pom.xml
[2]
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-arq/2.8.9-incubating-SNAPSHOT/
-lucene 3.1.0
My config.ttl file has not changed:
[...]
<#books> rdf:type ja:RDFDataset ;
rdfs:label "Books" ;
ja:defaultGraph
[ rdfs:label "discours_de_la_methode.rdf" ;
a ja:MemoryModel ;
ja:content [ja:externalContent<file:Data/file.rdf> ] ;
] ;
.
<#dataset> rdf:type tdb:DatasetTDB ;
tdb:location "/tmp/tdb" ;
ja:textIndex "/tmp/lucene" ;
# Query timeout on this dataset (milliseconds)
ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue
"1000" ] ;
## tdb:unionDefaultGraph true ;
Before running the fuseki server, i build my triple store with the
command-line:
java -cp target/fuseki-0.2.1-SNAPSHOT-sys.jar tdb.tdbloader
--loc=/tmp/tdb Data/file.rdf
Can you please try:
- stop Fuseki
- delete /tmp/lucence
- restart Fuseki
LARQ will now behave like this:
- if the directory exists with a Lucene index, it will leave it
untouched
- if the directory does not exists it will create it and index your
data
What do you have in your /tmp/lucene directory?
So, i've no error - juste 0 result...
Any ideas?
Thank you.
Let us know how it goes,
Paolo