RDF::Simple::Serialiser::YAML - Simple RDF/YAML serialiser
my $ser = RDF::Simple::Serialiser::YAML->new; my @triples = ( ['http://example.com/url#', 'dc:creator', 'zool@example.com'], ['http://example.com/url#', 'foaf:Topic', '_id:1234'], ['_id:1234','http://www.w3.org/2003/01/geo/wgs84_pos#lat','51.334422'] ); my $yaml_string = $ser->serialise(@triples);
This module is a subclass of RDF::Simple::Serialiser to produce serialised RDF/YAML documents from an array of triples.
Please see RDF::Simple::Serialiser for a list of supported methods.
RDF::YAML, RDF::Simple::Parser::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.