使用多个过滤器加速SPARQL查询?

时间:2013-07-13 14:58:25

标签: rdf sparql semantic-web dbpedia

有没有办法加速像这样的SPARQL查询?

PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>         
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>           
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>             
PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>               
SELECT ?subject ?label ?lat ?long ?abstract                    
WHERE {                                                        
  ?subject geo:lat ?lat      .                                   
  ?subject geo:long ?long    .                                   
  ?subject rdfs:label ?label .                                   
  ?subject dbpedia-owl:abstract ?abstract .                      
  FILTER(
          xsd:float(?lat)  - 45.9634177 <= 0.05 && 45.9634177 - xsd:float(?lat)  <= 0.05 
       && xsd:float(?long) - 10.90836034 <= 0.05 && 10.90836034 - xsd:float(?long) <= 0.05 
  ).                                                           
  FILTER langMatches( lang(?label), "EN" ).   
  FILTER langMatches( lang(?abstract), "EN" ).                       
}

0 个答案:

没有答案