[topicmapmail] Topic maps vs concept maps

Robert Barta rho@bigpond.net.au
Fri, 27 Dec 2002 17:44:26 +1000


On Mon, Dec 16, 2002 at 01:58:47AM -0500, Thomas B. Passin wrote:
> By coincidence, I have just today been adding a generalized hierarchical
> display to my own system.  After all, there are many possible kinds of
> hierarchies (and non-hierarchies that one might want to display as virtual
> hierarchies for convenience).   I wrote a small routine that takes a topic,
> an association type, and the role types for the parent and child, and
> returns a hierarchy.  I traverse it with a method that takes a function
> parameter - the function parameter represents the actual action to be done
> as the hierarchy is traversed (pretty standard stuff, I know).

Right, this is exactly some kind of functionality which could/should
go in a remote API. man XTM reveals:

    Examples:

             $hierarchy = $tm->induced_assoc_tree (topic      => $start_node,
                                                   assoc_type => 'at-relation',
                                                   a_role     => 'tt-parent',
                                                   b_role     => 'tt-child' );
             $yhcrareih = $tm->induced_assoc_tree (topic      => $start_node,
                                                   assoc_type => 'at-relation',
                                                   b_role     => 'tt-parent',
                                                   a_role     => 'tt-child',
                                                   depth      => 42 );

\rho