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

Peter Ansell commented on MARMOTTA-155:
---------------------------------------

The cause is that the language tag "invalid" is actually a well-formed BCP47 
language tag (although it is not a registered tag so it should be invalid). 
Infact, any alphabetic sequence of characters up to 8 letters is a valid simple 
language tag (and the longest possible language tags are much longer than that).

The failure is due to the database not supporting language tags with a total 
length that is longer than 5 characters. I will fix the test so 
Locale.Builder.setLanguageTag fails due to a non-well-formed tag, but that will 
not fix the underlying restriction in the SQL database schemas.
                
> 3-char lang-tags are not accepted
> ---------------------------------
>
>                 Key: MARMOTTA-155
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-155
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Triple Store
>    Affects Versions: 3.0-incubating
>            Reporter: Jakob Frank
>            Assignee: Peter Ansell
>              Labels: kiwi, rdf
>             Fix For: 3.1-incubating
>
>         Attachments: MARMOTTA-155.ttl
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Currently the triple-store does not accept 3-char language tags. But they are 
> used:
> 17:17:47.556 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "ܡܓܪ"@arc) [null]: an
>  exception occurred (Invalid locale format: arc)
> 17:17:47.579 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hongrie"@frp) [null]
> : an exception occurred (Invalid locale format: frp)
> 17:17:47.579 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hongrie"@nrm) [null]
> : an exception occurred (Invalid locale format: nrm)
> 17:17:47.583 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hungari"@tpi) [null]
> : an exception occurred (Invalid locale format: tpi)
> 17:17:47.597 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hungary"@pam) [null]
> : an exception occurred (Invalid locale format: pam)
> 17:17:47.597 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hungary"@sco) [null]
> : an exception occurred (Invalid locale format: sco)
> 17:17:47.599 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hungarya"@war) [null
> ]: an exception occurred (Invalid locale format: war)
> 17:17:47.602 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Hungría"@ast) [null]
> : an exception occurred (Invalid locale format: ast)
> 17:17:47.615 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Madźarska"@hsb) [nul
> l]: an exception occurred (Invalid locale format: hsb)
> 17:17:47.633 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Ungariya"@rmy) [null
> ]: an exception occurred (Invalid locale format: rmy)
> 17:17:47.633 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Ungarn"@bar) [null]:
>  an exception occurred (Invalid locale format: bar)
> 17:17:47.637 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Ungarn"@nds) [null]:
>  an exception occurred (Invalid locale format: nds)
> 17:17:47.644 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Ungherìa"@pms) [null
> ]: an exception occurred (Invalid locale format: pms)
> 17:17:47.644 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Unghirìa"@scn) [null
> ]: an exception occurred (Invalid locale format: scn)
> 17:17:47.644 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Ungria"@tet) [null]:
>  an exception occurred (Invalid locale format: tet)
> 17:17:47.661 WARN  - not adding triple (http://sws.geonames.org/719819/, 
> http://www.geonames.org/ontology#alternateName, "Венгрия"@udm) [null]
> : an exception occurred (Invalid locale format: udm)

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

Reply via email to