commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [3/3] incubator-commonsrdf git commit: RDF4J BlankNode toString()
Date Fri, 04 Nov 2016 00:56:32 GMT
RDF4J BlankNode toString()


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

Branch: refs/heads/master
Commit: 30dda0825c9eced235ce60f07b82d580f2173e34
Parents: 1f1f45e
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Nov 4 00:56:14 2016 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Nov 4 00:56:14 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/30dda082/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
index 8c5fc30..6357f8a 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/impl/BlankNodeImpl.java
@@ -89,4 +89,9 @@ final class BlankNodeImpl extends AbstractRDFTerm<BNode> implements
RDF4JBlankNo
         UUID uuid = new UUID(saltUUIDmost, saltUUIDleast);
         return "urn:uuid:" + uuid + "#" + value.getID();
     }
+    
+    @Override
+    public String toString() {
+        return ntriplesString() + " [" + uniqueReference() + "]";
+    }
 }
\ No newline at end of file


Mime
View raw message