Examples of evaluatePath()


Examples of fr.inria.jfresnel.fsl.sesame.FSLSesameEvaluator.evaluatePath()

    SesameLens sl = (SesameLens)renderLens;
    FSLSesameEvaluator fse = new FSLSesameEvaluator();
    fse.setDataRepository(dataRepo);
    for (int i = 0; i < fid.length; i++)
    {
      Vector pathInstances = fse.evaluatePath(fid[i]);
      for (int k=0; k<pathInstances.size(); k++) {
      Object end = ((Vector)pathInstances.get(k)).get(0);
      if (end instanceof Resource)
      {
        Resource r = (Resource)end;
View Full Code Here

Examples of fr.inria.jfresnel.fsl.sesame.FSLSesameEvaluator.evaluatePath()

      FSLSesameEvaluator fse = new FSLSesameEvaluator();
      fse.setDataRepository(dataRepo);
      for (int i = 0; i < fid.length; i++)
      {
        //resources ++;
        Vector pathInstances = fse.evaluatePath(fid[i]);
        for (int k=0; k<pathInstances.size(); k++) {
        Object end = ((Vector)pathInstances.get(k)).get(0);
       
        if (end instanceof Resource)
        {
View Full Code Here

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.