HTML::Microdata - Extractor of microdata from HTML.
use HTML::Microdata; my $microdata = HTML::Microdata->extract(<<EOF, base => 'http://example.com/'); ... EOF my $json = $microdata->as_json; use Data::Dumper; warn Dumper $microdata->items; # returns top level items
HTML::Microdata is extractor of microdata from HTML to JSON etc.
itemref implementation has not been completed.
There already is HTML::HTML5::Microdata::Parser in CPAN. But it has very heavy dependency and I can't install it. And more, package name should not include "HTML5" because HTML5 is just HTML now.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.