generate.rake revision 3c4b1bd39fa36d241f2ef0d6f7ebbf2a9a6f4d36
namespace :generate do
desc 'Import the categories for the ontologies'
task :categories => :environment do
Ontology.where("name ilike 'Domain_Fields_Core'").first.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