GOBO::ClassNode
printf '%s "%s"', $n->id, $n->label;
Formally, a class is a collection of instances. However, in many cases these are not instantiated in perl.
ClassNodes can either be explicitly named (GOBO::TermNode) or they can be logical boolean expressions (GOBO::ClassExpression)
+--- InstanceNode | +--- ClassExpression | | Node ---+--- ClassNode ---+ | | | +--- TermNode +--- RelationNode
Note the parallel terminology: ontology formalisms consist of classes (types) and instances (particulars). These should NOT be confused with their object-oriented counterparts. An instance of the GO type "nucleus" is an actual cell nucleus. These are almost never "instantiated" in the object-oriented sense, but in reality there are trillions of these instances. ClassNodes can be thought of as sets, and InstanceNodes for their extension.
Here we use the term "ClassNode" and "InstanceNode" to denote elements of the perl object model.
GOBO::Graph
To install GOBO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GOBO
CPAN shell
perl -MCPAN -e shell install GOBO
For more information on module installation, please visit the detailed CPAN module installation guide.