org.w3c.rdf.syntax
Interface RDFConsumer

All Known Implementing Classes:
ModelConsumer, DumpConsumer

public interface RDFConsumer

RDFParser passes triples to RDFConsumer

See Also:
RDFParser

Method Summary
 void addStatement(Statement s)
          assert is called every time a new statement within RDF data model is added
 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 startModel()
          start is called when parsing of data is started
 

Method Detail

startModel

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

endModel

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

getNodeFactory

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

addStatement

public void addStatement(Statement s)
                  throws ModelException
assert is called every time a new statement within RDF data model is added