|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.w3c.rdf.util.ModelConsumer
A standard class used for parsing into an RDF model
| Constructor Summary | |
ModelConsumer(Model empty)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModelConsumer(Model empty)
throws ModelException
an - RDF model to fill with triples. This frequently will be an empty model.| Method Detail |
public void startModel()
startModel in interface RDFConsumerpublic void endModel()
endModel in interface RDFConsumerpublic NodeFactory getNodeFactory()
RDFConsumergetNodeFactory in interface RDFConsumer
public void addStatement(Statement s)
throws ModelException
addStatement in interface RDFConsumer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||