Class RDFConnectionFactory


  • @Deprecated
    public class RDFConnectionFactory
    extends java.lang.Object
    Deprecated.
    See individual static methods for replacements.
    Factory for RDF connections, both local and remote.

    Applications should use RDFConnection#connect(Dataset) or RDFConnection#connect(URL) for most cases and RDFConnectionRemote.service(java.lang.String) for detailed setup of an HTTP connection to remote SPARQL endpoints.

    For complex remote (HTTP) connections, see RDFConnectionRemote.newBuilder() for detailed control. This class provides only some common cases.

    • Constructor Detail

      • RDFConnectionFactory

        public RDFConnectionFactory()
        Deprecated.
    • Method Detail

      • connect

        @Deprecated
        public static RDFConnection connect​(java.lang.String queryServiceEndpoint,
                                            java.lang.String updateServiceEndpoint,
                                            java.lang.String graphStoreProtocolEndpoint)
        Deprecated.
        Use RDFConnectionRemote.service(java.lang.String) and set the endpoints.
         RDFConnectionRemote.newBuilder()
               .queryEndpoint(queryServiceEndpoint)
               .updateEndpoint(updateServiceEndpoint)
               .gspEndpoint(graphStoreProtocolEndpoint)
               .build();
         
        Create a connection specifying the URLs of the service.

        A common setup used by Fuseki is:

        • 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:
        queryServiceEndpoint -
        updateServiceEndpoint -
        graphStoreProtocolEndpoint -
        Returns:
        RDFConnection
      • connect

        @Deprecated
        public static RDFConnection connect​(java.lang.String datasetURL,
                                            java.lang.String queryServiceEndpoint,
                                            java.lang.String updateServiceEndpoint,
                                            java.lang.String graphStoreProtocolEndpoint)
        Deprecated.
        Use RDFConnectionRemote.service(java.lang.String) and set the endpoints.
         RDFConnectionRemote.service(datasetURL)
                .queryEndpoint(queryServiceEndpoint)
                .updateEndpoint(updateServiceEndpoint)
                .gspEndpoint(graphStoreProtocolEndpoint)
                .build();
         
        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

        @Deprecated
        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

        @Deprecated
        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 connection. 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

        @Deprecated
        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