| 
 | DIG 1.1 Reasoners API, April 26, 2004 (12:45 PM) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.kr.dl.dig.reasoner.v1_1.impl.HTTPReasoner
An implementation of Reasoner that passes its
 requests to a remote reasoner via HTTP POST requests (see the 
 DIG
 specification for more details). 
 Allows the use of external reasoners conforming to the DIG interface, 
 such as RACER.
| Field Summary | 
| Fields inherited from interface org.kr.dl.dig.reasoner.v1_1.Reasoner | 
| XML_HEADER | 
| Constructor Summary | |
| HTTPReasoner(URL url)Creates a new client, talking to the DL reasoner at url. | |
| Method Summary | |
|  ResponsesDocument | asks(AsksDocument asks)Returns the ResponsesDocumentcorresponding to theasks. | 
|  IdentifierDocument | getIdentifier()Returns the IdentifierDocumentcorresponding to thegetIdentifierrequest. | 
|  URL | getUrl()Gets url. | 
|  URI | newKB()Obtains the URIfor a new knowledge base from the reasoner. | 
|  ResponseDocument | parseResponse(URLConnection connection)Parses the reasoner response at connectioninto aResponseDocument. | 
|  ResponsesDocument | parseResponses(URLConnection connection)Parses the reasoner responses at connectioninto aResponsesDocument. | 
|  boolean | releaseKB(URI kb)Instructs the reasoner to release the knowledge base kb. | 
|  void | setUrl(URL url)Sets url. | 
|  ResponseDocument | tells(TellsDocument tells)Returns the ResponseDocumentcorresponding to thetells. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public HTTPReasoner(URL url)
             throws ReasonerException
url.
url - The URL of the DL reasoner.| Method Detail | 
public URL getUrl()
url.
url.public void setUrl(URL url)
url.
url - a new URL.
public IdentifierDocument getIdentifier()
                                 throws ReasonerException
IdentifierDocument corresponding to the 
 getIdentifier request.
getIdentifier in interface ReasonerIdentifierDocument corresponding to the 
 getIdentifier request.
ReasonerException - with code: 
 
public ResponseDocument tells(TellsDocument tells)
                       throws ReasonerException
ResponseDocument corresponding to the tells.
tells in interface Reasonertells - an TellsDocument.
ResponseDocument corresponding to the tells.
ReasonerException - with code: 
 
public ResponsesDocument asks(AsksDocument asks)
                       throws ReasonerException
ResponsesDocument corresponding to the asks.
asks in interface Reasonerasks - an AsksDocument.
ResponsesDocument corresponding to the asks.
ReasonerException - with code: 
 
public ResponseDocument parseResponse(URLConnection connection)
                               throws ReasonerException
connection
 into a ResponseDocument.
connection - The URLConnection of the reasoner.
ResponseDocument corresponding to the reasoner response.
ReasonerException - with code: 
 
public ResponsesDocument parseResponses(URLConnection connection)
                                 throws ReasonerException
connection
 into a ResponsesDocument.
connection - The URLConnection of the reasoner.
ResponsesDocument corresponding to the reasoner responses.
ReasonerException - with code: 
 
public URI newKB()
          throws ReasonerException
URI for a new knowledge base from the reasoner.
newKB in interface ReasonerURI for a new knowledge base from the reasoner.
ReasonerException - with code: 
 
public boolean releaseKB(URI kb)
                  throws ReasonerException
kb.
releaseKB in interface Reasonerkb - the URI of a knowledge base.
true if the operation succeeds.
ReasonerException - with code: 
 | 
 | DIG 1.1 Reasoners API, April 26, 2004 (12:45 PM) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||