commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [7/9] incubator-commonsrdf git commit: Correct @language in literal.ntriplesString()
Date Tue, 03 May 2016 22:15:56 GMT
Correct @language in literal.ntriplesString()


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

Branch: refs/heads/rdf4j
Commit: fcb04d6c8ea1dc163bd843fa9f9a41caf008e540
Parents: fbdeb52
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Tue May 3 23:03:15 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Tue May 3 23:03:15 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/fcb04d6c/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java
----------------------------------------------------------------------
diff --git a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java
index a3abff8..54de098 100644
--- a/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java
+++ b/rdf4j/src/main/java/org/apache/commons/rdf/rdf4j/Rdf4JRDFTermFactory.java
@@ -243,7 +243,7 @@ public class Rdf4JRDFTermFactory implements RDFTermFactory {
 			// TODO: Use a more efficient StringBuffer
 			String escaped = QUOTE + TurtleUtil.encodeString(value.getLabel()) + QUOTE;
 			if (value.getLanguage().isPresent()) {
-				return escaped + "@" + value.getLanguage();
+				return escaped + "@" + value.getLanguage().get();
 			}
 			if (getDatatype().equals(Types.XSD_STRING)) { 
 				return escaped;


Mime
View raw message