1 10 package com.hp.hpl.jena.reasoner.rulesys; 11 12 import java.util.*; 13 14 import com.hp.hpl.jena.graph.Capabilities; 15 import com.hp.hpl.jena.reasoner.BaseInfGraph; 16 import com.hp.hpl.jena.reasoner.ReasonerFactory; 17 18 26 public class DAMLMicroReasoner extends GenericRuleReasoner { 27 28 29 public static final String RULE_FILE = "etc/daml-micro.rules"; 30 31 32 protected static List ruleSet; 33 34 37 public DAMLMicroReasoner(ReasonerFactory parent) { 38 super(loadRules(), parent); 39 setMode(HYBRID); 40 setTransitiveClosureCaching(true); 41 } 42 43 46 public static List loadRules() { 47 if (ruleSet == null) ruleSet = loadRules( RULE_FILE ); 48 return ruleSet; 49 } 50 51 55 public Capabilities getGraphCapabilities() { 56 if (capabilities == null) { 57 capabilities = new BaseInfGraph.InfFindSafeCapabilities(); 58 } 59 return capabilities; 60 } 61 } 62 63 64 | Popular Tags |