/** * Get the single static precomputed rule closure. */ @Override protected synchronized InfGraph getPreload() { // We only support this in HYBRID mode if (cachePreload && preload == null && mode == HYBRID) { preload = new FBRuleInfGraph( this, rules, null, Factory.createDefaultGraph() ); if (enableTGCCaching) ((FBRuleInfGraph)preload).setUseTGCCache(); preload.prepare(); } return preload; }
/** * Get the single static precomputed rule closure. */ @Override protected synchronized InfGraph getPreload() { // We only support this in HYBRID mode if (cachePreload && preload == null && mode == HYBRID) { preload = new FBRuleInfGraph( this, rules, null, Factory.createDefaultGraph() ); if (enableTGCCaching) ((FBRuleInfGraph)preload).setUseTGCCache(); preload.prepare(); } return preload; }
FBRuleInfGraph fbgraph = new RDFSRuleInfGraph(this, ruleSet, schemaArg); graph = fbgraph; if (enableTGCCaching) fbgraph.setUseTGCCache(); fbgraph.setTraceOn(traceOn); if (preprocessorHooks!= null) {
FBRuleInfGraph fbgraph = new RDFSRuleInfGraph(this, ruleSet, schemaArg); graph = fbgraph; if (enableTGCCaching) fbgraph.setUseTGCCache(); fbgraph.setTraceOn(traceOn); if (preprocessorHooks!= null) {
/** * Precompute the implications of a schema graph. The statements in the graph * will be combined with the data when the final InfGraph is created. */ @Override public Reasoner bindSchema(Graph tbox) throws ReasonerException { if (schemaGraph != null) { throw new ReasonerException("Can only bind one schema at a time to an RDFSRuleReasoner"); } FBRuleInfGraph graph = new FBRuleInfGraph(this, rules, getPreload(), tbox); if (enableTGCCaching) (graph).setUseTGCCache(); graph.prepare(); RDFSRuleReasoner grr = new RDFSRuleReasoner(graph, factory); grr.setDerivationLogging(recordDerivations); grr.setTraceOn(traceOn); grr.setTransitiveClosureCaching(enableTGCCaching); grr.setFunctorFiltering(filterFunctors); if (preprocessorHooks != null) { for (RulePreprocessHook rulePreprocessHook : preprocessorHooks) { grr.addPreprocessingHook(rulePreprocessHook); } } return grr; }
/** * Precompute the implications of a schema graph. The statements in the graph * will be combined with the data when the final InfGraph is created. */ @Override public Reasoner bindSchema(Graph tbox) throws ReasonerException { if (schemaGraph != null) { throw new ReasonerException("Can only bind one schema at a time to an RDFSRuleReasoner"); } FBRuleInfGraph graph = new FBRuleInfGraph(this, rules, getPreload(), tbox); if (enableTGCCaching) (graph).setUseTGCCache(); graph.prepare(); RDFSRuleReasoner grr = new RDFSRuleReasoner(graph, factory); grr.setDerivationLogging(recordDerivations); grr.setTraceOn(traceOn); grr.setTransitiveClosureCaching(enableTGCCaching); grr.setFunctorFiltering(filterFunctors); if (preprocessorHooks != null) { for (RulePreprocessHook rulePreprocessHook : preprocessorHooks) { grr.addPreprocessingHook(rulePreprocessHook); } } return grr; }
List<Rule> ruleSet = rules; graph = new FBRuleInfGraph(this, ruleSet, getPreload(), tbox); if (enableTGCCaching) ((FBRuleInfGraph)graph).setUseTGCCache(); ((FBRuleInfGraph)graph).prepare();
List<Rule> ruleSet = rules; graph = new FBRuleInfGraph(this, ruleSet, getPreload(), tbox); if (enableTGCCaching) ((FBRuleInfGraph)graph).setUseTGCCache(); ((FBRuleInfGraph)graph).prepare();
FBRuleInfGraph fbgraph = new FBRuleInfGraph(this, ruleSet, schemaArg); graph = fbgraph; if (enableTGCCaching) fbgraph.setUseTGCCache(); fbgraph.setTraceOn(traceOn); fbgraph.setFunctorFiltering(filterFunctors);
FBRuleInfGraph fbgraph = new FBRuleInfGraph(this, ruleSet, schemaArg); graph = fbgraph; if (enableTGCCaching) fbgraph.setUseTGCCache(); fbgraph.setTraceOn(traceOn); fbgraph.setFunctorFiltering(filterFunctors);