- All Superinterfaces:
AutoCloseable
,LinkDatasetGraphAccess
,org.apache.jena.sparql.core.Transactional
- All Known Subinterfaces:
RDFLink
- All Known Implementing Classes:
RDFLinkAdapter
,RDFLinkDataset
,RDFLinkFuseki
,RDFLinkHTTP
,RDFLinkModular
public interface LinkDatasetGraph
extends LinkDatasetGraphAccess, 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
LinkDatasetGraphAccess
.- 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 TypeMethodDescriptionvoid
Clear the dataset - remove all named graphs, clear the default graph.void
close()
Close this connection.void
delete()
Remove all data from the default graph.void
delete
(org.apache.jena.graph.Node graphName) Delete a graph from the dataset.boolean
isClosed()
Test whether this connection is closed or notvoid
Load (add, append) RDF into the default graph of a dataset.void
load
(org.apache.jena.graph.Graph graph) Load (add, append) RDF into the default graph of a dataset.void
Load (add, append) RDF into a named graph in a dataset.void
load
(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) Load (add, append) RDF into a named graph in a dataset.void
loadDataset
(String file) void
loadDataset
(org.apache.jena.sparql.core.DatasetGraph dataset) void
Set the contents of the default graph of a dataset.void
put
(org.apache.jena.graph.Graph graph) Set the contents of the default graph of a dataset.void
Set the contents of a named graph of a dataset.void
put
(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) Set the contents of a named graph of a dataset.void
putDataset
(String file) void
putDataset
(org.apache.jena.sparql.core.DatasetGraph dataset) Methods inherited from interface org.apache.jena.rdflink.LinkDatasetGraphAccess
get, get, getDataset
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
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 orQuad.defaultGraphIRI
for the default graph)file
- File of the data.
-
load
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(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) 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 orQuad.defaultGraphIRI
for the default graph)graph
- Data.
-
load
void load(org.apache.jena.graph.Graph graph) Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Parameters:
graph
- Data.
-
put
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 orQuad.defaultGraphIRI
for the default graph)file
- File of the data.
-
put
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(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) 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 orQuad.defaultGraphIRI
for the default graph)graph
- Data.
-
put
void put(org.apache.jena.graph.Graph graph) 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:
graph
- Data.
-
delete
void delete(org.apache.jena.graph.Node graphName) Delete a graph from the dataset. Null orQuad.defaultGraphIRI
means the default graph, which is cleared, not removed.- Parameters:
graphName
-
-
delete
void delete()Remove all data from the default graph. -
loadDataset
-
loadDataset
void loadDataset(org.apache.jena.sparql.core.DatasetGraph dataset) -
putDataset
-
putDataset
void putDataset(org.apache.jena.sparql.core.DatasetGraph dataset) -
clearDataset
void clearDataset()Clear the dataset - remove all named graphs, clear the default graph. -
isClosed
boolean isClosed()Test whether this connection is closed or not- Specified by:
isClosed
in interfaceLinkDatasetGraphAccess
-
close
void close()Close this connection. Use with try-resource.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceLinkDatasetGraphAccess
-