Package org.apache.jena.rdfconnection
Class RDFConnectionFactory
- java.lang.Object
-
- org.apache.jena.rdfconnection.RDFConnectionFactory
-
public class RDFConnectionFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RDFConnectionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RDFConnectionconnect(java.lang.String destination)Create a connection to a remote location by URL.static RDFConnectionconnect(java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)Create a connection specifying the URLs of the service.static RDFConnectionconnect(java.lang.String datasetURL, java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)Create a connection to a remote location by URL.static RDFConnectionconnect(Dataset dataset)Connect to a local (same JVM) dataset.static RDFConnectionconnect(Dataset dataset, Isolation isolation)Connect to a local (same JVM) dataset.static RDFConnectionFusekiconnectFuseki(java.lang.String destination)Create a connection to a remote Fuseki server by URL.static RDFConnectionFusekiconnectFuseki(java.lang.String datasetURL, java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)Create a connection to a remote Fuseki server by URL.static RDFConnectionconnectPW(java.lang.String URL, java.lang.String user, java.lang.String password)Make a remote RDFConnection to the URL, with user and password for the client access using basic auth.
-
-
-
Method Detail
-
connect
public static RDFConnection connect(java.lang.String destination)
Create a connection to a remote location by URL. This is the URL for the dataset. This call assumes the names of services as:- SPARQL Query endpoint : "sparql"
- SPARQL Update endpoint : "update"
- SPARQL Graph Store Protocol : "data"
connect(String, String, String, String)- Parameters:
destination-- Returns:
- RDFConnection
- See Also:
connect(String, String, String, String)
-
connect
public static RDFConnection connect(java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)
Create a connection specifying the URLs of the service.- Parameters:
queryServiceEndpoint-updateServiceEndpoint-graphStoreProtocolEndpoint-- Returns:
- RDFConnection
-
connect
public static RDFConnection connect(java.lang.String datasetURL, java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)
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
public static RDFConnection connectPW(java.lang.String URL, java.lang.String user, java.lang.String password)
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
public static RDFConnection connect(Dataset dataset)
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:
RDFConnectionLocal
-
connect
public static RDFConnection connect(Dataset dataset, Isolation isolation)
Connect to a local (same JVM) dataset.Multiple levels of
Isolationare provided, The defaultCOPYlevel makes a localRDFConnectionbehave like a remote conenction. See the documentation for more details.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.
- Parameters:
dataset-isolation-- Returns:
- RDFConnection
-
connectFuseki
public static RDFConnectionFuseki connectFuseki(java.lang.String destination)
Create a connection to a remote Fuseki server by URL. This is the URL for the dataset.A
RDFConnectionFusekiis anRDFConnectionthat:- 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
public static RDFConnectionFuseki connectFuseki(java.lang.String datasetURL, java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)
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
-
-