Method: RDF::Graph#==

Defined in:
lib/rdf/model/graph.rb

#==(other) ⇒ Boolean

Graph equivalence based on the contents of each graph being exactly the same. To determine if the have the same meaning, consider rdf-isomorphic.

Parameters:

Returns:

  • (Boolean)

See Also:



319
320
321
322
323
# File 'lib/rdf/model/graph.rb', line 319

def ==(other)
  other.is_a?(RDF::Graph) &&
  graph_name == other.graph_name &&
  statements.to_a == other.statements.to_a
end