1RDF::Trine::Serializer:U:sReDrFXCMoLn(t3r)ibuted Perl DoRcDuFm:e:nTtraitnieo:n:Serializer::RDFXML(3)
2
3
4
6 RDF::Trine::Serializer::RDFXML - RDF/XML Serializer
7
9 This document describes RDF::Trine::Serializer::RDFXML version 1.019
10
12 use RDF::Trine::Serializer::RDFXML;
13 my $serializer = RDF::Trine::Serializer::RDFXML->new( namespaces => { ex => 'http://example/' } );
14 print $serializer->serialize_model_to_string($model);
15
17 The RDF::Trine::Serializer::Turtle class provides an API for
18 serializing RDF graphs to the RDF/XML syntax.
19
21 Beyond the methods documented below, this class inherits methods from
22 the RDF::Trine::Serializer class.
23
24 "new ( namespaces => \%namespaces, base_uri => $baseuri )"
25 Returns a new RDF/XML serializer object.
26
27 "serialize_model_to_file ( $fh, $model )"
28 Serializes the $model to RDF/XML, printing the results to the
29 supplied filehandle "<$fh">.
30
31 "serialize_model_to_string ( $model )"
32 Serializes the $model to RDF/XML, returning the result as a string.
33
34 "serialize_iterator_to_file ( $file, $iter )"
35 Serializes the iterator to RDF/XML, printing the results to the
36 supplied filehandle "<$fh">.
37
38 "serialize_iterator_to_string ( $iter )"
39 Serializes the iterator to RDF/XML, returning the result as a
40 string.
41
43 Please report any bugs or feature requests to through the GitHub web
44 interface at <https://github.com/kasei/perlrdf/issues>.
45
47 <http://www.w3.org/TR/rdf-syntax-grammar/>
48
50 Gregory Todd Williams "<gwilliams@cpan.org>"
51
53 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
54 software; you can redistribute it and/or modify it under the same terms
55 as Perl itself.
56
57
58
59perl v5.32.1 2021-01-27 RDF::Trine::Serializer::RDFXML(3)