|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyRepository
Nested Class Summary | |
---|---|
static class |
OntologyRepository.ReasoningException
|
Method Summary | |
---|---|
void |
addFilteredNamespace(java.lang.String namespace)
This method add a namespaces to the set of ontology namespaces which are filtered out when returned by methods of this repository. |
java.util.Set<java.lang.String> |
askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
Get values of the selected variable satisfying the KIF query with possibly many variable. |
java.util.Set<java.lang.String> |
getAllNamespaces()
This method returns a set of urls depicting ontologies loaded into the repository as well namespaces used internally by KAoS. |
java.util.Set<java.lang.String> |
getClassesDefInNamespace(java.lang.String namespaceName)
Get set of classes defined in the given namespace. |
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. |
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> |
getInstancesDefInNamespace(java.lang.String namespaceName)
Get set of instances defined in the given namespace. |
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 repository |
java.util.Set<java.lang.String> |
getNamspacesImportedByNamespace(java.lang.String namespaceName)
Get set of namespaces imported by the given namespace. |
java.util.Set<java.lang.String> |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Get mapping to the urls of ontology concept for the given concept name. |
java.util.List<java.lang.String> |
getPropertiesApplicableTo(java.lang.String className)
Get properties applicable to the given class |
java.util.Set<java.lang.String> |
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<java.lang.String> |
getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
Get values of the variable satisfying the KIF query: (property ?subject value). |
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> |
getSuperClassesOf(java.lang.String className)
Get set of superclasses of the given class. |
java.util.Set<java.lang.String> |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of super properties of the given property. |
java.util.Set<java.lang.String> |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual, from the ontologies explicitly loaded into repository |
javax.swing.undo.UndoManager |
getUndoManager()
Get the undo manager for reasoning inference. |
java.lang.String |
getUniqueValueForProperty(java.lang.String property,
java.lang.String subject)
Get a single value of the variable satisfying the KIF query: (property subject ?val). |
java.util.Set<java.lang.String> |
getValuesForProperty(java.lang.String property,
java.lang.String subjectStr)
Get values of the variable satisfying the KIF query: (property subject ?val). |
java.util.List<OntClassPropertyDescription> |
initiateClassProperties(java.lang.String actionClassName,
java.lang.String actorClassName)
Get properties applicable to the action class |
void |
loadKB(java.net.URL _url)
Stores the assertion as well as its forward-chained information. |
void |
loadOntology(OntModel myOWLModel,
boolean recursiveLoad)
Adds ontology included in the provide objects into the ontology repository. |
java.util.Set<java.lang.String> |
loadOntology(java.lang.String myURL,
boolean recursiveLoad)
Loads ontology from the provided url. |
void |
removeFilteredNamespace(java.lang.String namespace)
This method remove a namespace from the set of ontology namespaces which are filtered out when returned by methods of this repository. |
void |
resetOntologyLoader()
Resets ontology loader |
void |
setNotificationRef(KAoSDirectoryService _myKAoSDirectoryService)
Sets the reference to the notification object; needed to send feedback about progress of operations |
int |
tellKifString(java.lang.String assertion)
Stores the assertion as well as its forward-chained information. |
int |
tellOwlString(java.lang.String assertion)
Stores the assertion as well as its forward-chained information. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statement is true according to the ontologies in the ontology repository. |
void |
untellKifString(java.lang.String assertion)
Deletes the assertion as well as its forward-chained information. |
void |
untellOwlString(java.lang.String assertion)
Deletes the assertion as well as its forward-chained information. |
Method Detail |
---|
void setNotificationRef(KAoSDirectoryService _myKAoSDirectoryService)
void resetOntologyLoader()
void loadKB(java.net.URL _url) throws OntologyRepository.ReasoningException, java.io.IOException
_url
- - a url to a file containing KIF-formatted string to assert
OntologyRepository.ReasoningException
java.io.IOException
int tellKifString(java.lang.String assertion) throws OntologyRepository.ReasoningException
assertion
- - a KIF-formatted string to assert
OntologyRepository.ReasoningException
void untellKifString(java.lang.String assertion) throws OntologyRepository.ReasoningException
assertion
- - a KIF-formatted string to untell
OntologyRepository.ReasoningException
int tellOwlString(java.lang.String assertion) throws OntologyRepository.ReasoningException
assertion
- - OWL string to assert
OntologyRepository.ReasoningException
void untellOwlString(java.lang.String assertion) throws OntologyRepository.ReasoningException
assertion
- - a OWL-formatted string to untell
OntologyRepository.ReasoningException
javax.swing.undo.UndoManager getUndoManager()
java.util.Set<java.lang.String> getListOfLoadedOntologies()
java.util.Set<java.lang.String> getAllNamespaces()
java.util.Set<java.lang.String> getFilteredNamespaces()
void addFilteredNamespace(java.lang.String namespace)
namespace
- The name of the namespacevoid removeFilteredNamespace(java.lang.String namespace)
namespace
- The name of the namespacejava.util.Set<java.lang.String> loadOntology(java.lang.String myURL, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
myURL
- the url to the ontologyrecursiveLoad
- indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
OntologyRepository.ReasoningException
- or IOException when loading of the ontology failed.
java.io.IOException
void loadOntology(OntModel myOWLModel, boolean recursiveLoad) throws OntologyRepository.ReasoningException, java.io.IOException
myOWLModel
- the object of type com.hp.hpl.jena.OWL.OWLModel containing the added ontologyrecursiveLoad
- indicates if the imported ontologies (by the ontology contained in myOWLModel) should also be recursively loaded.
OntologyRepository.ReasoningException
- or IOException when loading of the ontology failed.
java.io.IOException
boolean testTrue(java.lang.String statement) throws OntologyRepository.ReasoningException
statement
- the statement in KIF to be tested if true
OntologyRepository.ReasoningException
- if reasoning failed.java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws OntologyRepository.ReasoningException
property
- the name of the propertysubject
- the name of the subject
OntologyRepository.ReasoningException
- if reasoning failed.java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property, java.lang.String subjectStr) throws OntologyRepository.ReasoningException
property
- the name of the propertysubjectStr
- the name of the subject
OntologyRepository.ReasoningException
- if reasoning failed.java.util.Set<java.lang.String> getResourcesWithValueForProperty(java.lang.String property, java.lang.String value) throws OntologyRepository.ReasoningException
property
- the name of the propertyvalue
- the value
OntologyRepository.ReasoningException
- if reasoning failed.java.util.Set<java.lang.String> askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws OntologyRepository.ReasoningException
variableName
- the name of the selected variablemultiplyVariablesQuery
- the query
OntologyRepository.ReasoningException
- if reasoning failed.java.util.List<OntClassPropertyDescription> initiateClassProperties(java.lang.String actionClassName, java.lang.String actorClassName)
actionClassName
- the name of the action class performingactorClassName
- the name of the actor class performing the action
java.util.List<java.lang.String> getPropertiesApplicableTo(java.lang.String className) throws OntologyRepository.ReasoningException
className
- the name of the class
OntologyRepository.ReasoningException
- if reasoning failed.java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws OntologyRepository.ReasoningException
className
- the name of the classpropertyName
- the name of the property
OntologyRepository.ReasoningException
- if reasoning failed.java.util.Set<java.lang.String> getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws UnknownConceptException
individualName
- the name of the individual
individualName
- if concept unknown
UnknownConceptException
java.util.Set<java.lang.String> getInstancesOf(java.lang.String conceptName) throws UnknownConceptException
conceptName
- The name of the concept in the Jena format
UnknownConceptException
- if forActor is unknown for the ontology repositoryjava.util.Set<java.lang.String> getSuperClassesOf(java.lang.String className) throws UnknownConceptException
className
- The name of the class in Jena format
UnknownConceptException
- if className is unknown for the ontology repositoryjava.util.Set<java.lang.String> getSubClassesOf(java.lang.String className) throws UnknownConceptException
className
- The name of the class in Jena format
UnknownConceptException
- if className is unknown for the ontology repositoryjava.util.Set<java.lang.String> getImmediateSubClassesOf(java.lang.String className) throws UnknownConceptException
className
- The name of the class in Jena format
UnknownConceptException
UnknownConceptException
- if className is unknown for the ontology repositoryjava.util.Set<java.lang.String> getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
propertyName
- The name of the property in Jena format
OntologyRepository.ReasoningException
- if propertyName is unknown for the ontology repository
UnknownConceptException
java.util.Set<java.lang.String> getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException
propertyName
- The name of the property in Jena format
OntologyRepository.ReasoningException
- if propertyName is unknown for the ontology repository
UnknownConceptException
java.util.Set<java.lang.String> getClassesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositoryjava.util.Set<java.lang.String> getPropertiesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositoryjava.util.Set<java.lang.String> getInstancesDefInNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositoryjava.util.Set<java.lang.String> getNamspacesImportedByNamespace(java.lang.String namespaceName) throws UnknownNamespaceException
namespaceName
- The name of the namespace in the Jena format
UnknownNamespaceException
- if namespaceName is unknown for the ontology repositoryjava.util.Set<java.lang.String> getOntologyDefinitionForConcept(java.lang.String conceptName)
conceptName
- The name of the namespace in the Jena format
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |