org.w3c.rdf.syntax
Class RDFModelConsumer

java.lang.Object
  |
  +--org.w3c.rdf.syntax.RDFModelConsumer

public class RDFModelConsumer
extends java.lang.Object
implements RDFConsumer

A standard class used for parsing into an RDF model


Constructor Summary
RDFModelConsumer(RDFModel empty)
           
 
Method Summary
 void addTriple(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
 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

RDFModelConsumer

public RDFModelConsumer(RDFModel empty)
Parameters:
an - RDF model to fill with triples. This frequently will be an empty model.
Method Detail

startModel

public void startModel()
start is called when parsing of data is started
Specified by:
startModel in interface RDFConsumer

endModel

public void endModel()
end is called when parsing of data is ended
Specified by:
endModel in interface RDFConsumer

addTriple

public void addTriple(Resource subject,
                      Resource predicate,
                      RDFNode object)
assert is called every time a new statement within RDF data model is added
Specified by:
addTriple in interface RDFConsumer