An ontology similarity algorithm for BioAgent