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

Error in SPARQL query generated  #47

Description

@GoogleCodeExporter
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions