On 3/25/2013 17:16, Suat Gonul wrote:
> Hello everyone,
>
> I have indexed an RDF graph using the " ISQL interface" with the
> command " DB.DBA.RDF_OBJ_FT_RULE_ADD (null, null, 'All');". I am
> executing a free text search on the indexed graph with a SPARQL query
> like below:
>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
> SELECT ?s ?name ?sc FROM <2.16.840.1.113883.6.163>
> WHERE {
>     ?s rdf:type skos:Concept .
>     ?s skos:prefLabel ?name .
>     ?name bif:contains '"Infarc*"'
>     OPTION (score ?sc) .
> } ORDER BY DESC (?sc) LIMIT 10
>
>
> The labels and corresponding scores I obtain are as follows:
>
> Hepatic infarction 18
> Cerebral infarction 18
> Thalamic infarction 18
> Cerebellar infarction 18
> Placental infarction 18
> Thyroid infarction 18
> ....
>
> If I add a t to the query so that the line would become like this:
> ?name bif:contains '"Infarct*"'
>
> Infarction 22
> Acute myocardial infarction 20
> Hepatic infarction 20
> Cerebral infarction 20
> Thalamic infarction 20
> Silent myocardial infarction 20
> ....
>
> What I would like to have is to obtain higher scores for the
> "Infarction" concept when I search with less characters. I mean
> searching with "Infa*" or "Infar*". Is this a feasible request? If so,
> how can I achieve this?
>
> Thanks in advance for your help.
>
> Best,
> Suat

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to