#!/usr/bin/perl
while(<>) {
    if (/^\[Typedef/) {
        last;
    }

    print;
    if (m@^remark:@) {
        pimport('ro_import');
        pimport('ro_pending');
        pimport('chebi_import');
        pimport('po_import');
        pimport('ncbitaxon_import');
        pimport('pato_import');
        pimport('cl_import');
    }
}
exit 0;
sub pimport {
    print "import: http://purl.obolibrary.org/obo/go/extensions/@_.owl\n";
}
