0

我正在使用 SPARQL 查询 DBpedia 数据库。我的第一个查询如下:

select ?s1 ( bif:search_excerpt ( bif:vector ( 'TENDULKAR', 'SACHIN' ) , ?o1 ) ) where 
{ 
 { 
  { 
    select ?s1, ( ?sc * 3e-1 ) as ?sc, ?o1, ( sql:rnk_scale ( <LONG::IRI_RANK> ( ?s1 ) ) ) as ?          rank, ?g where 
    { 
      quad map virtrdf:DefaultQuadMap 
      { 
        graph ?g 
        { 
          ?s1 ?s1textp ?o1 .
          ?o1 bif:contains ' ( TENDULKAR AND SACHIN ) ' option ( score ?sc ) .

        }
       }
     }
   order by desc ( ?sc * 3e-1 + sql:rnk_scale ( <LONG::IRI_RANK> ( ?s1 ) ) ) limit 20 offset 0 
  }
 }
}

现在,即使我将DISTINCT关键字应用于查询,它也会给出与以前相同的结果。

我想从这个查询中得到不同的结果。

4

0 回答 0