com.ge.grc.acuity.util
Class OntModelManagementUtilities

java.lang.Object
  extended bycom.ge.grc.acuity.util.OntModelManagementUtilities

public class OntModelManagementUtilities
extends java.lang.Object


Constructor Summary
OntModelManagementUtilities()
           
 
Method Summary
static java.lang.String removeNewTBoxFromExistingABox(java.lang.String aBoxUri, java.lang.String newTBoxUri, java.lang.String newTBoxPrefix, java.lang.String outputModelFile, java.lang.String policyFile)
          Call this method when you have an existing ABox (containing instance data and class/property definitions) from which some definitions have been generalized in a new TBox and you wish to remove the new TBox definitions from the existing ABox.
static java.lang.String separateNewTBoxFromExistingABox(java.lang.String existingABoxUri, java.lang.String newTBoxUri, java.lang.String newTBoxPrefix, java.lang.String outputModelFile, java.lang.String policyFile)
          Call this method when you have an existing ABox (containing instance data and class/property definitions) from which some definitions have been generalized in a new TBox and you wish to separate or remove the new TBox definitions from the existing ABox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntModelManagementUtilities

public OntModelManagementUtilities()
Method Detail

separateNewTBoxFromExistingABox

public static java.lang.String separateNewTBoxFromExistingABox(java.lang.String existingABoxUri,
                                                               java.lang.String newTBoxUri,
                                                               java.lang.String newTBoxPrefix,
                                                               java.lang.String outputModelFile,
                                                               java.lang.String policyFile)
Call this method when you have an existing ABox (containing instance data and class/property definitions) from which some definitions have been generalized in a new TBox and you wish to separate or remove the new TBox definitions from the existing ABox. The resulting model will retain the same namespace but will import the new TBox and use its definitions.

Parameters:
existingABoxUri - - the obsoleted model with definitions now in new TBox
newTBoxUri - - the new TBox model
newTBoxPrefix - - the prefix to be used for the new TBox
outputModelFile - - the file to which the new ABox model is to be written
policyFile - - the Jena policy file used to resolve URIs for imports
Returns:
- the result of the processing or null if it failed (error will go to System.out currently)

removeNewTBoxFromExistingABox

public static java.lang.String removeNewTBoxFromExistingABox(java.lang.String aBoxUri,
                                                             java.lang.String newTBoxUri,
                                                             java.lang.String newTBoxPrefix,
                                                             java.lang.String outputModelFile,
                                                             java.lang.String policyFile)
Call this method when you have an existing ABox (containing instance data and class/property definitions) from which some definitions have been generalized in a new TBox and you wish to remove the new TBox definitions from the existing ABox. The resulting model will retain the same namespace but will import the new TBox and use its definitions.

Parameters:
aBoxUri - - the model initially containing definitions now in new TBox
newTBoxUri - - the new TBox model
newTBoxPrefix - - the prefix to be used for the new TBox
outputModelFile - - the path and name of the file to which the revised abox model is to be written
policyFile - - the Jena policy file used to resolve URIs for imports
Returns:
- the result of the processing or null if it failed (error will go to System.out currently)