.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RDF::Redland::Serializer 3pm" .TH RDF::Redland::Serializer 3pm 2024-03-17 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME RDF::Redland::Serializer \- Redland RDF Serializing to Syntax Class .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use RDF::Redland; \& \& ... \& my $serializer=new RDF::Redland::Serializer("ntriples"); \& \& $serializer\->serialize_model_to_file("foo.rdf", $base_uri, $model); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This class represents serializers that turn RDF graphs into various syntaxes. from an RDF::Redland::Model object. .SH CONSTRUCTORS .IX Header "CONSTRUCTORS" .IP "new [NAME [MIME_TYPE [URI]]]" 4 .IX Item "new [NAME [MIME_TYPE [URI]]]" Create a new RDF::Redland::Serializer object for a syntax serializer named \fINAME\fR, with MIME Type \fIMIME_TYPE\fR and/or URI \fIURI\fR. Any field can be undef or omitted; if all are omitted, the default serializer is used, currently 'ntriples'. .SH METHODS .IX Header "METHODS" .IP "serialize_model_to_file FILENAME BASE_URI MODEL" 4 .IX Item "serialize_model_to_file FILENAME BASE_URI MODEL" Serialize the RDF Graph \fIMODEL\fR as syntax with the base RDF::Redland::URI \fIBASE_URI\fR to file \fIFILENAME\fR. .IP "serialize_model_to_string BASE-URI MODEL" 4 .IX Item "serialize_model_to_string BASE-URI MODEL" Serialize the RDF Graph \fIMODEL\fR to a syntax. If no serializer name is given, the default serializer RDF/XML is used. .IP "set_namespace PREFIX URI" 4 .IX Item "set_namespace PREFIX URI" Define a namespace \fIURI\fR with the supplied \fIPREFIX\fR for use in serializing an RDF Graph. .IP "feature URI [VALUE]" 4 .IX Item "feature URI [VALUE]" Get/set a serializer feature. The feature is named via RDF::Redland::URI \fIURI\fR and the value is a string. If \fIVALUE\fR is given, the feature is set to that value, otherwise the current value is returned. .SH "SEE ALSO" .IX Header "SEE ALSO" RDF::Redland::Parser, RDF::Redland::URI .SH AUTHOR .IX Header "AUTHOR" Dave Beckett \- http://www.dajobe.org/