ANN: HTML::HTML5::Microdata::Parser
Toby Inkster
mail at tobyinkster.co.uk
Fri Jan 8 20:05:06 CET 2010
Microdata is a serialisation for a subset (no datatypes; strange
limitations on bnodes) of RDF within HTML5. It is not likely to be
included in the W3C HTML5 Recommendation, but will perhaps be splintered
off as a separate specification. In general, I'd recommend RDFa over it
-- it's a more stable specification, capable of serialising virtually
any RDF (a superset of RDF/XML, but a subset of Turtle) -- but I've
written a parser for Microdata all the same.
SYNOPSIS
use HTML::HTML5::Microdata::Parser;
my $parser = HTML::HTML5::Microdata::Parser->new($html, $baseURI);
$parser->consume;
my $graph = $parser->graph; # $graph is an RDF::Trine::Model.
SEE ALSO
http://search.cpan.org/dist/HTML-HTML5-Microdata-Parser-0.01/
--
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>
More information about the Dev
mailing list