1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Raptor RDF Syntax Library Manual: Raptor RDF Syntax Library Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Raptor RDF Syntax Library Manual">
<link rel="next" href="introduction.html" title="Raptor Overview">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="book">
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Raptor RDF Syntax Library Manual</p></th></tr></table></div>
<div><div class="author">
<h3 class="author">
<span class="firstname">Dave</span> <span class="surname">Beckett</span>
</h3>
<div class="affiliation"><div class="address"><p><br>
<span class="otheraddr"><a class="ulink" href="http://www.dajobe.org/" target="_top">http://www.dajobe.org/</a></span><br>
</p></div></div>
</div></div>
<div><p class="releaseinfo">Manual for <a class="ulink" href="http://librdf.org/raptor/" target="_top">Raptor</a> 2.0.16
</p></div>
<div><p class="copyright">Copyright © 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Dave Beckett</p></div>
<div><p class="copyright">Copyright © 2001, 2002, 2003, 2004, 2005 University of Bristol</p></div>
<div><div class="legalnotice">
<a name="id-1.1.4"></a><p>
This documentation is Free Software / Open Source - you can
redistribute it and/or modify it under the same licenses as
<a class="ulink" href="http://librdf.org/raptor/" target="_top">Raptor</a>.
It is licensed under the following three licenses as alternatives:
</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><p>GNU Lesser General Public License (LGPL) V2.1 or any newer version</p></li>
<li class="listitem"><p>GNU General Public License (GPL) V2 or any newer version</p></li>
<li class="listitem"><p>Apache License, V2.0 or any newer version</p></li>
</ol></div>
<p>
You may not use this documentation except in compliance with at
least one of the above three licenses. See the
<a class="ulink" href="http://librdf.org/raptor/" target="_top">Raptor</a>
site for the full license terms.
</p>
</div></div>
</div>
<hr>
</div>
<div class="toc"><dl class="toc">
<dt><span class="chapter"><a href="introduction.html">Raptor Overview</a></span></dt>
<dt><span class="part"><a href="tutorial.html">I. Raptor Tutorial</a></span></dt>
<dd><dl>
<dt><span class="chapter"><a href="tutorial-initialising-finishing.html">Initialising and Finishing using the Library</a></span></dt>
<dt><span class="chapter"><a href="tutorial-querying-functionality.html">Listing built-in functionality</a></span></dt>
<dt><span class="chapter"><a href="tutorial-parsing.html">Parsing syntaxes to RDF Triples</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="tutorial-parsing.html#tutorial-parsing-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-create.html">Create the Parser object</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-features.html">Parser options</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-set-triple-handler.html">Set RDF statement callback handler</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-set-error-warning-handlers.html">Set parsing log message handlers</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-set-id-handler.html">Set the identifier creator handler</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-set-namespace-handler.html">Set namespace declared handler</a></span></dt>
<dt><span class="section"><a href="tutorial-parse-strictness.html">Set the parsing strictness</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-content.html">Provide syntax content to parse</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="tutorial-parser-content.html#parse-from-uri">Parse the content from a URI (<code class="function">raptor_parser_parse_uri()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-content.html#parse-from-www">Parse the content of a URI using an existing WWW connection (<code class="function">raptor_parser_parse_uri_with_connection()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-content.html#parse-from-filehandle">Parse the content of a C <code class="literal">FILE*</code> (<code class="function">raptor_parser_parse_file_stream()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-content.html#parse-from-file-uri">Parse the content of a file URI (<code class="function">raptor_parser_parse_file()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-content.html#parse-from-chunks">Parse chunks of syntax content provided by the application (<code class="function">raptor_parser_parse_start()</code> and <code class="function">raptor_parser_parse_chunk()</code>)</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="restrict-parser-network-access.html">Restrict parser network access</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="restrict-parser-network-access.html#tutorial-filter-network-with-feature">Filtering parser network requests with option <code class="literal">RAPTOR_OPTION_NO_NET</code></a></span></dt>
<dt><span class="section"><a href="restrict-parser-network-access.html#tutorial-filter-network-www-uri-filter">Filtering parser network requests with <code class="function">raptor_www_set_uri_filter()</code></a></span></dt>
<dt><span class="section"><a href="restrict-parser-network-access.html#tutorial-filter-network-parser-uri-filter">Filtering parser network requests with <code class="function">raptor_parser_set_uri_filter()</code></a></span></dt>
<dt><span class="section"><a href="restrict-parser-network-access.html#tutorial-filter-network-parser-timeout">Setting timeout for parser network requests with option <code class="literal">RAPTOR_OPTION_WWW_TIMEOUT</code></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="tutorial-parser-static-info.html">Querying parser static information</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-runtime-info.html">Querying parser run-time information</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-abort.html">Aborting parsing</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-destroy.html">Destroy the parser</a></span></dt>
<dt><span class="section"><a href="tutorial-parser-example.html">Parsing example code</a></span></dt>
</dl></dd>
<dt><span class="chapter"><a href="tutorial-serializing.html">Serializing RDF triples to a syntax</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="tutorial-serializing.html#tutorial-serializing-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-create.html">Create the Serializer object</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-features.html">Serializer options</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-declare-namespace.html">Declare namespaces</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-set-error-warning-handlers.html">Set error and warning handlers</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-to-destination.html">Provide a destination for the serialized syntax</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="tutorial-serializer-to-destination.html#serialize-to-filename">Serialize to a filename (<code class="function">raptor_serializer_start_to_filename()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-to-destination.html#serialize-to-string">Serialize to a string (<code class="function">raptor_serializer_start_to_string()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-to-destination.html#serialize-to-filehandle">Serialize to a FILE* file handle (<code class="function">raptor_serializer_start_to_file_handle()</code>)</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-to-destination.html#serialize-to-iostream">Serialize to an <span class="type">raptor_iostream</span> (<code class="function">raptor_serializer_start_to_iostream()</code>)</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="tutorial-serializer-get-triples.html">Get or construct RDF Statements (Triples)</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-send-triples.html">Send RDF Triples to serializer</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-runtime-info.html">Querying serializer run-time information</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-destroy.html">Destroy the serializer</a></span></dt>
<dt><span class="section"><a href="tutorial-serializer-example.html">Serializing example code</a></span></dt>
</dl></dd>
</dl></dd>
<dt><span class="part"><a href="reference-manual.html">II. Raptor Reference Manual</a></span></dt>
<dd><dl>
<dt><span class="chapter"><a href="raptor-parsers.html">Parsers in Raptor (syntax to triples)</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor-parsers.html#raptor-parsers-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="parser-grddl.html">GRDDL parser (name <code class="literal">grddl</code>)</a></span></dt>
<dt><span class="section"><a href="parser-guess.html">Guess parser (name <code class="literal">guess</code>)</a></span></dt>
<dt><span class="section"><a href="parser-json.html">JSON parser (name <code class="literal">json</code>)</a></span></dt>
<dt><span class="section"><a href="parser-ntriples.html">N-Triples parser (name <code class="literal">ntriples</code>)</a></span></dt>
<dt><span class="section"><a href="parser-rdfa.html">RDFa parser - (name <code class="literal">rdfa</code>)</a></span></dt>
<dt><span class="section"><a href="parser-rdfxml.html">RDF/XML parser - default (name <code class="literal">rdfxml</code>)</a></span></dt>
<dt><span class="section"><a href="parser-rss-tag-soup.html">RSS Tag Soup parser (name <code class="literal">rss-tag-soup</code>)</a></span></dt>
<dt><span class="section"><a href="parser-trig.html">TRiG parser (name <code class="literal">trig</code>)</a></span></dt>
<dt><span class="section"><a href="parser-turtle.html">Turtle Terse RDF Triple Language parser (name <code class="literal">turtle</code>)</a></span></dt>
</dl></dd>
<dt><span class="chapter"><a href="raptor-serializers.html">Serializers in Raptor (triples to syntax)</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor-serializers.html#raptor-serializers-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="serializer-atom.html">Atom 1.0 serializer (name <code class="literal">atom</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-json.html">JSON serializers (name <code class="literal">json</code> and name <code class="literal">json-triples</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-mkr.html">mKR serializer - default (name <code class="literal">mkr</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-nquads.html">N-Quads serializer - default (name <code class="literal">nquads</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-ntriples.html">N-Triples serializer - default (name <code class="literal">ntriples</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-rdfxml.html">RDF/XML serializer (name <code class="literal">rdfxml</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-rdfxml-abbrev.html">RDF/XML (Abbreviated) serializer (name <code class="literal">rdfxml-abbrev</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-rdfxml-xmp.html">RDF/XML (XMP Profile) serializer (name <code class="literal">rdfxml-xmp</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-turtle.html">Turtle serializer (name <code class="literal">turtle</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-rss-1-0.html">RSS 1.0 serializer (name <code class="literal">rss-1.0</code>)</a></span></dt>
<dt><span class="section"><a href="serializer-dot.html">GraphViz dot serializer (name <code class="literal">dot</code>)</a></span></dt>
</dl></dd>
<dt>
<span class="refentrytitle"><a href="raptor2-section-world.html">section-world</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-general.html">section-general</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-memory.html">section-memory</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-avltree.html">section-avltree</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-constants.html">section-constants</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-option.html">section-option</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-iostream.html">section-iostream</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-locator.html">section-locator</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-parser.html">section-parser</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-sax2.html">section-sax2</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-sequence.html">section-sequence</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-serializer.html">section-serializer</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-stringbuffer.html">section-stringbuffer</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-triples.html">section-triples</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-unicode.html">section-unicode</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-uri.html">section-uri</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-www.html">section-www</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-xml-namespace.html">section-xml-namespace</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-xml-qname.html">section-xml-qname</a></span><span class="refpurpose"></span>
</dt>
<dt>
<span class="refentrytitle"><a href="raptor2-section-xml.html">section-xml</a></span><span class="refpurpose"></span>
</dt>
<dt><span class="chapter"><a href="raptor-formats.html">Syntax Formats supported in Raptor</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor-formats.html#raptor-formats-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="raptor-formats-types-by-parser.html">MIME Types by Parser</a></span></dt>
<dt><span class="section"><a href="raptor-formats-types-by-serializer.html">MIME Types by Serializer</a></span></dt>
<dt><span class="section"><a href="raptor-formats-types-index.html">MIME Types Index</a></span></dt>
</dl></dd>
<dt><span class="chapter"><a href="raptor2-changes.html">API Changes</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor2-changes.html#raptor2-changes-intro">Introduction</a></span></dt>
<dt><span class="section"><a href="raptor2-changes-1-4-21-to-2-0-0.html">Changes between raptor2 1.4.21 and 2.0.0</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor2-changes-1-4-21-to-2-0-0.html#raptor2-changes-new-1-4-21-to-2-0-0">New functions, types, enums and constants</a></span></dt>
<dt><span class="section"><a href="raptor2-changes-1-4-21-to-2-0-0.html#raptor2-changes-deleted-1-4-21-to-2-0-0">Deleted functions, types, enums and constants</a></span></dt>
<dt><span class="section"><a href="raptor2-changes-1-4-21-to-2-0-0.html#raptor2-changes-renamed-1-4-21-to-2-0-0">Renamed functions, enums and constants</a></span></dt>
<dt><span class="section"><a href="raptor2-changes-1-4-21-to-2-0-0.html#raptor2-changes-changed-1-4-21-to-2-0-0">Changed functions and types</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-3-to-2-0-4.html">Changes between raptor2 2.0.3 and 2.0.4</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-3-to-2-0-4.html#raptor2-changes-new-2-0-3-to-2-0-4">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-4-to-2-0-5.html">Changes between raptor2 2.0.4 and 2.0.5</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-4-to-2-0-5.html#raptor2-changes-new-2-0-4-to-2-0-5">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-5-to-2-0-6.html">Changes between raptor2 2.0.5 and 2.0.6</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-5-to-2-0-6.html#raptor2-changes-new-2-0-5-to-2-0-6">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-6-to-2-0-7.html">Changes between raptor2 2.0.6 and 2.0.7</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-6-to-2-0-7.html#raptor2-changes-new-2-0-6-to-2-0-7">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-7-to-2-0-8.html">Changes between raptor2 2.0.7 and 2.0.8</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-7-to-2-0-8.html#raptor2-changes-new-2-0-7-to-2-0-8">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-9-to-2-0-10.html">Changes between raptor2 2.0.9 and 2.0.10</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-9-to-2-0-10.html#raptor2-changes-new-2-0-9-to-2-0-10">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-10-to-2-0-11.html">Changes between raptor2 2.0.10 and 2.0.11</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-10-to-2-0-11.html#raptor2-changes-new-2-0-10-to-2-0-11">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-11-to-2-0-12.html">Changes between raptor2 2.0.11 and 2.0.12</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-11-to-2-0-12.html#raptor2-changes-new-2-0-11-to-2-0-12">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-13-to-2-0-14.html">Changes between raptor2 2.0.13 and 2.0.14</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-13-to-2-0-14.html#raptor2-changes-new-2-0-13-to-2-0-14">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-14-to-2-0-15.html">Changes between raptor2 2.0.14 and 2.0.15</a></span></dt>
<dd><dl><dt><span class="section"><a href="raptor2-changes-2-0-14-to-2-0-15.html#raptor2-changes-new-2-0-14-to-2-0-15">New functions, types, enums and constants</a></span></dt></dl></dd>
<dt><span class="section"><a href="raptor2-changes-2-0-15-to-2-0-16.html">Changes between raptor2 2.0.15 and 2.0.16</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="raptor2-changes-2-0-15-to-2-0-16.html#raptor2-changes-new-2-0-15-to-2-0-16">New functions, types, enums and constants</a></span></dt>
<dt><span class="section"><a href="raptor2-changes-2-0-15-to-2-0-16.html#raptor2-changes-deleted-2-0-15-to-2-0-16">Deleted functions, types, enums and constants</a></span></dt>
</dl></dd>
</dl></dd>
</dl></dd>
<dt><span class="index"><a href="ix01.html">Index</a></span></dt>
</dl></div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>
|