org.semanticweb.triple.application
Class RDFRemove

java.lang.Object
  extended byorg.semanticweb.triple.application.RDFRemove

public class RDFRemove
extends java.lang.Object

Implementation of Callback to invoke XSB directly via JNI for RDF files.

Version:
Author:
Andreas Harth

Constructor Summary
RDFRemove(XSBCoreIntf xsbCore)
          Constructor.
 
Method Summary
 void addStatement(Statement s)
          This method is called by the RDF parser for every statement that is loaded.
 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 setRDFNamespace(Resource ns)
          Set rdf namespace.
 void setRDFNamespace(java.lang.String ns, java.lang.String localName)
          Set rdf namespace.
 void startModel()
          start is called when parsing of data is started
 void statement(AResource subj, AResource pred, ALiteral lit)
          ARP callback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFRemove

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

Method Detail

setRDFNamespace

public void setRDFNamespace(java.lang.String ns,
                            java.lang.String localName)
Set rdf namespace.


setRDFNamespace

public void setRDFNamespace(Resource ns)
Set rdf namespace.


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
This method is called by the RDF parser for every statement that is loaded. XXX what happens when something goes wrong?

Throws:
ModelException

statement

public void statement(AResource subj,
                      AResource pred,
                      ALiteral lit)
ARP callback