|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyService
Defines the operations allowing to load ontology into the repository, methods allowing to modify instance types and values of properties. Additional it has methods allowing to configures filtering out values from specific namespaces from the set of values returned by its methods. Adds methods allowing to query the ontology. The queries do not depend on any specific ontology.
Nested Class Summary | |
---|---|
static class |
OntologyService.ReasoningException
|
Nested classes/interfaces inherited from interface kaos.core.csi.query.QueryState |
---|
QueryState.UnknownConceptException, QueryState.UnknownNamespaceException |
Method Summary | |
---|---|
void |
addFilteredNamespace(java.lang.String namespace)
This method add a namespace to the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
void |
addOntologicalTypeToEntity(java.lang.String entityName,
java.lang.String typeName,
java.lang.String typeDesc)
Add new type to the entity |
void |
addPropertyToEntity(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue,
java.lang.String propertyValueDesc)
Add a property value to an entity |
java.util.Set<java.lang.String> |
getFilteredNamespaces()
This method returns a set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
void |
loadOntology(java.lang.String loadedOWL)
Loads ontology in OWL into the repository of the Ontology Service |
java.util.Set<java.lang.String> |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology in OWL from given URL into the repository of the Ontology Service |
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List<Property> properties)
Modify properties of the specified entity |
void |
removeFilteredNamespace(java.lang.String namespace)
This method remove a namespace from the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
void |
removeOntologicalTypeFromEntity(java.lang.String entityName,
java.lang.String typeName)
Remove a type from the entity |
void |
removePropertyFromEntity(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyValue)
Remove a property value from an entity |
Method Detail |
---|
void loadOntology(java.lang.String loadedOWL) throws OntologyService.ReasoningException, DirectoryFailure
loadedOWL
- string containing a syntactically correctly OWL
OntologyService.ReasoningException
- when loading of the ontology failed.
DirectoryFailure
java.util.Set<java.lang.String> loadOntology(java.lang.String myURL, boolean recursiveLoad) throws OntologyService.ReasoningException, java.io.IOException, DirectoryFailure
myURL
- string containing a syntactically correct URI to an OWL sourcerecursiveLoad
- whether to load the OWL imported by the given URI
OntologyService.ReasoningException
- when loading of the ontology failed.
java.io.IOException
DirectoryFailure
void addOntologicalTypeToEntity(java.lang.String entityName, java.lang.String typeName, java.lang.String typeDesc) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
entityName
- - the uri of the entitytypeName
- - the type nametypeDesc
- - optional ontology description of the type
OntologyService.ReasoningException
QueryState.UnknownConceptException
DirectoryFailure
void removeOntologicalTypeFromEntity(java.lang.String entityName, java.lang.String typeName) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
entityName
- - the uri of the entitytypeName
- - the type name
OntologyService.ReasoningException
DirectoryFailure
QueryState.UnknownConceptException
void addPropertyToEntity(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue, java.lang.String propertyValueDesc) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
entityName
- - the uri of the entitypropertyName
- - the name of the propertypropertyValue
- - the value of the propertypropertyValueDesc
- - optional ontology description of the property value
OntologyService.ReasoningException
QueryState.UnknownConceptException
DirectoryFailure
void removePropertyFromEntity(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyValue) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
entityName
- - the uri of the entitypropertyName
- - the name of the propertypropertyValue
- - the value of the property
OntologyService.ReasoningException
QueryState.UnknownConceptException
DirectoryFailure
void modifyEntityProperties(java.lang.String entityGUID, java.util.List<Property> properties) throws DirectoryFailure, NotRegisteredException, kaos.core.service.directory.ModificationException
entityGUID
- - the uri of the entityproperties
- - list of properties with new values
DirectoryFailure,
- NotRegisteredException, ModificationException
DirectoryFailure
NotRegisteredException
kaos.core.service.directory.ModificationException
java.util.Set<java.lang.String> getFilteredNamespaces() throws DirectoryFailure
DirectoryFailure
void addFilteredNamespace(java.lang.String namespace) throws DirectoryFailure
namespace
- The name of the namespace
DirectoryFailure
void removeFilteredNamespace(java.lang.String namespace) throws DirectoryFailure
namespace
- The name of the namespace
DirectoryFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |