Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C Chebi Ontology Generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ChEMBLChEMBL
  • ChEBI
  • ChEBI-2.0ChEBI-2.0
  • Chebi Ontology Generator
  • Issues
  • #8
Closed
Open
Issue created Mar 20, 2023 by Carlos Andres Moreno Velez@carlosm🌳Owner

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 + ".";
   }
}
Edited Mar 20, 2023 by Carlos Andres Moreno Velez
Assignee
Assign to
Time tracking