Package org.apache.marmotta.client.clients

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


        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());
        Assert.assertEquals("Test Data", m.getFirst("http://example.com/resource/p1").toString());

        resourceClient.deleteResource("http://example.com/resource/r1");
    }
View Full Code Here


     * updating and retrieving the metadata and content of resources.
     *
     * @return
     */
    public ResourceClient getResourceClient() {
        return new ResourceClient(config);
    }
View Full Code Here

     * updating and retrieving the metadata and content of resources.
     *
     * @return
     */
    public ResourceClient getResourceClient() {
        return new ResourceClient(config);
    }
View Full Code Here

TOP

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

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.