Class RDFInserter
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
org.eclipse.rdf4j.repository.util.AbstractRDFInserter
org.eclipse.rdf4j.repository.util.RDFInserter
- All Implemented Interfaces:
RDFHandler
An RDFHandler that adds RDF data to a repository.
- Author:
- jeen
-
Field Summary
Modifier and TypeFieldDescriptionprotected final RepositoryConnection
The connection to use for the add operations.Fields inherited from class org.eclipse.rdf4j.repository.util.AbstractRDFInserter
contexts
-
Constructor Summary
ConstructorDescriptionCreates a new RDFInserter object that preserves bnode IDs and that does not enforce any context upon statements that are reported to it. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNamespace
(String prefix, String name) protected void
addStatement
(Resource subj, IRI pred, Value obj, Resource ctxt) Methods inherited from class org.eclipse.rdf4j.repository.util.AbstractRDFInserter
endRDF, enforceContext, enforcesContext, getContexts, handleNamespace, handleStatement, preservesBNodeIDs, setPreserveBNodeIDs
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
handleComment, startRDF
-
Field Details
-
con
The connection to use for the add operations.
-
-
Constructor Details
-
RDFInserter
Creates a new RDFInserter object that preserves bnode IDs and that does not enforce any context upon statements that are reported to it.- Parameters:
con
- The connection to use for the add operations.
-
-
Method Details
-
addNamespace
- Specified by:
addNamespace
in classAbstractRDFInserter
- Throws:
RDF4JException
-
addStatement
protected void addStatement(Resource subj, IRI pred, Value obj, Resource ctxt) throws RDF4JException - Specified by:
addStatement
in classAbstractRDFInserter
- Throws:
RDF4JException
-