|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.semanticweb.xsb.XSBCore
Description of the Class
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
XSBCore()
Constructor. |
|
| Method Summary | |
java.lang.String |
xsb_answer_string(java.lang.String sep)
xsb_answer_string returns an answer substitution as a string, the single answers separated by sep. |
int |
xsb_assert_fact(Literal fact)
Asserts a Java representation of a fact |
int |
xsb_assert_rule(ProgramClause clause)
Asserts a Java representation of a program clause |
int |
xsb_close_query()
xsb_close_query() closes the current query, so that no more answers will be returned, and another query can be opened. |
int |
xsb_close()
xsb_close() is currently just a noop, since it doesn't clean anything up, to allow a re-init. |
int |
xsb_command_string(java.lang.String command)
xsb_command_string(char *goal) passes the command (e.g. |
int |
xsb_command_term(Term t)
xsb_command_term(Term t) passes the command represented as a Java Term to xsb and executes it. |
int |
xsb_command()
xsb_command() passes the command (i.e. |
Term[] |
xsb_get_answer_substitution()
xsb_get_answer_substitution() returns an array of answer substitution, each variable corresponds to one position in the array. |
int |
xsb_init(java.lang.String[] args)
xsb_init(String[] args) initializes the XSB engines. |
int |
xsb_next()
xsb_next() causes xsb to return the next answer. |
int |
xsb_query_java(ProgramClause clause)
Poses a query in a Java representation |
int |
xsb_query_string(java.lang.String command)
xsb_query_string(String command) submits a query to xsb. |
int |
xsb_query_term(Term t)
xsb_query_term(Term t) passes the query represented as a Java term to xsb. |
int |
xsb_query()
xsb_query() passes the query to xsb. |
int |
xsb_retract_fact(Literal fact)
Retracts a Java representation of a fact |
int |
xsb_retract_rule(ProgramClause clause)
Retract the Java Representation of a Rule |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XSBCore()
throws java.rmi.RemoteException
| Method Detail |
public int xsb_init(java.lang.String[] args)
throws java.rmi.RemoteException
xsb_init(String[] args) initializes the XSB engines. The
first element of args must point to the XSB installation
directory. The other parameter are usuall XSB startup parameter. A
typical parameters are: String[] args= {"/local/xsb/XSB", "-n", "--quietload"};
"-n" turns the interactive mode of "--quitemode" prevents startup output from XSB
xsb_init in interface XSBCoreIntfargs - Description of the Parameter
java.rmi.RemoteException
public int xsb_close()
throws java.rmi.RemoteException
xsb_close in interface XSBCoreIntfjava.rmi.RemoteException
public int xsb_command_string(java.lang.String command)
throws java.rmi.RemoteException
xsb_command_string in interface XSBCoreIntfcommand - Description of the Parameter
java.rmi.RemoteException
public int xsb_command()
throws java.rmi.RemoteException
xsb_command in interface XSBCoreIntfjava.rmi.RemoteException
public int xsb_command_term(Term t)
throws java.rmi.RemoteException
xsb_command_term in interface XSBCoreIntft - Description of the Parameter
java.rmi.RemoteException
public int xsb_query_string(java.lang.String command)
throws java.rmi.RemoteException
xsb_query_string in interface XSBCoreIntfcommand - Description of the Parameter
java.rmi.RemoteException
public int xsb_query()
throws java.rmi.RemoteException
xsb_query in interface XSBCoreIntfjava.rmi.RemoteException
public int xsb_query_term(Term t)
throws java.rmi.RemoteException
xsb_query_term in interface XSBCoreIntft - Description of the Parameter
java.rmi.RemoteException
public int xsb_close_query()
throws java.rmi.RemoteException
xsb_close_query in interface XSBCoreIntfjava.rmi.RemoteException
public java.lang.String xsb_answer_string(java.lang.String sep)
throws java.rmi.RemoteException
xsb_answer_string in interface XSBCoreIntfsep - Description of the Parameter
java.rmi.RemoteException
public int xsb_next()
throws java.rmi.RemoteException
xsb_next in interface XSBCoreIntfjava.rmi.RemoteException
public Term[] xsb_get_answer_substitution()
throws java.rmi.RemoteException
xsb_get_answer_substitution in interface XSBCoreIntfjava.rmi.RemoteException
public int xsb_assert_rule(ProgramClause clause)
throws java.rmi.RemoteException
xsb_assert_rule in interface XSBCoreIntfclause - Description of the Parameter
java.rmi.RemoteException
public int xsb_retract_rule(ProgramClause clause)
throws java.rmi.RemoteException
xsb_retract_rule in interface XSBCoreIntfclause - Description of the Parameter
java.rmi.RemoteException
public int xsb_assert_fact(Literal fact)
throws java.rmi.RemoteException
xsb_assert_fact in interface XSBCoreIntffact - Description of the Parameter
java.rmi.RemoteException
public int xsb_retract_fact(Literal fact)
throws java.rmi.RemoteException
xsb_retract_fact in interface XSBCoreIntffact - Description of the Parameter
java.rmi.RemoteException
public int xsb_query_java(ProgramClause clause)
throws java.rmi.RemoteException
xsb_query_java in interface XSBCoreIntfclause - Description of the Parameter
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||