swish/commit

Load rdf_sandbox if available (recent versions).

authorJan Wielemaker
Sun Jun 26 15:34:38 2016 +0200
committerJan Wielemaker
Sun Jun 26 15:34:38 2016 +0200
commit8c2eadc4cb58e1d45a785a72e86ccf4598f3ccfb
tree6730ee2f551f9b57a1c6bbc63fd112e52449466e
parent4b2895a6a464b59f7137a99ab72978cc11634bf5
Diff style: patch stat
diff --git a/config-available/swish.pl b/config-available/swish.pl
index 9419ebb..026b0ee 100644
--- a/config-available/swish.pl
+++ b/config-available/swish.pl
@@ -23,6 +23,10 @@ user:file_search_path(example,	 examples).
 :- use_module(library(swish/cp_authenticate)).
 % Enable logging of SWISH queries and sources if HTTP logging is enabled
 :- use_module(library(swish/logging)).
+% Make side-effect-free RDF predicates safe
+:- if(exists_source(library(semweb/rdf_sandbox))).
+:- use_module(library(semweb/rdf_sandbox)).
+:- endif.
 
 % Allows users to extend the Examples menu by ticking the Example
 % checkbox.