|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyRepositoryService
Defines the operations enabling loading and maanging ontologies in the ontology repository. Currently the interface enales only addition of ontologies This should be update in the future with method enabling removing of the ontology and restarting the repository
Method Summary | |
---|---|
void |
addFilteredNamespace(java.lang.String namespace)
This method add a nemaspace to the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
boolean |
areClassesDisjoint(java.lang.String firstClass,
java.lang.String secondClass)
Test if two provided classes are disjoint |
java.util.Set |
askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
Get values of the selected variable satisfing the KIF query with possibly many variable. |
java.util.Set |
getAllNamespaces()
This method returns a set of urls depicting ontologies loaded into the JTP as well namespaces used internally by KAoS. |
java.util.Set |
getClassesDefInNamespace(java.lang.String namespaceName)
Get set of classes defined in the given namespace. |
java.util.List |
getConstructedOntologyStructures()
This method retrieves all user defined ontlogy structures in the repositiry. |
java.util.Set |
getFilteredNamespaces()
This method returns a set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
java.util.Set |
getInstancesDefInNamespace(java.lang.String namespaceName)
Get set of instances defined in the given namespace. |
java.util.Set |
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 |
getListOfLoadedOntologies()
This method returns a set of urls depicting ontologies loaded into the JTP. |
java.util.Set |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namspaces imported by the given namespace. |
java.util.Vector |
getPropertiesApplicableTo(java.lang.String className)
Get set of properties defined in the given namespace. |
java.util.Set |
getPropertiesDefInNamespace(java.lang.String namespaceName)
Get set of properties defined in the given namespace. |
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.Set |
getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
Get values of the variable satisfing the KIF query: (property ?subject value). |
java.util.Set |
getSubClassesOf(java.lang.String className)
Get set of subclasses of the given class. |
java.util.Set |
getSuperClassesOf(java.lang.String className)
Get set of superclasses of the given class. |
java.util.Set |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of superproperties of the given property. |
java.util.Set |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
java.lang.String |
getUniqueValueForProperty(java.lang.String property,
java.lang.String subject)
Get a single value of the variable satisfing the KIF query: (property subject ?val). |
java.util.Set |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
Get values of the variable satisfing the KIF query: (property subject ?val). |
void |
loadOntology(SerializableOntModelImpl myDAMLModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology from the provided url. |
void |
putConstructedOntologyStructures(java.util.List ontologyStructureList)
This method stores multiple ontology structures in the repositiry. |
void |
removeFilteredNamespace(java.lang.String namespace)
This method remove a nemaspace from the set of urls depicting ontology namespaces concept of which are filtered out when returned by methods of this repository. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
Method Detail |
---|
java.util.Set getListOfLoadedOntologies() throws DirectoryFailure
DirectoryFailure
java.util.Set getAllNamespaces() throws DirectoryFailure
DirectoryFailure
java.util.Set 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
java.util.List getConstructedOntologyStructures() throws DirectoryFailure
DirectoryFailure
void putConstructedOntologyStructures(java.util.List ontologyStructureList) throws ReasoningException, java.io.IOException, DirectoryFailure
ontologyStructureList
- a list containing SerializableOntModelImpl objects.
jtp.ReasoningException
- or IOException when loading of the ontology failed.
ReasoningException
java.io.IOException
DirectoryFailure
void loadOntology(java.lang.String myURL, boolean recursiveLoad) throws ReasoningException, java.io.IOException, DirectoryFailure
myURL
- The url to the ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
jtp.InconsistencyException
- when loading of the ontology failed.
ReasoningException
java.io.IOException
DirectoryFailure
void loadOntology(SerializableOntModelImpl myDAMLModel, boolean recursiveLoad) throws ReasoningException, java.io.IOException, DirectoryFailure
myDAMLModel
- The object of type com.hp.hpl.jena.daml.DAMLModel (actually SerializableOntModelImpl) containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myDAMLModel) should also be recursively loaded.
jtp.InconsistencyException
- when loading of the ontology failed.
ReasoningException
java.io.IOException
DirectoryFailure
java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException, DirectoryFailure
conceptName
- The name of the concept in the Jena format
UnknownConceptException
- if conceptName is unknow for the ontology repository
DirectoryFailure
java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
className
- The name of the class in the Jena format
UnknownConceptException
- if className is unknow for the ontology repository
DirectoryFailure
java.util.Set getSubClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
className
- The name of the class in Jena format
UnknownConceptException
- if className is unknow for the ontology repository
DirectoryFailure
java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException, DirectoryFailure
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
DirectoryFailure
boolean testTrue(java.lang.String statement) throws QueryFailure, DirectoryFailure
statement
- the object of type com.hp.hpl.jena.daml.DAMLModel containing the added ontology
QueryFailure
- if reasoning failed.
DirectoryFailure
java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws QueryFailure, DirectoryFailure
property
- the name of the property in the Jena formatsubject
- the name of the subject in the Jena format
QueryFailure
- if reasoning failed.
DirectoryFailure
java.util.Set getValuesForProperty(java.lang.String property, java.lang.String subject) throws QueryFailure, DirectoryFailure
property
- the name of the property in the Jena formatsubject
- the name of the subject in the Jena format
QueryFailure
- if reasoning failed.
DirectoryFailure
java.util.Set getResourcesWithValueForProperty(java.lang.String property, java.lang.String value) throws QueryFailure, DirectoryFailure
property
- the name of the property in the Jena formatvalue
- the value as a string in th Jena format
QueryFailure
- if reasoning failed.
DirectoryFailure
java.util.Vector getPropertiesApplicableTo(java.lang.String className) throws QueryFailure, UnknownConceptException, DirectoryFailure
className
- the name of the class
UnknownConceptException
- if className is unknow for the ontology repository
QueryFailure
DirectoryFailure
java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws QueryFailure, UnknownConceptException, DirectoryFailure
className
- the name of the classpropertyName
- the name of the property
UnknownConceptException
- if reasoning failed.
QueryFailure
DirectoryFailure
java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws QueryFailure, DirectoryFailure
variableName
- the neame ofthe selected variablemultiplyVariablesQuery
- the query
QueryFailure
- if reasoning failed.
DirectoryFailure
boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass) throws QueryFailure, DirectoryFailure
firstClass
- the name of the first classsecondClass
- the name of the second class
QueryFailure
- if reasoning failed.
DirectoryFailure
java.util.Set getClassesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repository
DirectoryFailure
java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws UnknownConceptException, DirectoryFailure
individualName
- the name of the individual
UnknownConceptException
- if concept unknow or any problem with JTP approached
DirectoryFailure
java.util.Set getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repository
DirectoryFailure
java.util.Set getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repository
DirectoryFailure
java.util.Set getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknow for the ontology repository
DirectoryFailure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |