Class WrappedReasonerFactory
- java.lang.Object
-
- org.apache.jena.reasoner.rulesys.impl.WrappedReasonerFactory
-
- All Implemented Interfaces:
ReasonerFactory
public final class WrappedReasonerFactory extends java.lang.Object implements ReasonerFactory
WrappedReasonerFactory - a wrapper round ReasonerFactories that accepts a Resource configuring initial rules, schemas, etc.
-
-
Constructor Summary
Constructors Constructor Description WrappedReasonerFactory(ReasonerFactory rrf, Resource config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reasoner
create(Resource ignored)
Answer a Reasoner created according to the underlying factory, and then loaded with this Wrapper's rules (if the Reasoner is a RuleReasoner) and bound to this Wrapper's schemas (in an unspecified order).Model
getCapabilities()
Answer the capabilities of the underlying ReasonerFactory.java.lang.String
getURI()
Answer the URI of the underlying ReasonerFactory.
-
-
-
Field Detail
-
schemaURL
public static final Property schemaURL
-
-
Constructor Detail
-
WrappedReasonerFactory
public WrappedReasonerFactory(ReasonerFactory rrf, Resource config)
-
-
Method Detail
-
create
public Reasoner create(Resource ignored)
Answer a Reasoner created according to the underlying factory, and then loaded with this Wrapper's rules (if the Reasoner is a RuleReasoner) and bound to this Wrapper's schemas (in an unspecified order).- Specified by:
create
in interfaceReasonerFactory
- Parameters:
ignored
- a set of arbitrary configuration information to be passed the reasoner, encoded as RDF properties of a base configuration resource, can be null in no custom configuration is required.
-
getCapabilities
public Model getCapabilities()
Answer the capabilities of the underlying ReasonerFactory.- Specified by:
getCapabilities
in interfaceReasonerFactory
-
getURI
public java.lang.String getURI()
Answer the URI of the underlying ReasonerFactory.- Specified by:
getURI
in interfaceReasonerFactory
-
-