diff --git a/htroot/Triple_p.csv b/htroot/Triple_p.csv new file mode 100644 index 000000000..f02195fc5 --- /dev/null +++ b/htroot/Triple_p.csv @@ -0,0 +1,2 @@ +#{entries}##[s]#;#[p]#;#[o]# +#{/entries}# \ No newline at end of file diff --git a/htroot/Triple_p.html b/htroot/Triple_p.html index 0765ebd0f..ba8a59636 100644 --- a/htroot/Triple_p.html +++ b/htroot/Triple_p.html @@ -10,6 +10,7 @@ #%env/templates/header.template%# + #%env/templates/submenuTriplestore.template%# #(mode)# diff --git a/htroot/Triplestore_p.html b/htroot/Triplestore_p.html new file mode 100644 index 000000000..c01f9700c --- /dev/null +++ b/htroot/Triplestore_p.html @@ -0,0 +1,55 @@ + + + + YaCy '#[clientname]#': Triplestore + #%env/templates/metas.template%# + + + #%env/templates/header.template%# + #%env/templates/submenuTriplestore.template%# +

Triplestore

+ +
+
Triplestore +

+ With this settings you change the behavior of the jena-based Triplestore. +

+ +
+ +
+
+ Enabled
+

+ If enabled, the Triplestore will save its content on shutdown on the filesystem and load it again on startup. +

+
+ + + + +
+ + + +
+
+ + + #%env/templates/footer.template%# + + diff --git a/htroot/Triplestore_p.java b/htroot/Triplestore_p.java new file mode 100644 index 000000000..58bf82e91 --- /dev/null +++ b/htroot/Triplestore_p.java @@ -0,0 +1,38 @@ +import net.yacy.cora.protocol.RequestHeader; +import de.anomic.server.serverObjects; +import de.anomic.server.serverSwitch; + +public final class Triplestore_p { + + public static serverObjects respond(final RequestHeader header, + final serverObjects post, final serverSwitch env) { + // return variable that accumulates replacements + final serverObjects prop = new serverObjects(); + + if (post != null) { + + if (post.containsKey("tsSettings")) { + + env.setConfig("triplestore.persistent", + "on".equals(post.get("tspersistentenabled")) ? true : false); + +// env.setConfig("interaction.feedback.accept", +// "on".equals(post.get("acceptfeedbackenabled")) ? true : false); + + } + + + } + + prop.put("tspersistentenabled_checked", + env.getConfigBool("triplestore.persistent", false) ? "1" : "0"); + +// prop.put("acceptfeedbackenabled_checked", +// env.getConfigBool("interaction.feedback.accept", false) ? "1" : "0"); + + + // return rewrite properties + return prop; + } + +} diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template index f4f075a1c..852521b42 100644 --- a/htroot/env/templates/header.template +++ b/htroot/env/templates/header.template @@ -25,8 +25,11 @@