generate.rake revision 291d5c781e5ce4a7c15cfb16fa4a800177135b3e
namespace :generate do
desc 'Import the categories for the ontologies'
task :categories => :environment do
Ontology.find_by_name('Domain_fields_core').create_categories
end
desc 'Generate entity trees for ALL OWL ontologies'
task :owl_ontology_class_hierarchies => :environment do
logics = Logic.where(name: ["OWL2", "OWL"])
ontologies = Ontology.where(logic_id: logics)
ontologies.each do |ontology|
begin
rescue StandardError => e
puts "Could not create entity tree for: #{ontology.name} (#{ontology.id})"
end
end
end
desc 'Import the values for metadata'
task :metadata => :environment do
end
end