25
24
<li><a href="#see_also">SEE ALSO</a></li>
26
25
<li><a href="#author">AUTHOR</a></li>
31
<h2><a name="name" id="name">NAME</a></h2>
31
<h2><a name="name">NAME</a></h2>
32
32
<p>RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class</p>
34
<h2><a name="synopsis" id="synopsis">SYNOPSIS</a></h2>
34
<h2><a name="synopsis">SYNOPSIS</a></h2>
43
43
$serializer->serialize_model_to_file("foo.rdf", $base_uri, $model);
46
<h2><a name="description" id="description">DESCRIPTION</a></h2>
46
<h2><a name="description">DESCRIPTION</a></h2>
47
47
<p>This class represents serializers that turn RDF graphs into various syntaxes. from an RDF::Redland::Model object.</p>
49
<h2><a name="constructors" id="constructors">CONSTRUCTORS</a></h2>
49
<h2><a name="constructors">CONSTRUCTORS</a></h2>
51
<dt><strong><a name="item_new__5bname__5bmime_type__5buri_5d_5d_5d" id="item_new__5bname__5bmime_type__5buri_5d_5d_5d">new [NAME [MIME_TYPE [URI]]]</a></strong></dt>
51
<dt><strong><a name="new_name_mime_type_uri" class="item">new [NAME [MIME_TYPE [URI]]]</a></strong></dt>
53
53
<p>Create a new RDF::Redland::Serializer object for a syntax serializer named <em>NAME</em>, with MIME Type <em>MIME_TYPE</em> and/or URI <em>URI</em>. Any field can be undef or omitted; if all are omitted, the default serializer is used, currently 'ntriples'.</p>
57
<h2><a name="methods" id="methods">METHODS</a></h2>
57
<h2><a name="methods">METHODS</a></h2>
59
<dt><strong><a name="item_serialize_model_to_file_filename_base_uri_model" id="item_serialize_model_to_file_filename_base_uri_model">serialize_model_to_file FILENAME BASE_URI MODEL</a></strong></dt>
59
<dt><strong><a name="serialize_model_to_file_filename_base_uri_model" class="item">serialize_model_to_file FILENAME BASE_URI MODEL</a></strong></dt>
61
61
<p>Serialize the RDF Graph <em>MODEL</em> as syntax with the base RDF::Redland::URI <em>BASE_URI</em> to file <em>FILENAME</em>.</p>
64
<div style="margin-left: 2em">
66
<dt><strong><a name="item_serialize_model_to_string_base_2duri_model" id="item_serialize_model_to_string_base_2duri_model">serialize_model_to_string BASE-URI MODEL</a></strong></dt>
63
<dt><strong><a name="serialize_model_to_string_base_uri_model" class="item">serialize_model_to_string BASE-URI MODEL</a></strong></dt>
69
65
<p>Serialize the RDF Graph <em>MODEL</em> to a syntax. If no serializer name is given, the default serializer RDF/XML is used.</p>
70
<div style="margin-left: 2em">
72
<dt><strong><a name="item_set_namespace" id="item_set_namespace">set_namespace PREFIX URI</a></strong></dt>
67
<dt><strong><a name="set_namespace" class="item">set_namespace PREFIX URI</a></strong></dt>
75
69
<p>Define a namespace <em>URI</em> with the supplied <em>PREFIX</em> for use in serializing an RDF Graph.</p>
76
<div style="margin-left: 2em">
78
<dt><strong><a name="item_feature_uri__5bvalue_5d" id="item_feature_uri__5bvalue_5d">feature URI [VALUE]</a></strong></dt>
71
<dt><strong><a name="feature_uri_value" class="item">feature URI [VALUE]</a></strong></dt>
81
73
<p>Get/set a serializer feature. The feature is named via RDF::Redland::URI <em>URI</em> and the value is a string. If <em>VALUE</em> is given, the feature is set to that value, otherwise the current value is returned.</p>
83
<h2><a name="see_also" id="see_also">SEE ALSO</a></h2>
77
<h2><a name="see_also">SEE ALSO</a></h2>
84
78
<p><a href="Parser.html">the RDF::Redland::Parser manpage</a>, <a href="URI.html">the RDF::Redland::URI manpage</a></p>
86
<h2><a name="author" id="author">AUTHOR</a></h2>
87
<p>Dave Beckett - <a href="http://purl.org/net/dajobe/">http://purl.org/net/dajobe/</a></p>
80
<h2><a name="author">AUTHOR</a></h2>
81
<p>Dave Beckett - <a href="http://www.dajobe.org/">http://www.dajobe.org/</a></p>
90
<p>(C) Copyright 2000-2007 <a href="http://purl.org/net/dajobe/">Dave Beckett</a>, (C) Copyright 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>
84
<p>(C) Copyright 2000-2008 <a href="http://www.dajobe.org/">Dave Beckett</a>, (C) Copyright 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p>