jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [4/5] jena git commit: JENA-1462: No need to test NTriples
Date Wed, 17 Jan 2018 20:19:17 GMT
JENA-1462: No need to test NTriples

> N-Triples is handled differently - there is no IRI base resolution in
> normal parsing; this is intentional.

See https://github.com/apache/jena/pull/341#discussion_r161378376


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/52003696
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/52003696
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/52003696

Branch: refs/heads/master
Commit: 5200369653704be86e277774e6ce6d856369eec6
Parents: 33063f3
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Tue Jan 16 01:17:10 2018 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Tue Jan 16 01:17:10 2018 +0000

----------------------------------------------------------------------
 .../jena/riot/TestParseURISchemeBases.java      | 50 --------------------
 jena-arq/testing/RIOT/URISchemes/app.nt         |  1 -
 jena-arq/testing/RIOT/URISchemes/example.nt     |  1 -
 jena-arq/testing/RIOT/URISchemes/file.nt        |  1 -
 jena-arq/testing/RIOT/URISchemes/http.nt        |  1 -
 jena-arq/testing/RIOT/URISchemes/jena.nt        |  1 -
 jena-arq/testing/RIOT/URISchemes/ssh.nt         |  1 -
 jena-arq/testing/RIOT/URISchemes/x-madeup.nt    |  1 -
 8 files changed, 57 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/src/test/java/org/apache/jena/riot/TestParseURISchemeBases.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/riot/TestParseURISchemeBases.java b/jena-arq/src/test/java/org/apache/jena/riot/TestParseURISchemeBases.java
index 1f20e41..0280ac3 100644
--- a/jena-arq/src/test/java/org/apache/jena/riot/TestParseURISchemeBases.java
+++ b/jena-arq/src/test/java/org/apache/jena/riot/TestParseURISchemeBases.java
@@ -143,13 +143,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void appNT() throws Exception {
-		RDFDataMgr.read(m, load("app.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("appNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(APP_BASE)));
-	}
-
-	@Test
 	public void appRDF() throws Exception {
 		RDFDataMgr.read(m, load("app.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("appRDF");
@@ -178,13 +171,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void exampleNT() throws Exception {
-		RDFDataMgr.read(m, load("example.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("exampleNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(EXAMPLE_BASE)));
-	}
-
-	@Test
 	public void exampleRDF() throws Exception {
 		RDFDataMgr.read(m, load("example.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("exampleRDF");
@@ -213,13 +199,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void fileNT() throws Exception {
-		RDFDataMgr.read(m, load("file.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("fileNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(FILE_BASE)));
-	}
-
-	@Test
 	public void fileRDF() throws Exception {
 		RDFDataMgr.read(m, load("file.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("fileRDF");
@@ -261,14 +240,6 @@ public class TestParseURISchemeBases {
 		assertTrue("Can't find statement", m.contains(expectedStatement(FILE_BASE)));
 	}
 	
-	
-	@Test
-	public void httpNT() throws Exception {
-		RDFDataMgr.read(m, load("http.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("httpNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(HTTP_BASE)));
-	}
-
 	@Test
 	public void httpRDF() throws Exception {
 		RDFDataMgr.read(m, load("http.rdf"), Lang.RDFXML);
@@ -312,13 +283,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void jenaNT() throws Exception {
-		RDFDataMgr.read(m, load("jena.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("jenaNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(JENA_BASE)));
-	}
-
-	@Test
 	public void jenaRDF() throws Exception {
 		RDFDataMgr.read(m, load("jena.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("jenaRDF");
@@ -361,13 +325,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void sshNT() throws Exception {
-		RDFDataMgr.read(m, load("ssh.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("sshNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(SSH_BASE)));
-	}
-
-	@Test
 	public void sshRDF() throws Exception {
 		RDFDataMgr.read(m, load("ssh.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("sshRDF");
@@ -396,13 +353,6 @@ public class TestParseURISchemeBases {
 	}
 
 	@Test
-	public void xMadeupNT() throws Exception {
-		RDFDataMgr.read(m, load("x-madeup.nt"), Lang.NTRIPLES);
-		dumpModelWithMessage("xMadeupNT");
-		assertTrue("Can't find statement", m.contains(expectedStatement(X_MADEUP_BASE)));
-	}
-
-	@Test
 	public void xMadeupRDF() throws Exception {
 		RDFDataMgr.read(m, load("x-madeup.rdf"), Lang.RDFXML);
 		dumpModelWithMessage("xMadeupRDF");

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/app.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/app.nt b/jena-arq/testing/RIOT/URISchemes/app.nt
deleted file mode 100644
index 386ffd8..0000000
--- a/jena-arq/testing/RIOT/URISchemes/app.nt
+++ /dev/null
@@ -1 +0,0 @@
-<app://2dee5b0a-6100-470a-a67f-1399518cb470/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<app://2dee5b0a-6100-470a-a67f-1399518cb470/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/example.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/example.nt b/jena-arq/testing/RIOT/URISchemes/example.nt
deleted file mode 100644
index 044f11b..0000000
--- a/jena-arq/testing/RIOT/URISchemes/example.nt
+++ /dev/null
@@ -1 +0,0 @@
-<example://2dee5b0a-6100-470a-a67f-1399518cb470/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<example://2dee5b0a-6100-470a-a67f-1399518cb470/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/file.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/file.nt b/jena-arq/testing/RIOT/URISchemes/file.nt
deleted file mode 100644
index 31f9e0c..0000000
--- a/jena-arq/testing/RIOT/URISchemes/file.nt
+++ /dev/null
@@ -1 +0,0 @@
-<file://example.com/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<file://example.com/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/http.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/http.nt b/jena-arq/testing/RIOT/URISchemes/http.nt
deleted file mode 100644
index 0553095..0000000
--- a/jena-arq/testing/RIOT/URISchemes/http.nt
+++ /dev/null
@@ -1 +0,0 @@
-<http://2dee5b0a-6100-470a-a67f-1399518cb470/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<http://2dee5b0a-6100-470a-a67f-1399518cb470/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/jena.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/jena.nt b/jena-arq/testing/RIOT/URISchemes/jena.nt
deleted file mode 100644
index 0b23013..0000000
--- a/jena-arq/testing/RIOT/URISchemes/jena.nt
+++ /dev/null
@@ -1 +0,0 @@
-<org.apache.jena.test://foo/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<org.apache.jena.test://foo/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/ssh.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/ssh.nt b/jena-arq/testing/RIOT/URISchemes/ssh.nt
deleted file mode 100644
index 8b48028..0000000
--- a/jena-arq/testing/RIOT/URISchemes/ssh.nt
+++ /dev/null
@@ -1 +0,0 @@
-<ssh://example.com/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<ssh://example.com/bar.txt> .

http://git-wip-us.apache.org/repos/asf/jena/blob/52003696/jena-arq/testing/RIOT/URISchemes/x-madeup.nt
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/URISchemes/x-madeup.nt b/jena-arq/testing/RIOT/URISchemes/x-madeup.nt
deleted file mode 100644
index bbd11d7..0000000
--- a/jena-arq/testing/RIOT/URISchemes/x-madeup.nt
+++ /dev/null
@@ -1 +0,0 @@
-<x-madeup://2dee5b0a-6100-470a-a67f-1399518cb470/nested/foo.txt> <http://www.w3.org/2000/01/rdf-schema#seeAlso>
<x-madeup://2dee5b0a-6100-470a-a67f-1399518cb470/bar.txt> .


Mime
View raw message