|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryState
Defines the operations to query the different aspect of state stored in the Directory Service
Nested Class Summary | |
---|---|
static class |
QueryState.UnknownConceptException
UnknownConceptException defines an exception to be thrown when a provided name of the concept is not know for the ontology repository |
static class |
QueryState.UnknownNamespaceException
UnknownNamespaceException defines an exception to be thrown when a provided namespace is not know for the ontology repository |
Method Summary | |
---|---|
boolean |
areClassesDisjoint(java.lang.String firstClass,
java.lang.String secondClass)
Test if two provided classes are disjoint |
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. |
OntClassDescription |
getClassDesc(java.lang.String className)
|
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> |
getImmediateSubClassesOf(java.lang.String className)
Get set of immediate subclasses of the given class (direct children of the class). |
OntInstanceDescription |
getIndividualDesc(java.lang.String individualName)
Finds the Ontology description of the provided individual |
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 Ontology Service |
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.Set<java.lang.String> |
getOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual, from the ontologies explicitly loaded into repository |
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.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). |
boolean |
testTrue(java.lang.String subject,
java.lang.String predicate,
java.lang.String object)
Test if triple is true according to the ontologies in the ontology repository. |
Method Detail |
---|
java.util.Set<java.lang.String> getListOfLoadedOntologies() throws DirectoryFailure
DirectoryFailure
java.util.Set<java.lang.String> getAllNamespaces() throws DirectoryFailure
DirectoryFailure
boolean testTrue(java.lang.String subject, java.lang.String predicate, java.lang.String object) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
subject
- of the triplepredicate
- of the tripleobject
- of the triple
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws OntologyService.ReasoningException, DirectoryFailure
variableName
- the name of the selected variablemultiplyVariablesQuery
- the query
OntologyService.ReasoningException
- if reasoning failed.
DirectoryFailure
java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
property
- the name of the propertysubject
- the name of the subject
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property, java.lang.String subjectStr) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
property
- the name of the propertysubjectStr
- the name of the subject
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getResourcesWithValueForProperty(java.lang.String property, java.lang.String value) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
property
- the name of the propertyvalue
- the value
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
java.util.List<java.lang.String> getPropertiesApplicableTo(java.lang.String className) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
className
- the name of the class
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws OntologyService.ReasoningException, QueryState.UnknownConceptException, DirectoryFailure
className
- the name of the classpropertyName
- the name of the property
OntologyService.ReasoningException
- if reasoning failed.
QueryState.UnknownConceptException
DirectoryFailure
OntClassDescription getClassDesc(java.lang.String className) throws QueryState.UnknownConceptException, DirectoryFailure, OntologyService.ReasoningException
QueryState.UnknownConceptException
DirectoryFailure
OntologyService.ReasoningException
OntInstanceDescription getIndividualDesc(java.lang.String individualName) throws QueryState.UnknownConceptException, DirectoryFailure
individualName
- the name of the individual
QueryState.UnknownConceptException
- if concept unknown
DirectoryFailure
java.util.Set<java.lang.String> getOntologyTypesOfIndividual(java.lang.String individualName) throws QueryState.UnknownConceptException, DirectoryFailure
individualName
- the name of the individual
QueryState.UnknownConceptException
- if concept unknown
DirectoryFailure
java.util.Set<java.lang.String> getInstancesOf(java.lang.String conceptName) throws QueryState.UnknownConceptException, DirectoryFailure
conceptName
- The name of the concept in the Jena format
QueryState.UnknownConceptException
- if forActor is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getSuperClassesOf(java.lang.String className) throws QueryState.UnknownConceptException, DirectoryFailure
className
- The name of the class in Jena format
QueryState.UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getSubClassesOf(java.lang.String className) throws QueryState.UnknownConceptException, DirectoryFailure
className
- The name of the class in Jena format
QueryState.UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getImmediateSubClassesOf(java.lang.String className) throws QueryState.UnknownConceptException, DirectoryFailure
className
- The name of the class in Jena format
QueryState.UnknownConceptException
QueryState.UnknownConceptException
- if className is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getSuperPropertiesOf(java.lang.String propertyName) throws QueryState.UnknownConceptException, DirectoryFailure
propertyName
- The name of the property in Jena format
QueryState.UnknownNamespaceException
- if propertyName is unknown for the ontology repository
QueryState.UnknownConceptException
DirectoryFailure
java.util.Set<java.lang.String> getSubPropertiesOf(java.lang.String propertyName) throws QueryState.UnknownConceptException, DirectoryFailure
propertyName
- The name of the property in Jena format
QueryState.UnknownNamespaceException
- if propertyName is unknown for the ontology repository
QueryState.UnknownConceptException
DirectoryFailure
boolean areClassesDisjoint(java.lang.String firstClass, java.lang.String secondClass) throws OntologyService.ReasoningException, DirectoryFailure, QueryState.UnknownConceptException
firstClass
- the name of the first classsecondClass
- the name of the second class
QueryState.UnknownConceptException
OntologyService.ReasoningException
DirectoryFailure
java.util.Set<java.lang.String> getClassesDefInNamespace(java.lang.String namespaceName) throws QueryState.UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
QueryState.UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getPropertiesDefInNamespace(java.lang.String namespaceName) throws QueryState.UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
QueryState.UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getInstancesDefInNamespace(java.lang.String namespaceName) throws QueryState.UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
QueryState.UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getNamspacesImportedByNamespace(java.lang.String namespaceName) throws QueryState.UnknownNamespaceException, DirectoryFailure
namespaceName
- The name of the namespace in the Jena format
QueryState.UnknownNamespaceException
- if namespaceName is unknown for the ontology repository
DirectoryFailure
java.util.Set<java.lang.String> getOntologyDefinitionForConcept(java.lang.String conceptName) throws QueryState.UnknownNamespaceException, DirectoryFailure
conceptName
- The name of the namespace in the Jena format
QueryState.UnknownNamespaceException
DirectoryFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |