Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1634

Passing URIs with Special Characters into SERVICE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed - Won't Fix
    • Priority: High
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bigdata RDF Database
    • Labels:
      None

      Description

      There appears to be any error passing URIs with special characters into your SERVICE call.

      Running this SPARQL query causes no errors
      SELECT * WHERE
      {
      SERVICE <http://DBpedia.org/sparql>

      { <http://dbpedia.org/resource/Tonga_(Nyasa)_language> rdfs:label ?langLabel. }

      }

      Running this with the URI outside the service call causes an error
      SELECT * WHERE
      {

      BIND (<http://dbpedia.org/resource/Tonga_(Nyasa)_language> AS ?ref) .
      SERVICE <http://DBpedia.org/sparql>

      { ?ref rdfs:label ?langLabel. }

      }

      The error is of concern when needing to pass a list of URIs into the service call.

      Here is the error I receive
      java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: org.openrdf.query.QueryEvaluationException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: task=ChunkTask

      {query=926a58b3-c33a-4b37-a0e6-c4022af6b387,bopId=1,partitionId=-1,sinkId=3,altSinkId=null}

      , cause=java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.bigdata.rdf.sail.webapp.client.HttpException: Status Code=400, Status Line=Bad Request, Response=Virtuoso 37000 Error SP030: SPARQL compiler, line 42: syntax error at '(' before 'Nyasa'

        Attachments

          Activity

            People

            Assignee:
            igorkim igorkim
            Reporter:
            mstabile75@gmail.com Mike Stabile
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: