You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by an...@apache.org on 2013/09/12 09:08:13 UTC
git commit: MARMOTTA-155 : Switch to an ill-formed language tag
Updated Branches:
refs/heads/develop 647cbaed0 -> a2de373bd
MARMOTTA-155 : Switch to an ill-formed language tag
The language tag "invalid" is not ill-formed according to BCP47, although it is not registered.
The underlying issue that caused the test to fail was due to the SQL database scheme restriction VARCHAR(5) on the language tag field.
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/a2de373b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/a2de373b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/a2de373b
Branch: refs/heads/develop
Commit: a2de373bd4f4c937cae38a59747cce1951b3b10b
Parents: 647cbae
Author: Peter Ansell <p_...@yahoo.com>
Authored: Thu Sep 12 17:06:24 2013 +1000
Committer: Peter Ansell <p_...@yahoo.com>
Committed: Thu Sep 12 17:06:24 2013 +1000
----------------------------------------------------------------------
.../java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/a2de373b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java
index 4ce351b..cbdbee4 100644
--- a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java
+++ b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/sesame/KiWiLocaleTest.java
@@ -79,7 +79,7 @@ public class KiWiLocaleTest {
*/
@Test
public void createBCP47LiteralsInvalidTests() {
- Literal invalidLangLiteral = vf.createLiteral("Hungary", "invalid");
+ Literal invalidLangLiteral = vf.createLiteral("Hungary", "invalid-bcp47-languagetag");
Assert.assertEquals("Hungary", invalidLangLiteral.getLabel());
Assert.assertNull(invalidLangLiteral.getLanguage());
}