You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/13 12:36:00 UTC
[jira] [Commented] (JENA-1563) ResultSetReaderJSON does not accept
"lang"+"datatype" on the same literal.
[ https://issues.apache.org/jira/browse/JENA-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16511050#comment-16511050 ]
ASF GitHub Bot commented on JENA-1563:
--------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/435
JENA-1563: Accept lang and dt=rdf:langString
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena json-rs
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/435.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #435
----
commit 79a04c0d5c875594a8d1cf96487cb7733ca5457b
Author: Andy Seaborne <an...@...>
Date: 2018-06-10T16:29:23Z
JENA-1563: Accept lang and dt=rdf:langString
----
> 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
> Priority: Major
>
> 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)