The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::MicroTurtle::Feed - find and parse MicroTurtle in an Atom or RSS feed

VERSION

0.001

DESCRIPTION

Loops through an Atom or RSS 1.0 feed finding entries containing MicroTurtle, then parses them.

Constructors

Two constructors are provided:

  my $feed = RDF::MicroTurtle::Feed->new_from_url($url, $context_class);

Where $url is the feed to retrieve and parse, and $context_class is a string containing the class name to use as a MicroTurtle parsing context.

  my $feed = RDF::MicroTurtle::Feed->new($type, $data, $base, $context_class);

Where $type is either 'Atom' or 'RSS10' (case-sensitive), $data is the raw XML data as a string, and $base is a base URL for resolving relative references.

Method

A method model is provided to obtain the end result. The model contains a mixture of quads and triples (triples are simply quads where the final component is Nil). Triples represent the feed data itself; quads represent data obtained from MicroTurtle parsing.

BUGS

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

SEE ALSO

RDF::MicroTurtle::Parser, RDF::MicroTurtle::Context.

http://www.perlrdf.org/.

http://buzzword.org.uk/2009/microturtle/spec.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

Copyright (C) 2009-2010 by Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.