java.lang.Object
org.apache.jena.rdflink.RDFLinkFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RDFLinkCreate a connection to a remote location by URL.static RDFLinkconnect(String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection specifying the URLs of the service.static RDFLinkconnect(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection to a remote location by URL.static RDFLinkconnect(org.apache.jena.sparql.core.DatasetGraph dataset) Connect to a local (same JVM) dataset.static RDFLinkConnect to a local (same JVM) dataset.static RDFLinkFusekiconnectFuseki(String destination) Create a connection to a remote Fuseki server by URL.static RDFLinkFusekiconnectFuseki(String datasetURL, String queryServiceEndpoint, String updateServiceEndpoint, String graphStoreProtocolEndpoint) Create a connection to a remote Fuseki server by URL.static RDFLinkHTTPBuildernewBuilder(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
Isolationare provided, The defaultCOPYlevel makes a localRDFLinkbehave 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:
- RDFLink
-
connectFuseki
Create a connection to a remote Fuseki server by URL. This is the URL for the dataset.A
RDFLinkFusekiis anRDFLinkthat:- 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
-