java.lang.Object
org.apache.jena.rdfconnection.RDFConnectionLocal
- All Implemented Interfaces:
AutoCloseable,RDFConnection,RDFDatasetAccessConnection,RDFDatasetConnection,SparqlQueryConnection,SparqlUpdateConnection,Transactional
Deprecated.
Implement of
RDFConnection over a Dataset in the same JVM.
Multiple levels of Isolation are provided. The default COPY level makes a local
RDFConnection that 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
ConstructorsConstructorDescriptionRDFConnectionLocal(Dataset dataset) Deprecated.RDFConnectionLocal(Dataset dataset, Isolation isolation) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Deprecated.voidbegin()Deprecated.voidDeprecated.voidDeprecated.voidclose()Deprecated.Close this connection.voidcommit()Deprecated.voiddelete()Deprecated.Remove all data from the default graph.voidDeprecated.Delete a graph from the dataset.voidend()Deprecated.fetch()Deprecated.Fetch the default graph.Deprecated.Fetch a named graph.Deprecated.Fetch the contents of the datasetbooleanisClosed()Deprecated.Test whether this connection is closed or notbooleanDeprecated.voidDeprecated.Load (add, append) RDF into the default graph of a dataset.voidDeprecated.Load (add, append) RDF into a named graph in a dataset.voidDeprecated.Load (add, append) RDF into a named graph in a dataset.voidDeprecated.Load (add, append) RDF into the default graph of a dataset.voidloadDataset(String file) Deprecated.voidloadDataset(Dataset srcDataset) Deprecated.newQuery()Deprecated.Return a execution builder initialized with the RDFConnection setup.Deprecated.Return aUpdateExecutionBuilderthat is initially configured for this link setup and type.booleanpromote(Transactional.Promote promote) Deprecated.voidDeprecated.Set the contents of the default graph of a dataset.voidDeprecated.Set the contents of a named graph of a dataset.voidDeprecated.Set the contents of a named graph of a dataset.voidDeprecated.Set the contents of the default graph of a dataset.voidputDataset(String file) Deprecated.voidputDataset(Dataset dataset) Deprecated.Deprecated.Setup a SPARQL query execution.Deprecated.Deprecated.voidupdate(UpdateRequest update) Deprecated.Execute a SPARQL Update.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.rdfconnection.RDFConnection
query, queryAsk, queryAsk, queryConstruct, queryConstruct, queryDescribe, queryDescribe, queryResultSet, queryResultSet, querySelect, querySelect, update, updateMethods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
Constructor Details
-
RDFConnectionLocal
Deprecated. -
RDFConnectionLocal
Deprecated.
-
-
Method Details
-
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
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
Deprecated.Description copied from interface:RDFConnectionExecute a SPARQL Update.- Specified by:
updatein interfaceRDFConnection- Specified by:
updatein interfaceSparqlUpdateConnection
-
newUpdate
Deprecated.Description copied from interface:RDFConnectionReturn aUpdateExecutionBuilderthat is initially configured for this link setup and type. The update built will be set to go to the same dataset/remote endpoint as the other RDFLink operations.- Specified by:
newUpdatein interfaceRDFConnection- Specified by:
newUpdatein interfaceSparqlUpdateConnection- Returns:
- UpdateExecBuilder
-
load
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
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
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
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
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
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
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
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
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
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
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
Deprecated.Description copied from interface:RDFConnectionFetch the contents of the dataset- Specified by:
fetchDatasetin interfaceRDFConnection- Specified by:
fetchDatasetin interfaceRDFDatasetAccessConnection
-
loadDataset
Deprecated.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
loadDataset
Deprecated.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
putDataset
Deprecated.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
putDataset
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 interfaceAutoCloseable- 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
Deprecated.- Specified by:
beginin interfaceTransactional
-
begin
Deprecated.- Specified by:
beginin interfaceTransactional
-
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
Deprecated.- Specified by:
transactionModein interfaceTransactional
-
transactionType
Deprecated.- Specified by:
transactionTypein interfaceTransactional
-
RDFConnection.connect(Dataset).