Open petasis opened 6 years ago
I don't know ruby, but I modified default_cell_mapping.rb to:
def self.uri_normalization(string)
if string.is_a? Numeric then
string = string.to_i.to_s
end
string
.gsub(' - ', '-')
.gsub('- ', '-')
.gsub(', ', '-')
.gsub(' ', '_')
end
If a subject column is a number, an error is raised: pread2rdf/mapping/default_cell_mappings.rb:19:in
uri_normalization': undefined method
gsub' for 5003270.0:Float (NoMethodError)A check should be added to convert value into a string, if it is not a string.