commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [04/50] incubator-commonsrdf git commit: blank node test
Date Tue, 04 Oct 2016 01:30:25 GMT
blank node test


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

Branch: refs/heads/rdf4j
Commit: b5aa0a038431bd1de570d80cd2bc52ab98ef420a
Parents: 0613a08
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Mon Apr 4 17:03:45 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Mon Apr 4 17:03:45 2016 +0100

----------------------------------------------------------------------
 .../rdf/jsonldjava/JsonLdBlankNodeTest.java     | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/b5aa0a03/jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.java
b/jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.java
new file mode 100644
index 0000000..7687e2c
--- /dev/null
+++ b/jsonld-java/src/test/java/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.java
@@ -0,0 +1,24 @@
+package org.apache.commons.rdf.jsonldjava;
+
+import java.util.UUID;
+
+import org.apache.commons.rdf.api.AbstractBlankNodeTest;
+import org.apache.commons.rdf.api.BlankNode;
+
+import com.github.jsonldjava.core.RDFDataset;
+
+public class JsonLdBlankNodeTest extends AbstractBlankNodeTest {
+
+	String fixedPrefix = "urn:uuid:d028ca89-8b2f-4e18-90a0-8959f955038d#";
+	
+	@Override
+	protected BlankNode getBlankNode() {
+		return getBlankNode(UUID.randomUUID().toString());
+	}
+
+	@Override
+	protected BlankNode getBlankNode(String identifier) {
+		return new JsonLdBlankNode(new RDFDataset.BlankNode("_:" + identifier), fixedPrefix);
+	}
+
+}


Mime
View raw message