From 6d17686258730c14cac0d019e0fb2bc45fac155b Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 15 Jun 2012 19:13:07 +0200 Subject: [PATCH] made triplestore persistent by default added a size display in triplestore servlet --- defaults/yacy.init | 2 +- htroot/Triplestore_p.html | 5 +++++ htroot/Triplestore_p.java | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults/yacy.init b/defaults/yacy.init index 6cdd6785f..e8f2b78c5 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -1054,7 +1054,7 @@ federated.service.solr.indexing.sharding = MODULO_HOST_MD5 federated.service.solr.indexing.schemefile = solr.keys.default.list # RDF triplestore settings -triplestore.persistent = false +triplestore.persistent = true # Augmentation settings parserAugmentation = false diff --git a/htroot/Triplestore_p.html b/htroot/Triplestore_p.html index fd1e20243..0606841ae 100644 --- a/htroot/Triplestore_p.html +++ b/htroot/Triplestore_p.html @@ -25,6 +25,11 @@ To see a list of all APIs, please visit the Persistent store:
Enabled
diff --git a/htroot/Triplestore_p.java b/htroot/Triplestore_p.java index 58bf82e91..150ac4709 100644 --- a/htroot/Triplestore_p.java +++ b/htroot/Triplestore_p.java @@ -1,3 +1,4 @@ +import net.yacy.cora.lod.JenaTripleStore; import net.yacy.cora.protocol.RequestHeader; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; @@ -29,7 +30,7 @@ public final class Triplestore_p { // prop.put("acceptfeedbackenabled_checked", // env.getConfigBool("interaction.feedback.accept", false) ? "1" : "0"); - + prop.put("size", JenaTripleStore.size()); // return rewrite properties return prop;