logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Microformats::Format::XMDP - the XMDP microformat

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

       A limitation is that for any <dd> element with <dl> children, only the first such <dl> is looked at. This
       means that the XFN 1.1 profile document is only partially parsable; most other microformat profile
       document can be properly parsed though.

       Please report any bugs to <http://rt.cpan.org/>.

Description

       HTML::Microformats::Format::XMDP inherits from HTML::Microformats::Format. See the base class definition
       for a description of property getter/setter methods, constructors, etc.

       HTML::Microformats::Format::XMDP also inherits from HTML::Microformats::Format::XOXO, and the "data"
       method returns the same structure.

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.

perl v5.32.1                                       2021-09-12              HTML::Microformats::Format::XMDP(3pm)

Microformat

       HTML::Microformats::Format::XMDP supports XMDP as described at <http://gmpg.org/xmdp/>.

Name

       HTML::Microformats::Format::XMDP - the XMDP microformat

Rdf Output

       Data is returned using RDFS.

See Also

       HTML::Microformats::Format, HTML::Microformats.

Synopsis

        use HTML::Microformats;
        use LWP::Simple qw[get];
        use RDF::TrineShortcuts;

        my $uri  = 'http://microformats.org/profile/hcard';
        my $html = get($uri);
        my $doc  = HTML::Microformats->new_document($html, $uri);
        $doc->assume_all_profiles;

        my @xmdp_objects = $doc->objects('XMDP');
        foreach my $xo (@xmdp_objects)
        {
          print $xo->serialise_model(
              as         => 'Turtle',
              namespaces => {
                  rdfs  => 'http://www.w3.org/2000/01/rdf-schema#',
                  hcard => 'http://microformats.org/profile/hcard#',
                  },
              );
          print "########\n\n";
        }

See Also