# File lib/rdf/redland/parser.rb, line 165 def smush_string(string,model,idents=@idents) to_change = {} temp_model = Model.new() self.parse_string_into_model(temp_model,string,'http://xml.com') idents.each do |ident| temp_model.find(nil,ident,nil){|s,p,o| old_id = s new_id = model.subject(p,o) if new_id to_change[old_id.to_s]= new_id if !to_change.key?(old_id.to_s) end } end #puts to_change temp_model.triples do |s,p,o| s = to_change[s.to_s] if to_change.key?(s.to_s) model.add(s,p,o) end end