RDF::Simple::Parser::YAML - Simple RDF/YAML parser
This module is a simple RDF/XML parser. It reads a string containing RDF in YAML, and returns an array of RDF triples.
my $uri = 'http://www.w3.org/2000/08/w3c-synd/home.rss'; my $rdf = LWP::Simple::get($uri); my $parser = RDF::Simple::Parser::YAML->new(base => $uri) my @triples = $parser->parse_rdf($rdf); # returns an array of array references which are triples
Create a new RDF::Simple::Parser::YAML object.
The optional parameter base supplies a base URI for relative URIs found in the document. (This function is currently unimplemented.)
base
Accepts a string which is an RDF/YAML document.
Returns an array of array references which are RDF triples.
RDF::YAML, RDF::Simple::Serialiser::YAML
Autrijus Tang <autrijus@autrijus.org>
Copyright 2003 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install RDF::YAML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::YAML
CPAN shell
perl -MCPAN -e shell install RDF::YAML
For more information on module installation, please visit the detailed CPAN module installation guide.