Class RDFSailInserter
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
org.eclipse.rdf4j.repository.util.AbstractRDFInserter
org.eclipse.rdf4j.repository.sail.helpers.RDFSailInserter
- All Implemented Interfaces:
RDFHandler
An RDFHandler that adds RDF data to a sail.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SailConnectionThe connection to use for the add operations.private final UpdateContextFields inherited from class AbstractRDFInserter
contexts -
Constructor Summary
ConstructorsConstructorDescriptionRDFSailInserter(SailConnection con, ValueFactory vf) RDFSailInserter(SailConnection con, ValueFactory vf, UpdateContext uc) Creates 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 voidaddNamespace(String prefix, String name) protected voidaddStatement(Resource subj, IRI pred, Value obj, Resource ctxt) private voidaddStatement(UpdateContext uc, Resource subj, IRI pred, Value obj, Resource... ctxts) Methods inherited from class AbstractRDFInserter
endRDF, enforceContext, enforcesContext, getContexts, handleNamespace, handleStatement, preservesBNodeIDs, setPreserveBNodeIDsMethods inherited from class AbstractRDFHandler
handleComment, startRDF
-
Field Details
-
con
The connection to use for the add operations. -
uc
-
-
Constructor Details
-
RDFSailInserter
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.
-
RDFSailInserter
-
-
Method Details
-
addNamespace
- Specified by:
addNamespacein classAbstractRDFInserter- Throws:
RDF4JException
-
addStatement
protected void addStatement(Resource subj, IRI pred, Value obj, Resource ctxt) throws RDF4JException - Specified by:
addStatementin classAbstractRDFInserter- Throws:
RDF4JException
-
addStatement
private void addStatement(UpdateContext uc, Resource subj, IRI pred, Value obj, Resource... ctxts) throws SailException - Throws:
SailException
-