|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.ontology.util.OntConversionUtils
public class OntConversionUtils
Constructor Summary | |
---|---|
OntConversionUtils()
|
Method Summary | |
---|---|
static java.util.Vector |
getActionDescriptions(KAoSInstanceBuilder kib,
java.lang.Class actionClass,
Service directoryService)
Convert the KAoSInstanceBuilder into a vector of action objects, either BasicActionDescription or ActionInstanceDescription as given in the actionClass parameter |
static java.util.Vector |
getActionDescriptions(java.lang.String owl,
java.lang.Class actionClass,
Service directoryService)
Convert the given OWL String to a Vector of action objects either BasicActionDescription or ActionInstanceDescription as given in the actionClass parameter |
static ActionInstanceDescription |
getActionInstanceDescription(BasicActionDescription bad)
Convert a BasicActionDescription to an ActionInstanceDescription |
static ActionInstanceDescription |
getActionInstanceDescription(java.lang.String owl,
Service directoryService)
Convert the given OWL String to an ActionInstanceDescription |
static BasicActionDescription |
getBasicActionDescription(KAoSInstanceBuilder kib,
Service directoryService)
Convert the given KAoSInstanceBuilder to a BasicActionDescription |
static BasicActionDescription |
getBasicActionDescription(java.lang.String owl,
Service directoryService)
Convert the given OWL String to a BasicActionDescription |
protected static KAoSInstance |
getKAoSInstance(OntModel ontModel,
java.lang.String instanceName,
Service kaosDirectoryService)
Converts one instance from the OWL ontology Called recursively to build a nested tree of KAoSInstances with properties who's values can be KAoSInstances. |
static KAoSInstanceBuilder |
getKAoSInstanceBuilder(BasicActionDescription ad)
Convert the given BasicActionDesc to an OWL ontology model (wrapped as a KAoSInstanceBuilder) Currently only supports one action, one actor (e.g. |
static java.lang.String |
getOWL(BasicActionDescription bad)
Convert the given BasicActionDesc to an OWL ontology model and return the XML text for the OWL model |
static java.util.Vector |
getRootKAoSInstances(OntModel instanceModel,
Service directoryService)
|
static void |
readFromClassModel(KAoSClassBuilderImpl model,
BasicActionDescription bad,
OntologyInterfaces ont)
|
static BasicActionDescription |
readFromClassModel(KAoSClassBuilderImpl model,
OntologyInterfaces ont)
|
static java.util.Vector |
retrieveActionClassNames(java.lang.String owl)
Get the names of all kaos action classes defined in the given owl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OntConversionUtils()
Method Detail |
---|
public static java.lang.String getOWL(BasicActionDescription bad)
aid
-
public static KAoSInstanceBuilder getKAoSInstanceBuilder(BasicActionDescription ad)
aid
-
public static BasicActionDescription getBasicActionDescription(java.lang.String owl, Service directoryService)
owl
- public static BasicActionDescription getBasicActionDescription(KAoSInstanceBuilder kib, Service directoryService)
kib
-
public static ActionInstanceDescription getActionInstanceDescription(java.lang.String owl, Service directoryService)
owl
- - OWL ontology string defining an instance of the Action class
protected static KAoSInstance getKAoSInstance(OntModel ontModel, java.lang.String instanceName, Service kaosDirectoryService)
ontModel
- instanceName
-
public static java.util.Vector getActionDescriptions(KAoSInstanceBuilder kib, java.lang.Class actionClass, Service directoryService)
kib
- - the KAoSInstanceBuilder to convertactionClass
- - the Class for the desired return type: BAD or AID
public static java.util.Vector getActionDescriptions(java.lang.String owl, java.lang.Class actionClass, Service directoryService)
owl
- - the OWL string to convertactionClass
- - the Class for the desired return type: BAD or AID
public static java.util.Vector retrieveActionClassNames(java.lang.String owl)
owl
- - String containing the owl model
public static java.util.Vector getRootKAoSInstances(OntModel instanceModel, Service directoryService)
public static ActionInstanceDescription getActionInstanceDescription(BasicActionDescription bad)
public static BasicActionDescription readFromClassModel(KAoSClassBuilderImpl model, OntologyInterfaces ont)
public static void readFromClassModel(KAoSClassBuilderImpl model, BasicActionDescription bad, OntologyInterfaces ont)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |