Yajxb realizes a connection fom Java to XSB. In contrast to InterProlog, using Yajxb causes Java to call XSB directly via Java's native interface mechanism.
If you want to use XSB within Java and for some reason don't want to use InterProlog, Yajxb is something you might want to try. I wrote it because I needed an inference core for our Semi-Structured Data Query and Inference Language Triple and InterProlog did not really work for me.
Not yet.
Yes.
I don't know. Actually, it should - the C code looks pretty OS independent. Anyone with a C Comiler for Microsoft Windows out there?
Java loads the XSB system as a shared library. During inital loading, when using XSB 2.2 Java sometimes crashes nondeterministically (4-10% of loading trys). All I can say so far is, that it seems it is not my fault. Once it is loaded, everything works fine. This seems to be fixed in XSB 2.3 (?).
You can use it for whatever you want - as long as you give me some credit. A longish version of the previous sentence is also available.
Download and Install XSB 2.3.
Download and Install Yajxb.
Ungzip und untar Yajxb in the directory, where the main XSB directory resides
(XSB).
Chance the file 'setjava' according to your settings.Do a 'source ./setjava'.
Chance the Makefile according to your settings (this should mean you just have
to chance the LOCAL and JAVA_INC settings).
Type 'make all'.
Type 'java XSBHello'.
You should get:
hello
world
(What else?)
XSBHello.java should give you an idea of how to use Yajxb.
Look at the class edu.stanford.xsb.XSBCore.java for more information about the
interface.
Stefan Decker (stefan@db.stanford.edu)
March 10, 2001