java.lang.Object
org.apache.jena.rdfconnection.RDFConnectionLocal
- All Implemented Interfaces:
AutoCloseable,RDFConnection,RDFDatasetAccessConnection,RDFDatasetConnection,SparqlQueryConnection,SparqlUpdateConnection,org.apache.jena.sparql.core.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
org.apache.jena.sparql.core.Transactional.Promote -
Constructor Summary
ConstructorsConstructorDescriptionRDFConnectionLocal(org.apache.jena.query.Dataset dataset) Deprecated.RDFConnectionLocal(org.apache.jena.query.Dataset dataset, Isolation isolation) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Deprecated.voidbegin()Deprecated.voidbegin(org.apache.jena.query.ReadWrite mode) Deprecated.voidbegin(org.apache.jena.query.TxnType txnType) Deprecated.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.org.apache.jena.rdf.model.Modelfetch()Deprecated.Fetch the default graph.org.apache.jena.rdf.model.ModelDeprecated.Fetch a named graph.org.apache.jena.query.DatasetDeprecated.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.voidload(org.apache.jena.rdf.model.Model model) Deprecated.Load (add, append) RDF into the default graph of a dataset.voidloadDataset(String file) Deprecated.voidloadDataset(org.apache.jena.query.Dataset srcDataset) Deprecated.org.apache.jena.query.QueryExecutionBuildernewQuery()Deprecated.Return a execution builder initialized with the RDFConnection setup.org.apache.jena.update.UpdateExecutionBuilderDeprecated.Return aUpdateExecutionBuilderthat is initially configured for this link setup and type.booleanpromote(org.apache.jena.sparql.core.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.voidput(org.apache.jena.rdf.model.Model model) Deprecated.Set the contents of the default graph of a dataset.voidputDataset(String file) Deprecated.voidputDataset(org.apache.jena.query.Dataset dataset) Deprecated.org.apache.jena.query.QueryExecutionquery(org.apache.jena.query.Query query) Deprecated.Setup a SPARQL query execution.org.apache.jena.query.ReadWriteDeprecated.org.apache.jena.query.TxnTypeDeprecated.voidupdate(org.apache.jena.update.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
public RDFConnectionLocal(org.apache.jena.query.Dataset dataset) Deprecated. -
RDFConnectionLocal
Deprecated.
-
-
Method Details
-
query
public org.apache.jena.query.QueryExecution query(org.apache.jena.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 org.apache.jena.query.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(org.apache.jena.update.UpdateRequest update) Deprecated.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.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
public void load(org.apache.jena.rdf.model.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
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 org.apache.jena.rdf.model.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
public void put(org.apache.jena.rdf.model.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
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
public org.apache.jena.query.Dataset 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
public void loadDataset(org.apache.jena.query.Dataset srcDataset) Deprecated.- Specified by:
loadDatasetin interfaceRDFConnection- Specified by:
loadDatasetin interfaceRDFDatasetConnection
-
putDataset
Deprecated.- Specified by:
putDatasetin interfaceRDFConnection- Specified by:
putDatasetin interfaceRDFDatasetConnection
-
putDataset
public void putDataset(org.apache.jena.query.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 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 interfaceorg.apache.jena.sparql.core.Transactional
-
begin
public void begin(org.apache.jena.query.TxnType txnType) Deprecated.- Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
begin
public void begin(org.apache.jena.query.ReadWrite mode) Deprecated.- Specified by:
beginin interfaceorg.apache.jena.sparql.core.Transactional
-
promote
public boolean promote(org.apache.jena.sparql.core.Transactional.Promote promote) Deprecated.- Specified by:
promotein interfaceorg.apache.jena.sparql.core.Transactional
-
commit
public void commit()Deprecated.- Specified by:
commitin interfaceorg.apache.jena.sparql.core.Transactional
-
abort
public void abort()Deprecated.- Specified by:
abortin interfaceorg.apache.jena.sparql.core.Transactional
-
isInTransaction
public boolean isInTransaction()Deprecated.- Specified by:
isInTransactionin interfaceorg.apache.jena.sparql.core.Transactional
-
end
public void end()Deprecated.- Specified by:
endin interfaceorg.apache.jena.sparql.core.Transactional
-
transactionMode
public org.apache.jena.query.ReadWrite transactionMode()Deprecated.- Specified by:
transactionModein interfaceorg.apache.jena.sparql.core.Transactional
-
transactionType
public org.apache.jena.query.TxnType transactionType()Deprecated.- Specified by:
transactionTypein interfaceorg.apache.jena.sparql.core.Transactional
-
RDFConnection.connect(Dataset).