Switching Ontologies in Protege¶
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.
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.
- When you switch to a new ontology file, open your preferences in Protege (File -> Preferences).
- Be sure you are on the New entities tab.
- Add the Prefix for the ontology you are working on.
- 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.)
- Copy and paste in the start and end values for your ID range.
- 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.
- 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.