com.ge.grc.acuity.util
Class OntModelManagementUtilities
java.lang.Object
com.ge.grc.acuity.util.OntModelManagementUtilities
- public class OntModelManagementUtilities
- extends java.lang.Object
|
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 |
OntModelManagementUtilities
public OntModelManagementUtilities()
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 TBoxnewTBoxUri - - the new TBox modelnewTBoxPrefix - - the prefix to be used for the new TBoxoutputModelFile - - the file to which the new ABox model is to be writtenpolicyFile - - 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 TBoxnewTBoxUri - - the new TBox modelnewTBoxPrefix - - the prefix to be used for the new TBoxoutputModelFile - - the path and name of the file to which the revised abox model is to be writtenpolicyFile - - 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)