|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.query.QueryStateImpl
public class QueryStateImpl
Defines the operations to query the different aspects of domain and actor registrations
| 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. |
static QueryState |
getInstance(java.lang.String transportName)
Retrieve an instance of QueryState. |
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<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> |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
|
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 subject)
Get values of the variable satisfying the KIF query: (property subject ?val). |
protected void |
logMessage(java.lang.String msg,
java.lang.Exception e,
int logLevel)
|
protected void |
logMessage(java.lang.String msg,
int logLevel)
|
boolean |
testTrue(java.lang.String statement)
kaos.core.csi.query.QueryState interface implementation - begin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static QueryState getInstance(java.lang.String transportName)
throws java.lang.Exception
transportName - String specifying the name of the transport to use for communication with the KAoS Directory Service.
java.lang.Exception
public boolean testTrue(java.lang.String statement)
throws DirectoryFailure,
QueryFailure
testTrue in interface QueryStatestatement - to be tested for truth
DirectoryFailure - if the connection to the DS cannot be established
QueryFailure - if query failed
public java.util.Set<java.lang.String> askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
throws DirectoryFailure,
QueryFailure
QueryState
askQuery in interface QueryStatevariableName - the name of the selected variablemultiplyVariablesQuery - the query
DirectoryFailure - if the connection to the DS cannot be established
QueryFailure - if query failed.
public java.util.Set getInstancesOf(java.lang.String conceptName)
throws DirectoryFailure,
UnknownConceptException
QueryState
getInstancesOf in interface QueryStateconceptName - The name of the concept
DirectoryFailure - if the connection to the DS cannot be established
UnknownConceptException - if conceptName is unknown
public java.util.Set<java.lang.String> getValuesForProperty(java.lang.String property,
java.lang.String subject)
throws DirectoryFailure,
QueryFailure
QueryState
getValuesForProperty in interface QueryStateproperty - the name of the propertysubject - the name of the subject
DirectoryFailure
QueryFailure
public java.util.Set<java.lang.String> getResourcesWithValueForProperty(java.lang.String property,
java.lang.String value)
throws DirectoryFailure,
QueryFailure
QueryState
getResourcesWithValueForProperty in interface QueryStateproperty - the name of the propertyvalue - the value
DirectoryFailure
QueryFailure
public java.lang.String getUniqueValueForProperty(java.lang.String property,
java.lang.String subject)
throws DirectoryFailure,
QueryFailure
QueryState
getUniqueValueForProperty in interface QueryStateproperty - 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.
public java.util.Set<java.lang.String> getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
throws DirectoryFailure,
UnknownConceptException
DirectoryFailure
UnknownConceptException
protected void logMessage(java.lang.String msg,
int logLevel)
protected void logMessage(java.lang.String msg,
java.lang.Exception e,
int logLevel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||