Gravar-mail: Automated compound classification using a chemical ontology