GraphView extends GraphBase implements NamedGraph, Sync { @Override public TransactionHandler getTransactionHandler() { return new TransactionHandlerView(dsg); } protected  GraphView(DatasetGraph dsg, Node gn); static GraphView createDefaultGraph(DatasetGraph dsg); static GraphView createNamedGraph(DatasetGraph dsg, Node graphIRI); static GraphView createUnionGraph(DatasetGraph dsg); @Override Node getGraphName(); DatasetGraph getDataset(); @Override void performAdd( Triple t ); @Override void performDelete( Triple t ); @Override void remove(Node s, Node p, Node o); @Override void sync(); @Override TransactionHandler getTransactionHandler(); @Override Capabilities getCapabilities();  }
@Test public void graphDSG_view_txn_1() { DatasetGraph dsg = DatasetGraphFactory.createTxnMem(); Graph graph = dsg.getDefaultGraph(); assertTrue(graph instanceof GraphView); assertTrue(graph.getTransactionHandler().transactionsSupported()); }
@Test public void graphDSG_view_txn_3() { DatasetGraph dsg = DatasetGraphFactory.createTxnMem(); Graph graph = dsg.getDefaultGraph(); Triple triple = SSE.parseTriple("(<s> <p> 0)") ; assertFalse(graph.contains(triple)); graph.getTransactionHandler().execute(()->graph.add(triple) ); graph.getTransactionHandler().execute(()->assertTrue(graph.contains(triple)) ); }