RDFStore::Serilizer::RSS - Serialise a model/graph to its XML RSS1.0 representation
use RDFStore::Serializer::RSS; my $model= new RDFStore::Model(); $model->add($statement); $model->add($statement1); $model->add($statement2); my $serializer = new RDFStore::Serializer::RSS; my $rdf_strawman = $serializer->serialize( $model ); # serialise model to a string in-memory my $rdf_strawman = $serializer->serialize( $model, undef, {}, $base ); # using xml:base my $rdf_strawman = $serializer->serialize( $model, undef, { 'http://purl.org/rss/1.0/' => blog } ); # using my blog namespace $serializer->serialize( $model, *STREAM ); # serialise model to a given descriptor (stream)
An RDFStore::Model serializer to its XML RSS1.0 representation - see http://purl.org/rss/1.0/
The following methods construct RDFStore::Serializer::RSS :
Create an new RDFStore::Serializer object to serialize and RDFStore::Model.
Write out the given MODEL to FILEHANDLE_REF (or in-memory string if not passed) using a given list of NAMESPACES and xml:base BASE if passed. The NAMESPACES hash ref contains a list of namespace values (URI refs) and prefix names - see RDFStore::Vocabulary::Generator(3). By default the output is returned from the method into a string otheriwse a valid (and opened) FILEHANLDE_REF can be passed, which will be being printed to.
Same as write method above.
RDFStore::Model(3) RDFStore::Serializer(3) RDFStore::Parser::RDFXML(3) http://purl.org/rss/1.0/
Alberto Reggiori <areggiori@webweaving.org>
4 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install RDFStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDFStore
CPAN shell
perl -MCPAN -e shell install RDFStore
For more information on module installation, please visit the detailed CPAN module installation guide.