Package org.apache.jena.rdfconnection
Class RDFConnectionFactory
java.lang.Object
org.apache.jena.rdfconnection.RDFConnectionFactory
Deprecated.
See individual static methods for replacements.
Factory for RDF connections, both local and remote.
Applications should use RDFConnection#connect(Dataset)
or RDFConnection#connect(URL)
for most cases and RDFConnectionRemote.service(java.lang.String)
for detailed setup of an HTTP connection
to remote SPARQL endpoints.
For complex remote (HTTP) connections, see
RDFConnectionRemote.newBuilder()
for detailed control.
This class provides only some common cases.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RDFConnection
Deprecated.static RDFConnection
connect
(String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.UseRDFConnectionRemote.service(java.lang.String)
and set the endpoints.static RDFConnection
connect
(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.UseRDFConnectionRemote.service(java.lang.String)
and set the endpoints.static RDFConnection
connect
(org.apache.jena.query.Dataset dataset) Deprecated.static RDFConnection
Deprecated.static RDFConnectionFuseki
connectFuseki
(String destination) Deprecated.static RDFConnectionFuseki
connectFuseki
(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.static RDFConnection
-
Constructor Details
-
RDFConnectionFactory
public RDFConnectionFactory()Deprecated.
-
-
Method Details
-
connect
Deprecated.Create a connection to a remote location by URL. This is the URL for the dataset. This call assumes all SPARQL operations (query, update GSP) are available at the given endpoint. Fuseki supports this arrangement.Use
RDFConnectionRemote.service(java.lang.String)
for to set different names for different operations.- Parameters:
destination
-- Returns:
- RDFConnection
-
connect
@Deprecated public static RDFConnection connect(String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.UseRDFConnectionRemote.service(java.lang.String)
and set the endpoints.RDFConnectionRemote.newBuilder() .queryEndpoint(queryServiceEndpoint) .updateEndpoint(updateServiceEndpoint) .gspEndpoint(graphStoreProtocolEndpoint) .build();
Create a connection specifying the URLs of the service.A common setup used by Fuseki is:
- SPARQL Query endpoint : "sparql"
- SPARQL Update endpoint : "update"
- SPARQL Graph Store Protocol : "data"
connect(String, String, String, String)
- Parameters:
queryServiceEndpoint
-updateServiceEndpoint
-graphStoreProtocolEndpoint
-- Returns:
- RDFConnection
-
connect
@Deprecated public static RDFConnection connect(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.UseRDFConnectionRemote.service(java.lang.String)
and set the endpoints.RDFConnectionRemote.service(datasetURL) .queryEndpoint(queryServiceEndpoint) .updateEndpoint(updateServiceEndpoint) .gspEndpoint(graphStoreProtocolEndpoint) .build();
Create a connection to a remote location by URL. This is the URL for the dataset. Each service is then specified by a URL which is relative to thedatasetURL
.- Parameters:
datasetURL
-queryServiceEndpoint
-updateServiceEndpoint
-graphStoreProtocolEndpoint
-- Returns:
- RDFConnection
-
connectPW
Make a remote RDFConnection to the URL, with user and password for the client access using basic auth. Use with care – basic auth over plain HTTP reveals the password on the network.- Parameters:
URL
-user
-password
-- Returns:
- RDFConnection
-
connect
Deprecated.Connect to a local (same JVM) dataset. The default isolation isNONE
. Seeconnect(Dataset, Isolation)
to select an isolation mode.- Parameters:
dataset
-- Returns:
- RDFConnection
- See Also:
-
connect
@Deprecated public static RDFConnection connect(org.apache.jena.query.Dataset dataset, Isolation isolation) Deprecated.Connect to a local (same JVM) dataset.Multiple levels of
Isolation
are provided, The defaultCOPY
level makes a localRDFConnection
behave like a remote connection. See the documentation for more details.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.
- Parameters:
dataset
-isolation
-- Returns:
- RDFConnection
-
connectFuseki
Deprecated.Create a connection to a remote Fuseki server by URL. This is the URL for the dataset.A
RDFConnectionFuseki
is anRDFConnection
that:- provides round-trip of blank nodes between this application and the server
- uses the more efficient RDF Thrift binary format.
- SPARQL Query endpoint : "sparql"
- SPARQL Update endpoint : "update"
- SPARQL Graph Store Protocol : "data"
connectFuseki(String, String, String, String)
.- Parameters:
destination
-- Returns:
- RDFConnectionFuseki
-
connectFuseki
@Deprecated public static RDFConnectionFuseki connectFuseki(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Deprecated.Create a connection to a remote Fuseki server by URL. This is the URL for the dataset. Each service is then specified by a URL which is relative to thedatasetURL
.- Parameters:
datasetURL
-queryServiceEndpoint
-updateServiceEndpoint
-graphStoreProtocolEndpoint
-- Returns:
- RDFConnectionFuseki
-