HTML::Microformats::Format::hReview(3pm) | User Contributed Perl Documentation | HTML::Microformats::Format::hReview(3pm) |
HTML::Microformats::Format::hReview - the hReview and xFolk microformats
use HTML::Microformats::DocumentContext; use HTML::Microformats::Format::hReview; my $context = HTML::Microformats::DocumentContext->new($dom, $uri); my @reviews = HTML::Microformats::Format::hReview->extract_all( $dom->documentElement, $context); foreach my $review (@reviews) { print $review->get_reviewer->get_fn . "\n"; }
HTML::Microformats::Format::hReview inherits from HTML::Microformats::Format. See the base class definition for a description of property getter/setter methods, constructors, etc.
HTML::Microformats::Format::hReview supports hReview 0.3 and xFolk as described at <http://microformats.org/wiki/hreview> and <http://microformats.org/wiki/xfolk>, with the following differences:
hAudio microformats can be used as the reviewed item.
(At the time of writing this documentation however, HTML::Microformats didn't support hAudio!)
Support for xFolk and hReview are bundled together, so properties are usually supported in both, even if only defined by one microformat spec. (e.g. reviewer is defined by hReview, but this module supports it in xFolk entries.)
<http://www.purl.org/stuff/rev#>, <http://ontologi.es/hreview#>.
Please report any bugs to <http://rt.cpan.org/>.
Known limitations:
HTML::Microformats::Format, HTML::Microformats.
Toby Inkster <tobyink@cpan.org>.
Copyright 2008-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
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.
2021-09-12 | perl v5.32.1 |