You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2014/11/25 17:26:46 UTC
[24/48] jena git commit: JENA-816 : Test for RDF 1.1 mode.
JENA-816 : Test for RDF 1.1 mode.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/909f0e17
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/909f0e17
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/909f0e17
Branch: refs/heads/hadoop-rdf
Commit: 909f0e17a3c1b2f51b66ba3d5478c48c722b2bb4
Parents: 69ffd0c
Author: Andy Seaborne <an...@apache.org>
Authored: Fri Nov 21 16:50:23 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Fri Nov 21 16:50:23 2014 +0000
----------------------------------------------------------------------
.../java/org/apache/jena/riot/out/TestNodeFmt.java | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/909f0e17/jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java b/jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java
index 8edeb14..82630f3 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/out/TestNodeFmt.java
@@ -24,6 +24,7 @@ import org.apache.jena.riot.system.PrefixMap ;
import org.apache.jena.riot.system.PrefixMapFactory ;
import org.junit.Test ;
+import com.hp.hpl.jena.JenaRuntime ;
import com.hp.hpl.jena.graph.Node ;
import com.hp.hpl.jena.sparql.core.Var ;
import com.hp.hpl.jena.sparql.util.NodeFactoryExtra ;
@@ -83,9 +84,15 @@ public class TestNodeFmt extends BaseTest
@Test public void nodefmt_nt_15() { test(nodeFormatterNTascii, "'\\n\\t\\f'", "\"\\n\\t\\f\"") ; }
-
-
-
+ // RDF 1.1 sensitive.
+ // xsd:strings output without ^^
+ @Test public void nodefmt_rdf11_01()
+ {
+ if ( JenaRuntime.isRDF11 )
+ test(nodeFormatterNTutf8, "'abc'^^xsd:string", "\"abc\"") ;
+ else
+ test(nodeFormatterNTutf8, "'abc'^^xsd:string", "\"abc\"^^<http://www.w3.org/2001/XMLSchema#string>") ;
+ }
@Test public void nodefmt_ttl_01() { test(nodeFormatterTTL, "?x") ; }
@Test public void nodefmt_ttl_02() { test(nodeFormatterTTL, "?xyz") ; }