HTML::Microformats::Format::figure(3pm)

HTML::Microformats::Format::figure3pm

The figure microformat

Usage

 use HTML::Microformats::DocumentContext;
 use HTML::Microformats::Format::figure;
 use Scalar::Util qw(blessed);
 my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
 my @objects = HTML::Microformats::Format::figure->extract_all(
                   $dom->documentElement, $context);
 foreach my $fig (@objects)
 {
   printf("<%s> %s\n", $fig->get_image, $fig->get_legend->[0]);
   foreach my $maker ($p->get_credit)
   {
     if (blessed($maker))
     {
       printf("  - by %s\n", $maker->get_fn);
     }
     else
     {
       printf("  - by %s\n", $maker);
     }
   }
 }

Overview

HTML::Microformats::Format::figure inherits from HTML::Microformats::Format. See the base class definition for a description of property getter/setter methods, constructors, etc.

Microformat

HTML::Microformats::Format::figure supports figure as described at <http://microformats.org/wiki/figure>.

RDF output

Data is returned using Dublin Core and FOAF.

Disclaimer of warranties

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Releases

5 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–9
  3. 12–13

Bugs

Please report any bugs to <http://rt.cpan.org/>.

Author

Toby Inkster <[email protected]>.

From libhtml-microformats-perl 0.105-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.