Class StatementCollector
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
org.eclipse.rdf4j.rio.helpers.ContextStatementCollector
org.eclipse.rdf4j.rio.helpers.StatementCollector
- All Implemented Interfaces:
RDFHandler
A RDFHandler that can be used to collect reported statements in collections.
- Author:
- Arjohn Kampman
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new StatementCollector that uses a new ArrayList to store the reported statements and a new LinkedHashMap to store the reported namespaces.StatementCollector(Collection<Statement> statements) Creates a new StatementCollector that stores reported statements in the supplied collection and that uses a new LinkedHashMap to store the reported namespaces.StatementCollector(Collection<Statement> statements, Map<String, String> namespaces) Creates a new StatementCollector that stores reported statements and namespaces in the supplied containers. -
Method Summary
Methods inherited from class ContextStatementCollector
clear, getNamespaces, getStatements, handleNamespace, handleStatementModifier and TypeMethodDescriptionvoidclear()Clear the set of collected statements.Gets the map that contains the collected namespaces.Gets the collection that contains the collected statements.voidhandleNamespace(String prefix, String uri) Handles a namespace declaration/definition.voidHandles a statement.Methods inherited from class AbstractRDFHandler
endRDF, handleComment, startRDFModifier and TypeMethodDescriptionvoidendRDF()Signals the end of the RDF data.voidhandleComment(String comment) Handles a comment.voidstartRDF()Signals the start of the RDF data.
-
Constructor Details
-
StatementCollector
public StatementCollector()Creates a new StatementCollector that uses a new ArrayList to store the reported statements and a new LinkedHashMap to store the reported namespaces. -
StatementCollector
Creates a new StatementCollector that stores reported statements in the supplied collection and that uses a new LinkedHashMap to store the reported namespaces. -
StatementCollector
Creates a new StatementCollector that stores reported statements and namespaces in the supplied containers.
-