com.languagecomputer.api
Interface QuestionAnsweringWebService

All Superinterfaces:
BaseWebService
All Known Implementing Classes:
QuestionAnsweringWebServiceImpl

public interface QuestionAnsweringWebService
extends BaseWebService

Interface for question answering web service. Takes in a query and returns answers.

Since:
1.0
Author:
Kirk Roberts

Method Summary
 String getAnswers(String sessionID, String question, String format)
          Returns answers to the query.
 
Methods inherited from interface com.languagecomputer.api.BaseWebService
registerSession, unregisterSession
 

Method Detail

getAnswers

String getAnswers(String sessionID,
                  String question,
                  String format)
                  throws Exception
Returns answers to the query.

Parameters:
sessionID - The unique identifier String for the session for this operation.
query - The query in the format described in the format parameter.
format - The format in which the answers should be returned. Defaults to XML.
Returns:
The answers.
Throws:
Exception - If there was an error answering the question.


Copyright © 2009. All Rights Reserved.