generate.rake revision b294e7abde7c68671d65fb95d5f03616fb2684ad
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
end