HTML::...roduct(3pm)
β¨ NAME β¨
HTML::Microformats::Format::hProduct β bestie, it's the hProduct microformat module π
Okay so real quick, the manual name situation: this page lives under User Contributed Perl Documentation, and it's the 3pm flavour of the man page. Just so you know where you are. π«Ά
πΈ SYNOPSIS πΈ
use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::hProduct;
my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @objects = HTML::Microformats::Format::hProduct->extract_all(
$dom->documentElement, $context);
foreach my $p (@objects)
{
printf("%s\n", $m->get_fn);
if ($p->get_review)
{
foreach my $r ($p->get_review)
{
printf(" - reviewed by %s\n", $r->get_reviewer->get_fn);
}
}
else
{
print " (no reviews yet)\n");
}
}
ngl bestie, that$min theprintfis straight from the source, no cap. And that closing paren on the
π¦ DESCRIPTION π¦
HTML::Microformats::Format::hProduct inherits from HTML::Microformats::Format. π
So like, if you wanna know about property getter/setter methods, constructors, all that good stuff β go read the base class definition, because that's where it lives. This page is just the hProduct-specific era. β¨
π MICROFORMAT π
HTML::Microformats::Format::hProduct supports hProduct 0.3, as described at <http://microformats.org/wiki/hProduct> β and it's giving extra credit, because there are additions: π
'item'propagation.
If 'review' and 'listing' objects don't have an 'item' set, then their 'item' property gets set to this object. Basically the parent shows up and says "you're with me now" π«Ά
π RDF OUTPUT π
Product data is primarily output using GoodRelations v1 (<http://purl.org/goodrelations/v1#>) β that's the vibe, that's the namespace, periodt. β
π BUGS π
Found a bug? Please report any bugs to <http://rt.cpan.org/>. Do it, bestie, the maintainers wanna know π
π SEE ALSO π
HTML::Microformats::FormatHTML::Microformats
Both iconic, both worth a read π
π AUTHOR π
Toby Inkster <tobyink@cpan.org>.
πΈ COPYRIGHT AND LICENCE πΈ
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. π
β οΈ 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.
Like, fr fr, no promises, no guarantees, she is what she is π
okay that's the whole page!! π¦ this was perl v5.32.1, dated 2021-09-12, and it's the HTML::...roduct(3pm) page under User Contributed Perl Documentation. slay, go extract some products πβ¨
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms