RDF::MicroTurtle::Feed - find and parse MicroTurtle in an Atom or RSS feed
0.001
Loops through an Atom or RSS 1.0 feed finding entries containing MicroTurtle, then parses them.
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.
$url
$context_class
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.
$type
$data
$base
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.
model
Please report any bugs to http://rt.cpan.org/.
RDF::MicroTurtle::Parser, RDF::MicroTurtle::Context.
http://www.perlrdf.org/.
http://buzzword.org.uk/2009/microturtle/spec.
Toby Inkster <tobyink@cpan.org>.
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.
To install RDF::MicroTurtle::Feed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::MicroTurtle::Feed
CPAN shell
perl -MCPAN -e shell install RDF::MicroTurtle::Feed
For more information on module installation, please visit the detailed CPAN module installation guide.