|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyService
Method Summary | |
---|---|
kaos.ontology.util.SerializableOntModelImpl |
getConstructedOntologyStructure(java.lang.String structureId)
This method retrieves user defined ontology structure identified by the id from the repository. |
java.util.List<kaos.ontology.util.SerializableOntModelImpl> |
getConstructedOntologyStructures()
This method retrieves all user defined ontology structures in the repository. |
java.util.Set<java.lang.String> |
getImmediateSubClassesOf(java.lang.String className)
Get set of immediate subclasses of the given class (direct children of the class). |
java.util.Set<java.lang.String> |
getInstancesOf(java.lang.String conceptName)
Get set of instances of the given concept; if the concept is an instance itself the set contains just this instance. |
java.util.Set<java.lang.String> |
getListOfLoadedOntologies()
This method returns a set of urls depicting ontologies loaded into the Ontology Service |
java.util.Set<java.lang.String> |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Get set of urls for the given short concept name. |
java.util.List<java.lang.String> |
getPropertiesApplicableTo(java.lang.String className)
Get properties applicable to the given class |
java.lang.String |
getRangeOnPropertyForClass(java.lang.String className,
java.lang.String propertyName)
Get the name of the class defining the range of the specified property for the given class. |
java.util.List<java.lang.String> |
getSchema(java.lang.String conceptName)
Get XML schema of the given concept if such a schema is available |
java.util.Set<java.lang.String> |
getSubClassesOf(java.lang.String className)
Get set of subclasses of the given class. |
java.util.Set<java.lang.String> |
getSubPropertiesOf(java.lang.String propertyName)
Get set of subproperties of the given property. |
java.util.Set<java.lang.String> |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of superproperties of the given property. |
java.util.Set<java.lang.String> |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
java.util.Set<java.lang.String> |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
Get the values of a given property for a given subject |
java.util.List<kaos.ontology.repository.OntClassPropertyDescription> |
initiateActionClassTargets(java.lang.String actionClassName,
java.lang.String actorClassName)
Get properties applicable to the action class |
void |
loadOntologies(java.util.List<kaos.ontology.util.SerializableOntModelImpl> myOntModelList,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(kaos.ontology.util.SerializableOntModelImpl myOntModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(java.lang.String loadedOWL)
Loads ontology in OWL into the repository of the Ontology Service |
void |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology in OWL from given URL into the repository of the Ontology Service |
void |
putSchema(java.lang.String conceptName,
java.lang.String xmlSchema)
Add an XML schema for the given concept |
void |
removeConstructedOntologyStructure(java.lang.String structureId)
This method removes a user defined ontology structure identified by the id from the repository. |
void |
removeConstructedOntologyStructures(java.util.List<java.lang.String> structureIds)
This method removes multiple user defined ontology structure identified by the id from the repository. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
Method Detail |
---|
void loadOntology(java.lang.String loadedOWL) throws kaos.ontology.repository.OntologyRepository.ReasoningException, DirectoryFailure
loadedOWL
- string containing a syntactically correctly OWL
kaos.ontology.repository.OntologyRepository.ReasoningException
- when loading of the ontology failed.
DirectoryFailure
void loadOntology(kaos.ontology.util.SerializableOntModelImpl myOntModel, boolean recursiveLoad) throws kaos.ontology.repository.OntologyRepository.ReasoningException, java.io.IOException
myOntModel
- The object of type Jena OntModel containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
kaos.ontology.util.QueryFailure
- or IOException when loading of the ontology failed.
kaos.ontology.repository.OntologyRepository.ReasoningException
java.io.IOException
void loadOntologies(java.util.List<kaos.ontology.util.SerializableOntModelImpl> myOntModelList, boolean recursiveLoad) throws kaos.ontology.repository.OntologyRepository.ReasoningException, java.io.IOException
myOntModel
- The object of type Jena OntModel containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myOntModel) should also be recursively loaded.
kaos.ontology.util.QueryFailure
- or IOException when loading of the ontology failed.
kaos.ontology.repository.OntologyRepository.ReasoningException
java.io.IOException
void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws kaos.ontology.repository.OntologyRepository.ReasoningException, java.io.IOException, DirectoryFailure
myURI
- string containing a syntactically correct URI to an OWL sourcerecursiveLoad
- whether to load the OWL imported by the given URI
kaos.ontology.repository.OntologyRepository.ReasoningException
- when loading of the ontology failed.
java.io.IOException
DirectoryFailure
java.util.Set<java.lang.String> getInstancesOf(java.lang.String conceptName) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
conceptName
- The name of the concept in the Jena format
java.lang.Exception
- if forActor is unknown for the ontology repository
kaos.ontology.management.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
individualName
- the name of the individual
kaos.ontology.management.UnknownConceptException
- if concept unknown or any problem with JTP approached
DirectoryFailure
java.util.Set<java.lang.String> getSubClassesOf(java.lang.String className) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
className
- The name of the class
java.lang.Exception
- if className is unknown for the ontology repository
kaos.ontology.management.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getImmediateSubClassesOf(java.lang.String className) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
className
- The name of the class in Jena format
kaos.ontology.management.UnknownConceptException
kaos.ontology.management.UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getSuperPropertiesOf(java.lang.String propertyName) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
propertyName
- The name of the property
java.lang.Exception
- if propertyName is unknown for the ontology repository
kaos.ontology.management.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getSubPropertiesOf(java.lang.String propertyName) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
propertyName
- The name of the property
java.lang.Exception
- if propertyName is unknown for the ontology repository
kaos.ontology.management.UnknownConceptException
DirectoryFailure
boolean testTrue(java.lang.String statement) throws kaos.ontology.util.QueryFailure, DirectoryFailure
statement
- the statement in KIF to be tested if true
java.lang.Exception
- if reasoning failed.
kaos.ontology.util.QueryFailure
DirectoryFailure
java.util.List<kaos.ontology.repository.OntClassPropertyDescription> initiateActionClassTargets(java.lang.String actionClassName, java.lang.String actorClassName) throws DirectoryFailure
actionClassName
- the name of the action class performingactorClassName
- the name of the actor class performing the action
DirectoryFailure
java.util.List<java.lang.String> getPropertiesApplicableTo(java.lang.String className) throws kaos.ontology.management.UnknownConceptException, kaos.ontology.util.QueryFailure, DirectoryFailure
className
- the name of the class
java.lang.Exception
- if className is unknown for the ontology repository
kaos.ontology.management.UnknownConceptException
kaos.ontology.util.QueryFailure
DirectoryFailure
java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property, java.lang.String subject) throws DirectoryFailure, kaos.ontology.util.QueryFailure
property
- - the property for which to lookup valuessubject
- - the subject to get the property values for
DirectoryFailure
kaos.ontology.util.QueryFailure
java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws kaos.ontology.management.UnknownConceptException, kaos.ontology.util.QueryFailure, DirectoryFailure
className
- the name of the classpropertyName
- the name of the property
java.lang.Exception
- if reasoning failed.
kaos.ontology.management.UnknownConceptException
kaos.ontology.util.QueryFailure
DirectoryFailure
java.util.Set<java.lang.String> getOntologyDefinitionForConcept(java.lang.String conceptName) throws DirectoryFailure
conceptName
- A short name of concept, e.g. "Actor"
DirectoryFailure
java.util.List<java.lang.String> getSchema(java.lang.String conceptName) throws kaos.ontology.management.UnknownConceptException, DirectoryFailure
conceptName
- uri name of the concept
java.lang.Exception
- if the concept is unknown for the XML Schema repository.
kaos.ontology.management.UnknownConceptException
DirectoryFailure
void putSchema(java.lang.String conceptName, java.lang.String xmlSchema) throws DirectoryFailure
conceptName
- uri name of the conceptschema
- string to add.
java.lang.Exception
- if the concept is unknown for the xml repository.
DirectoryFailure
java.util.Set<java.lang.String> getListOfLoadedOntologies() throws DirectoryFailure
DirectoryFailure
java.util.List<kaos.ontology.util.SerializableOntModelImpl> getConstructedOntologyStructures() throws DirectoryFailure
DirectoryFailure
kaos.ontology.util.SerializableOntModelImpl getConstructedOntologyStructure(java.lang.String structureId) throws kaos.ontology.repository.OntologyRepository.ReasoningException, kaos.ontology.management.UnknownConceptException, java.io.IOException, DirectoryFailure
conceptName
- uri name of the concept
kaos.ontology.repository.OntologyRepository.ReasoningException
kaos.ontology.management.UnknownConceptException
java.io.IOException
DirectoryFailure
void removeConstructedOntologyStructure(java.lang.String structureId) throws DirectoryFailure
structureId:
- uri name of the concept
DirectoryFailure
void removeConstructedOntologyStructures(java.util.List<java.lang.String> structureIds) throws DirectoryFailure
list
- of uri's identifying the concepts to remove
DirectoryFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |