Class RDFConnectionFactory


  • public class RDFConnectionFactory
    extends java.lang.Object
    • Method Summary

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

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

      • RDFConnectionFactory

        public RDFConnectionFactory()
    • 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"
        These are the default names in Fuseki Other names can be specified using 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 the datasetURL.
        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,
                                            Isolation isolation)
        Connect to a local (same JVM) dataset.

        Multiple levels of Isolation are provided, The default COPY level makes a local RDFConnection 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:
        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 RDFConnectionFuseki is an RDFConnection 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:
        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 the datasetURL.
        Parameters:
        datasetURL -
        queryServiceEndpoint -
        updateServiceEndpoint -
        graphStoreProtocolEndpoint -
        Returns:
        RDFConnectionFuseki