|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.owls.ontology.OwlsOntClassLoader
public class OwlsOntClassLoader
Field Summary | |
---|---|
protected static int |
_anonClsIncrement
|
protected Logger |
_logger
|
protected java.util.List |
_serviceList
|
protected boolean |
_useServiceName
|
static java.lang.String |
KAOS_OWLS_NAMESPACE
|
static java.lang.String |
PROCESS_INPUT_LABEL
|
static java.lang.String |
PROCESS_OUTPUT_LABEL
|
Constructor Summary | |
---|---|
OwlsOntClassLoader()
Create a new empty OwlsOntClassLoader - used to access static fields and methods of this class through Reflection |
|
OwlsOntClassLoader(java.lang.String serviceOwls)
Create a new OwlsOntClassLoader for the list of Service descriptions found in the given OWL-S string |
|
OwlsOntClassLoader(java.net.URL serviceURL)
Create a new OwlsOntClassLoader for the list of Service descriptions found at the given URI |
Method Summary | |
---|---|
protected void |
addPropertyRangeClasses(java.util.List propertyList,
KAoSClassBuilderImpl kcb,
java.lang.String paramTypeLabel)
For each OWL-S service parameter defined in the propertyList, add a property with the appropriate range restriction to the representative KAoS Action class in the kcb |
protected java.lang.String |
copyOntClass(OntClass sourceClass,
KAoSClassBuilderImpl targetClassBuilder)
Copy an anonymous class definition from one ontology model to another. |
SerializableOntModelImpl |
getAllKAoSActionClasses()
Return a single OntModel containg the KAoS Action classes for every process in the OWL-S for this ontology loader |
java.util.Vector |
getAllProcesses(java.util.List serviceList)
Get all OWL-S Processes (Composite, Simple, or Atomic) defined in the given list of OWL-S Services |
java.util.Vector |
getDistinctProcesses()
Get all OWL-S Processes (Composite, Simple, or Atomic) defined in the OWL-S Service used to construct this class |
java.util.Vector |
getDistinctProcesses(java.util.List serviceList)
Get all OWL-S Processes (Composite, Simple, or Atomic) defined in the given list of OWL-S Services |
Model |
getJenaModel()
|
protected java.lang.String |
getKAoSClassName(java.lang.Process ap,
boolean useServiceName)
Convert the URI for a given OWL-S Process to a class name for a KAoS Action subclass. |
protected java.lang.String |
getKAoSPropertyName(Parameter owlsParameter)
Convert the URI for a given OWL-S parameter to a property name for a KAoS Action subclass. |
KAoSClassBuilderImpl |
getKCBForProcess(java.lang.Process owlsProcess)
Create a KAoS Action class (KAoSClassBuilder) for single owl-s Process |
protected java.util.Vector |
getProcesses(java.lang.Process inProcess)
Recursively traverse Composite process descriptions to return all child processes of the given process. |
void |
getProcessFromKCB(KAoSClassBuilderImpl kcb)
Create an OWL-S process from the given KAoSClassBuilder |
static boolean |
isServiceDescription(java.lang.String owlString)
|
static boolean |
isServiceDescription(java.net.URL owlURL)
|
java.lang.String |
loadKAoSActionClasses(KAoSAgentDirectoryServiceProxy ontRepository)
Create the full set of KAoS Action classes for the processes in the OWL-S for this ontology loader. |
java.lang.String |
loadKAoSActionClasses(KAoSDirectoryService ontRepository)
Create the full set of KAoS Action classes for the processes in the OWL-S for this ontology loader. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KAOS_OWLS_NAMESPACE
public static final java.lang.String PROCESS_INPUT_LABEL
public static final java.lang.String PROCESS_OUTPUT_LABEL
protected static int _anonClsIncrement
protected java.util.List _serviceList
protected Logger _logger
protected boolean _useServiceName
Constructor Detail |
---|
public OwlsOntClassLoader()
public OwlsOntClassLoader(java.net.URL serviceURL)
serviceURI
- - location of the OWL-S Service descriptionspublic OwlsOntClassLoader(java.lang.String serviceOwls)
serviceOwls
- - string containing one or more OWL-S Service descriptionsMethod Detail |
---|
public static void main(java.lang.String[] args)
public static boolean isServiceDescription(java.lang.String owlString)
public static boolean isServiceDescription(java.net.URL owlURL)
public Model getJenaModel()
public SerializableOntModelImpl getAllKAoSActionClasses()
public java.lang.String loadKAoSActionClasses(KAoSAgentDirectoryServiceProxy ontRepository) throws DirectoryFailure, ReasoningException, java.io.IOException
ontRepository
- - KAoS directory service into which the action classes will be loaded
DirectoryFailure
ReasoningException
java.io.IOException
- // to callpublic java.lang.String loadKAoSActionClasses(KAoSDirectoryService ontRepository) throws DirectoryFailure, ReasoningException, java.io.IOException
ontRepository
- - KAoS directory service into which the action classes will be loaded
DirectoryFailure
ReasoningException
java.io.IOException
public java.util.Vector getDistinctProcesses()
public java.util.Vector getDistinctProcesses(java.util.List serviceList)
serviceList
- - list of OWL-S Service objects
public java.util.Vector getAllProcesses(java.util.List serviceList)
serviceList
- - list of OWL-S Service objects
protected java.util.Vector getProcesses(java.lang.Process inProcess)
inProcess
-
public KAoSClassBuilderImpl getKCBForProcess(java.lang.Process owlsProcess)
owlsProcess
-
public void getProcessFromKCB(KAoSClassBuilderImpl kcb)
kcb
- protected void addPropertyRangeClasses(java.util.List propertyList, KAoSClassBuilderImpl kcb, java.lang.String paramTypeLabel)
propertyList
- - list of Service parameters (e.g. inputs, outputs, effects)kcb
- - container for the KAoS Action classes being built from OWL-Sprotected java.lang.String copyOntClass(OntClass sourceClass, KAoSClassBuilderImpl targetClassBuilder)
sourceClass
- - the anonymous class definition (OWL-S) to copytargetClassBuilder
- - the container for the KAoS Action classes, the destination for the copy
protected java.lang.String getKAoSClassName(java.lang.Process ap, boolean useServiceName)
ap
-
protected java.lang.String getKAoSPropertyName(Parameter owlsParameter)
owlsParameter
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |