You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2016/03/08 21:06:40 UTC

[jira] [Assigned] (JENA-1154) Serializing SPARQL Result Sets in JSON is not spec compliant

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

Andy Seaborne reassigned JENA-1154:
-----------------------------------

    Assignee: Andy Seaborne

> 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
>
> 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)