You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/01/10 23:08:45 UTC
git commit: MARMOTTA-418: fix cache filter
Updated Branches:
refs/heads/develop 8e746f132 -> f282e64b4
MARMOTTA-418: fix cache filter
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/f282e64b
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/f282e64b
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/f282e64b
Branch: refs/heads/develop
Commit: f282e64b4462f905850c2674ac3079a61bdbbd0e
Parents: 8e746f1
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Fri Jan 10 23:08:28 2014 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Fri Jan 10 23:08:28 2014 +0100
----------------------------------------------------------------------
.../ldcache/model/filter/MarmottaNotCachedFilter.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/f282e64b/platform/ldcache/marmotta-ldcache-common/src/main/java/org/apache/marmotta/platform/ldcache/model/filter/MarmottaNotCachedFilter.java
----------------------------------------------------------------------
diff --git a/platform/ldcache/marmotta-ldcache-common/src/main/java/org/apache/marmotta/platform/ldcache/model/filter/MarmottaNotCachedFilter.java b/platform/ldcache/marmotta-ldcache-common/src/main/java/org/apache/marmotta/platform/ldcache/model/filter/MarmottaNotCachedFilter.java
index 5c40815..e161c31 100644
--- a/platform/ldcache/marmotta-ldcache-common/src/main/java/org/apache/marmotta/platform/ldcache/model/filter/MarmottaNotCachedFilter.java
+++ b/platform/ldcache/marmotta-ldcache-common/src/main/java/org/apache/marmotta/platform/ldcache/model/filter/MarmottaNotCachedFilter.java
@@ -24,7 +24,6 @@ import org.apache.marmotta.platform.ldcache.api.ldcache.LDCacheSailProvider;
import org.openrdf.model.BNode;
import org.openrdf.model.Resource;
import org.openrdf.model.URI;
-import org.openrdf.repository.RepositoryException;
/**
* Accept only resources that are considered "not cached", i.e. do not have an entry in the caching table.
@@ -74,11 +73,7 @@ public class MarmottaNotCachedFilter implements ResourceFilter {
URI uri = (URI)resource;
- try {
- return !cacheSailProvider.getLDCache().isCached(uri.stringValue());
- } catch (RepositoryException e) {
- return false;
- }
+ return !cacheSailProvider.getLDCache().contains(uri);
}