|
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 ResponsesDocument corresponding to the asks. |
IdentifierDocument |
getIdentifier()
Returns the IdentifierDocument corresponding to the
getIdentifier request. |
URL |
getUrl()
Gets url. |
URI |
newKB()
Obtains the URI for a new knowledge base from the reasoner. |
ResponseDocument |
parseResponse(URLConnection connection)
Parses the reasoner response at connection
into a ResponseDocument. |
ResponsesDocument |
parseResponses(URLConnection connection)
Parses the reasoner responses at connection
into a ResponsesDocument. |
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 ResponseDocument corresponding to the tells. |
| 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 | ||||||||||