You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2013/01/29 22:15:12 UTC

[jira] [Commented] (MARMOTTA-43) RDF1.1 Language Tags

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

Andy Seaborne commented on MARMOTTA-43:
---------------------------------------

The use of "_" is a problem (and for SPARQL) as parsers may not accept them.

Lang tags should also meet the various canonicalization rules of other standards, e.g. xx-YY-zzzzz -- it is impossible to meet all requirements at once.  Users may expect roundtripping to preserve them as well.

What matters is that they compared case insensitively - force to lower case is a way to achieve that in the abstract model.  It is arguable that RDF is correct because other places have different canonicalization rules.

Jena has a pedantic langtag parser :  org.apache.jena.riot.system.LangTag

                
> RDF1.1 Language Tags
> --------------------
>
>                 Key: MARMOTTA-43
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-43
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Libraries
>    Affects Versions: 2.6
>            Reporter: Jakob Frank
>            Assignee: Sebastian Schaffert
>            Priority: Minor
>              Labels: kiwi, rdf
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> In RDF 1.1, language tags MUST conform to the BCP47 standard.
> We are currently using the format: xx_YY_zzz, but BCP47 requires xx-YY-zzz.
> Furthermore, RDF 1.1 requires lang tags to be all lowercase.
> Also in the DB-model, the lang-tag column is fixed to length 5 - which might be not sufficient for some special lang-tags.
> http://www.w3.org/TR/2013/WD-rdf11-concepts-20130115/#section-Graph-Literal
> http://tools.ietf.org/html/bcp47#section-2.2.9

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira