java.lang.Object
org.apache.jena.rdflink.RDFLinkFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RDFLink
Create a connection to a remote location by URL.static RDFLink
connect
(String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection specifying the URLs of the service.static RDFLink
connect
(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection to a remote location by URL.static RDFLink
connect
(org.apache.jena.sparql.core.DatasetGraph dataset) Connect to a local (same JVM) dataset.static RDFLink
Connect to a local (same JVM) dataset.static RDFLinkFuseki
connectFuseki
(String destination) Create a connection to a remote Fuseki server by URL.static RDFLinkFuseki
connectFuseki
(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection to a remote Fuseki server by URL.static RDFLinkHTTPBuilder
newBuilder
(String destination) Create a builder for a connection to a remote location by URL.
-
Constructor Details
-
RDFLinkFactory
public RDFLinkFactory()
-
-
Method Details
-
connect
Create a connection to a remote location by URL. This is the URL for the dataset. This call assumes the SPARQL Query endpoint, SPARQL Update endpoint and SPARQL Graph Store Protocol endpoints are the same URL. This is supported by Apache Jena Fuseki. Other names can be specified usingconnect(String, String, String, String)
orRDFLinkHTTPBuilder
.- Parameters:
destination
-- Returns:
- RDFLink
- See Also:
-
connect
public static RDFLink connect(String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection specifying the URLs of the service.- Parameters:
queryServiceEndpoint
-updateServiceEndpoint
-graphStoreProtocolEndpoint
-- Returns:
- RDFLink
-
newBuilder
Create a builder for a connection to a remote location by URL. This is the URL for the dataset.- Parameters:
destination
-- Returns:
- RDFLink
- See Also:
-
connect
public static RDFLink connect(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, 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:
- RDFLink
-
connect
Connect to a local (same JVM) dataset. The default isolation isNONE
. Seeconnect(DatasetGraph, Isolation)
to select an isolation mode.- Parameters:
dataset
-- Returns:
- RDFLink
- See Also:
-
connect
public static RDFLink connect(org.apache.jena.sparql.core.DatasetGraph dataset, Isolation isolation) Connect to a local (same JVM) dataset.Multiple levels of
Isolation
are provided, The defaultCOPY
level makes a localRDFLink
behave like a remote conenction. 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:
- RDFLink
-
connectFuseki
Create a connection to a remote Fuseki server by URL. This is the URL for the dataset.A
RDFLinkFuseki
is anRDFLink
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:
- RDFLinkFuseki
-
connectFuseki
public static RDFLinkFuseki connectFuseki(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, 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:
- RDFLinkFuseki
-