org.semanticweb.triple.application
Class ExternalPrologCallback

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

public class ExternalPrologCallback
extends java.lang.Object
implements Callback

Implementation of Callback to generate output usable for external Prologs like XSB.

Version:
Author:
Michael Sintek

Constructor Summary
ExternalPrologCallback()
           
ExternalPrologCallback(java.io.PrintWriter writer)
           
 
Method Summary
 void addStatement(Statement s)
           
 void endModel()
          end is called when parsing of data is ended
 NodeFactory getNodeFactory()
          node factory to be used by the parser for creating resources and literals passed to addStatement
 void nextClause(LTerm lclause, Context context)
           
 void setRDFNamespace(Resource namespace)
           
 void startModel()
          start is called when parsing of data is started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalPrologCallback

public ExternalPrologCallback()

ExternalPrologCallback

public ExternalPrologCallback(java.io.PrintWriter writer)
Method Detail

setRDFNamespace

public void setRDFNamespace(Resource namespace)

nextClause

public void nextClause(LTerm lclause,
                       Context context)
Specified by:
nextClause in interface Callback

startModel

public void startModel()
                throws ModelException
start is called when parsing of data is started

Throws:
ModelException

endModel

public void endModel()
              throws ModelException
end is called when parsing of data is ended

Throws:
ModelException

getNodeFactory

public NodeFactory getNodeFactory()
                           throws ModelException
node factory to be used by the parser for creating resources and literals passed to addStatement

Throws:
ModelException

addStatement

public void addStatement(Statement s)
                  throws ModelException
Throws:
ModelException