[ 
https://issues.apache.org/jira/browse/JENA-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-1154.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Jena 3.1.0

Thank you for the report. Change made.

(You can use github to make a Pull Request for https://github.com/apache/jena/)

> 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
>          Components: ARQ
>    Affects Versions: Jena 2.11.2, Jena 3.0.0
>            Reporter: Lukas Eipert
>            Assignee: Andy Seaborne
>             Fix For: Jena 3.1.0
>
>
> 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/d4c73a31f6cb9b7d5f10691dfe915112e3cdb1a3/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/d4c73a31f6cb9b7d5f10691dfe915112e3cdb1a3/jena-arq/src/main/java/org/apache/jena/sparql/resultset/JSONResultsKW.java#L36]
> [JSONOutputResultSet.java|https://github.com/apache/jena/blob/d4c73a31f6cb9b7d5f10691dfe915112e3cdb1a3/jena-arq/src/main/java/org/apache/jena/sparql/resultset/JSONOutputResultSet.java#L202]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to