ChEBI Ontology | Auto description for some molecules.
Checking the old code for the generation of the ChEBI.owl
file, we realized that there are some compounds' descriptions auto-generated taking into account the formula and the immediate is-a parent. This is just a fragment of the function writeDefinition()
in the OBOExporter.java
file:
if (!StringUtil.isNullOrEmpty(formula) && !StringUtil.isNullOrEmpty(isAParentS)) {
String def = null;
if (isAParentS.equals(compound.getAsciiName())) {
def = "A member of the " + isAParentP + " that has formula " + formula + ".";
} else {
def = getArticle(isAParentS) + isAParentS + " that has formula " + formula + ".";
}
}