Interface RDFDatasetConnection

All Superinterfaces:
AutoCloseable, RDFDatasetAccessConnection, org.apache.jena.sparql.core.Transactional
All Known Subinterfaces:
RDFConnection, RDFConnectionFuseki, RDFConnectionRemote
All Known Implementing Classes:
RDFConnectionAdapter, RDFConnectionFuseki.RDFConnectionFusekiImpl, RDFConnectionLocal, RDFConnectionWrapper

public interface RDFDatasetConnection extends RDFDatasetAccessConnection, org.apache.jena.sparql.core.Transactional, AutoCloseable
SPARQL Graph Store Protocol and whole dataset access. This adds the write operations. The read operations are defined by RDFDatasetAccessConnection.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close this connection.
    void
    Remove all data from the default graph.
    void
    delete(String graphName)
    Delete a graph from the dataset.
    boolean
    Test whether this connection is closed or not
    void
    load(String file)
    Load (add, append) RDF into the default graph of a dataset.
    void
    load(String graphName, String file)
    Load (add, append) RDF into a named graph in a dataset.
    void
    load(String graphName, org.apache.jena.rdf.model.Model model)
    Load (add, append) RDF into a named graph in a dataset.
    void
    load(org.apache.jena.rdf.model.Model model)
    Load (add, append) RDF into the default graph of a dataset.
    void
     
    void
    loadDataset(org.apache.jena.query.Dataset dataset)
     
    void
    put(String file)
    Set the contents of the default graph of a dataset.
    void
    put(String graphName, String file)
    Set the contents of a named graph of a dataset.
    void
    put(String graphName, org.apache.jena.rdf.model.Model model)
    Set the contents of a named graph of a dataset.
    void
    put(org.apache.jena.rdf.model.Model model)
    Set the contents of the default graph of a dataset.
    void
     
    void
    putDataset(org.apache.jena.query.Dataset dataset)
     

    Methods inherited from interface org.apache.jena.rdfconnection.RDFDatasetAccessConnection

    fetch, fetch, fetchDataset

    Methods inherited from interface org.apache.jena.sparql.core.Transactional

    abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
  • Method Details

    • load

      void load(String graphName, String file)
      Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
      Parameters:
      graphName - Graph name (null or "default" for the default graph)
      file - File of the data.
    • load

      void load(String file)
      Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
      Parameters:
      file - File of the data.
    • load

      void load(String graphName, org.apache.jena.rdf.model.Model model)
      Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
      Parameters:
      graphName - Graph name (null or "default" for the default graph)
      model - Data.
    • load

      void load(org.apache.jena.rdf.model.Model model)
      Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
      Parameters:
      model - Data.
    • put

      void put(String graphName, String file)
      Set the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
      Parameters:
      graphName - Graph name (null or "default" for the default graph)
      file - File of the data.
    • put

      void put(String file)
      Set the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
      Parameters:
      file - File of the data.
    • put

      void put(String graphName, org.apache.jena.rdf.model.Model model)
      Set the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
      Parameters:
      graphName - Graph name (null or "default" for the default graph)
      model - Data.
    • put

      void put(org.apache.jena.rdf.model.Model model)
      Set the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
      Parameters:
      model - Data.
    • delete

      void delete(String graphName)
      Delete a graph from the dataset. Null or "default" means the default graph, which is cleared, not removed.
      Parameters:
      graphName -
    • delete

      void delete()
      Remove all data from the default graph.
    • loadDataset

      void loadDataset(String file)
    • loadDataset

      void loadDataset(org.apache.jena.query.Dataset dataset)
    • putDataset

      void putDataset(String file)
    • putDataset

      void putDataset(org.apache.jena.query.Dataset dataset)
    • isClosed

      boolean isClosed()
      Test whether this connection is closed or not
      Specified by:
      isClosed in interface RDFDatasetAccessConnection
    • close

      void close()
      Close this connection. Use with try-resource.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface RDFDatasetAccessConnection