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 2018/06/10 15:59:00 UTC

[jira] [Created] (JENA-1563) ResultSetReaderJSON does not accept "lang"+"datatype" on the same literal.

Andy Seaborne created JENA-1563:
-----------------------------------

             Summary: ResultSetReaderJSON does not accept "lang"+"datatype" on the same literal.
                 Key: JENA-1563
                 URL: https://issues.apache.org/jira/browse/JENA-1563
             Project: Apache Jena
          Issue Type: Bug
    Affects Versions: Jena 3.7.0
            Reporter: Andy Seaborne


Reported by Philip Coates by [email date 2018-06-08 on dev@|https://lists.apache.org/thread.html/de8a84a612b978a1dcadd54d1d84eea0a944fc36fd52019f5eb0be3b@%3Cdev.jena.apache.org%3E].

Example:
{noformat}
{
  "xml:lang" : "en" ,
  "datatype" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString" ,
  "type" : "literal" ,
  "value" : "phototaxis"
}
{noformat}

The {{"datatype"}} is not needed because {{"xml:lang"}} implies it. The RDF specs recommend that daatypes are not added when there is a language tag.

Jena can be lenient and accept this when {{"datatype"}} is rdf:langString (anything else is incorrect).

For reference: {{"datatype"}}  xsd:string isn't necessary either but is accepted (it happens from RDF 1.0 systems).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)