org.umu.jasb.reasoning
Class SemanticEnforcing

java.lang.Object
  extended by org.umu.jasb.reasoning.SemanticEnforcing

public class SemanticEnforcing
extends java.lang.Object

This class is the contact point will be client application in which the enforcing of all the semantic features is achieved.

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

Field Summary
static long AXIOMATIC_TIME
          This will contain the axiomatic time for reasoning(for performance measure)
static long CONVERSION_TIME
          This will contain the conversion time from instances to OWL (for performance measure)
static boolean DEBUG
          This is a config parameter that defined the output in the console for debugging proposes
static long ENFORCING_TIME
          This will contain the enforcing time from OWL to instances (for performance measure)
(package private)  java.lang.String ontologyURL
          This is the URL of the working ontology
static long RULE_TIME
          This will contain the rule time for firing the rules in the rule engine (for performance measure)
(package private)  com.hp.hpl.jena.rdf.model.Model tBox
          THis is the statical perspective of the system
 
Constructor Summary
  SemanticEnforcing(java.io.File ontFile, java.lang.String ontologyURL)
          This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component).
  SemanticEnforcing(java.io.InputStream ontUrl, java.lang.String ontologyURL)
          This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component).
  SemanticEnforcing(java.io.Reader ontUrl, java.lang.String ontologyURL)
          This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component).
private SemanticEnforcing(java.lang.String ontologyURL)
          This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component)
  SemanticEnforcing(java.net.URL ontUrl, java.lang.String ontologyURL)
          This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component).
 
Method Summary
 void doReasoningJena(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
          This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor.
 void doReasoningPellet(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
          This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor.
 void doReasoningPelletJena(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
          This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor.
 void doReasoningPelletJess(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
          This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor.
private  void init()
          This is an auxiliary method used by all the constructor.
static void setDEBUG(boolean DEBUG)
          Establish the debug value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tBox

com.hp.hpl.jena.rdf.model.Model tBox
THis is the statical perspective of the system


ontologyURL

java.lang.String ontologyURL
This is the URL of the working ontology


DEBUG

public static boolean DEBUG
This is a config parameter that defined the output in the console for debugging proposes


CONVERSION_TIME

public static long CONVERSION_TIME
This will contain the conversion time from instances to OWL (for performance measure)


ENFORCING_TIME

public static long ENFORCING_TIME
This will contain the enforcing time from OWL to instances (for performance measure)


AXIOMATIC_TIME

public static long AXIOMATIC_TIME
This will contain the axiomatic time for reasoning(for performance measure)


RULE_TIME

public static long RULE_TIME
This will contain the rule time for firing the rules in the rule engine (for performance measure)

Constructor Detail

SemanticEnforcing

private SemanticEnforcing(java.lang.String ontologyURL)
This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component)

Parameters:
ontologyURL - The URL of the ontology.

SemanticEnforcing

public SemanticEnforcing(java.io.File ontFile,
                         java.lang.String ontologyURL)
This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component). The file provided should be the statical representation of the domain with the semantic features included.

Parameters:
ontologyURL - The URL of the ontology.
ontFile - The file that contains the initial ontology file

SemanticEnforcing

public SemanticEnforcing(java.net.URL ontUrl,
                         java.lang.String ontologyURL)
This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component). The ontURL provided should be the statical representation of the domain with the semantic features included.

Parameters:
ontologyURL - The URL of the ontology.
ontUrl - The URL that contains the initial ontology file

SemanticEnforcing

public SemanticEnforcing(java.io.InputStream ontUrl,
                         java.lang.String ontologyURL)
This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component). The ontURL provided should be the statical representation of the domain with the semantic features included.

Parameters:
ontologyURL - The URL of the ontology.
ontUrl - The inputstream that contains the initial ontology file

SemanticEnforcing

public SemanticEnforcing(java.io.Reader ontUrl,
                         java.lang.String ontologyURL)
This is the default constructor in which at least the URL of the ontology need to be provided Notive that must match which the URL stored in the OWL representation of the domain (the statical perspective o TBox component). The ontURL provided should be the statical representation of the domain with the semantic features included.

Parameters:
ontologyURL - The URL of the ontology.
ontUrl - The reader that contains the initial ontology file
Method Detail

setDEBUG

public static void setDEBUG(boolean DEBUG)
Establish the debug value

Parameters:
DEBUG - the debug value

init

private void init()
This is an auxiliary method used by all the constructor. It could be seen as a common factor of all the constructor that provided the initialization processes of the architecture.


doReasoningJena

public void doReasoningJena(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
                     throws ConvertionException
This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor. Concretely, this method is doing the reasoning with Jena as axiomatic OWL engines and Jena as semantic rule engine.

Parameters:
individuals - These are all the instances over which the semantic enrichment will be provided and conform all the registered instances of the architecture.
Throws:
ConvertionException - In the case of any error occur during the appliment of the semantic features.

doReasoningPelletJena

public void doReasoningPelletJena(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
                           throws ConvertionException
This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor. Concretely, this method is doing the reasoning with Pellet as axiomatic OWL engines and Jena as semantic rule engine.

Parameters:
individuals - These are all the instances over which the semantic enrichment will be provided and conform all the registered instances of the architecture.
Throws:
ConvertionException - In the case of any error occur during the appliment of the semantic features.

doReasoningPelletJess

public void doReasoningPelletJess(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
                           throws ConvertionException
This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor. Concretely, this method is doing the reasoning with Pellet as axiomatic OWL engines and Jess as semantic rule engine.

Parameters:
individuals - These are all the instances over which the semantic enrichment will be provided and conform all the registered instances of the architecture.
Throws:
ConvertionException - In the case of any error occur during the appliment of the semantic features.

doReasoningPellet

public void doReasoningPellet(java.util.HashMap<java.lang.Class,java.util.Collection<?>> individuals)
                       throws ConvertionException
This method is the key of the architecture and provided the semantic enrichment of all the given object with the guide lines provided by the OWL ontology provided in the constructor. Concretely, this method is doing the reasoning with Pellet as axiomatic OWL engines and Pellet as semantic rule engine.

Parameters:
individuals - These are all the instances over which the semantic enrichment will be provided and conform all the registered instances of the architecture.
Throws:
ConvertionException - In the case of any error occur during the appliment of the semantic features.