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 2017/11/14 16:42:00 UTC

[jira] [Commented] (JENA-1384) Make canonical literals lowercase language tags.

    [ https://issues.apache.org/jira/browse/JENA-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251690#comment-16251690 ] 

ASF GitHub Bot commented on JENA-1384:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/308

    JENA-1384: Canonical literals: lexical form and langTags

    RDFParser options to handle canonical lexcial form for values ("+0123" becomes "123" for an xsd:integer) and options for handling language tags (to RFC-canonical form; to lowercase).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena canonical-langtags

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/308.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 #308
    
----
commit 3b59d0b6db85b5d36cec78f5c02aae21cc8aff6f
Author: Andy Seaborne <an...@apache.org>
Date:   2017-11-14T16:31:54Z

    JENA-1384: Canonical literals: lexical form and langTags

----


> Make canonical literals lowercase language tags.
> ------------------------------------------------
>
>                 Key: JENA-1384
>                 URL: https://issues.apache.org/jira/browse/JENA-1384
>             Project: Apache Jena
>          Issue Type: Improvement
>    Affects Versions: Jena 3.4.0
>            Reporter: Elie Roux
>            Priority: Minor
>
> Please make an option so that canonicalLiterals follows the RDF 1.1 definition of a canonical literal instead of the BCP-47 one. Right now for my dataset I have:
> - lower-cased value for JSON-LD output (as mandated by the JSON-LD spec following a RDF 1.1 option)
> - BCP-47 canonical value for TTL output if I make Jena canonicalize literals (which I want to, I want them to be uniform)
> - lower-cased value for TTL output if I choose not to canonicalize them
> So please allow for users just to use lower-case uniformly, so that there can be a homogeneous canonicalization among different outputs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)