Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions jena-arq/.gitattributes

This file was deleted.

23 changes: 12 additions & 11 deletions jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,17 @@ public void nodefmt_rdf11_01() {
// C14N -- Canonicalization. Java escaping make this messy.
private static Node blankNode = NodeFactory.createBlankNode("ABC");

@Test public void nodefmt_c14n_00() { test(nodeFormatterC14N, "'--\\u0009--'", "\"--\\t--\""); }
@Test public void nodefmt_c14n_01() { test(nodeFormatterC14N, "'--\\u0008\\u0009\\u000A\\u000C\\u000D\\u0022\\u005C--'", "\"--\\b\\t\\n\\f\\r\\\"\\\\--\""); }
@Test public void nodefmt_c14n_02() { test(nodeFormatterC14N, "'--\\b\\t\\n\\f\\r\\\"\\\\--'", "\"--\\b\\t\\n\\f\\r\\\"\\\\--\""); }
@Test public void nodefmt_c14n_03() { test(nodeFormatterC14N, "'xyz'@EN-GB--ltr", "\"xyz\"@en-gb--ltr"); }
@Test public void nodefmt_c14n_04() { test(nodeFormatterC14N, "'\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\u000B\\u007F'",
"\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\u000B\\u007F\""); }
@Test public void nodefmt_c14n_05() { test(nodeFormatterC14N, "'\\u000E\\u000F\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0015\\u0016\\u0017\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001F'",
"\"\\u000E\\u000F\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0015\\u0016\\u0017\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001F\""); }
@Test public void nodefmt_c14n_06() { test(nodeFormatterC14N, blankNode, "_:ABC"); }
@Test public void nodefmt_c14n_00() { test(nodeFormatterC14N, "'--\\u0009--'", "\"--\\t--\""); }
@Test public void nodefmt_c14n_01() { test(nodeFormatterC14N, "'--\\u0008\\u0009\\u000A\\u000C\\u000D\\u0022\\u005C--'", "\"--\\b\\t\\n\\f\\r\\\"\\\\--\""); }
@Test public void nodefmt_c14n_02() { test(nodeFormatterC14N, "'--\\b\\t\\n\\f\\r\\\"\\\\--'", "\"--\\b\\t\\n\\f\\r\\\"\\\\--\""); }
@Test public void nodefmt_c14n_03() { test(nodeFormatterC14N, "'xyz'@EN-GB--ltr", "\"xyz\"@en-gb--ltr"); }
@Test public void nodefmt_c14n_04() { test(nodeFormatterC14N, "'\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\u000B\\u007F'",
"\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\u000B\\u007F\""); }
@Test public void nodefmt_c14n_05() { test(nodeFormatterC14N, "'\\u000E\\u000F\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0015\\u0016\\u0017\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001F'",
"\"\\u000E\\u000F\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0015\\u0016\\u0017\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001F\""); }
@Test public void nodefmt_c14n_06() { test(nodeFormatterC14N, blankNode, "_:ABC"); }

// Turtle

@Test public void nodefmt_ttl_01() { test(nodeFormatterTTL, "?x"); }
@Test public void nodefmt_ttl_02() { test(nodeFormatterTTL, "?xyz"); }
Expand Down Expand Up @@ -155,8 +157,7 @@ public void nodefmt_rdf11_01() {

@Test public void prefixedname_01() { testPrefix("", ""); }

private void testPrefix(String prefix, String local)
{
private void testPrefix(String prefix, String local) {
assertTrue(NodeFormatterTTL.safeForPrefix(prefix));
assertTrue(NodeFormatterTTL.safeForPrefixLocalname(local));
}
Expand Down
2 changes: 2 additions & 0 deletions jena-arq/testing/rdf-tests-cg/rdf/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ rdf11/rdf-trig/trig-subm-15.nq text eol=lf
rdf11/rdf-trig/trig-subm-16.trig text eol=lf
rdf11/rdf-trig/trig-subm-16.nq text eol=lf
rdf11/rdf-trig/literal_with_LINE_FEED.trig text eol=lf

rdf12/**/c14n/*-c14n.nt text eol=lf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<http://a.example/s> <http://a.example/p> "chat"@en--ltr <http://example/g> .
<http://a.example/s> <http://a.example/p> "chat"@en-gb--ltr <http://example/g> .
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<http://a.example/s> <http://a.example/p> "chat"@EN--ltr <http://example/g> .
<http://a.example/s> <http://a.example/p> "chat"@EN-GB--ltr <http://example/g> .
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<http://a.example/s> <http://a.example/p> "chat"@en--ltr .
<http://a.example/s> <http://a.example/p> "chat"@en-gb--ltr .
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<http://a.example/s> <http://a.example/p> "chat"@EN--ltr .
<http://a.example/s> <http://a.example/p> "chat"@EN-GB--ltr .