org.umu.jasb.jess
Class JessConnector

java.lang.Object
  extended by org.umu.jasb.jess.JessConnector

public class JessConnector
extends java.lang.Object

This class provide a connector from Jess engine with the JASB Architecture.

Author:
Jose Maria Alcaraz-Calero jmalcaraz@um.es - University of Murcia

Field Summary
(package private)  com.hp.hpl.jena.rdf.model.Model inference
          Represent the facts infered by the Jess rule engine
(package private)  com.hp.hpl.jena.rdf.model.Model inputModel
          Represent the input provided to Jess engine
 
Constructor Summary
JessConnector(com.hp.hpl.jena.rdf.model.Model model, org.umu.ore.data.RuleCollection rc, com.hp.hpl.jena.ontology.OntModel base)
          This is the default constructor for the Jess connector that inmediately acts doing a call to the Jess engine with the given input and stored the output in the inference attribute.
 
Method Summary
private static java.lang.String convertToJess(com.hp.hpl.jena.rdf.model.Model model, org.umu.ore.data.RuleCollection rule, com.hp.hpl.jena.ontology.OntModel base)
          This is an auxiliarty method that obtain the CLP representation of the given scenario
 com.hp.hpl.jena.rdf.model.Model getInference()
          Return the inference obtained from Jess engine
 void setInference(com.hp.hpl.jena.rdf.model.Model inference)
          Establish the inference obtained from Jess engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputModel

com.hp.hpl.jena.rdf.model.Model inputModel
Represent the input provided to Jess engine


inference

com.hp.hpl.jena.rdf.model.Model inference
Represent the facts infered by the Jess rule engine

Constructor Detail

JessConnector

public JessConnector(com.hp.hpl.jena.rdf.model.Model model,
                     org.umu.ore.data.RuleCollection rc,
                     com.hp.hpl.jena.ontology.OntModel base)
This is the default constructor for the Jess connector that inmediately acts doing a call to the Jess engine with the given input and stored the output in the inference attribute.

Parameters:
model - This is the ontology model provided as input to Jess
rc - This is the set of SWRL rules provided as input to Jess
base - This is the ontology base model used only for only the base name.
Method Detail

convertToJess

private static java.lang.String convertToJess(com.hp.hpl.jena.rdf.model.Model model,
                                              org.umu.ore.data.RuleCollection rule,
                                              com.hp.hpl.jena.ontology.OntModel base)
This is an auxiliarty method that obtain the CLP representation of the given scenario

Parameters:
model - This is the ontology model provided as input to Jess
rule - This is the set of SWRL rules provided as input to Jess
base -
Returns:
This is the ontology base model used only for only the base name.

getInference

public com.hp.hpl.jena.rdf.model.Model getInference()
Return the inference obtained from Jess engine

Returns:
the inference obtained from Jess engine

setInference

public void setInference(com.hp.hpl.jena.rdf.model.Model inference)
Establish the inference obtained from Jess engine

Parameters:
inference - the inference obtained from Jess engine