org.w3c.rdf.syntax
Interface RDFConsumer

All Known Implementing Classes:
ModelConsumer, DumpConsumer

public abstract interface RDFConsumer

RDFParser passes triples to RDFConsumer

See Also:
RDFParser

Method Summary
 void addStatement(Resource subject, Resource predicate, RDFNode object)
          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()
start is called when parsing of data is started

endModel

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

getNodeFactory

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

addStatement

public void addStatement(Resource subject,
                         Resource predicate,
                         RDFNode object)
assert is called every time a new statement within RDF data model is added