Codota Logo
BulkUpdateHandler
Code IndexAdd Codota to your IDE (free)

How to use
BulkUpdateHandler
in
com.hp.hpl.jena.graph

Best Java code snippets using com.hp.hpl.jena.graph.BulkUpdateHandler (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void add( Triple [] triples )
  {
  base.add( triples );
  manager.notifyAddArray( graph, triples );
  }

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void delete( Triple[] triples )
  {
  base.delete( triples );
  manager.notifyDeleteArray( graph, triples );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void removeAll()
  {
  base.removeAll();
  manager.notifyEvent( graph, GraphEvents.removeAll );
  }
origin: com.hp.hpl.jena/tdb

@Test public void update2()
{
  Graph g = create() ;
  g.getBulkUpdateHandler().add(new Triple[]{t1}) ;
  assertTrue(g.contains(t1)) ;
  g.getBulkUpdateHandler().removeAll() ;
  assertFalse(g.contains(t1)) ;
}
origin: com.hp.hpl.jena/tdb

@Test public void update1()
{
  Graph g = create() ;
  g.getBulkUpdateHandler().add(new Triple[]{t1}) ;
  assertTrue(g.contains(t1)) ;
  g.getBulkUpdateHandler().delete(new Triple[]{t1}) ;
  assertFalse(g.contains(t1)) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void remove( Node s, Node p, Node o )
  {
  base.remove( s, p, o );
  manager.notifyEvent( graph, GraphEvents.remove( s, p, o ) );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void add( Graph g )
  {
  base.add( g );
  manager.notifyAddGraph( graph, g );
  }
origin: com.hp.hpl.jena/arq

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) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void delete( Graph g, boolean withReifications )
  {
  base.delete( g, withReifications );
  manager.notifyDeleteGraph( graph, g );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void add( Graph g, boolean withReifications )
  {
  base.add( g, withReifications );
  manager.notifyAddGraph( graph, g );
  }

origin: com.hp.hpl.jena/arq

protected static void gsDrop(GraphStore gStore, Target target, boolean isSilent)
{
  if ( target.isDefault() )
    gStore.getDefaultGraph().getBulkUpdateHandler().removeAll() ;
  else
    gStore.removeGraph(target.getGraph()) ;
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void delete( Graph g )
  {
  base.delete( g );
  manager.notifyDeleteGraph( graph, g );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void add( List<Triple> triples )
  {
  base.add( triples );
  manager.notifyAddList( graph, triples );
  }
origin: com.hp.hpl.jena/tdb

@Before public void before()
{ 
  graph.getBulkUpdateHandler().removeAll() ;
}
     
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void delete( List<Triple> triples )
  {
  base.delete( triples );
  manager.notifyDeleteList( graph, triples );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void add( Iterator<Triple> it )
  {
  List<Triple> s = IteratorCollection.iteratorToList( it );
  base.add( s );
  manager.notifyAddIterator( graph, s );
  }
origin: com.hp.hpl.jena/arq

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() ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void delete( Iterator<Triple> it )
  {
  List<Triple> s = IteratorCollection.iteratorToList( it );
  base.delete( s );
  manager.notifyDeleteIterator( graph, s );
  }
origin: com.hp.hpl.jena/arq

@Override
public void addGraph(Node graphName, Graph graph)
{
  removeGraph(graphName) ;
  getGraph(graphName).getBulkUpdateHandler().add(graph) ;
}
 
origin: com.hp.hpl.jena/tdb

@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) ) ;
}
com.hp.hpl.jena.graphBulkUpdateHandler

Javadoc

Defines how bulk update may be done on Graphs.

Bulk updates are not necessarily transactions; that is, a bulk update may fail part-way through, leaving some but not all triples added or deleted. However, if a bulk update does not fail (ie throw an exception) then the addition or removal of triples must have been successfully completed in accordance with the operation of the owning graph.

Most used methods

  • add
    Add all the triples into the graph this is handler for.
  • delete
    Delete all the triples from the graph this is handler for.
  • removeAll
    Remove all the statements from a graph.
  • remove
    Remove all triples that would be delivered by find(s, p, o)

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setContentView (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Reference (javax.naming)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now