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 25 public class RDFSFBRuleReasoner extends FBRuleReasoner { 26 27 28 public static final String RULE_FILE = "etc/rdfs-fb.rules"; 29 30 31 protected static List ruleSet; 32 33 36 public RDFSFBRuleReasoner(ReasonerFactory parent) { 37 super(loadRules(), parent); 38 } 39 40 43 public static List loadRules() { 44 if (ruleSet == null) ruleSet = loadRules( RULE_FILE ); 45 return ruleSet; 46 } 47 48 52 public Capabilities getGraphCapabilities() { 53 if (capabilities == null) { 54 capabilities = new BaseInfGraph.InfFindSafeCapabilities(); 55 } 56 return capabilities; 57 } 58 59 } 60 61 62 | Popular Tags |