-
- All Superinterfaces:
java.lang.AutoCloseable,LinkDatasetGraphAccess,Transactional
- All Known Subinterfaces:
RDFLink
- All Known Implementing Classes:
RDFLinkAdapter,RDFLinkDataset,RDFLinkFuseki,RDFLinkHTTP,RDFLinkModular
public interface LinkDatasetGraph extends LinkDatasetGraphAccess, Transactional, java.lang.AutoCloseable
SPARQL Graph Store Protocol and whole dataset access. This adds the write operations. The read operations are defined byLinkDatasetGraphAccess.- See Also:
RDFLink
-
-
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 voidclearDataset()Clear the dataset - remove all named graphs, clear the default graph.voidclose()Close this connection.voiddelete()Remove all data from the default graph.voiddelete(Node graphName)Delete a graph from the dataset.booleanisClosed()Test whether this connection is closed or notvoidload(java.lang.String file)Load (add, append) RDF into the default graph of a dataset.voidload(Graph graph)Load (add, append) RDF into the default graph of a dataset.voidload(Node graphName, java.lang.String file)Load (add, append) RDF into a named graph in a dataset.voidload(Node graphName, Graph graph)Load (add, append) RDF into a named graph in a dataset.voidloadDataset(java.lang.String file)voidloadDataset(DatasetGraph dataset)voidput(java.lang.String file)Set the contents of the default graph of a dataset.voidput(Graph graph)Set the contents of the default graph of a dataset.voidput(Node graphName, java.lang.String file)Set the contents of a named graph of a dataset.voidput(Node graphName, Graph graph)Set the contents of a named graph of a dataset.voidputDataset(java.lang.String file)voidputDataset(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 Detail
-
load
void load(Node graphName, java.lang.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 orQuad.defaultGraphIRIfor the default graph)file- File of the data.
-
load
void load(java.lang.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(Node graphName, 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.defaultGraphIRIfor the default graph)graph- Data.
-
load
void load(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
void put(Node graphName, java.lang.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 orQuad.defaultGraphIRIfor the default graph)file- File of the data.
-
put
void put(java.lang.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(Node graphName, 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.defaultGraphIRIfor the default graph)graph- Data.
-
put
void put(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(Node graphName)
Delete a graph from the dataset. Null orQuad.defaultGraphIRImeans the default graph, which is cleared, not removed.- Parameters:
graphName-
-
delete
void delete()
Remove all data from the default graph.
-
loadDataset
void loadDataset(java.lang.String file)
-
loadDataset
void loadDataset(DatasetGraph dataset)
-
putDataset
void putDataset(java.lang.String file)
-
putDataset
void putDataset(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:
isClosedin interfaceLinkDatasetGraphAccess
-
close
void close()
Close this connection. Use with try-resource.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceLinkDatasetGraphAccess
-
-