parsing.rb revision 6116d75120b5db0bcbc4a11abed8d0254ec85b8e
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, File.dirname(xml_path), structure_only: structure_only)
# move generated file to destination
end
parse(structure_only: false)
end
parse(structure_only: true)
end
end