You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/07/07 07:57:00 UTC

[6/6] git commit: more fine grained im detection for unsupported container types

more fine grained im detection for unsupported container types


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

Branch: refs/heads/ldp
Commit: df8cacb8779d1f2fc2c05d1c9ca9d1d42347725d
Parents: 20e69f1
Author: Sergio Fernández <wi...@apache.org>
Authored: Mon Jul 7 07:56:31 2014 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Mon Jul 7 07:56:31 2014 +0200

----------------------------------------------------------------------
 .../apache/marmotta/platform/ldp/services/LdpServiceImpl.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/df8cacb8/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java
index b5c0b01..8ba79c7 100644
--- a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java
+++ b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/services/LdpServiceImpl.java
@@ -555,7 +555,11 @@ public class LdpServiceImpl implements LdpService {
                 if (LDP.Resource.stringValue().equals(href)) {
                     log.debug("LDPR Interaction Model detected");
                     return InteractionModel.LDPR;
-                } else if (LDP.Container.stringValue().equals(href)) {
+                } else if (LDP.Container.stringValue().equals(href) || LDP.BasicContainer.stringValue().equals(href) ||) {
+                    log.debug("LDPC Interaction Model detected");
+                    return InteractionModel.LDPC;
+                } else if (LDP.DirectContainer.stringValue().equals(href) || LDP.IndirectContainer.stringValue().equals(href) ||) {
+                    log.warn("only Basic Container interaction is supported");
                     log.debug("LDPC Interaction Model detected");
                     return InteractionModel.LDPC;
                 } else {