1 10 package com.hp.hpl.jena.reasoner.rulesys; 11 12 import com.hp.hpl.jena.graph.Capabilities; 13 import com.hp.hpl.jena.reasoner.*; 14 15 import java.util.*; 16 17 33 public class OWLMicroReasoner extends GenericRuleReasoner implements Reasoner { 34 35 36 protected static final String MICRO_RULE_FILE = "etc/owl-fb-micro.rules"; 37 38 39 protected static List microRuleSet; 40 41 44 public static List loadRules() { 45 if (microRuleSet == null) microRuleSet = loadRules( MICRO_RULE_FILE ); 46 return microRuleSet; 47 } 48 49 50 53 public OWLMicroReasoner(ReasonerFactory factory) { 54 super(loadRules(), factory); 55 setOWLTranslation(true); 56 setMode(HYBRID); 57 setTransitiveClosureCaching(true); 58 } 59 60 61 65 public Capabilities getGraphCapabilities() { 66 if (capabilities == null) { 67 capabilities = new BaseInfGraph.InfFindSafeCapabilities(); 68 } 69 return capabilities; 70 } 71 72 } 73 74 75 | Popular Tags |