[
https://issues.apache.org/jira/browse/JENA-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Natanael Arndt updated JENA-655:
--------------------------------
Comment: was deleted
(was: Remove the header fields check for JSONInput.
Removing the check that only the standard fields exist in the JSON input will
also let the execution accept if a service uses additional custom fields in its
results.
A check for the necessary fields still takes place in the following lines.)
> 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
> Attachments:
> 0001-Fix-JENA-655.-Remove-the-header-fields-check-for-JSO.patch
>
>
> 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)