marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject [18/51] [abbrv] marmotta git commit: Added RDFS as default namespace for LDP
Date Wed, 01 Jul 2015 10:29:45 GMT
Added RDFS as default namespace for LDP


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

Branch: refs/heads/MARMOTTA-556
Commit: 0b8f7483326b54004346d8acc2989e2df6c584da
Parents: d19a04a
Author: Jakob Frank <jakob@apache.org>
Authored: Mon Feb 9 14:36:05 2015 +0100
Committer: Jakob Frank <jakob@apache.org>
Committed: Mon Feb 9 14:36:05 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/marmotta/platform/ldp/util/LdpUtils.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/0b8f7483/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
index fca8187..ba7eda6 100644
--- a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
+++ b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
@@ -32,6 +32,7 @@ import org.openrdf.model.URI;
 import org.openrdf.model.impl.URIImpl;
 import org.openrdf.model.vocabulary.DCTERMS;
 import org.openrdf.model.vocabulary.RDF;
+import org.openrdf.model.vocabulary.RDFS;
 import org.openrdf.repository.RepositoryException;
 import org.openrdf.rio.*;
 import org.slf4j.Logger;
@@ -119,6 +120,7 @@ public class LdpUtils {
 
         writer.handleNamespace(LDP.PREFIX, LDP.NAMESPACE);
         writer.handleNamespace(RDF.PREFIX, RDF.NAMESPACE);
+        writer.handleNamespace(RDFS.PREFIX, RDFS.NAMESPACE);
         writer.handleNamespace(XSD.PREFIX, XSD.NAMESPACE);
         writer.handleNamespace(DCTERMS.PREFIX, DCTERMS.NAMESPACE);
 
@@ -142,7 +144,7 @@ public class LdpUtils {
         }
         if (StringUtils.isNotBlank(extraFormats)) {
             sb.append(extraFormats);
-        } else {
+        } else if (sb.length() > 1) {
             sb.delete(sb.length()-2, sb.length());
         }
         return sb.toString();


Mime
View raw message