Package org.apache.jena.rdfconnection
Interface RDFDatasetAccessConnection
-
- All Superinterfaces:
java.lang.AutoCloseable,Transactional
- All Known Subinterfaces:
RDFConnection,RDFDatasetConnection
- All Known Implementing Classes:
RDFConnectionFuseki,RDFConnectionLocal,RDFConnectionModular,RDFConnectionRemote,RDFConnectionWrapper
public interface RDFDatasetAccessConnection extends Transactional, java.lang.AutoCloseable
SPARQL Graph Store Protocol (read operations) and whole dataset access.RDFDatasetConnectionadds the write operations.- See Also:
RDFDatasetConnection,RDFConnection,RDFConnectionFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this connection.Modelfetch()Fetch the default graph.Modelfetch(java.lang.String graphName)Fetch a named graph.DatasetfetchDataset()Fetch the contents of the datasetbooleanisClosed()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 Detail
-
fetch
Model fetch(java.lang.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
Model fetch()
Fetch the default graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.- Returns:
- Model
-
fetchDataset
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:
closein interfacejava.lang.AutoCloseable
-
-