HTML::Data::Parser

Parses data embedded in HTML
Download

HTML::Data::Parser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Toby Inkster
  • Publisher web site:
  • http://search.cpan.org/~tobyink/

HTML::Data::Parser Tags


HTML::Data::Parser Description

HTML::Data::Parser is a Perl module that parses data embedded in HTML. It understands the following standards and patterns for embedding data:- RDFa http://www.w3.org/TR/rdfa-syntax/- Microformats http://microformats.org/- GRDDL http://www.w3.org/TR/grddl/- Microdata http://www.w3.org/TR/microdata/- N3-in-HTML http://esw.w3.org/N3inHTML- HTML5 Document Outline http://www.w3.org/TR/html5/sections.html#outlinesThis module is just a wrapper around RDF::RDFa::Parser, HTML::Microformats, XML::GRDDL, HTML::HTML5::Microdata::Parser, HTML::Embedded::Turtle and HTML::HTML5::Outline. It is a subclass of RDF::Trine::Parser so inherits the same interface as that.SYNOPSISBe like Google! Google Rich Snippets supports RDFa, Microdata and Microformats, so why shouldn't you? use RDF::Trine; use HTML::Data::Parser; my $parser = HTML::Data::Parser->new( parse_rdfa => 1, parse_grddl => 0, parse_microformats => undef, parse_microdata => undef, parse_n3 => undef, parse_outline => 0, ); my $model = RDF::Trine::Model->temporary_model; my $writer = RDF::Trine::Serializer->new('RDFXML'); $parser->parse_into_model($base_uri, $markup, $model); print $writer->serialize_model_to_string($model);Product's homepage


HTML::Data::Parser Related Software