Dear Virtuoso users,

I've a question about using bif:contains and the option ?textscore.

My sparql-query looks like:

select ?fName, ?lName, ?orgLabel, ?psignLabel, ?textScore 
where {
   ?person rdf:type foaf:Person .
       ?person foaf:lastName ?lName .
       ?person foaf:firstName ?fName . 
       ?org org:hasMember ?person .
       ?org skos:prefLabel ?orgLabel . 
       ?person rdfs:member ?psign . 
       ?psign rdf:value ?psignLabel . 
       ?person ?p ?o . ?o bif:contains '"Rito*" or "Pütskül*"' option (score 
?textScore)
}
.

Now I want to order the results by ?textscore with "order by desc(?textScore)", 
but this makes the query very slow.
Are there any other possibilities?

My second Question:
If I use the query above,
- "Rito Pütskül",
- "Rito Dow",
- and "John Pütkskül"
have the same textscore.
Does somebody have a suggestion getting a higher score for "Rito Pütskül"?

Thank you very much.
Best regards,
Christian Sauer. 

Reply via email to