Skip to content

Switching Ontologies in Protege

By: Nicole Vasilevsky

Note: This applies to Protege 5.5.0 and below. Protege 5.6 manages ID ranges for you automatically and these instructions are not needed.

Description

When you edit an ontology, you need to make sure you are using the correct prefix and your assigned ID range for that on ontology. Protege (unfortunately) does not remember the last prefix or ID range that you used when you switch between ontologies. Therefore we need to manually update this each time we switch ontologies.

Instructions

  1. When you switch to a new ontology file, open your preferences in Protege (File -> Preferences).
  2. Be sure you are on the New entities tab.
  3. Add the Prefix for the ontology you are working on.
  4. If you don't know your ID range, go to the ID ranges file for that ontology (it should be in src/ontology/[ontology-name]-idranges.owl. (For example, src/ontology/mondo-idranges.owl.)
  5. Copy and paste in the start and end values for your ID range.

image

Tips

  1. I work on many ontologies, so I keep a note in OneNote (or Evernote) that keeps track of all my ID ranges for quick reference.
  2. You don't need to track the last ID that was used, Protege will know to pick the next ID in your range. For example, if your ID range is 8000000 to 8999999, you can enter that as your range, even if you have already added 10 terms within your range. Protege will know to assign the next ID as 8000011.

Video Explanation