CGI-Wiki-Plugin-Categoriser

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    Uses node metadata to build a model of how nodes are related to each
    other in terms of categories.

SYNOPSIS
      use CGI::Wiki;
      use CGI::Wiki::Plugin::Categoriser;

      my $wiki = CGI::Wiki->new( ... );
      $wiki->write_node( "Red Lion", "nice beer", $checksum,
                         { category => [ "Pubs", "Pub Food" ] } );
      $wiki->write_node( "Holborn Station", "busy at peak times", $checksum,
                         { category => "Tube Station" } );

      my $categoriser = CGI::Wiki::Plugin::Categoriser->new;
      $wiki->register_plugin( plugin => $categoriser );

      my $isa_pub = $categoriser->in_category( category => "Pubs",
                                               node     => "Red Lion" );
      my @categories = $categoriser->categories( node => "Holborn Station" );

METHODS

lib/CGI/Wiki/Plugin/Categoriser.pm  view on Meta::CPAN

other in terms of categories.

=head1 SYNOPSIS

  use CGI::Wiki;
  use CGI::Wiki::Plugin::Categoriser;

  my $wiki = CGI::Wiki->new( ... );
  $wiki->write_node( "Red Lion", "nice beer", $checksum,
                     { category => [ "Pubs", "Pub Food" ] } );
  $wiki->write_node( "Holborn Station", "busy at peak times", $checksum,
                     { category => "Tube Station" } );

  my $categoriser = CGI::Wiki::Plugin::Categoriser->new;
  $wiki->register_plugin( plugin => $categoriser );

  my $isa_pub = $categoriser->in_category( category => "Pubs",
                                           node     => "Red Lion" );
  my @categories = $categoriser->categories( node => "Holborn Station" );

=head1 METHODS



( run in 0.367 second using v1.01-cache-2.11-cpan-87723dcf8b7 )