parsing.rb revision 65d4e43fbd340cbee0cef7010833b287adc5cc84
included do
@queue = 'hets'
end
@deactivate_parsing = true
end
if !@deactivate_parsing
if @fast_parse
else
end
end
end
# do_or_set_failed do
# condition = ['checksum = ? and id != ?', self.checksum, self.id]
# if OntologyVersion.where(condition).any?
# raise Exception.new('Another file with same checksum already exists.')
# end
# end
# run hets if necessary
# Import version
update_state! :done
end
end
# generate XML by passing the raw ontology to Hets
paths = Hets.parse(raw_path!, ontology.repository.url_maps, xml_dir, structure_only: structure_only)
set_pp_xml_name(paths, perform_save: false)
# move generated file to destination
end
parse(structure_only: false)
end
parse(structure_only: true)
end
if paths.size > 1
save! if perform_save
end
end
save! if perform_save
end
end