Package org.apache.marmotta.client.clients

Examples of org.apache.marmotta.client.clients.ImportClient




    @Test
    public void testUpload() throws IOException, MarmottaClientException {
        ImportClient client = new ImportClient(config);

        String data = "<http://example.com/resource/r1> <http://example.com/resource/p1> \"Test Data\".";
        client.uploadDataset(data,"text/rdf+n3");

        ResourceClient resourceClient = new ResourceClient(config);
        Metadata m = resourceClient.getResourceMetadata("http://example.com/resource/r1");
        Assert.assertNotNull(m);
        Assert.assertEquals(1,m.size());
View Full Code Here


    /**
     * Return a client that allows importing of datasets and ontologies on the Marmotta Server.
     * @return
     */
    public ImportClient getImportClient() {
        return new ImportClient(config);
    }
View Full Code Here

    /**
     * Return a client that allows importing of datasets and ontologies on the Marmotta Server.
     * @return
     */
    public ImportClient getImportClient() {
        return new ImportClient(config);
    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.client.clients.ImportClient

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.