Class RDFLinkFactory

java.lang.Object
org.apache.jena.rdflink.RDFLinkFactory

public class RDFLinkFactory extends Object
  • Constructor Details

    • RDFLinkFactory

      public RDFLinkFactory()
  • Method Details

    • connect

      public static RDFLink connect(String destination)
      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 using connect(String, String, String, String) or RDFLinkHTTPBuilder.
      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

      public static RDFLinkHTTPBuilder newBuilder(String destination)
      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 the datasetURL.
      Parameters:
      datasetURL -
      queryServiceEndpoint -
      updateServiceEndpoint -
      graphStoreProtocolEndpoint -
      Returns:
      RDFLink
    • connect

      public static RDFLink connect(org.apache.jena.sparql.core.DatasetGraph dataset)
      Connect to a local (same JVM) dataset. The default isolation is NONE. See connect(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 default COPY level makes a local RDFLink behave like a remote conenction. See the documentation for more details.

      • COPYModels and Datasets 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 returned Models or Datasets act on the original object.
      Parameters:
      dataset -
      isolation -
      Returns:
      RDFLink
    • connectFuseki

      public static RDFLinkFuseki connectFuseki(String destination)
      Create a connection to a remote Fuseki server by URL. This is the URL for the dataset.

      A RDFLinkFuseki is an RDFLink that:

      • provides round-trip of blank nodes between this application and the server
      • uses the more efficient RDF Thrift binary format.
      This factory call assumes the names of services as:
      • SPARQL Query endpoint : "sparql"
      • SPARQL Update endpoint : "update"
      • SPARQL Graph Store Protocol : "data"
      These are the default names in Fuseki Other names can be specified using 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 the datasetURL.
      Parameters:
      datasetURL -
      queryServiceEndpoint -
      updateServiceEndpoint -
      graphStoreProtocolEndpoint -
      Returns:
      RDFLinkFuseki