parent
b0bc0b4572
commit
e859481889
|
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>YaCy '#[clientname]#': Triplestore</title>
|
||||
#%env/templates/metas.template%#
|
||||
</head>
|
||||
<body id="Settings">
|
||||
#%env/templates/header.template%#
|
||||
#%env/templates/submenuTriplestore.template%#
|
||||
<h2>Triplestore</h2>
|
||||
|
||||
<form id="parsersettings" action="Triplestore_p.html" method="post" enctype="multipart/form-data">
|
||||
<fieldset><legend id="urlproxy">Triplestore</legend>
|
||||
<p>
|
||||
With this settings you change the behavior of the jena-based Triplestore.
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt><label for="content">Persistent store:</label></dt>
|
||||
<dd>
|
||||
<input type="checkbox" name="tspersistentenabled" id="tspersistentenabled" #(tspersistentenabled_checked)#:: checked="checked"#(/tspersistentenabled_checked)# />Enabled<br/>
|
||||
<p class="help">
|
||||
If enabled, the Triplestore will save its content on shutdown on the filesystem and load it again on startup.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
<!-- <dt><label for="author">Forward feedback to peer:</label></dt>
|
||||
<dd>
|
||||
<input type="text" name="feedbackforward" value="#[feedbackforward]#" size="60" /><br/><br/>
|
||||
<p class="help">
|
||||
Feedback is forwarded to this peer.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
<dt><label for="content">Store Feedback on this peer:</label></dt>
|
||||
<dd>
|
||||
<input type="checkbox" name="acceptfeedbackenabled" id="acceptfeedbackenabled" #(acceptfeedbackenabled_checked)#:: checked="checked"#(/acceptfeedbackenabled_checked)# />Enabled<br/>
|
||||
<p class="help">
|
||||
If enabled, this peer will accept Feedback items and will NOT forward them.
|
||||
</p>
|
||||
</dd> -->
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
<input type="submit" name="tsSettings" value="Submit"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
#%env/templates/footer.template%#
|
||||
</body>
|
||||
</html>
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<div class="SubMenu">
|
||||
<h3>Triplestore</h3>
|
||||
<ul class="SubMenu">
|
||||
<li><a href="Triplestore_p.html" class="MenuItemLink lock">Triplestore</a></li>
|
||||
<li><a href="Triple_p.html" class="MenuItemLink lock">Query</a></li>
|
||||
</ul>
|
||||
</div>
|
Loading…
Reference in new issue