Skip to content

Commit a47ef46

Browse files
committed
Use RDF-star sense of Statement#eql? by comparing array values of statements using #eql? instead of #==.
1 parent 92dfc02 commit a47ef46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/model/statement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def node?
301301
# @see RDF::Literal#==
302302
# @see RDF::Query::Variable#==
303303
def eql?(other)
304-
other.is_a?(Statement) && self == other && (self.graph_name || false) == (other.graph_name || false)
304+
other.is_a?(Statement) && self.to_a.eql?(other.to_a) && (self.graph_name || false) == (other.graph_name || false)
305305
end
306306

307307
##

0 commit comments

Comments
 (0)