Skip to content

Import terms for logical axioms

Import terms into Mondo for use in logical axioms

These workflows for adding classes from external ontologies (i.e., GO or CHEBI), which is much more streamlined compared to MIREOTing.

Preferred Instructions

Added 2020-05-06

  1. Open the src/ontology/imports/*_terms.txt
  2. Add term to this file
  3. In the Terminal, run: export "MEMORY_GB=15"
  4. Then run import: (for example:) sh run.sh make imports/chebi_import.owl
  5. Close Protege and open again
  6. Edit in Protege

Detailed instructions for adding a new gene

  1. Find the gene in HGNC that you need to add: https://www.genenames.org/. Copy the ID (for example, 8965)
  2. Open the src/ontology/imports/hgnc_terms.txt
  3. Add a new line to the file: http://identifiers.org/hgnc/[your ID], for example http://identifiers.org/hgnc/8965
  4. run import: sh run.sh make imports/hgnc_import.owl
  5. Close Protege and open again
  6. Edit in Protege
  7. In your diff, you will see changes to mondo-edit.obo, src/ontology/imports/hgnc_terms.txt, src/ontology/imports/hgnc_import.owl
  8. Commmit changes on a branch and create a pull request.

Alternate instructions

Add classes from external ontologies using a Text Editor

  1. Close Protege
  2. Checkout master
  3. Create a new branch
  4. Open mondo-edit.obo with a text editor like Sublime or TextEdit
  5. Add axiom in mondo-edit.obo text file
  6. For example: relationship: disease_has_basis_in_dysfunction_of http://identifiers.org/hgnc/129
  7. Save text file
  8. open mondo-edit.obo in Protege
  9. File -> save as (obo format, save as mondo-edit.obo)
  10. Replace existing file
  11. Check diff
  12. Commit/Push

Add classes from external ontologies using Protege

  1. Select 'owl:Thing'
  2. Add a new class paste the full iri in the 'Name:' field, for example, http://purl.obolibrary.org/obo/CHEBI_50906.
  3. hit 'OK'
  4. Now you can use this term, for example to construct logical axioms. The next time the imports are refreshed, the metadata (labels, definitions, etc) for this term is imported from the respective external source ontology and becomes visible in mondo-edit.obo.
  5. See instructions on how to remake the imports file here.