categories.rb revision 44a2389f574f4adfe012ecb9639a428f1804e420
included do
end
if self.logic.name != 'OWL2' then
end
# Delete previous set of categories
classes.each do |c|
Category.create!(:name => c.display_name || c.name)
end
subclasses.each do |s|
CEdge.create!(:child_id => Category.find_by_name(c1).id, :parent_id => Category.find_by_name(c2).id)
end
end
end