Skip to content

Commit

Permalink
update class name; add new umls submissions to the queue by default
Browse files Browse the repository at this point in the history
1. change class name to work with changes introduced in ontologies_api/issues/127
2. BioPortal backend is migrated from 4store to AllegroGraph so new umls
   submissions can be added without having to rebuild the whole 4store
   KB
  • Loading branch information
alexskr committed Jan 26, 2024
1 parent 7066b67 commit 4981167
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/create_umls_submissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
umls_files = Dir.glob(File.join(umls_files_path, "*.ttl"))

# UMLS Release Details. Update this for new release
new_version = "2018AB"
new_released = "2018-11-05" #Release date
new_version = "2023AB"
# Release date in YYYY-MM-DD format
new_released = "2023-11-06"

file_index = {}
umls_files.each do |x|
Expand Down Expand Up @@ -64,11 +65,11 @@
end
end
puts "#{new_submissions.length} new files mapped to ontologies"
pull = NcboCron::Models::OntologyPull.new
pull = NcboCron::Helpers::OntologyHelper
new_submissions.each_key do |acr|
ont, sub, file = new_submissions[acr]
filename = file.split("/")[-1]
pull.create_submission(ont,sub,file,filename,logger=nil,
add_to_pull=false,new_version,new_released)
add_to_pull=true,new_version,new_released)
puts "Created new submission for #{acr}"
end

0 comments on commit 4981167

Please sign in to comment.