Package uk.org.ogsadai.client.toolkit

Examples of uk.org.ogsadai.client.toolkit.ServerProxy


        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
        // Execute.
        executeRequest(server, drer);
    }
View Full Code Here


    }
   
    public static DataRequestExecutionResource getDRER(String service)
    throws MalformedURLException
    {
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(service));
        DataRequestExecutionResource drer = 
            server.getDataRequestExecutionResource(
                        new ResourceID("DataRequestExecutionResource"));
        return drer;
    }
View Full Code Here

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        // Create the activities
        String SPARQLquery;
        // SPARQLquery = "PREFIX p: <http://dbpedia.org/property/>" +
View Full Code Here

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        StringBuffer inputPE = new StringBuffer();
        inputPE.append("dummyName7");
        inputPE.append(",dummyST2");
View Full Code Here

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://localhost:8081/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        DataRequestExecutionResource drer = serverProxy
                .getDataRequestExecutionResource(drerId);

        CreateDataSource createDataSource = new CreateDataSource();
        DeliverToRequestStatus deliverToRequestStatus = new DeliverToRequestStatus();
        deliverToRequestStatus.connectInput(createDataSource.getResultOutput());

        PipelineWorkflow createSourceWorkflow = new PipelineWorkflow();
        createSourceWorkflow.add(createDataSource);
        createSourceWorkflow.add(deliverToRequestStatus);

        drer.execute(createSourceWorkflow, RequestExecutionType.SYNCHRONOUS);

        ResourceID dataSourceID = createDataSource.nextResult();

        DataSourceResource dataSource = serverProxy
                .getDataSourceResource(dataSourceID);

        // String SPARQLquery = "PREFIX p: <http://dbpedia.org/property/> " +
        // "SELECT ?artist ?artwork ?museum ?director " +
        // "WHERE {" +
View Full Code Here

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
       
        for (int i=0; i<10; i++)
        {
            // Execute.
            executeRequest(server, drer);
View Full Code Here

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
       
        for (int i=0; i<10; i++)
        {
            executeRequest(server, drer);
        }
View Full Code Here

        if (drerIDStr == null)
        {
            drerIDStr = "DataRequestExecutionResource";
        }
        ResourceID drerID = new ResourceID(drerIDStr);
        ServerProxy server = new ServerProxy();
        server.setDefaultBaseServicesURL(new URL(url));
        // Get DRER
        DataRequestExecutionResource drer =
            server.getDataRequestExecutionResource(drerID);
       
        final int NUM_TESTS = 100;
        for (int i=0; i<NUM_TESTS; i++)
        {
            // Execute.
View Full Code Here

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        drer = serverProxy.getDataRequestExecutionResource(drerId);
    }
View Full Code Here

        URL serverBaseUrl;
        serverBaseUrl = new URL("http://127.0.0.1:5080/dai/services/");

        ResourceID drerId = new ResourceID("DataRequestExecutionResource");

        ServerProxy serverProxy = new ServerProxy();
        serverProxy.setDefaultBaseServicesURL(serverBaseUrl);

        drer = serverProxy.getDataRequestExecutionResource(drerId);
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.client.toolkit.ServerProxy

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.