BioJava:CookBook:OBO:parse

How to parse an Ontology (OBO) file

BioJava now contains a parser for .OBO
files. The BioJava
parser is re-using parts of the parser contained in the OBO-Edit
software package,but
does not require to have the obo-edit library and user interface
installed in order to parse the files. Thanks to the OBO-Edit developers
for giving permission to re-use part of their source code.

This code will be released with the next biojava release. To use it at
the moment you will require a recent build from
SVN.