lib/rdfbus/transaction.rb
##
# Executes this transaction against the given RDF repository.
#
# @param  [RDF::Repository]         repository
# @param  [Hash{Symbol => Object}]  options
# @return [void]
Executes this transaction against the given RDF repository.
Executes this transaction against the given RDF repository .
def execute(repository, options = {})
      before_execute(repository, options) if respond_to?(:before_execute)
      deletes.each_statement do |statement|
        statement = statement.dup
        statement.context = graph
        repository.delete(statement)
      end
      inserts.each_statement do |statement|
        statement = statement.dup
        statement.context = graph
        repository.insert(statement)
      end
      after_execute(repository, options) if respond_to?(:after_execute)
      nil
    end
def execute ( repository , options = { } ) before_execute ( repository , options ) if respond_to? ( :before_execute ) deletes . each_statement do | statement | statement = statement . dup statement . context = graph repository . delete ( statement ) end inserts . each_statement do | statement | statement = statement . dup statement . context = graph repository . insert ( statement ) end after_execute ( repository , options ) if respond_to? ( :after_execute ) nil end
Executes this transaction against the given RDF repository.
Executes this transaction against the given RDF repository .
None
void
repository
<not_specific>
options
<not_specific>
<not_specific>
None