- java.lang.Object
-
- org.apache.jena.rdfconnection.RDFConnectionLocal
-
- All Implemented Interfaces:
java.lang.AutoCloseable,RDFConnection,RDFDatasetAccessConnection,RDFDatasetConnection,SparqlQueryConnection,SparqlUpdateConnection,Transactional
@Deprecated public class RDFConnectionLocal extends java.lang.Object implements RDFConnection
Deprecated.UseRDFConnectionFactory.Implement ofRDFConnectionover aDatasetin the same JVM.Multiple levels of
Isolationare provided. The defaultCOPYlevel makes a localRDFConnectionthat behaves like a remote connection. This should be the normal use in testing.COPY–Models andDatasets are copied. This is most like a remote connection.READONLY– Read-only wrappers are added but changes to the underlying model or dataset will be seen.NONE(default) – Changes to the returnedModels orDatasets act on the original object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Constructor Summary
Constructors Constructor Description RDFConnectionLocal(Dataset dataset)Deprecated.RDFConnectionLocal(Dataset dataset, Isolation isolation)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidabort()Deprecated.voidbegin()Deprecated.voidbegin(ReadWrite mode)Deprecated.voidbegin(TxnType txnType)Deprecated.voidclose()Deprecated.Close this connection.voidcommit()Deprecated.voiddelete()Deprecated.Remove all data from the default graph.voiddelete(java.lang.String graph)Deprecated.Delete a graph from the dataset.voidend()Deprecated.Modelfetch()Deprecated.Fetch the default graph.Modelfetch(java.lang.String graph)Deprecated.Fetch a named graph.DatasetfetchDataset()Deprecated.Fetch the contents of the datasetbooleanisClosed()Deprecated.Test whether this connection is closed or notbooleanisInTransaction()Deprecated.voidload(java.lang.String file)Deprecated.Load (add, append) RDF into the default graph of a dataset.voidload(java.lang.String graph, java.lang.String file)Deprecated.Load (add, append) RDF into a named graph in a dataset.voidload(java.lang.String graphName, Model model)Deprecated.Load (add, append) RDF into a named graph in a dataset.voidload(Model model)Deprecated.Load (add, append) RDF into the default graph of a dataset.voidloadDataset(java.lang.String file)Deprecated.voidloadDataset(Dataset srcDataset)Deprecated.QueryExecutionBuildernewQuery()Deprecated.Return a execution builder initialized with the RDFConnection setup.booleanpromote(Transactional.Promote promote)Deprecated.voidput(java.lang.String file)Deprecated.Set the contents of the default graph of a dataset.voidput(java.lang.String graph, java.lang.String file)Deprecated.Set the contents of a named graph of a dataset.voidput(java.lang.String graphName, Model model)Deprecated.Set the contents of a named graph of a dataset.voidput(Model model)Deprecated.Set the contents of the default graph of a dataset.voidputDataset(java.lang.String file)Deprecated.voidputDataset(Dataset dataset)Deprecated.QueryExecutionquery(Query query)Deprecated.Setup a SPARQL query execution.ReadWritetransactionMode()Deprecated.TxnTypetransactionType()Deprecated.voidupdate(UpdateRequest update)Deprecated.Execute a SPARQL Update.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.rdfconnection.RDFConnection
query, queryAsk, queryAsk, queryConstruct, queryConstruct, queryDescribe, queryDescribe, queryResultSet, queryResultSet, querySelect, querySelect, update, update
-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
-
-
-
Method Detail
-
query
public QueryExecution query(Query query)
Deprecated.Description copied from interface:RDFConnectionSetup a SPARQL query execution. See alsoRDFConnection.querySelect(Query, Consumer),RDFConnection.queryConstruct(Query),RDFConnection.queryDescribe(Query),RDFConnection.queryAsk(Query)for ways to execute queries for of a specific form.- Specified by:
queryin interfaceRDFConnection- Specified by:
queryin interfaceSparqlQueryConnection- Returns:
- QueryExecution
-
newQuery
public QueryExecutionBuilder newQuery()
Deprecated.Description copied from interface:RDFConnectionReturn a execution builder initialized with the RDFConnection setup.- Specified by:
newQueryin interfaceRDFConnection- Specified by:
newQueryin interfaceSparqlQueryConnection- Returns:
- QueryExecutionBuilderCommon
-
update
public void update(UpdateRequest update)
Deprecated.Description copied from interface:RDFConnectionExecute a SPARQL Update.- Specified by:
updatein interfaceRDFConnection- Specified by:
updatein interfaceSparqlUpdateConnection
-
load
public void load(java.lang.String graph, java.lang.String file)Deprecated.Description copied from interface:RDFConnectionLoad (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
loadin interfaceRDFConnection- Specified by:
loadin interfaceRDFDatasetConnection- Parameters:
graph- Graph name (null or "default" for the default graph)file- File of the data.
-
load
public void load(java.lang.String file)
Deprecated.Description copied from interface:RDFConnectionLoad (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
loadin interfaceRDFConnection- Specified by:
loadin interfaceRDFDatasetConnection- Parameters:
file- File of the data.
-
load
public void load(java.lang.String graphName, Model model)Deprecated.Description copied from interface:RDFConnectionLoad (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
loadin interfaceRDFConnection- Specified by:
loadin interfaceRDFDatasetConnection- Parameters:
graphName- Graph name (null or "default" for the default graph)model- Data.
-
load
public void load(Model model)
Deprecated.Description copied from interface:RDFConnectionLoad (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
loadin interfaceRDFConnection- Specified by:
loadin interfaceRDFDatasetConnection- Parameters:
model- Data.
-
fetch
public Model fetch(java.lang.String graph)
Deprecated.Description copied from interface:RDFConnectionFetch a named graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.- Specified by:
fetchin interfaceRDFConnection- Specified by:
fetchin interfaceRDFDatasetAccessConnection- Parameters:
graph- URI string for the graph name (null or "default" for the default graph)- Returns:
- Model
-
fetch
public Model fetch()
Deprecated.Description copied from interface:RDFConnectionFetch the default graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.- Specified by:
fetchin interfaceRDFConnection- Specified by:
fetchin interfaceRDFDatasetAccessConnection- Returns:
- Model
-
put
public void put(java.lang.String file)
Deprecated.Description copied from interface:RDFConnectionSet the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.- Specified by:
putin interfaceRDFConnection- Specified by:
putin interfaceRDFDatasetConnection- Parameters:
file- File of the data.
-
put
public void put(java.lang.String graph, java.lang.String file)Deprecated.Description copied from interface:RDFConnectionSet the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.- Specified by:
putin interfaceRDFConnection- Specified by:
putin interfaceRDFDatasetConnection- Parameters:
graph- Graph name (null or "default" for the default graph)file- File of the data.
-
put
public void put(Model model)
Deprecated.Description copied from interface:RDFConnectionSet the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.- Specified by:
putin interfaceRDFConnection- Specified by:
putin interfaceRDFDatasetConnection- Parameters:
model- Data.
-
put
public void put(java.lang.String graphName, Model model)Deprecated.Description copied from interface:RDFConnectionSet the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.- Specified by:
putin interfaceRDFConnection- Specified by:
putin interfaceRDFDatasetConnection- Parameters:
graphName- Graph name (null or "default" for the default graph)model- Data.
-
delete
public void delete(java.lang.String graph)
Deprecated.Description copied from interface:RDFConnectionDelete a graph from the dataset. Null or "default" means the default graph, which is cleared, not removed.- Specified by:
deletein interfaceRDFConnection- Specified by:
deletein interfaceRDFDatasetConnection
-
delete
public void delete()
Deprecated.Description copied from interface:RDFConnectionRemove all data from the default graph.- Specified by:
deletein interfaceRDFConnection- Specified by:
deletein interfaceRDFDatasetConnection
-
fetchDataset
public Dataset fetchDataset()
Deprecated.Description copied from interface:RDFConnectionFetch the contents of the dataset- Specified by:
fetchDatasetin interfaceRDFConnection- Specified by:
fetchDatasetin interfaceRDFDatasetAccessConnection
-
loadDataset
public void loadDataset(java.lang.String file)
Deprecated.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
loadDataset
public void loadDataset(Dataset srcDataset)
Deprecated.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
putDataset
public void putDataset(java.lang.String file)
Deprecated.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
putDataset
public void putDataset(Dataset dataset)
Deprecated.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
close
public void close()
Deprecated.Description copied from interface:RDFConnectionClose this connection. Use with try-resource.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceRDFConnection- Specified by:
closein interfaceRDFDatasetAccessConnection- Specified by:
closein interfaceRDFDatasetConnection- Specified by:
closein interfaceSparqlQueryConnection- Specified by:
closein interfaceSparqlUpdateConnection
-
isClosed
public boolean isClosed()
Deprecated.Description copied from interface:RDFConnectionTest whether this connection is closed or not- Specified by:
isClosedin interfaceRDFConnection- Specified by:
isClosedin interfaceRDFDatasetAccessConnection- Specified by:
isClosedin interfaceRDFDatasetConnection
-
begin
public void begin()
Deprecated.- Specified by:
beginin interfaceTransactional
-
begin
public void begin(TxnType txnType)
Deprecated.- Specified by:
beginin interfaceTransactional
-
begin
public void begin(ReadWrite mode)
Deprecated.- Specified by:
beginin interfaceTransactional
-
promote
public boolean promote(Transactional.Promote promote)
Deprecated.- Specified by:
promotein interfaceTransactional
-
commit
public void commit()
Deprecated.- Specified by:
commitin interfaceTransactional
-
abort
public void abort()
Deprecated.- Specified by:
abortin interfaceTransactional
-
isInTransaction
public boolean isInTransaction()
Deprecated.- Specified by:
isInTransactionin interfaceTransactional
-
end
public void end()
Deprecated.- Specified by:
endin interfaceTransactional
-
transactionMode
public ReadWrite transactionMode()
Deprecated.- Specified by:
transactionModein interfaceTransactional
-
transactionType
public TxnType transactionType()
Deprecated.- Specified by:
transactionTypein interfaceTransactional
-
-