implement a script for cutting an ontology into a profile