Lukas Eipert created JENA-1154:
----------------------------------
Summary: Serializing SPARQL Result Sets in JSON is not spec
compliant
Key: JENA-1154
URL: https://issues.apache.org/jira/browse/JENA-1154
Project: Apache Jena
Issue Type: Bug
Affects Versions: Jena 3.0.0, Jena 2.11.2
Reporter: Lukas Eipert
A typed literal when serialized in JSON has currently the type "typed-literal".
This is not correct if you have look at the [SPARQL 1.1
Spec|https://www.w3.org/TR/sparql11-results-json/#select-encode-terms]. It
should only be "literal".
I understand that supporting the legacy "typed-literal" during
[parsing|https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/resultset/JSONInput.java#L210]
makes sense, but the output should be "literal" or at least switchable by a
flag.
Related Code:
[JSONResultsKW.java|https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/resultset/JSONResultsKW.java#L36]
[JSONOutputResultSet.java|https://github.com/apache/jena/blob/master/jena-arq/src/main/java/org/apache/jena/sparql/resultset/JSONOutputResultSet.java#L202]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)