[Mulgara-general] Using Lucene from SPARQL
Giulio Paci
g.paci at cineca.it
Thu Aug 12 16:49:07 UTC 2010
Hi to all!
I've just started doing some experiments using Lucene with Mulgara,
but I only managed to get partial success. My goal is to get both the
search results and their score using SPARQL.
The following TQL query is working as expected:
"select $uri $score from <rmi://my#lucene>
where
$uri <http://mulgara.org/mulgara#search> $q in <rmi://my#lucene>
and $q <http://my/my.owl#hasDescription> 'querystring' in <rmi://my#lucene>
and $q <http://mulgara.org/mulgara#score> $score in <rmi://my#lucene>"
Nevertheless it is not possible to remove any of the "in
<rmi://my#lucene>" or the query won't give any result, even with the
default graph set to "<rmi://my#lucene>".
I'm trying the following SPARQL query without success:
"select ?uri ?score
from <rmi://my#lucene>
where
{
graph <rmi://my#lucene>
{
?uri <http://mulgara.org/mulgara#search> ?q
. ?q <http://my/my.owl#hasDescription> 'querystring'
. ?q <http://mulgara.org/mulgara#:score> ?score
}
}"
Does anyone knows how can I solve this issue? Am I doing something wrong?
The following query is working:
"select ?uri
from <rmi://my#lucene>
where
{
graph <rmi://my#lucene>
{
?uri <http://my/my.owl#hasDescription> 'querystring'
}
}"
Any help is appreciated.
Bests,
Giulio.
More information about the Mulgara-general
mailing list