GO Protege4 Guide: Difference between revisions

From GO Wiki
Jump to navigation Jump to search
(Created page with "#summary A guide for editors of the ontologies hosted by this project. Start here! = Introduction = This page is intended as a guide for editing the suite of ontologies hosted ...")
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
#summary A guide for editors of the ontologies hosted by this project. Start here!
[[Category:Software]]
TODO


= Introduction =
== Protege Setup ==


This page is intended as a guide for editing the suite of ontologies hosted on this site.
See: http://code.google.com/p/caro2/wiki/Getting_started
 
= Protege setup =
 
The following assumes Protege version 4.1, [http://obi-ontology.org/page/Tutorials#Protege4 OBI version].
 
== Names and IDs ==
 
Terms in the ontologies we use have separate names and IDs. The IDs are URIs with a syntax described below.  The names are annotation values. Working with these ontologies in Protege 4.1 requires some tweaks to the default settings so that names are displayed rather than the short forms of IDs.
 
Open preferences and go to the renderer tab.
 
Choose render entities using annotation values.
 
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/entity_rendering.png]
 
=== Managing display of Long and short names ===
 
When working with multiple ontologies, we need both long names that are unique within the larger context of multiple ontologies.  But these names are sometimes ungainly in the context of a single ontology.  So, it is useful to also have short names that are unique only within their own ontology.
 
e.g. in insect anatomy: short name 'sensillum' long name 'insect sensillum'
 
We use rdf:label for short names and IAO_0000589 = 'OBO foundry unique label' for long names.
 
To manage display of these.
 
Open preferences and go to the renderer tab.
 
Click the annotations button in this tab:
 
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/entity_rendering.png]
 
Set the annotation renderer as follows:
 
[https://caro2.googlecode.com/svn/wiki/annotation_setup.jpg]
 
Note - Protege 4.1 can be a bit finicky about this setup.  It sometimes requires restarting or reloading ontologies to work.
 
 
=== Managing IDs ===
 
IDs follow the specs outlined here:
 
http://www.obofoundry.org/id-policy.shtml
 
To set in Protege:
 
Preferences -> New Entities ->
 
Specified URI -> http://purl.obolibrary.org/obo/
 
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/URI_specs.png]
 
Auto ID ->
 
numeric (iterative)
 
start and end - ranges to be distributed between editors. See [IdRangeLog]
 
Digit count: 7
 
prefix (see list of prefixes by ontology below)
 
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/ID_specs.png]
 
== Working with multiple, interlinked ontologies ==
 
=== Checkout and managing imports ===
 
Checkout of full repository currently => all the files you need to import in a single directory.  This is likely to change in future as the repository evolves and if/when we want imports to resolve to copies held in other repositories. At this point we will need a standard Protege imports library xml.
 
=== Editing multiple ontologies in one session ===
 
This is possible, although can easily lead to accidentally saving edits to the wrong file.  If you attempt this:
 
  1. Choose the ontology you want to edit from the list at the top of the Protege window:
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/ont_pick_list_closed.png]
[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/ont_pick_list_open.png
 
  2. Make sure your ID prefs are set for the ontology you are editing !
 
= Relations (object properties) =
 
Relations used in this project are currently maintained in caro_2.owl. IDs and full definitions for relations come from [https://obo-relations.googlecode.com/svn/trunk/src/ontology/ro.owl ro.owl].  This is likely to change in the near future so that relations and relevant imported terms are mireoted in from ro.owl.

Latest revision as of 11:00, 29 April 2014