1RDF::Redland::SerializeUrs(e3r)Contributed Perl DocumentRaDtFi:o:nRedland::Serializer(3)
2
3
4

NAME

6       RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class
7

SYNOPSIS

9         use RDF::Redland;
10
11         ...
12         my $serializer=new RDF::Redland::Serializer("ntriples");
13
14         $serializer->serialize_model_to_file("foo.rdf", $base_uri, $model);
15

DESCRIPTION

17       This class represents serializers that turn RDF graphs into various
18       syntaxes.  from an RDF::Redland::Model object.
19

CONSTRUCTORS

21       new [NAME [MIME_TYPE [URI]]]
22           Create a new RDF::Redland::Serializer object for a syntax
23           serializer named NAME, with MIME Type MIME_TYPE and/or URI URI.
24           Any field can be undef or omitted; if all are omitted, the default
25           serializer is used, currently 'ntriples'.
26

METHODS

28       serialize_model_to_file FILENAME BASE_URI MODEL
29           Serialize the RDF Graph MODEL as syntax with the base
30           RDF::Redland::URI BASE_URI to file FILENAME.
31
32       serialize_model_to_string BASE-URI MODEL
33           Serialize the RDF Graph MODEL to a syntax.  If no serializer name
34           is given, the default serializer RDF/XML is used.
35
36       set_namespace PREFIX URI
37           Define a namespace URI with the supplied PREFIX for use in
38           serializing an RDF Graph.
39
40       feature URI [VALUE]
41           Get/set a serializer feature.  The feature is named via
42           RDF::Redland::URI URI and the value is a string.  If VALUE is
43           given, the feature is set to that value, otherwise the current
44           value is returned.
45

SEE ALSO

47       RDF::Redland::Parser, RDF::Redland::URI
48

AUTHOR

50       Dave Beckett - http://www.dajobe.org/
51
52
53
54perl v5.28.0                      2011-02-04       RDF::Redland::Serializer(3)
Impressum