Interface Driver

    • Method Detail

      • connect

        Connection connect​(java.lang.String theURL,
                           Options theOptions)
                    throws StardogException
        Open a connection to the database
        Parameters:
        theURL - the URL of the database
        theOptions - any options needed for the connection, such as timeouts or username/pw
        Returns:
        the connection
        Throws:
        StardogException - if the driver is unable to establish the connection
      • connectAdmin

        AdminConnection connectAdmin​(java.lang.String theURL,
                                     Options theOptions)
                              throws StardogException,
                                     java.lang.UnsupportedOperationException
        [Optional] Creates an AdminConnection to the database if the underlying protocol supports admin operations.
        Parameters:
        theURL - the URL of the database
        theOptions - any options needed for the connection, such as timeouts or username/pw
        Returns:
        admin client
        Throws:
        StardogException - if the driver is unable to establish the connection
        java.lang.UnsupportedOperationException - if the driver does not support admin operations
      • getMajorVersion

        int getMajorVersion()
        Return the major version of this driver
        Returns:
        the major version
      • getMinorVersion

        int getMinorVersion()
        Return the minor version of this driver
        Returns:
        the minor version
      • acceptsURL

        boolean acceptsURL​(java.lang.String theURL)
        Whether or not this driver can provide a connection for the provided URL
        Parameters:
        theURL - the URL
        Returns:
        true if it can (potentially) connect to it, false otherwise