TODO list for Perl module Parse::Taxonomy
What would it mean for a Parse::Taxonomy subclass to accept a filehandle as an argument, rather than a file? Would that be difficult to implement?
Cookbook: Include recipe for predicting the result of a data migration between relational database tables.
child_counts()
get_child_count()
In Internet discussions of hierarchical data, one often sees a distinction between the children of a node and the descendants of a node. The former term usually means "first-generation only", whereas the latter usually means "all subsequent generations."
Parse::Taxonomy::MaterializedPath::child_counts() and get_child_count() are documented as returning the count of all descendants of a node, i.e., a multi-generational count for either all nodes (child_counts()) or for one particular node (get_child_count()). Hence, these methods would be better named descendant_counts() and get_descendant_count(), respectively.
Parse::Taxonomy::MaterializedPath::child_counts()
descendant_counts()
get_descendant_count()
child_counts() and get_child_count() are deprecated as of v0.16. Remove them and their associated unit tests in the first CPAN release after January 1, 2016.
A method in Parse::Taxonomy::MaterializedPath that would generate a Perl data structure holding a taxonomy-by-nested-set equivalent to that in the object.
A method in Parse::Taxonomy::AdjacentList that would generate a Perl data structure holding a taxonomy-by-nested-set equivalent to that in the object.
Explore creation of a Parse::Taxonomy::NestedSet package which would take as input a taxonomy-by-nested-set (via a CSV file or via a components interface), created a NestedSet object against which methods such as descendant_counts(), pathify() and adjacentify() would be callable.
components
pathify()
adjacentify()
To install Parse::Taxonomy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Taxonomy
CPAN shell
perl -MCPAN -e shell install Parse::Taxonomy
For more information on module installation, please visit the detailed CPAN module installation guide.