commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [5/5] incubator-commonsrdf git commit: Avoid duplicate _:_:
Date Fri, 04 Nov 2016 09:02:05 GMT
Avoid duplicate _:_:


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

Branch: refs/heads/master
Commit: c6fe35a035646612ab1025d78ba1250a9e925afc
Parents: 5cd68e6
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Nov 4 10:01:47 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Nov 4 10:01:47 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/c6fe35a0/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
index 213f412..66b9f4b 100644
--- a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
+++ b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/JsonLdRDF.java
@@ -279,7 +279,7 @@ public final class JsonLdRDF implements RDF {
             if (ref.startsWith(bnodePrefix)) {
                 // One of ours (but possibly not a JsonLdBlankNode) -
                 // we can use the suffix directly
-                return ref.replace(bnodePrefix, "_:");
+                return ref.replace(bnodePrefix, "");
             } else {
                 // Map to unique bnode identifier, e.g.
                 // _:0dbd92ee-ab1a-45e7-bba2-7ade54f87ec5


Mime
View raw message