module RDF::Transactable

A transaction application mixin.

Classes that include this module must provide a ‘#begin_transaction` method returning an {RDF::Transaction}.

@example running a read/write transaction with block syntax

repository = RDF::Repository.new # or other transactable

repository.transaction(mutable: true) do |tx|
  tx.insert [:node, RDF.type, RDF::OWL.Thing]
  # ...
end

@see RDF::Transaction @since 2.0.0