org.topbraid.inference.jena
Class JenaInferenceEngine

java.lang.Object
  extended by org.topbraid.inference.AbstractInfModelInferenceEngine
      extended by org.topbraid.inference.jena.JenaInferenceEngine
All Implemented Interfaces:
IInferenceEngine, IOntModelSpecInferenceEngine

public class JenaInferenceEngine
extends AbstractInfModelInferenceEngine
implements IOntModelSpecInferenceEngine


Field Summary
static java.lang.String DEFAULT_SPEC
           
static java.lang.String SPEC_KEY
           
static java.lang.String[] SPECS
           
 
Constructor Summary
JenaInferenceEngine()
           
 
Method Summary
 java.lang.String getConfigClassURI()
          Gets the URI of an RDF class that describes this type of engine.
 java.lang.String getConfigPropertyURI()
          Gets the URI of an RDF property that describes configurable details for an individual engine instance, e.g.
 java.lang.String getDescription()
          Gets a descriptive text that can appear in configuration dialogs to explain what this engine does.
 com.hp.hpl.jena.rdf.model.InfModel getInferenceModel(com.hp.hpl.jena.rdf.model.InfModel infModel, IInferenceEngineConfiguration config, int index, org.eclipse.core.runtime.IProgressMonitor monitor)
          Constructs a new InfModel from a given input InfModel.
 java.lang.String getLabel(IInferenceEngineConfiguration config, int index)
          Gets a human-readable label displaying an inference engine of this kind with given configuration arguments.
 com.hp.hpl.jena.ontology.OntModelSpec getOntModelSpec(IInferenceEngineConfiguration config, int index)
           
static com.hp.hpl.jena.ontology.OntModelSpec getOntModelSpecByName(java.lang.String specName)
           
 
Methods inherited from class org.topbraid.inference.AbstractInfModelInferenceEngine
getInferenceModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SPEC

public static final java.lang.String DEFAULT_SPEC
See Also:
Constant Field Values

SPEC_KEY

public static final java.lang.String SPEC_KEY

SPECS

public static final java.lang.String[] SPECS
Constructor Detail

JenaInferenceEngine

public JenaInferenceEngine()
Method Detail

getConfigClassURI

public java.lang.String getConfigClassURI()
Description copied from interface: IInferenceEngine
Gets the URI of an RDF class that describes this type of engine.

Specified by:
getConfigClassURI in interface IInferenceEngine
Returns:
a non-null URI

getConfigPropertyURI

public java.lang.String getConfigPropertyURI()
Description copied from interface: IInferenceEngine
Gets the URI of an RDF property that describes configurable details for an individual engine instance, e.g. the URL of a DIG reasoner.

Specified by:
getConfigPropertyURI in interface IInferenceEngine
Returns:
a URI or null

getDescription

public java.lang.String getDescription()
Description copied from interface: IInferenceEngine
Gets a descriptive text that can appear in configuration dialogs to explain what this engine does.

Specified by:
getDescription in interface IInferenceEngine
Returns:
a text (may include HTML) or null

getInferenceModel

public com.hp.hpl.jena.rdf.model.InfModel getInferenceModel(com.hp.hpl.jena.rdf.model.InfModel infModel,
                                                            IInferenceEngineConfiguration config,
                                                            int index,
                                                            org.eclipse.core.runtime.IProgressMonitor monitor)
                                                     throws java.lang.InterruptedException
Description copied from interface: IInferenceEngine
Constructs a new InfModel from a given input InfModel. The input is either defined as the original (asserted) model plus perhaps inference Graph and system Graph, or the output of a previous inference engine in the chain.

Specified by:
getInferenceModel in interface IInferenceEngine
Parameters:
infModel - the input model
config - configuration settings of the reasoners
index - the index of this engine in a chain of reasoners
monitor - a progress monitor to display status information
Returns:
a new InfModel (may be the same as infModel if no changes are needed)
Throws:
java.lang.InterruptedException

getLabel

public java.lang.String getLabel(IInferenceEngineConfiguration config,
                                 int index)
Description copied from interface: IInferenceEngine
Gets a human-readable label displaying an inference engine of this kind with given configuration arguments.

Specified by:
getLabel in interface IInferenceEngine
Parameters:
config - the configuration
index - the index of this engine in a chain of reasoners
Returns:
a label

getOntModelSpec

public com.hp.hpl.jena.ontology.OntModelSpec getOntModelSpec(IInferenceEngineConfiguration config,
                                                             int index)
Specified by:
getOntModelSpec in interface IOntModelSpecInferenceEngine

getOntModelSpecByName

public static com.hp.hpl.jena.ontology.OntModelSpec getOntModelSpecByName(java.lang.String specName)