entities.rb revision 9f71e4e1c9cab7485784b2b0bb7d1402ae1e4d14
included do
autosave: false,
end
e.range = hash['range']
Rails.logger.warn "Using work-around to determine entity name and kind: #{e.inspect}"
else
e.kind = 'Undefined'
end
else
e.name = hash['name']
e.kind = hash['kind']
end
e.iri = hash['iri']
# remove path from range
end
end
end
end
end
# Delete previous set of categories
subclasses = self.sentences.where("text LIKE '%SubClassOf%'").select { |sentence| sentence.text.split(" ").size == 4 }
transaction requires_new: true do
subclasses.each do |s|
end
end
end
end
end
end