module RDF::JSON::Extensions::Transaction

RDF/JSON extensions for `RDF::Transaction`.

Public Instance Methods

to_rdf_json() click to toggle source

Returns the serialized RDF/JSON representation of this object.

@return [Hash]

# File lib/rdf/json/extensions.rb, line 137
def to_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,
  })
end