- SEE ALSO
- COPYRIGHT AND LICENCE
- DISCLAIMER OF WARRANTIES
RDF::Trine::Serializer::RDFa - RDFa Serializer for RDF::Trine
use RDF::Trine::Serializer; my $s = RDF::Trine::Serializer->new('RDFa', style => 'HTML::Hidden'); my $string = $s->serialize_model_to_string($model);
It is intended that this module will replace the RDF::Trine compatibility methods in RDF::RDFa::Generator, which are now deprecated. This is done to allow both RDF::Trine and Attean to use it, but not require them as dependencies.
Beyond the methods documented below, this class inherits methods from the RDF::Trine::Serializer class.
Returns a new RDFa serializer object. It can any arguments are passed on to RDF::RDFa::Generator, see it's documentation for details. This includes a
styleargument that names a module that formats the output. In addition, a
generator_optionsargument may be passed. This is passed to the generator's
create_documentmethods as options, and are typically used for style-specific configuration.
serialize_model_to_file ( $fh, $model )
$modelto RDFa, printing the results to the supplied filehandle
serialize_model_to_string ( $model )
$modelto RDFa, returning the result as a string.
serialize_iterator_to_file ( $file, $iter )
Serializes the iterator to RDFa, printing the results to the supplied filehandle
serialize_iterator_to_string ( $iter )
Serializes the iterator to RDFa, returning the result as a string.
Please report any bugs to https://github.com/kjetilk/p5-rdf-trine-serializer-rdfa/issues.
Kjetil Kjernsmo <email@example.com>.
This software is copyright (c) 2017, 2018, 2019 by Kjetil Kjernsmo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.