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 27 28 public class RDFSForwardRuleReasoner extends GenericRuleReasoner { 29 30 public static final String RULE_FILE = "etc/rdfs.rules"; 31 33 34 protected static List ruleSet; 35 36 39 public RDFSForwardRuleReasoner(ReasonerFactory parent) { 40 super(loadRules(), parent); 41 setMode(FORWARD); 43 } 44 45 48 public static List loadRules() { 49 if (ruleSet == null) ruleSet = loadRules( RULE_FILE ); 50 return ruleSet; 51 } 52 53 57 public Capabilities getGraphCapabilities() { 58 if (capabilities == null) { 59 capabilities = new BaseInfGraph.InfFindSafeCapabilities(); 60 } 61 return capabilities; 62 } 63 64 } 65 66 95 | Popular Tags |