Class RDFSailInserter

  • All Implemented Interfaces:
    RDFHandler

    public class RDFSailInserter
    extends AbstractRDFInserter
    An RDFHandler that adds RDF data to a sail.
    Author:
    jeen
    • Constructor Detail

      • RDFSailInserter

        public RDFSailInserter​(SailConnection con,
                               org.eclipse.rdf4j.model.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,
                               org.eclipse.rdf4j.model.ValueFactory vf)
    • Method Detail

      • addNamespace

        protected void addNamespace​(String prefix,
                                    String name)
                             throws org.eclipse.rdf4j.common.exception.RDF4JException
        Specified by:
        addNamespace in class AbstractRDFInserter
        Throws:
        org.eclipse.rdf4j.common.exception.RDF4JException
      • addStatement

        protected void addStatement​(org.eclipse.rdf4j.model.Resource subj,
                                    org.eclipse.rdf4j.model.IRI pred,
                                    org.eclipse.rdf4j.model.Value obj,
                                    org.eclipse.rdf4j.model.Resource ctxt)
                             throws org.eclipse.rdf4j.common.exception.RDF4JException
        Specified by:
        addStatement in class AbstractRDFInserter
        Throws:
        org.eclipse.rdf4j.common.exception.RDF4JException