|
|||||||||
| 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
| Method Summary | |
|---|---|
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> |
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> |
getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
Get values of the variable satisfying the KIF query: (property ?subject value). |
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 statement)
Test if the KIF statement is true according to the ontologies in the ontology repository. |
| Method Detail |
|---|
boolean testTrue(java.lang.String statement)
throws DirectoryFailure,
QueryFailure
statement - to be tested for truth
DirectoryFailure - if the connection to the DS cannot be established
QueryFailure - if query failed
java.util.Set<java.lang.String> askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
throws DirectoryFailure,
QueryFailure
variableName - the name of the selected variablemultiplyVariablesQuery - the query
DirectoryFailure - if the connection to the DS cannot be established
QueryFailure - if query failed.
java.util.Set<java.lang.String> getInstancesOf(java.lang.String conceptName)
throws DirectoryFailure,
UnknownConceptException
conceptName - The name of the concept
DirectoryFailure - if the connection to the DS cannot be established
UnknownConceptException - if conceptName is unknown
java.lang.String getUniqueValueForProperty(java.lang.String property,
java.lang.String subject)
throws DirectoryFailure,
QueryFailure
property - String containing the name of the property.subject - String containing the name of the subject.
DirectoryFailure - if the connection to the DS cannot be established.
QueryFailure - if reasoning failed.
java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property,
java.lang.String subjectStr)
throws DirectoryFailure,
QueryFailure
property - the name of the propertysubjectStr - the name of the subject
QueryFailure
DirectoryFailure
java.util.Set<java.lang.String> getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
throws DirectoryFailure,
QueryFailure
property - the name of the propertyvalue - the value
QueryFailure
DirectoryFailure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||