kal/relfinder

Error in SPARQL query generated

Opened this issue · 0 comments

I am testing relfinder on a local virtuoso sparql endpoint. It fails on the 
initial autocomplete search. 


In the loaded config I use :

      <autocompleteURIs>
        <autocompleteURI>http://www.w3.org/2000/01/rdf-schema#label</autocompleteURI>
        <autocompleteURI>http://xmlns.com/foaf/0.1/Person</autocompleteURI> 
        <autocompleteURI>http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work</autocompleteURI> 
      </autocompleteURIs>

In the error log I extract the following SPARQL query :

SELECT ?s ?l count(?s) as ?count WHERE 
         { ?someobj ?p ?s . 
            ?s <http://www.w3.org/2000/01/rdf-schema#label> ?l UNION 
            { ?s <http://xmlns.com/foaf/0.1/Person> ?l } 
              UNION 
            { ?s <http://rdvocab.info/uri/schema/FRBRentitiesRDA/Work> ?l } . 
          ?l bif:contains "'search'" . 
          FILTER (!regex(str(?s), '^http://dbpedia.org/resource/Category:')). 
          FILTER (!regex(str(?s), '^http://dbpedia.org/resource/List')). 
          FILTER (!regex(str(?s), '^http://sw.opencyc.org/')). 
          FILTER (!isLiteral(?someobj)). } 
ORDER BY DESC(?count) LIMIT 20

It seems to be missing a {} around the 
http://www.w3.org/2000/01/rdf-schema#label triple ... or am I missing something 
? 

Original issue reported on code.google.com by arthur.l...@gmail.com on 3 Jan 2012 at 5:07