public final class ModelBuildingRDFHandler
extends org.openrdf.rio.helpers.AbstractRDFHandler
Implementation of an RDFHandler which collects statements from the handler events and puts them into a Graph object.
| Constructor and Description |
|---|
ModelBuildingRDFHandler()
Create a new GraphBuildingRDFHandler
|
ModelBuildingRDFHandler(org.openrdf.model.Model theGraph)
Create a new GraphBuildingRDFHandler that will insert statements into the supplied Graph
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the underlying graph of all collected statements
|
org.openrdf.model.Model |
getModel()
Return the graph built from events fired to this handler
|
void |
handleStatement(org.openrdf.model.Statement theStatement) |
public ModelBuildingRDFHandler()
public ModelBuildingRDFHandler(org.openrdf.model.Model theGraph)
theGraph - the graph to insert intopublic void handleStatement(org.openrdf.model.Statement theStatement)
throws org.openrdf.rio.RDFHandlerException
handleStatement in interface org.openrdf.rio.RDFHandlerhandleStatement in class org.openrdf.rio.helpers.AbstractRDFHandlerorg.openrdf.rio.RDFHandlerExceptionpublic org.openrdf.model.Model getModel()
public void clear()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.