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 29 public class OWLMiniReasoner extends GenericRuleReasoner implements Reasoner { 30 31 32 protected static final String MINI_RULE_FILE = "etc/owl-fb-mini.rules"; 33 34 35 protected static List miniRuleSet; 36 37 40 public static List loadRules() { 41 if (miniRuleSet == null) miniRuleSet = loadRules( MINI_RULE_FILE ); 42 return miniRuleSet; 43 } 44 45 46 49 public OWLMiniReasoner(ReasonerFactory factory) { 50 super(loadRules(), factory); 51 setOWLTranslation(true); 52 setMode(HYBRID); 53 } 55 56 57 61 public Capabilities getGraphCapabilities() { 62 if (capabilities == null) { 63 capabilities = new BaseInfGraph.InfFindSafeCapabilities(); 64 } 65 return capabilities; 66 } 67 68 } 69 70 71 | Popular Tags |