Package org.apache.jena.reasoner.rulesys
Class RDFSForwardRuleReasoner
- java.lang.Object
-
- org.apache.jena.reasoner.rulesys.FBRuleReasoner
-
- org.apache.jena.reasoner.rulesys.GenericRuleReasoner
-
- org.apache.jena.reasoner.rulesys.RDFSForwardRuleReasoner
-
- All Implemented Interfaces:
Reasoner
,RuleReasoner
public class RDFSForwardRuleReasoner extends GenericRuleReasoner
A pure forward chaining implementation of the RDFS closure rules based upon the basic forward rule interpreter. The normal mixed forward/backward implementation is generally preferred but this has two possible uses. First, it is a test and demonstration of the forward chainer. Second, if you want all the RDFS entailments for an entire dataset the forward chainer will be more efficient.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.reasoner.rulesys.GenericRuleReasoner
GenericRuleReasoner.RuleMode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
RULE_FILE
The location of the OWL rule definitions on the class path-
Fields inherited from class org.apache.jena.reasoner.rulesys.GenericRuleReasoner
BACKWARD, filterFunctors, FORWARD, FORWARD_RETE, HYBRID
-
-
Constructor Summary
Constructors Constructor Description RDFSForwardRuleReasoner(ReasonerFactory parent)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Capabilities
getGraphCapabilities()
Return the Jena Graph Capabilities that the inference graphs generated by this reasoner are expected to conform to.static java.util.List<Rule>
loadRules()
Return the RDFS rule set, loading it in if necessary-
Methods inherited from class org.apache.jena.reasoner.rulesys.GenericRuleReasoner
addPreprocessingHook, bind, bindSchema, removePreprocessingHook, setFunctorFiltering, setMode, setOWLTranslation, setRules, setTransitiveClosureCaching
-
Methods inherited from class org.apache.jena.reasoner.rulesys.FBRuleReasoner
addDescription, addRules, bindSchema, getBoundSchema, getReasonerCapabilities, getRules, isTraceOn, loadRules, setDerivationLogging, setParameter, setTraceOn, supportsProperty, tablePredicate
-
-
-
-
Field Detail
-
RULE_FILE
public static final java.lang.String RULE_FILE
The location of the OWL rule definitions on the class path- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RDFSForwardRuleReasoner
public RDFSForwardRuleReasoner(ReasonerFactory parent)
Constructor
-
-
Method Detail
-
loadRules
public static java.util.List<Rule> loadRules()
Return the RDFS rule set, loading it in if necessary
-
getGraphCapabilities
public Capabilities getGraphCapabilities()
Return the Jena Graph Capabilities that the inference graphs generated by this reasoner are expected to conform to.- Specified by:
getGraphCapabilities
in interfaceReasoner
- Overrides:
getGraphCapabilities
in classFBRuleReasoner
-
-