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);
}