Class RDFInserter

  • All Implemented Interfaces:
    RDFHandler

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

      • RDFInserter

        public RDFInserter​(RepositoryConnection con)
        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 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