You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Natanael Arndt (JIRA)" <ji...@apache.org> on 2014/03/18 12:06:42 UTC

[jira] [Created] (JENA-655) SPARQL query fails if answer contains extra content

Natanael Arndt created JENA-655:
-----------------------------------

             Summary: SPARQL query fails if answer contains extra content
                 Key: JENA-655
                 URL: https://issues.apache.org/jira/browse/JENA-655
             Project: Apache Jena
          Issue Type: Bug
          Components: ARQ
    Affects Versions: Jena 2.11.1
            Reporter: Natanael Arndt


When sending a query to a service which doesn't only reply the fields "head" and "results", but also some extra field the query execution will throw an Exception.
An example is the myexperiment service [1] when you send this query "select ?s {?s ?p ?o} limit 1" and an "application/sparql-results+json" Accept-Header you will get something like that:

{"head":{"vars":["s"]},
 "results": {
  "bindings":[
   {"s":{"type":"uri","value":"http://rdf.myexperiment.org/ontologies/snarm/Policy"}}
  ]
 },
 "warnings": ["parser warning: Variable o was bound but is unused in the query on line 1",
"parser warning: Variable p was bound but is unused in the query on line 1"]
}
 
It also contains the not standard field "warnings", which makes jena to throw an exception. I don't see any necessity for this behavior.

[1] http://rdf.myexperiment.org/sparql/



--
This message was sent by Atlassian JIRA
(v6.2#6252)