|
|||||||||
| 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 |
askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
Get values of the selected variable satisfing 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 |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
java.util.Set |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
Get values of the variable satisfing 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)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
| 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 askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
throws DirectoryFailure,
QueryFailure
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
getInstancesOf in interface QueryStateconceptName - The name of the concept
DirectoryFailure - if the connection to the DS cannot be established
UnknownConceptException - if conceptName is unknow
public java.util.Set getValuesForProperty(java.lang.String property,
java.lang.String subject)
throws DirectoryFailure,
QueryFailure
getValuesForProperty in interface QueryStateproperty - the name of the propertysubject - the name of the subject
DirectoryFailure - if the connection to the DS cannot be established
QueryFailure - if query failed
public java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
throws DirectoryFailure,
UnknownConceptException
individualName - the name of the individual
individualName - if concept unknow or any problem with JTP approached
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 | ||||||||