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
public class RDFSailInserter extends AbstractRDFInserter
An RDFHandler that adds RDF data to a sail.
-
-
Field Summary
Fields Modifier and Type Field Description private SailConnection
con
The connection to use for the add operations.private UpdateContext
uc
-
Fields inherited from class org.eclipse.rdf4j.repository.util.AbstractRDFInserter
contexts
-
-
Constructor Summary
Constructors Constructor Description RDFSailInserter(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addNamespace(java.lang.String prefix, java.lang.String name)
protected void
addStatement(Resource subj, IRI pred, Value obj, Resource ctxt)
private void
addStatement(UpdateContext uc, Resource subj, IRI pred, Value obj, Resource... ctxts)
-
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 Detail
-
con
private final SailConnection con
The connection to use for the add operations.
-
uc
private final UpdateContext uc
-
-
Constructor Detail
-
RDFSailInserter
public 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.- Parameters:
con
- The connection to use for the add operations.
-
RDFSailInserter
public RDFSailInserter(SailConnection con, ValueFactory vf)
-
-
Method Detail
-
addNamespace
protected void addNamespace(java.lang.String prefix, java.lang.String name) throws RDF4JException
- 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
-
addStatement
private void addStatement(UpdateContext uc, Resource subj, IRI pred, Value obj, Resource... ctxts) throws SailException
- Throws:
SailException
-
-