Class RDFLinkFactory


  • public class RDFLinkFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RDFLinkFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RDFLink connect​(java.lang.String destination)
      Create a connection to a remote location by URL.
      static RDFLink connect​(java.lang.String queryServiceEndpoint, java.lang.String updateServiceEndpoint, java.lang.String graphStoreProtocolEndpoint)
      Create a connection specifying the URLs of the service.
      static RDFLink 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.
      static RDFLink connect​(DatasetGraph dataset)
      Connect to a local (same JVM) dataset.
      static RDFLink connect​(DatasetGraph dataset, Isolation isolation)
      Connect to a local (same JVM) dataset.
      static RDFLinkFuseki connectFuseki​(java.lang.String destination)
      Create a connection to a remote Fuseki server by URL.
      static RDFLinkFuseki 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.
      static RDFLinkHTTPBuilder newBuilder​(java.lang.String destination)
      Create a builder for a connection to a remote location by URL.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RDFLinkFactory

        public RDFLinkFactory()
    • Method Detail

      • connect

        public static RDFLink 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:
        RDFLink
      • newBuilder

        public static RDFLinkHTTPBuilder newBuilder​(java.lang.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:
        RDFLinkHTTPBuilder
      • connect

        public static RDFLink 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 the datasetURL.
        Parameters:
        datasetURL -
        queryServiceEndpoint -
        updateServiceEndpoint -
        graphStoreProtocolEndpoint -
        Returns:
        RDFLink
      • connect

        public static RDFLink connect​(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​(java.lang.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​(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 the datasetURL.
        Parameters:
        datasetURL -
        queryServiceEndpoint -
        updateServiceEndpoint -
        graphStoreProtocolEndpoint -
        Returns:
        RDFLinkFuseki