lib/rdf/normalize/urdna2015.rb in rdf-normalize-0.3.0 vs lib/rdf/normalize/urdna2015.rb in rdf-normalize-0.3.1

- old
+ new

@@ -218,11 +218,11 @@ Digest::SHA256.hexdigest(val) end # Group adjacent bnodes by hash def hash_related_statement(identifier, statement, issuer, map) - statement.to_hash(:s, :p, :o, :g).each do |pos, term| + statement.to_h(:s, :p, :o, :g).each do |pos, term| next if !term.is_a?(RDF::Node) || term == identifier hash = log_depth {hash_related_node(term, statement, issuer, pos)} map[hash] ||= [] map[hash] << term unless map[hash].include?(term) @@ -258,6 +258,6 @@ other.instance_variable_set(:@issued, @issued.dup) other end end end -end \ No newline at end of file +end