lib/rdfbus/transaction.rb
##
# Returns the JSON representation of this transaction.
#
# @return [Hash]
Returns the JSON representation of this transaction.
Returns the JSON representation of this transaction .
def to_json
      require 'rdf/json' unless defined?(RDF::JSON)
      json = options.dup.to_hash rescue {}
      json.merge!({
        :graph  => graph ? graph.to_uri.to_s : nil,
        :delete => deletes.to_rdf_json,
        :insert => inserts.to_rdf_json,
      })
      json.to_json
    end
def to_json require 'rdf/json' unless defined? ( RDF :: JSON ) json = options . dup . to_hash rescue { } json . merge! ( { :graph => graph ? graph . to_uri . to_s : nil , :delete => deletes . to_rdf_json , :insert => inserts . to_rdf_json , } ) json . to_json end
Returns the JSON representation of this transaction.
Returns the JSON representation of this transaction .
None
Hash