Interface RDFDatasetAccessConnection

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

public interface RDFDatasetAccessConnection extends org.apache.jena.sparql.core.Transactional, AutoCloseable
SPARQL Graph Store Protocol (read operations) and whole dataset access. RDFDatasetConnection adds the write operations.
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.
    org.apache.jena.rdf.model.Model
    Fetch the default graph.
    org.apache.jena.rdf.model.Model
    fetch(String graphName)
    Fetch a named graph.
    org.apache.jena.query.Dataset
    Fetch the contents of the dataset
    boolean
    Test whether this connection is closed or not

    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

    • fetch

      org.apache.jena.rdf.model.Model fetch(String graphName)
      Fetch a named graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.
      Parameters:
      graphName - URI string for the graph name (null or "default" for the default graph)
      Returns:
      Model
    • fetch

      org.apache.jena.rdf.model.Model fetch()
      Fetch the default graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.
      Returns:
      Model
    • fetchDataset

      org.apache.jena.query.Dataset fetchDataset()
      Fetch the contents of the dataset
    • isClosed

      boolean isClosed()
      Test whether this connection is closed or not
    • close

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