JenaUtil.getModelFromGraph(graphR).write(System.out);
}
public void testPartialFGNodeRevoke2() throws Exception {
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
ToyClock clock = new ToyClock();
Store store = getStoreImpl(clock);
Model model1 = modelWithStatements("_a dc:subject 'sub1'; _a dc:subject 'hello'; _a http://xmlns.com/foaf/0.1/mbox_sha1sum '49f9f8e38c3144e19e09c3e5fa10170242d1360f'");
Model model1b = modelWithStatements("_a http://xmlns.com/foaf/0.1/mbox \"foo\"; _a http://xmlns.com/foaf/0.1/mbox_sha1sum '49f9f8e38c3144e19e09c3e5fa10170242d1360f'");
Model model2 = modelWithStatements("_a dc:subject 'hello'; _a http://xmlns.com/foaf/0.1/mbox_sha1sum '49f9f8e38c3144e19e09c3e5fa10170242d1360f'");
Date date1 = dateFormat.parse("20050607");
Date date1b = dateFormat.parse("20050608");
Date date2 = dateFormat.parse("20060912");
FCAGraph graph1 = new FCAGraphImpl(model1);
FCAGraph graph1b = new FCAGraphImpl(model1b);
FCAGraph graph2 = new FCAGraphImpl(model2);
Source source = new SourceImpl("http://example.org/graph-source");
clock.setTime(date1);
store.updateGraph(source, graph1);
clock.setTime(date1b);
store.assertGraph(source, graph1b);
store = reGetStoreImpl();
clock.setTime(date2);
store.revokeGraph(source, graph2);
FCAGraph graphR = store.getGraphOverTime(Collections.singleton(source)).getGraph(dateFormat.parse("20060913"));
//no exception retrieving graph containing fg-node that doesn't exist the same way as wehn stuff was added
assertTrue(true);
JenaUtil.getModelFromGraph(graphR).write(System.out);