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

NSS RDF Post of application/sparql-results+json causes Exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: BLAZEGRAPH_RELEASE_1_5_1
    • Fix Version/s: None
    • Component/s: Bigdata RDF Database
    • Labels:
      None

      Description

      Execute a sparql construct query:

      curl -X POST http://localhost:9999/bigdata/namespace/kb/sparql --data-urlencode 'query=CONSTRUCT  WHERE { ?s ?p ?o }' -H 'Accept:application/sparql-results+json' > /tmp/json.srj 2> /dev/null
      

      Post the data back to a new kb instance:

      curl -X POST --data-binary 'uri=file:///tmp/json.srj' http://localhost:9999/bigdata/sparql
      
      
      Caused by: java.lang.ClassCastException: org.openrdf.model.impl.ValueFactoryImpl cannot be cast to com.bigdata.rdf.model.BigdataValueFactory
      	at com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParser.parseValue(BigdataSPARQLResultsJSONParser.java:184)
      	at com.bigdata.rdf.rio.json.SPARQLJSONParserBase.parseQueryResultInternal(SPARQLJSONParserBase.java:262)
      	at com.bigdata.rdf.rio.json.SPARQLJSONParserBase.parseQueryResult(SPARQLJSONParserBase.java:125)
      	at 
      
      com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParserForConstruct.parse(BigdataSPARQLResultsJSONParserForConstruct.java:73)
      	at com.bigdata.rdf.sail.webapp.InsertServlet$InsertWithURLsTask.call(InsertServlet.java:556)
      	at com.bigdata.rdf.sail.webapp.InsertServlet$InsertWithURLsTask.call(InsertServlet.java:414)
      	at com.bigdata.rdf.task.ApiTaskForIndexManager.call(ApiTaskForIndexManager.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at com.bigdata.rdf.task.AbstractApiTask.submitApiTask(AbstractApiTask.java:369)
      	at com.bigdata.rdf.sail.webapp.BigdataServlet.submitApiTask(BigdataServlet.java:262)
      	... 25 more
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            beebs Brad Bebee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: