Skip to content

Commit

Permalink
implemented a fix for ncbo/ontologies_linked_data#219 - ontology proc…
Browse files Browse the repository at this point in the history
…essing errors
  • Loading branch information
mdorf committed Nov 13, 2024
1 parent 567c466 commit 3572185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/goo/base/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ def self.map_attributes(inst,equivalent_predicates=nil, include_languages: false
if object.is_a?(Hash)
object = object.transform_values{|values| Array(values).map{|o|o.is_a?(RDF::URI) ? o : o.object}}
else
object = object.map {|o| o.is_a?(RDF::URI) ? o : o.object}
object = Array(object).map {|o| o.is_a?(RDF::URI) ? o : o.object}
end

if klass.range(attr)
object = object.map { |o|
object = Array(object).map { |o|
o.is_a?(RDF::URI) ? klass.range_object(attr,o) : o }
end

Expand Down

0 comments on commit 3572185

Please sign in to comment.