|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.linguistics.kif.Vampire
public class Vampire
Class for invoking the KIF version of Vampire from Java. Vampire takes XML input
and returns XML output. Input forms are either
| Field Summary | |
|---|---|
java.lang.String |
EMPTY_FILE
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Vampire(java.lang.String kbFileName)
************************************************************ Create a running instance of Vampire. |
|
| Method Summary | |
|---|---|
java.lang.String |
assertFormula(java.lang.String formula)
************************************************************ Add an assertion. |
static void |
main(java.lang.String[] args)
************************************************************ A simple test. |
java.lang.String |
submitQuery(java.lang.String formula,
int timeLimit,
int bindingsLimit)
************************************************************ Submit a query. |
void |
terminate()
************************************************************ Terminate this instance of Vampire. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String EMPTY_FILE
| Constructor Detail |
|---|
public Vampire(java.lang.String kbFileName)
throws java.io.IOException
kbFileName - file name of the initial knowledge base to be
downloaded by Vampire.
java.io.IOException - should not normally be thrown unless either
Vampire executable or database file name are incorrect| Method Detail |
|---|
public java.lang.String assertFormula(java.lang.String formula)
throws java.io.IOException
formula - asserted formula in the KIF syntax
java.io.IOException - should not normally be thrown
public void terminate()
throws java.io.IOException
java.io.IOException - should not normally be thrown
public java.lang.String submitQuery(java.lang.String formula,
int timeLimit,
int bindingsLimit)
throws java.io.IOException
formula - query in the KIF syntaxtimeLimit - time limit for answering the query (in seconds)bindingsLimit - limit on the number of bindings
java.io.IOException - should not normally be thrown
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||