iw.model
Interface IWQuery

All Superinterfaces:
IWModelElement, IWProofElement
All Known Subinterfaces:
OWLQuery

public interface IWQuery
extends IWProofElement

Represents queries that are asked to inference web applications. These queries are then answered using inference engines and the proof from these answers is represented using nodesets.


Method Summary
 void addAnswer(IWNodeSet newAnswer)
          Adds the specified Nodeset to the list of answer nodesets ( @param newAnswer a nodeset corresponding to a new answer of the query
 java.util.List getAnswers()
          Returns a list of Nodesets of the answers for the query
 IWInferenceEngine getInferenceEngine()
          Returns the inference engine which answered the query
 IWLanguage getLanguage()
          Returns the language in which the query is expressed
 java.lang.String getQueryContent()
          Returns the content of the query i.e.
 IWQuestion getQuestion()
          Returns an IWQuestion insance corresponding to the question asked in the query
 void setAnswers(java.util.List _newAnswers)
          Sets the list of Nodesets of the answers for the query
 void setInferenceEngine(IWInferenceEngine newEngine)
          Sets the inference engine to the specified engine
 void setLanguage(IWLanguage newLanguage)
          Sets the language in which the query is expressed
 void setQueryContent(java.lang.String newContent)
          Sets the content of the query i.e.
 void setQuestion(IWQuestion newQuestion)
          Sets the question of a query to the specified IWQuestion insance
 
Methods inherited from interface iw.model.IWProofElement
getShortName, setShortName
 
Methods inherited from interface iw.model.IWModelElement
getFirstSubmissionDate, getLastSubmissionDate, getModel, getURI, setFirstSubmissionDate, setLastSubmissionDate, setModel, setURI
 

Method Detail

getQueryContent

public java.lang.String getQueryContent()
Returns the content of the query i.e. the text of the query

Returns:
the content of the query i.e. the text of the query

setQueryContent

public void setQueryContent(java.lang.String newContent)
Sets the content of the query i.e. the text of the query

Parameters:
newContent - the new content of the query i.e. the text of the query

getQuestion

public IWQuestion getQuestion()
Returns an IWQuestion insance corresponding to the question asked in the query

Returns:
an IWQuestion insance corresponding to the question asked in the query

setQuestion

public void setQuestion(IWQuestion newQuestion)
Sets the question of a query to the specified IWQuestion insance

Parameters:
newQuestion - an IWQuestion instance corresponding to the new question of the query

getLanguage

public IWLanguage getLanguage()
Returns the language in which the query is expressed

Returns:
the language in which the query is expressed

setLanguage

public void setLanguage(IWLanguage newLanguage)
Sets the language in which the query is expressed

Parameters:
newLanguage - the new language in which the query is expressed

getInferenceEngine

public IWInferenceEngine getInferenceEngine()
Returns the inference engine which answered the query

Returns:
an IWInferenceEngine instance correspoding to the inference engine which answered the query

setInferenceEngine

public void setInferenceEngine(IWInferenceEngine newEngine)
Sets the inference engine to the specified engine


getAnswers

public java.util.List getAnswers()
Returns a list of Nodesets of the answers for the query

Returns:
a list of Nodesets of the answers for the query

setAnswers

public void setAnswers(java.util.List _newAnswers)
Sets the list of Nodesets of the answers for the query

Parameters:
_newAnswers - the new list of Nodesets of the answers for the query

addAnswer

public void addAnswer(IWNodeSet newAnswer)
Adds the specified Nodeset to the list of answer nodesets ( @param newAnswer a nodeset corresponding to a new answer of the query



Copyright 2006 Inference Web group, All Rights Reserved.