@Override public void clear() { this.getRootContextNode(false).clear(); }
public void testReadJson() throws Exception { Graph graph3 = this.getGraphFactory().openGraph(this.getClass().getName() + "-graph-3"); XDIReader reader = XDIReaderRegistry.forFormat("XDI/JSON", null); reader.read(graph3, AbstractGraphTest.class.getResourceAsStream("test.json")).close(); testGraph(graph3); graph3.getRootContextNode().clear(); assertTrue(graph3.isEmpty()); graph3.close(); }
CopyUtil.copyContextNodeContents(refRepTargetContextNode, tempContextNode, null); refRepTargetContextNode.clear(); deleteWhileEmptyAndNoIncomingRelations(refRepTargetContextNode);