symbol_factory.rb revision 75353b1be0864afe3b21266d53c7c6428c5b57dd
sequence :symbol_text do |n|
"http://host/ontology/#{n}"
end
sequence :symbol_kind do |n|
"Kind#{n}"
end
sequence :symbol_owl2_text do |n|
"Class <http://example.com/resource##{n}>"
end
sequence :symbol_owl2_name do |n|
"<http://example.com/resource##{n}>"
end
name { FactoryGirl.generate :name }
symbol.locid = "#{symbol.ontology.locid}//#{symbol.name}"
end
factory :symbol_owl2 do
end
e.ontology.versions << version
e.ontology.save
end
end
end
end