com.brayan.SECS.BLL
Class OntologyManager

java.lang.Object
  extended by com.brayan.SECS.BLL.OntologyManager

public class OntologyManager
extends java.lang.Object

The Ontology Manager is Singleton designed and can load and drop owl files. It is also responsible to start inferential tasks.

Author:
Brayan

Field Summary
private  com.hp.hpl.jena.rdf.model.Model baseModel
           
private  com.hp.hpl.jena.rdf.model.Model deductionModel
           
private  java.lang.String defaultNameSpace
           
private  com.hp.hpl.jena.rdf.model.InfModel infModel
           
private static OntologyManager ref
          class variables
 
Constructor Summary
private OntologyManager()
          constructor not allowed to be called externally
 
Method Summary
 java.lang.Object clone()
          this overrides the clone() method - because it's of no use to us
 com.hp.hpl.jena.rdf.model.Model getBaseModel()
          Returns the instantiated Model.
 com.hp.hpl.jena.rdf.model.Model getDeductionModel()
           
 java.lang.String getDefaultNS()
           
 com.hp.hpl.jena.rdf.model.InfModel getInfModel()
           
static OntologyManager getSingletonObject()
           
private  void listTEST1()
           
private  void listTEST2()
           
 void loadCustomRules()
          This method loads the custom SECS-Rules.
private  void loadOnto()
          Create the ontology model, loads the OWL file and also creates the inferred model.
 void setDeductionModel(com.hp.hpl.jena.rdf.model.Model deductionModel)
           
 void setInfModel(com.hp.hpl.jena.rdf.model.InfModel infModel)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

private static OntologyManager ref
class variables


defaultNameSpace

private java.lang.String defaultNameSpace

baseModel

private com.hp.hpl.jena.rdf.model.Model baseModel

infModel

private com.hp.hpl.jena.rdf.model.InfModel infModel

deductionModel

private com.hp.hpl.jena.rdf.model.Model deductionModel
Constructor Detail

OntologyManager

private OntologyManager()
constructor not allowed to be called externally

Method Detail

getSingletonObject

public static OntologyManager getSingletonObject()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
this overrides the clone() method - because it's of no use to us

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

loadOnto

private void loadOnto()
Create the ontology model, loads the OWL file and also creates the inferred model. Invoke the load method only once - by the constructor.


loadCustomRules

public void loadCustomRules()
This method loads the custom SECS-Rules.


listTEST1

private void listTEST1()

listTEST2

private void listTEST2()

getBaseModel

public com.hp.hpl.jena.rdf.model.Model getBaseModel()
Returns the instantiated Model.

Returns:
Model

getDefaultNS

public java.lang.String getDefaultNS()

getDeductionModel

public com.hp.hpl.jena.rdf.model.Model getDeductionModel()

setDeductionModel

public void setDeductionModel(com.hp.hpl.jena.rdf.model.Model deductionModel)

getInfModel

public com.hp.hpl.jena.rdf.model.InfModel getInfModel()

setInfModel

public void setInfModel(com.hp.hpl.jena.rdf.model.InfModel infModel)