Problem: I have to get the object that displays the content in the English language (lang == en)
But depending on the search the order of the languages comes completely different and I tried to create a loop obj.take['http://dbpedia.org/resource/HTML']['http://www.w3.org/2000/01/rdf-schema#comment'].each
where in the scope of this iteration I did a string comparison to obtain the content in the English language, but several problems arose and even trying other methods that I read on Stack En I could not, so I would be very grateful for an explanation. (I get too lost to handle json)
obj.take['http://dbpedia.org/resource/HTML']['http://www.w3.org/2000/01/rdf-schema#comment'].each do |i|
# Obj contém todo o arquivo json que está representado na imagem
# if ... aqui
# obj.take['http://dbpedia.org/resource/HTML']['http://www.w3.org/2000/01/rdf-schema#comment'][]['value']
end