194195196197198199200
{ Model m = ModelFactory.createDefaultModel() ; m.read(new StringReader(str), null, "TTL") ; Graph graph = m.getGraph() ; Triple t = graph.find(r, p, Node.ANY).next() ; return new GNode(graph, t.getObject()) ; }
171172173174175176
assertEquals(node1, GraphList.get(list22, 2)) ; assertEquals(node2, GraphList.get(list22, 3)) ; } // -------- private static GNode gnode(Node n) { return new GNode(Factory.createDefaultGraph(), n) ; }
179180181182183184185