Package org.apache.marmotta.client.clients

Examples of org.apache.marmotta.client.clients.LDPathClient.evaluatePath()


    @Test
    public void testPath() throws Exception {
        LDPathClient client = new LDPathClient(config);
        try {
          List<RDFNode> result = client.evaluatePath("http://localhost:8080/Marmotta/resource/anna_schmidt", "foaf:knows / foaf:name");
          Assert.assertThat(result, CoreMatchers.<RDFNode> hasItem(hasProperty("content", equalTo("Sepp Huber"))));
        } catch (NotFoundException e) {
          Assert.fail(e.getMessage());
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.