Package org.apache.jena.jdbc.remote.connections

Examples of org.apache.jena.jdbc.remote.connections.RemoteEndpointConnection


     * @throws SQLException
     */
    protected RemoteEndpointConnection openConnection(String queryEndpoint, String updateEndpoint, List<String> defaultGraphs,
            List<String> namedGraphs, List<String> usingGraphs, List<String> usingNamedGraphs, HttpAuthenticator authenticator,
            int holdability, int compatibilityLevel, String selectResultsType, String modelResultsType) throws SQLException {
        return new RemoteEndpointConnection(queryEndpoint, updateEndpoint, defaultGraphs, namedGraphs, usingGraphs,
                usingNamedGraphs, authenticator, holdability, compatibilityLevel, selectResultsType, modelResultsType);
    }
View Full Code Here


        conf.authConfigFile = realmFile.getAbsolutePath();

        server = new SPARQLServer(conf);
        server.start();

        connection = new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, null, null, null, null,
                authenticator, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT, null, null);
        connection.setJdbcCompatibilityLevel(JdbcCompatibility.HIGH);
    }
View Full Code Here

     */
    @BeforeClass
    public static void setup() throws SQLException {
      ServerTest.allocServer();
       
        connection = new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT);
        connection.setJdbcCompatibilityLevel(JdbcCompatibility.HIGH);
    }
View Full Code Here

    public static void setup() throws SQLException {
        ServerTest.allocServer();
       
        List<String> defaultGraphUris = new ArrayList<String>();
        defaultGraphUris.add(DEFAULT_GRAPH_URI);
        connection = new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, defaultGraphUris, null, defaultGraphUris, null, null, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT, null, null);
        connection.setJdbcCompatibilityLevel(JdbcCompatibility.HIGH);
    }
View Full Code Here

        ServerTest.freeServer();
    }

    @Override
    protected JenaConnection getConnection() throws SQLException {
        return new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT);
    }
View Full Code Here

    @Override
    protected JenaConnection getConnection() throws SQLException {
        List<String> defaultGraphs = new ArrayList<String>();
        defaultGraphs.add(DEFAULT_GRAPH_URI);
        return new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, defaultGraphs, null,
                defaultGraphs, null, null, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT, null, null);
    }
View Full Code Here

        // Set up the dataset
        ds = TestUtils.renameGraph(ds, null, DEFAULT_GRAPH_URI);
        Assert.assertEquals(0, ds.getDefaultModel().size());
        TestUtils.copyToRemoteDataset(ds, ServerTest.serviceREST);
        return new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, defaultGraphs, namedGraphs,
                defaultGraphs, namedGraphs, null, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT, null, null);
    }
View Full Code Here

    @Test
    public void remote_driver_graph_uris_01() throws SQLException {
        // May specify key=value pairs multiple times
        String url = JenaDriver.DRIVER_PREFIX + RemoteEndpointDriver.REMOTE_DRIVER_PREFIX + RemoteEndpointDriver.PARAM_QUERY_ENDPOINT + "=http://example.org/query&" + RemoteEndpointDriver.PARAM_DEFAULT_GRAPH_URI + "=http://graph/1&" + RemoteEndpointDriver.PARAM_DEFAULT_GRAPH_URI + "=http://graph/2";
        RemoteEndpointDriver driver = (RemoteEndpointDriver)this.getDriver();
        RemoteEndpointConnection conn = (RemoteEndpointConnection) driver.connect(url, new Properties());
       
        Assert.assertEquals(2, conn.getDefaultGraphURIs().size());
        conn.close();
    }
View Full Code Here

        ServerTest.freeServer();
    }

    @Override
    protected JenaConnection getConnection() throws SQLException {
        return new RemoteEndpointConnection(ServerTest.serviceQuery, ServerTest.serviceUpdate, JenaConnection.DEFAULT_HOLDABILITY, JdbcCompatibility.DEFAULT);
    }
View Full Code Here

    @Test
    public void remote_driver_graph_uris_02() throws SQLException {
        // May specify key=value,value as comma separated list
        String url = JenaDriver.DRIVER_PREFIX + RemoteEndpointDriver.REMOTE_DRIVER_PREFIX + RemoteEndpointDriver.PARAM_QUERY_ENDPOINT + "=http://example.org/query&" + RemoteEndpointDriver.PARAM_DEFAULT_GRAPH_URI + "=http://graph/1,http://graph/2";
        RemoteEndpointDriver driver = (RemoteEndpointDriver)this.getDriver();
        RemoteEndpointConnection conn = (RemoteEndpointConnection) driver.connect(url, new Properties());
       
        Assert.assertEquals(2, conn.getDefaultGraphURIs().size());
        conn.close();
    }
View Full Code Here

TOP

Related Classes of org.apache.jena.jdbc.remote.connections.RemoteEndpointConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.