java.lang.Object
org.apache.jena.rdfconnection.RDFConnectionLocal
- All Implemented Interfaces:
AutoCloseable,RDFConnection,RDFDatasetAccessConnection,RDFDatasetConnection,SparqlQueryConnection,SparqlUpdateConnection,org.apache.jena.sparql.core.Transactional
@Deprecated(forRemoval=true)
public class RDFConnectionLocal
extends Object
implements RDFConnection
Deprecated, for removal: This API element is subject to removal in a future version.
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
org.apache.jena.sparql.core.Transactional.Promote -
Constructor Summary
ConstructorsConstructorDescriptionRDFConnectionLocal(org.apache.jena.query.Dataset dataset) Deprecated, for removal: This API element is subject to removal in a future version.RDFConnectionLocal(org.apache.jena.query.Dataset dataset, Isolation isolation) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Deprecated, for removal: This API element is subject to removal in a future version.voidbegin()Deprecated, for removal: This API element is subject to removal in a future version.voidbegin(org.apache.jena.query.ReadWrite mode) Deprecated, for removal: This API element is subject to removal in a future version.voidbegin(org.apache.jena.query.TxnType txnType) Deprecated, for removal: This API element is subject to removal in a future version.voidclose()Deprecated, for removal: This API element is subject to removal in a future version.Close this connection.voidcommit()Deprecated, for removal: This API element is subject to removal in a future version.voiddelete()Deprecated, for removal: This API element is subject to removal in a future version.Remove all data from the default graph.voidDeprecated, for removal: This API element is subject to removal in a future version.Delete a graph from the dataset.voidend()Deprecated, for removal: This API element is subject to removal in a future version.org.apache.jena.rdf.model.Modelfetch()Deprecated, for removal: This API element is subject to removal in a future version.Fetch the default graph.org.apache.jena.rdf.model.ModelDeprecated, for removal: This API element is subject to removal in a future version.Fetch a named graph.org.apache.jena.query.DatasetDeprecated, for removal: This API element is subject to removal in a future version.Fetch the contents of the datasetbooleanisClosed()Deprecated, for removal: This API element is subject to removal in a future version.Test whether this connection is closed or notbooleanDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Load (add, append) RDF into the default graph of a dataset.voidDeprecated, for removal: This API element is subject to removal in a future version.Load (add, append) RDF into a named graph in a dataset.voidDeprecated, for removal: This API element is subject to removal in a future version.Load (add, append) RDF into a named graph in a dataset.voidload(org.apache.jena.rdf.model.Model model) Deprecated, for removal: This API element is subject to removal in a future version.Load (add, append) RDF into the default graph of a dataset.voidloadDataset(String file) Deprecated, for removal: This API element is subject to removal in a future version.voidloadDataset(org.apache.jena.query.Dataset srcDataset) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.jena.query.QueryExecutionBuildernewQuery()Deprecated, for removal: This API element is subject to removal in a future version.Return a execution builder initialized with the RDFConnection setup.org.apache.jena.update.UpdateExecutionBuilderDeprecated, for removal: This API element is subject to removal in a future version.Return aUpdateExecutionBuilderthat is initially configured for this link setup and type.booleanpromote(org.apache.jena.sparql.core.Transactional.Promote promote) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the contents of the default graph of a dataset.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the contents of a named graph of a dataset.voidDeprecated, for removal: This API element is subject to removal in a future version.Set the contents of a named graph of a dataset.voidput(org.apache.jena.rdf.model.Model model) Deprecated, for removal: This API element is subject to removal in a future version.Set the contents of the default graph of a dataset.voidputDataset(String file) Deprecated, for removal: This API element is subject to removal in a future version.voidputDataset(org.apache.jena.query.Dataset dataset) Deprecated, for removal: This API element is subject to removal in a future version.org.apache.jena.query.QueryExecutionquery(org.apache.jena.query.Query query) Deprecated, for removal: This API element is subject to removal in a future version.Setup a SPARQL query execution.org.apache.jena.query.ReadWriteDeprecated, for removal: This API element is subject to removal in a future version.org.apache.jena.query.TxnTypeDeprecated, for removal: This API element is subject to removal in a future version.voidupdate(org.apache.jena.update.UpdateRequest update) Deprecated, for removal: This API element is subject to removal in a future version.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
public RDFConnectionLocal(org.apache.jena.query.Dataset dataset) Deprecated, for removal: This API element is subject to removal in a future version. -
RDFConnectionLocal
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
query
public org.apache.jena.query.QueryExecution query(org.apache.jena.query.Query query) Deprecated, for removal: This API element is subject to removal in a future version.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 org.apache.jena.query.QueryExecutionBuilder newQuery()Deprecated, for removal: This API element is subject to removal in a future version.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(org.apache.jena.update.UpdateRequest update) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RDFConnectionExecute a SPARQL Update.- Specified by:
updatein interfaceRDFConnection- Specified by:
updatein interfaceSparqlUpdateConnection
-
newUpdate
public org.apache.jena.update.UpdateExecutionBuilder newUpdate()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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(org.apache.jena.rdf.model.Model model) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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 org.apache.jena.rdf.model.Model fetch()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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(org.apache.jena.rdf.model.Model model) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Description copied from interface:RDFConnectionRemove all data from the default graph.- Specified by:
deletein interfaceRDFConnection- Specified by:
deletein interfaceRDFDatasetConnection
-
fetchDataset
public org.apache.jena.query.Dataset fetchDataset()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RDFConnectionFetch the contents of the dataset- Specified by:
fetchDatasetin interfaceRDFConnection- Specified by:
fetchDatasetin interfaceRDFDatasetAccessConnection
-
loadDataset
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
loadDataset
public void loadDataset(org.apache.jena.query.Dataset srcDataset) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
putDataset
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
putDataset
public void putDataset(org.apache.jena.query.Dataset dataset) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
close
public void close()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.- Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
begin
public void begin(org.apache.jena.query.TxnType txnType) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
begin
public void begin(org.apache.jena.query.ReadWrite mode) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
promote
public boolean promote(org.apache.jena.sparql.core.Transactional.Promote promote) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
promotein interfaceorg.apache.jena.sparql.core.Transactional
-
commit
public void commit()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
commitin interfaceorg.apache.jena.sparql.core.Transactional
-
abort
public void abort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
abortin interfaceorg.apache.jena.sparql.core.Transactional
-
isInTransaction
public boolean isInTransaction()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isInTransactionin interfaceorg.apache.jena.sparql.core.Transactional
-
end
public void end()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
endin interfaceorg.apache.jena.sparql.core.Transactional
-
transactionMode
public org.apache.jena.query.ReadWrite transactionMode()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
transactionModein interfaceorg.apache.jena.sparql.core.Transactional
-
transactionType
public org.apache.jena.query.TxnType transactionType()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
transactionTypein interfaceorg.apache.jena.sparql.core.Transactional
-
RDFConnection.connect(Dataset).