#
# Sesame configuration template for a main-memory repository with
# a SPIN reasoner 
#
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix spin: <http://www.openrdf.org/config/sail/spin#>.
@prefix cgqi: <http://www.openrdf.org/config/sail/customGraphQueryInferencer#>.
@prefix ms: <http://www.openrdf.org/config/sail/memory#>.
@prefix sp: <http://spinrdf.org/sp#>.
@prefix sb: <http://www.openrdf.org/config/sail/base#>.

[] a rep:Repository ;
   rep:repositoryID "{%Repository ID|memory-spin%}" ;
   rdfs:label "{%Repository title|Memory store with SPIN support%}" ;
   rep:repositoryImpl [
      rep:repositoryType "openrdf:SailRepository" ;
      sr:sailImpl [
         sail:sailType "openrdf:SpinSail" ;
         spin:axiomClosureNeeded true ;
         sail:delegate [
            sail:sailType "openrdf:MemoryStore" ;
	    sail:iterationCacheSyncThreshold "{%Query Iteration Cache sync threshold|10000%}";
            ms:persist {%Persist|true|false%} ;
            ms:syncDelay {%Sync delay|0%};
            sb:evaluationStrategyFactory "{%EvaluationStrategyFactory|org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory%}"
         ]
      ]
   ].
