From c6596e41314ccd7281502df53aa89213429505b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 2 Jun 2009 12:52:27 +0000 Subject: [PATCH] Add helpful graph. --- misc-scripts/ontology/README | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/misc-scripts/ontology/README b/misc-scripts/ontology/README index 93e68c4f8f..92a31661b8 100644 --- a/misc-scripts/ontology/README +++ b/misc-scripts/ontology/README @@ -74,11 +74,25 @@ selection of transitive relation types. The transitive relation types currently covered are 'is_a', 'part_of'. - Each entry in the 'closure' table consists of a reference to - a child term, to one of its ancestor terms, a reference to an - immediate child of the ancestor, called the sub-parent, and - the distance between the child and the ancestor through the - sub-parent. + Each entry in the 'closure' table consists of a reference to a + child term, to one of its ancestor terms ("parent"), a reference + to an immediate child of the ancestor, called the sub-parent, + and the distance between the child and the ancestor through the + sub-parent (see figure below). + + [parent] + | + +--------------------------+ + | | + [subparent] [other children of parent term] + | | + : +---------------+ + : : + [other terms in the hierarchy] + : + : + | + [child] This table is computed by a Perl program (see below) from the 'relation' table and allows for quick retrieval of all ancestors -- GitLab