Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Error in SPARQL query generated #47

Open
GoogleCodeExporter opened this issue Dec 5, 2015 · 0 comments
Open

Error in SPARQL query generated #47

GoogleCodeExporter opened this issue Dec 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 3 Jan 2012 at 5:07

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant