On 11/03/14 08:38, Harkishan Singh wrote:
Hi,
I download the source code of jena-text version 1.0.0 and found that
mechanism for finding score is not implemented (went through this file
TextQueryPF.java) where as in LARQ this mechanism was there.
I'm not sure whether in version 1.0.1 they have implemented it.
I executed this query but didn't got any score.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX text: <http://jena.apache.org/text#>
SELECT ?s ?score
{?s text:query ("xyz" ?score ). }
Things in the triple object position are argument to the property
function - they need to be bound, they are not "out" parameters so score
there is used to limit the results (not that it's implemented IIRC -
awaiting a contribution).
The intended design is that the subject position is used for output of
the function (if already bound, it's effective a test of the right value).
So it would be
{ (?s ?score) text:query ("xyz"). }
but again not yet implemented.
Andy
Does any one have an idea whether in latest version 1.0.1 they have
implemented it or not.
Thanks,
Harkishan Singh