☺唐鳳☻
and 1 contributors

NAME

RDF::Simple::Parser::YAML - Simple RDF/YAML parser

DESCRIPTION

This module is a simple RDF/XML parser. It reads a string containing RDF in YAML, and returns an array of RDF triples.

SYNOPSIS

    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

METHODS

new( base => $uri )

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.)

parse_rdf($rdf)

Accepts a string which is an RDF/YAML document.

Returns an array of array references which are RDF triples.

SEE ALSO

RDF::YAML, RDF::Simple::Serialiser::YAML

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

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