Package com.hp.hpl.jena.gvs.impl

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl.filter()


  public void testFilter() {
    Model model = ModelFactory.createDefaultModel();
    model.read(getClass().getResource("filter-test.n3").toString(),
        "N3");
    FCAGraph fcaGraph = new FCAGraphImpl(model);
    FCAGraph subGraph = fcaGraph.filter(Collections.singleton((GroundedNode)new NamedNodeImpl("mailto:test@example.org")));
    assertEquals(3, subGraph.size());
    FCAGraph subGraph2 = fcaGraph.filter(Collections.singleton((GroundedNode)new NamedNodeImpl("http://example.org/foo")));
    assertEquals(3, subGraph2.size());
    //ModelFactory.createModelForGraph(subGraph2).write(System.out);
  }
View Full Code Here


    model.read(getClass().getResource("filter-test.n3").toString(),
        "N3");
    FCAGraph fcaGraph = new FCAGraphImpl(model);
    FCAGraph subGraph = fcaGraph.filter(Collections.singleton((GroundedNode)new NamedNodeImpl("mailto:test@example.org")));
    assertEquals(3, subGraph.size());
    FCAGraph subGraph2 = fcaGraph.filter(Collections.singleton((GroundedNode)new NamedNodeImpl("http://example.org/foo")));
    assertEquals(3, subGraph2.size());
    //ModelFactory.createModelForGraph(subGraph2).write(System.out);
  }

}
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.