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
–Model
s andDataset
s 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 returnedModel
s orDataset
s 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 TypeMethodDescriptionvoid
abort()
Deprecated.void
begin()
Deprecated.void
Deprecated.void
Deprecated.void
close()
Deprecated.Close this connection.void
commit()
Deprecated.void
delete()
Deprecated.Remove all data from the default graph.void
Deprecated.Delete a graph from the dataset.void
end()
Deprecated.fetch()
Deprecated.Fetch the default graph.Deprecated.Fetch a named graph.Deprecated.Fetch the contents of the datasetboolean
isClosed()
Deprecated.Test whether this connection is closed or notboolean
Deprecated.void
Deprecated.Load (add, append) RDF into the default graph of a dataset.void
Deprecated.Load (add, append) RDF into a named graph in a dataset.void
Deprecated.Load (add, append) RDF into a named graph in a dataset.void
Deprecated.Load (add, append) RDF into the default graph of a dataset.void
loadDataset
(String file) Deprecated.void
loadDataset
(Dataset srcDataset) Deprecated.newQuery()
Deprecated.Return a execution builder initialized with the RDFConnection setup.Deprecated.Return aUpdateExecutionBuilder
that is initially configured for this link setup and type.boolean
promote
(Transactional.Promote promote) Deprecated.void
Deprecated.Set the contents of the default graph of a dataset.void
Deprecated.Set the contents of a named graph of a dataset.void
Deprecated.Set the contents of a named graph of a dataset.void
Deprecated.Set the contents of the default graph of a dataset.void
putDataset
(String file) Deprecated.void
putDataset
(Dataset dataset) Deprecated.Deprecated.Setup a SPARQL query execution.Deprecated.Deprecated.void
update
(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
-
Constructor Details
-
RDFConnectionLocal
Deprecated. -
RDFConnectionLocal
Deprecated.
-
-
Method Details
-
query
Deprecated.Description copied from interface:RDFConnection
Setup 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:
query
in interfaceRDFConnection
- Specified by:
query
in interfaceSparqlQueryConnection
- Returns:
- QueryExecution
-
newQuery
Deprecated.Description copied from interface:RDFConnection
Return a execution builder initialized with the RDFConnection setup.- Specified by:
newQuery
in interfaceRDFConnection
- Specified by:
newQuery
in interfaceSparqlQueryConnection
- Returns:
- QueryExecutionBuilderCommon
-
update
Deprecated.Description copied from interface:RDFConnection
Execute a SPARQL Update.- Specified by:
update
in interfaceRDFConnection
- Specified by:
update
in interfaceSparqlUpdateConnection
-
newUpdate
Deprecated.Description copied from interface:RDFConnection
Return aUpdateExecutionBuilder
that 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:
newUpdate
in interfaceRDFConnection
- Specified by:
newUpdate
in interfaceSparqlUpdateConnection
- Returns:
- UpdateExecBuilder
-
load
Deprecated.Description copied from interface:RDFConnection
Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
load
in interfaceRDFConnection
- Specified by:
load
in interfaceRDFDatasetConnection
- Parameters:
graph
- Graph name (null or "default" for the default graph)file
- File of the data.
-
load
Deprecated.Description copied from interface:RDFConnection
Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
load
in interfaceRDFConnection
- Specified by:
load
in interfaceRDFDatasetConnection
- Parameters:
file
- File of the data.
-
load
Deprecated.Description copied from interface:RDFConnection
Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
load
in interfaceRDFConnection
- Specified by:
load
in interfaceRDFDatasetConnection
- Parameters:
graphName
- Graph name (null or "default" for the default graph)model
- Data.
-
load
Deprecated.Description copied from interface:RDFConnection
Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.- Specified by:
load
in interfaceRDFConnection
- Specified by:
load
in interfaceRDFDatasetConnection
- Parameters:
model
- Data.
-
fetch
Deprecated.Description copied from interface:RDFConnection
Fetch a named graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.- Specified by:
fetch
in interfaceRDFConnection
- Specified by:
fetch
in interfaceRDFDatasetAccessConnection
- Parameters:
graph
- URI string for the graph name (null or "default" for the default graph)- Returns:
- Model
-
fetch
Deprecated.Description copied from interface:RDFConnection
Fetch the default graph. This is SPARQL Graph Store Protocol HTTP GET or equivalent.- Specified by:
fetch
in interfaceRDFConnection
- Specified by:
fetch
in interfaceRDFDatasetAccessConnection
- Returns:
- Model
-
put
Deprecated.Description copied from interface:RDFConnection
Set 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:
put
in interfaceRDFConnection
- Specified by:
put
in interfaceRDFDatasetConnection
- Parameters:
file
- File of the data.
-
put
Deprecated.Description copied from interface:RDFConnection
Set 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:
put
in interfaceRDFConnection
- Specified by:
put
in interfaceRDFDatasetConnection
- Parameters:
graph
- Graph name (null or "default" for the default graph)file
- File of the data.
-
put
Deprecated.Description copied from interface:RDFConnection
Set 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:
put
in interfaceRDFConnection
- Specified by:
put
in interfaceRDFDatasetConnection
- Parameters:
model
- Data.
-
put
Deprecated.Description copied from interface:RDFConnection
Set 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:
put
in interfaceRDFConnection
- Specified by:
put
in interfaceRDFDatasetConnection
- Parameters:
graphName
- Graph name (null or "default" for the default graph)model
- Data.
-
delete
Deprecated.Description copied from interface:RDFConnection
Delete a graph from the dataset. Null or "default" means the default graph, which is cleared, not removed.- Specified by:
delete
in interfaceRDFConnection
- Specified by:
delete
in interfaceRDFDatasetConnection
-
delete
public void delete()Deprecated.Description copied from interface:RDFConnection
Remove all data from the default graph.- Specified by:
delete
in interfaceRDFConnection
- Specified by:
delete
in interfaceRDFDatasetConnection
-
fetchDataset
Deprecated.Description copied from interface:RDFConnection
Fetch the contents of the dataset- Specified by:
fetchDataset
in interfaceRDFConnection
- Specified by:
fetchDataset
in interfaceRDFDatasetAccessConnection
-
loadDataset
Deprecated.- Specified by:
loadDataset
in interfaceRDFConnection
- Specified by:
loadDataset
in interfaceRDFDatasetConnection
-
loadDataset
Deprecated.- Specified by:
loadDataset
in interfaceRDFConnection
- Specified by:
loadDataset
in interfaceRDFDatasetConnection
-
putDataset
Deprecated.- Specified by:
putDataset
in interfaceRDFConnection
- Specified by:
putDataset
in interfaceRDFDatasetConnection
-
putDataset
Deprecated.- Specified by:
putDataset
in interfaceRDFConnection
- Specified by:
putDataset
in interfaceRDFDatasetConnection
-
close
public void close()Deprecated.Description copied from interface:RDFConnection
Close this connection. Use with try-resource.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRDFConnection
- Specified by:
close
in interfaceRDFDatasetAccessConnection
- Specified by:
close
in interfaceRDFDatasetConnection
- Specified by:
close
in interfaceSparqlQueryConnection
- Specified by:
close
in interfaceSparqlUpdateConnection
-
isClosed
public boolean isClosed()Deprecated.Description copied from interface:RDFConnection
Test whether this connection is closed or not- Specified by:
isClosed
in interfaceRDFConnection
- Specified by:
isClosed
in interfaceRDFDatasetAccessConnection
- Specified by:
isClosed
in interfaceRDFDatasetConnection
-
begin
public void begin()Deprecated.- Specified by:
begin
in interfaceTransactional
-
begin
Deprecated.- Specified by:
begin
in interfaceTransactional
-
begin
Deprecated.- Specified by:
begin
in interfaceTransactional
-
promote
Deprecated.- Specified by:
promote
in interfaceTransactional
-
commit
public void commit()Deprecated.- Specified by:
commit
in interfaceTransactional
-
abort
public void abort()Deprecated.- Specified by:
abort
in interfaceTransactional
-
isInTransaction
public boolean isInTransaction()Deprecated.- Specified by:
isInTransaction
in interfaceTransactional
-
end
public void end()Deprecated.- Specified by:
end
in interfaceTransactional
-
transactionMode
Deprecated.- Specified by:
transactionMode
in interfaceTransactional
-
transactionType
Deprecated.- Specified by:
transactionType
in interfaceTransactional
-
RDFConnection.connect(Dataset)
.