|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.att.gs.codip.ograph.OGUtility
A colleciton static of utility methods.
Constructor Summary | |
OGUtility()
|
Method Summary | |
static void |
addJessClass(jess.Rete rete,
jess.Context context,
OGClass theClass)
Adds a class to the provided Jess Rete Object. |
static void |
addJessDatatype(jess.Rete rete,
jess.Context context,
OGDatatype theDatatype)
Adds a datatype to the provided Jess Rete Object. |
static void |
addJessInstance(jess.Rete rete,
jess.Context context,
OGPropInstance theProperty)
Adds an instance to the provided Jess Rete Object. |
static void |
addJessInstances(jess.Rete rete,
OGOntology theOnto)
Adds the instances in an ontology to the provided Jess Rete Object. |
static void |
addJessInstances(jess.Rete rete,
OGOntology theOnto,
boolean forceReload)
Adds the instances in an ontology to the provided Jess Rete Object. |
static void |
addJessLiteral(jess.Rete rete,
jess.Context context,
OGLiteral theLiteral)
Adds a literal to the provided Jess Rete Object. |
static void |
addJessOntotology(jess.Rete rete,
OGOntology theOnto)
Adds an ontology, and all its compoents, to the provided Jess Rete Object. |
static void |
addJessOntotology(jess.Rete rete,
OGOntology theOnto,
boolean forceReload)
Adds an ontology, and all its compoents, to the provided Jess Rete Object. |
static void |
addJessProperty(jess.Rete rete,
jess.Context context,
OGProperty theProperty)
Adds a property to the provided Jess Rete Object. |
static void |
fullGC()
Perform a full garbage collection. |
static void |
main(java.lang.String[] args)
Main added for basic testing. |
static void |
printClass(java.io.PrintStream outStream,
OGClass theClass)
Prints a class to the provided PrintStream. |
static void |
printDatatype(java.io.PrintStream outStream,
OGDatatype theDatatype)
Prints a datatype to the provided PrintStream. |
static void |
printLiteral(java.io.PrintStream outStream,
OGLiteral theLiteral)
Prints a literal to the provided PrintStream. |
static void |
printOntotology(java.io.PrintStream outStream,
OGOntology theOnto)
Prints an ontology, and all its components, to the provided PrintStream. |
static void |
printProperty(java.io.PrintStream outStream,
OGProperty theProperty)
Prints a property to the provided PrintStream. |
static void |
removeJessInstances(jess.Rete rete,
OGOntology theOnto)
|
static void |
removeJessOntotology(jess.Rete rete,
OGOntology theOnto)
Removes an ontology, and all its compoents, from the provided Jess Rete Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OGUtility()
Method Detail |
public static void fullGC()
public static void printOntotology(java.io.PrintStream outStream, OGOntology theOnto) throws java.lang.Exception
outStream
- The PrintStream to use.theOnto
- The ontology to print.
java.lang.Exception
public static void printClass(java.io.PrintStream outStream, OGClass theClass) throws java.lang.Exception
outStream
- The PrintStream to use.theClass
- The class to print.
java.lang.Exception
public static void printProperty(java.io.PrintStream outStream, OGProperty theProperty) throws java.lang.Exception
outStream
- The PrintStream to use.theProperty
- The property to print.
java.lang.Exception
public static void printLiteral(java.io.PrintStream outStream, OGLiteral theLiteral) throws java.lang.Exception
outStream
- The PrintStream to use.theLiteral
- The literal to print.
java.lang.Exception
public static void printDatatype(java.io.PrintStream outStream, OGDatatype theDatatype) throws java.lang.Exception
outStream
- The PrintStream to use.theDatatype
- The datatype to print.
java.lang.Exception
public static void addJessOntotology(jess.Rete rete, OGOntology theOnto) throws java.lang.Exception
Note that a suitable jess defclass calss must have be executed before using this method. A Jess script with appropriate calls is in OGRTemplates.clp
rete
- The Jess Rete object to add facts to.theOnto
- The ontology to print.
java.lang.Exception
public static void addJessOntotology(jess.Rete rete, OGOntology theOnto, boolean forceReload) throws java.lang.Exception
Note that a suitable jess defclass calss must have be executed before using this method. A Jess script with appropriate calls is in OGRTemplates.clp
rete
- The Jess Rete object to add facts to.theOnto
- The ontology to print.forceReload
- A flag force reloading a previously loaded ontology.
java.lang.Exception
public static void addJessClass(jess.Rete rete, jess.Context context, OGClass theClass) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theClass
- The class to print.
java.lang.Exception
public static void addJessProperty(jess.Rete rete, jess.Context context, OGProperty theProperty) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theProperty
- The property to print.
java.lang.Exception
public static void addJessLiteral(jess.Rete rete, jess.Context context, OGLiteral theLiteral) throws java.lang.Exception
Note that a suitable ess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theLiteral
- The literal to add.
java.lang.Exception
public static void addJessDatatype(jess.Rete rete, jess.Context context, OGDatatype theDatatype) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theDatatype
- The Datatype to add.
java.lang.Exception
public static void addJessInstances(jess.Rete rete, OGOntology theOnto) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theOnto
- The ontology to print.
java.lang.Exception
public static void addJessInstances(jess.Rete rete, OGOntology theOnto, boolean forceReload) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theOnto
- The ontology to print.forceReload
- A flag force reloading a previously loaded ontology.
java.lang.Exception
public static void addJessInstance(jess.Rete rete, jess.Context context, OGPropInstance theProperty) throws java.lang.Exception
Note that a suitable jess defclass must have be executed before using this method.
rete
- The Jess Rete object to add facts to.theProperty
- The property instance to add.
java.lang.Exception
public static void removeJessOntotology(jess.Rete rete, OGOntology theOnto) throws java.lang.Exception
rete
- The Jess Rete object to add facts to.theOnto
- The ontology to print.
java.lang.Exception
public static void removeJessInstances(jess.Rete rete, OGOntology theOnto) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |