~ubuntu-branches/debian/squeeze/redland-bindings/squeeze

« back to all changes in this revision

Viewing changes to docs/pod/RDF/Redland/Serializer.html

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2009-04-07 00:24:21 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090407002421-dce2r4otm5vqtheg
Tags: 1.0.8.1-2
* Use new sections ruby, php for librdf-ruby and php5-librdf respectively.
* Merge features from ubuntu packaging.  Thanks to Matthias Klose
  (not taking linker -Wl,--as-needed since that makes dyloading fail
  to pull in raptor symbols):
  debian/rules:
  - get python lib dir from distutils
  - make dh_pycentral use symlinks
  debian/python-librdf.examples:
  - add data/dc.rdf to examples dir and adjust example.py
    to point to it (Closes: #402612)
* Patch python/Makefile.in so it can allow the include dir to be
  overridden by the particular python version build in debian/rules
  using PYTHON_INCLUDES

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="iso-8859-1"?>
2
2
<?xml version="1.0"?>
3
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4
 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
3
<html xmlns="http://www.w3.org/1999/xhtml">
6
4
<head>
7
5
<title>Redland RDF Application Framework - Perl RDF::Redland::Serializer Class</title>
11
9
<h1 style="text-align:center">Redland RDF Application Framework - Perl RDF::Redland::Serializer Class</h1>
12
10
 
13
11
 
 
12
<!-- INDEX BEGIN -->
 
13
<div name="index">
14
14
<p><a name="__index__"></a></p>
15
 
<!-- INDEX BEGIN -->
16
15
<!--
17
16
 
18
17
<ul>
25
24
        <li><a href="#see_also">SEE ALSO</a></li>
26
25
        <li><a href="#author">AUTHOR</a></li>
27
26
</ul>
28
 
-->
 
27
 
 
28
--></div>
29
29
<!-- INDEX END -->
30
30
 
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>
33
33
 
34
 
<h2><a name="synopsis" id="synopsis">SYNOPSIS</a></h2>
 
34
<h2><a name="synopsis">SYNOPSIS</a></h2>
35
35
<pre>
36
36
  use RDF::Redland;
37
37
</pre>
43
43
  $serializer-&gt;serialize_model_to_file("foo.rdf", $base_uri, $model);
44
44
</pre>
45
45
 
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>
48
48
 
49
 
<h2><a name="constructors" id="constructors">CONSTRUCTORS</a></h2>
 
49
<h2><a name="constructors">CONSTRUCTORS</a></h2>
50
50
<dl>
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>
52
52
<dd>
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>
54
54
</dd>
55
55
</dl>
56
56
 
57
 
<h2><a name="methods" id="methods">METHODS</a></h2>
 
57
<h2><a name="methods">METHODS</a></h2>
58
58
<dl>
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>
60
60
<dd>
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>
62
62
</dd>
63
 
</dl>
64
 
<div style="margin-left: 2em">
65
 
<dl>
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>
67
 
</dl>
68
 
</div>
 
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>
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">
71
 
<dl>
72
 
<dt><strong><a name="item_set_namespace" id="item_set_namespace">set_namespace PREFIX URI</a></strong></dt>
73
 
</dl>
74
 
</div>
 
66
</dd>
 
67
<dt><strong><a name="set_namespace" class="item">set_namespace PREFIX URI</a></strong></dt>
 
68
<dd>
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">
77
 
<dl>
78
 
<dt><strong><a name="item_feature_uri__5bvalue_5d" id="item_feature_uri__5bvalue_5d">feature URI [VALUE]</a></strong></dt>
79
 
</dl>
80
 
</div>
 
70
</dd>
 
71
<dt><strong><a name="feature_uri_value" class="item">feature URI [VALUE]</a></strong></dt>
 
72
<dd>
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>
 
74
</dd>
 
75
</dl>
82
76
 
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>
85
79
 
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>
88
82
<hr />
89
83
 
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>
91
85
 
92
86
</body>
93
87
</html>