org.jrdf.parser
Class GraphStatementHandler
java.lang.Object
org.jrdf.parser.GraphStatementHandler
- All Implemented Interfaces:
- StatementHandler
public class GraphStatementHandler
- extends Object
- implements StatementHandler
A statement handler takes a JRDF graph in the constructor and for every subject, predicate and object
encountered adds it to the graph.
- Version:
- $Revision: 363 $
- Author:
- Andrew Newman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphStatementHandler
public GraphStatementHandler(Graph graph)
handleStatement
public void handleStatement(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
- Description copied from interface:
StatementHandler
- Called by an RDF parser when it has parsed a statement. The type of the
subject, predicate and object is determined by the ValueFactory that
the parser uses.
- Specified by:
handleStatement
in interface StatementHandler
- Parameters:
subject
- A URI or bNode.predicate
- A URI.object
- A URI, bNode or literal.