| 1 |
<?xml version="1.0" encoding="iso-8859-1"?> |
| 2 |
<?xml version="1.0"?> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>Redland RDF Application Framework - Perl RDF::Redland::Serializer Class</title> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
|
| 9 |
<h1 style="text-align:center">Redland RDF Application Framework - Perl RDF::Redland::Serializer Class</h1> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<div name="index"> |
| 14 |
<p><a name="__index__"></a></p> |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
</div> |
| 29 |
|
| 30 |
|
| 31 |
<h2><a name="name">NAME</a></h2> |
| 32 |
<p>RDF::Redland::Serializer - Redland RDF Serializing to Syntax Class</p> |
| 33 |
|
| 34 |
<h2><a name="synopsis">SYNOPSIS</a></h2> |
| 35 |
<pre> |
| 36 |
use RDF::Redland; |
| 37 |
</pre> |
| 38 |
<pre> |
| 39 |
... |
| 40 |
my $serializer=new RDF::Redland::Serializer("ntriples"); |
| 41 |
</pre> |
| 42 |
<pre> |
| 43 |
$serializer->serialize_model_to_file("foo.rdf", $base_uri, $model); |
| 44 |
</pre> |
| 45 |
|
| 46 |
<h2><a name="description">DESCRIPTION</a></h2> |
| 47 |
<p>This class represents serializers that turn RDF graphs into various syntaxes. from an RDF::Redland::Model object.</p> |
| 48 |
|
| 49 |
<h2><a name="constructors">CONSTRUCTORS</a></h2> |
| 50 |
<dl> |
| 51 |
<dt><strong><a name="new_name_mime_type_uri" class="item">new [NAME [MIME_TYPE [URI]]]</a></strong></dt> |
| 52 |
<dd> |
| 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> |
| 54 |
</dd> |
| 55 |
</dl> |
| 56 |
|
| 57 |
<h2><a name="methods">METHODS</a></h2> |
| 58 |
<dl> |
| 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> |
| 60 |
<dd> |
| 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> |
| 62 |
</dd> |
| 63 |
<dt><strong><a name="serialize_model_to_string_base_uri_model" class="item">serialize_model_to_string BASE-URI MODEL</a></strong></dt> |
| 64 |
<dd> |
| 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> |
| 66 |
</dd> |
| 67 |
<dt><strong><a name="set_namespace" class="item">set_namespace PREFIX URI</a></strong></dt> |
| 68 |
<dd> |
| 69 |
<p>Define a namespace <em>URI</em> with the supplied <em>PREFIX</em> for use in serializing an RDF Graph.</p> |
| 70 |
</dd> |
| 71 |
<dt><strong><a name="feature_uri_value" class="item">feature URI [VALUE]</a></strong></dt> |
| 72 |
<dd> |
| 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> |
| 74 |
</dd> |
| 75 |
</dl> |
| 76 |
|
| 77 |
<h2><a name="see_also">SEE ALSO</a></h2> |
| 78 |
<p><a href="Parser.html">the RDF::Redland::Parser manpage</a>, <a href="URI.html">the RDF::Redland::URI manpage</a></p> |
| 79 |
|
| 80 |
<h2><a name="author">AUTHOR</a></h2> |
| 81 |
<p>Dave Beckett - <a href="http://www.dajobe.org/">http://www.dajobe.org/</a></p> |
| 82 |
<hr /> |
| 83 |
|
| 84 |
<p>(C) Copyright 2000-2011 <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> |
| 85 |
|
| 86 |
</body> |
| 87 |
</html> |