public class RDFConnectionWrapper extends Object implements RDFConnection
RDFConnection.Transactional.Promote| Constructor and Description |
|---|
RDFConnectionWrapper(RDFConnection other) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
begin(ReadWrite readWrite) |
void |
begin(TxnType type) |
void |
close()
Close this connection.
|
void |
commit() |
void |
delete()
Remove all data from the default graph.
|
void |
delete(String graphName)
Delete a graph from the dataset.
|
void |
end() |
Model |
fetch()
Fetch the default graph.
|
Model |
fetch(String graphName)
Fetch a named graph.
|
Dataset |
fetchDataset()
Fetch the contents of the dataset
|
boolean |
isClosed()
Test whether this connection is closed or not
|
boolean |
isInTransaction() |
void |
load(Model model)
Load (add, append) RDF into the default graph of a dataset.
|
void |
load(String file)
Load (add, append) RDF into the default graph of a dataset.
|
void |
load(String graphName,
Model model)
Load (add, append) RDF into a named graph in a dataset.
|
void |
load(String graphName,
String file)
Load (add, append) RDF into a named graph in a dataset.
|
void |
loadDataset(Dataset dataset) |
void |
loadDataset(String file) |
boolean |
promote(Transactional.Promote mode) |
void |
put(Model model)
Set the contents of the default graph of a dataset.
|
void |
put(String file)
Set the contents of the default graph of a dataset.
|
void |
put(String graphName,
Model model)
Set the contents of a named graph of a dataset.
|
void |
put(String graphName,
String file)
Set the contents of a named graph of a dataset.
|
void |
putDataset(Dataset dataset) |
void |
putDataset(String file) |
QueryExecution |
query(Query query)
Setup a SPARQL query execution.
|
ReadWrite |
transactionMode() |
TxnType |
transactionType() |
void |
update(UpdateRequest update)
Execute a SPARQL Update.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquery, queryAsk, queryAsk, queryConstruct, queryConstruct, queryDescribe, queryDescribe, queryResultSet, queryResultSet, querySelect, querySelect, update, updatebegin, promotepublic RDFConnectionWrapper(RDFConnection other)
public Model fetch()
RDFConnectionfetch in interface RDFConnectionfetch in interface RDFDatasetAccessConnectionpublic Model fetch(String graphName)
RDFConnectionfetch in interface RDFConnectionfetch in interface RDFDatasetAccessConnectiongraphName - URI string for the graph name (null or "default" for the default graph)public Dataset fetchDataset()
RDFConnectionfetchDataset in interface RDFConnectionfetchDataset in interface RDFDatasetAccessConnectionpublic QueryExecution query(Query query)
RDFConnectionRDFConnection.querySelect(Query, Consumer), RDFConnection.queryConstruct(Query),
RDFConnection.queryDescribe(Query), RDFConnection.queryAsk(Query)
for ways to execute queries for of a specific form.query in interface RDFConnectionquery in interface SparqlQueryConnectionpublic void update(UpdateRequest update)
RDFConnectionupdate in interface RDFConnectionupdate in interface SparqlUpdateConnectionpublic void load(String graphName, String file)
RDFConnectionload in interface RDFConnectionload in interface RDFDatasetConnectiongraphName - Graph name (null or "default" for the default graph)file - File of the data.public void load(String file)
RDFConnectionload in interface RDFConnectionload in interface RDFDatasetConnectionfile - File of the data.public void load(String graphName, Model model)
RDFConnectionload in interface RDFConnectionload in interface RDFDatasetConnectiongraphName - Graph name (null or "default" for the default graph)model - Data.public void load(Model model)
RDFConnectionload in interface RDFConnectionload in interface RDFDatasetConnectionmodel - Data.public void put(String graphName, String file)
RDFConnectionput in interface RDFConnectionput in interface RDFDatasetConnectiongraphName - Graph name (null or "default" for the default graph)file - File of the data.public void put(String file)
RDFConnectionput in interface RDFConnectionput in interface RDFDatasetConnectionfile - File of the data.public void put(String graphName, Model model)
RDFConnectionput in interface RDFConnectionput in interface RDFDatasetConnectiongraphName - Graph name (null or "default" for the default graph)model - Data.public void put(Model model)
RDFConnectionput in interface RDFConnectionput in interface RDFDatasetConnectionmodel - Data.public void delete(String graphName)
RDFConnectiondelete in interface RDFConnectiondelete in interface RDFDatasetConnectionpublic void delete()
RDFConnectiondelete in interface RDFConnectiondelete in interface RDFDatasetConnectionpublic void loadDataset(String file)
loadDataset in interface RDFConnectionloadDataset in interface RDFDatasetConnectionpublic void loadDataset(Dataset dataset)
loadDataset in interface RDFConnectionloadDataset in interface RDFDatasetConnectionpublic void putDataset(String file)
putDataset in interface RDFConnectionputDataset in interface RDFDatasetConnectionpublic void putDataset(Dataset dataset)
putDataset in interface RDFConnectionputDataset in interface RDFDatasetConnectionpublic boolean isClosed()
RDFConnectionisClosed in interface RDFConnectionisClosed in interface RDFDatasetAccessConnectionisClosed in interface RDFDatasetConnectionpublic void close()
RDFConnectionclose in interface AutoCloseableclose in interface RDFConnectionclose in interface RDFDatasetAccessConnectionclose in interface RDFDatasetConnectionclose in interface SparqlQueryConnectionclose in interface SparqlUpdateConnectionpublic void begin(TxnType type)
begin in interface Transactionalpublic void begin(ReadWrite readWrite)
begin in interface Transactionalpublic boolean promote(Transactional.Promote mode)
promote in interface Transactionalpublic void commit()
commit in interface Transactionalpublic void abort()
abort in interface Transactionalpublic void end()
end in interface Transactionalpublic ReadWrite transactionMode()
transactionMode in interface Transactionalpublic TxnType transactionType()
transactionType in interface Transactionalpublic boolean isInTransaction()
isInTransaction in interface TransactionalLicenced under the Apache License, Version 2.0