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

HTML::Microformats::Format::VoteLinks3pm

The votelinks microformat

Usage

 my @vlinks = HTML::Microformats::Format::VoteLinks->extract_all(
                   $doc->documentElement, $context);
 foreach my $link (@vlinks)
 {
   printf("%s (%s)\n", $link->get_href, $link->get_vote;
 }

Overview

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

Additional Methods

"$link->get_vote()"

Returns the string 'for', 'against' or 'abstain'.

"$link->get_voter()"

Returns the hCard of the person who authored the VoteLinks link, if it can be determined from context. (It usually can't unless the page is also using hAtom, and the hAtom on the page has already been parsed.)

Microformat

HTML::Microformats::Format::VoteLinks supports VoteLinks as described at <http://microformats.org/wiki/vote-links>.

RDF output

Data is returned using the Tom Morris' vote vocabulary (<http://rdf.opiumfield.com/vote/>).

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 3 times.

  1. 7
  2. 8
  3. 9
  4. 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.