@Override @Deprecated public void add( Triple [] triples ) { base.add( triples ); manager.notifyAddArray( graph, triples ); }
@Override @Deprecated public void delete( Triple[] triples ) { base.delete( triples ); manager.notifyDeleteArray( graph, triples ); }
@Override @Deprecated public void removeAll() { base.removeAll(); manager.notifyEvent( graph, GraphEvents.removeAll ); }
@Override @Deprecated public void remove( Node s, Node p, Node o ) { base.remove( s, p, o ); manager.notifyEvent( graph, GraphEvents.remove( s, p, o ) ); }
@Override @Deprecated public void add( Graph g, boolean withReifications ) { base.add( g, withReifications ); manager.notifyAddGraph( graph, g ); }
protected void execDropClear(UpdateDropClear update, Node g, boolean isClear) { if ( ! alwaysSilent ) { if ( g != null && ! graphStore.containsGraph(g) && ! update.isSilent()) error("No such graph: "+g) ; } if ( isClear ) graph(graphStore, g).getBulkUpdateHandler().removeAll() ; else graphStore.removeGraph(g) ; }
@Override @Deprecated public void delete( Graph g ) { base.delete( g ); manager.notifyDeleteGraph( graph, g ); }
@Override @Deprecated public void add( Graph g ) { base.add( g ); manager.notifyAddGraph( graph, g ); }
protected static void gsDrop(GraphStore gStore, Target target, boolean isSilent) { if ( target.isDefault() ) gStore.getDefaultGraph().getBulkUpdateHandler().removeAll() ; else gStore.removeGraph(target.getGraph()) ; }
@Override @Deprecated public void delete( Graph g, boolean withReifications ) { base.delete( g, withReifications ); manager.notifyDeleteGraph( graph, g ); }
@Override @Deprecated public void add( List<Triple> triples ) { base.add( triples ); manager.notifyAddList( graph, triples ); }
@Before public void before() { graph.getBulkUpdateHandler().removeAll() ; }
@Override @Deprecated public void delete( List<Triple> triples ) { base.delete( triples ); manager.notifyDeleteList( graph, triples ); }
@Override @Deprecated public void add( Iterator<Triple> it ) { List<Triple> s = IteratorCollection.iteratorToList( it ); base.add( s ); manager.notifyAddIterator( graph, s ); }
protected static void gsClear(GraphStore gStore, Target target, boolean isSilent) { // No create. Graph g = graph(gStore, target) ; if ( target.isOneNamedGraph() ) { if ( !gStore.containsGraph(target.getGraph()) ) { if ( ! isSilent ) error("No such graph: "+g) ; return ; } } g.getBulkUpdateHandler().removeAll() ; }
@Override @Deprecated public void delete( Iterator<Triple> it ) { List<Triple> s = IteratorCollection.iteratorToList( it ); base.delete( s ); manager.notifyDeleteIterator( graph, s ); }
@Override public void addGraph(Node graphName, Graph graph) { removeGraph(graphName) ; getGraph(graphName).getBulkUpdateHandler().add(graph) ; }
@Test public void dataset3() { Dataset ds = graphLocation.getDataset() ; Graph g1 = ds.getDefaultModel().getGraph() ; // Sometimes, under windows, deleting the files by // graphLocation.clearDirectory does not work. // Needed for safe tests on windows. g1.getBulkUpdateHandler().removeAll() ; Graph g2 = ds.getNamedModel("http://example/").getGraph() ; g2.add(new Triple(n0,n1,n2) ) ; assertTrue(g2.contains(n0,n1,n2) ) ; assertFalse(g1.contains(n0,n1,n2) ) ; }