*
*/
final class DSOtoOBO {
public static OBOOntology readDSO() throws Exception {
ResourceGetter rg = new ResourceGetter("uk/ac/cam/ch/wwmm/oscar3/terms/resources/");
String parentID = null;
//Map<String,OntologyTerm> termsByID = new HashMap<String,OntologyTerm>();
OBOOntology oo = new OBOOntology();
int id = 0;
for(String string : rg.getStrings("ptcontology.dso")) {
if(string.matches("\\[.*\\]")) {
id++;
String termID = "PTCO:" + padInt(id, 6);
String name = string.substring(1, string.length()-1);
oo.addTerm(new OntologyTerm(termID, name));