org.semanticweb.triple.application
Class XSBCallback

java.lang.Object
  extended byorg.semanticweb.triple.application.XSBCallback
All Implemented Interfaces:
Callback

public class XSBCallback
extends java.lang.Object
implements Callback

Implementation of Callback to invoke XSB directly via JNI.

Version:
Author:
Andreas Harth

Constructor Summary
XSBCallback(XSBCoreIntf xsbCore)
          Constructor.
 
Method Summary
 java.util.ArrayList getAnswerVars()
          Get variables of current (== last issued) query.
 void nextClause(LTerm lclause, Context context)
          This is called by the parser every time a triple clause is finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSBCallback

public XSBCallback(XSBCoreIntf xsbCore)
Constructor. Creates an XSBCore object that is used to invoke XSB.

Method Detail

nextClause

public void nextClause(LTerm lclause,
                       Context context)
                throws ParseException
This is called by the parser every time a triple clause is finished. XXX error handling. what is done if something goes wrong with calling xsbCore methods?

Specified by:
nextClause in interface Callback
Throws:
ParseException

getAnswerVars

public java.util.ArrayList getAnswerVars()
Get variables of current (== last issued) query.