MARMOTTA-571: Added dct:created and dct:modified to the server-managed 
properties.


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

Branch: refs/heads/master
Commit: 56b14cf47a33167ecc84896eeaef2b9914106d07
Parents: 92704fc
Author: Jakob Frank <[email protected]>
Authored: Thu Nov 13 14:17:03 2014 +0100
Committer: Jakob Frank <[email protected]>
Committed: Thu Nov 13 14:17:03 2014 +0100

----------------------------------------------------------------------
 .../org/apache/marmotta/platform/ldp/api/LdpService.java    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/56b14cf4/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/api/LdpService.java
----------------------------------------------------------------------
diff --git 
a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/api/LdpService.java
 
b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/api/LdpService.java
index cb52bfa..8080106 100644
--- 
a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/api/LdpService.java
+++ 
b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/api/LdpService.java
@@ -25,6 +25,7 @@ import 
org.apache.marmotta.platform.ldp.patch.InvalidPatchDocumentException;
 import org.apache.marmotta.platform.ldp.patch.parser.ParseException;
 import org.openrdf.model.Statement;
 import org.openrdf.model.URI;
+import org.openrdf.model.vocabulary.DCTERMS;
 import org.openrdf.repository.RepositoryConnection;
 import org.openrdf.repository.RepositoryException;
 import org.openrdf.rio.RDFFormat;
@@ -48,8 +49,12 @@ import java.util.*;
  */
 public interface LdpService {
 
-    public static final Set<URI> SERVER_MANAGED_PROPERTIES = new 
HashSet<>(Arrays.asList(LDP.contains));
-    public static final List<RDFFormat> SERVER_PREFERED_RDF_FORMATS = 
Arrays.asList(RDFFormat.TURTLE, RDFFormat.JSONLD, RDFFormat.RDFXML, 
RDFFormat.N3, RDFFormat.NTRIPLES);
+    public static final Set<URI> SERVER_MANAGED_PROPERTIES = new 
HashSet<>(Arrays.asList(
+            LDP.contains, DCTERMS.CREATED, DCTERMS.MODIFIED
+    ));
+    public static final List<RDFFormat> SERVER_PREFERED_RDF_FORMATS = 
Arrays.asList(
+            RDFFormat.TURTLE, RDFFormat.JSONLD, RDFFormat.RDFXML, 
RDFFormat.N3, RDFFormat.NTRIPLES
+    );
 
     public static enum InteractionModel {
         LDPR(LDP.Resource),

Reply via email to