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 ...")
 
Line 17: Line 17:
Choose render entities using annotation values.
Choose render entities using annotation values.


[https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/entity_rendering.png]
[Image:https://arthropod-anatomy-ontology.googlecode.com/svn/trunk/images/entity_rendering.png]


=== Managing display of Long and short names ===
=== Managing display of Long and short names ===

Revision as of 19:34, 17 December 2011

  1. 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 on this site.

Protege setup

The following assumes Protege version 4.1, 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.

[Image: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:

[1]

Set the annotation renderer as follows:

[2]

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/

[3]

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)

[4]

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:

[5] [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 ro.owl. This is likely to change in the near future so that relations and relevant imported terms are mireoted in from ro.owl.