File: schema_8h.html

package info (click to toggle)
libgnurdf 0.3.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,108 kB
  • ctags: 233
  • sloc: sh: 8,929; ansic: 1,222; makefile: 280
file content (489 lines) | stat: -rw-r--r-- 17,176 bytes parent folder | download
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>schema.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.9-20010819 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>schema.h File Reference</h1>Schema functions. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="types_8h-source.html">libgnurdf/types.h</a>&gt;</code><br>

<p>
<a href="schema_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Schema (De)allocation Functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a0">rdfNewSchema</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new, blank RdfSchema.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a1">rdfDestroySchema</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Destroys an RdfSchema.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>File Input/Output Functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a2">rdfReadFile</a> (const char *filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Reads an RDF file.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a3">rdfReadBuffer</a> (char *buffer)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Reads RDF from a buffer.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a4">rdfWriteFile</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema, const char *filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes RDF to a file.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a5">rdfWriteBuffer</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema, char **buffer, int *size)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes RDF to a buffer.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a6">rdfSetCompressionLevel</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema, int level)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the schema's gzip compression level.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a7">rdfGetCompressionLevel</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the gzip compression level of the schema.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Backwards-compatibility functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a8">rdfRead</a> (const char *filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Reads an RDF file.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="schema_8h.html#a9">rdfWrite</a> (<a class="el" href="types_8h.html#a5">RdfSchema</a> *schema, const char *filename)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Writes RDF to a file.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Schema functions.
<p>
 <dl compact><dt><b>
Id: </b><dd>
 schema.h,v 1.5 2001/09/20 21:23:37 chipx86 Exp </dl><dl compact><dt><b>
Copyright:</b><dd>
 (C) 1999-2001 The GNUpdate Project.</dl>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
<p>
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
<p>
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<p>
<hr><h2>Function Documentation</h2>
<a name="a1" doxytag="schema.h::rdfDestroySchema"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void rdfDestroySchema </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>schema</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destroys an RdfSchema.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>schema
</em>&nbsp;</td><td>
The RdfSchema to destroy. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a7" doxytag="schema.h::rdfGetCompressionLevel"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int rdfGetCompressionLevel </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>schema</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the gzip compression level of the schema.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>schema
</em>&nbsp;</td><td>
The document schema.</td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
The gzip compression level. </dl>    </td>
  </tr>
</table>
<a name="a0" doxytag="schema.h::rdfNewSchema"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a5">RdfSchema</a>* rdfNewSchema </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>void&nbsp;</td>
          <td class="mdname1">&nbsp;          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a new, blank RdfSchema.
<p>
<dl compact><dt><b>
Returns: </b><dd>
The new RdfSchema. </dl>    </td>
  </tr>
</table>
<a name="a8" doxytag="schema.h::rdfRead"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a5">RdfSchema</a>* rdfRead </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>filename</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reads an RDF file.
<p>
<dl compact><dt><b>
Deprecated: </b><dd>
This function has been replaced by <a class="el" href="schema_8h.html#a2">rdfReadFile</a>()</dl><dl compact><dt><b>
See also: </b><dd>
<a class="el" href="schema_8h.html#a2">rdfReadFile</a>() </dl>    </td>
  </tr>
</table>
<a name="a3" doxytag="schema.h::rdfReadBuffer"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a5">RdfSchema</a>* rdfReadBuffer </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>buffer</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reads RDF from a buffer.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>buffer
</em>&nbsp;</td><td>
The buffer containing the RDF.</td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
An RdfSchema containing the parsed document, or NULL on error. </dl>    </td>
  </tr>
</table>
<a name="a2" doxytag="schema.h::rdfReadFile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a5">RdfSchema</a>* rdfReadFile </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname1">&nbsp; <em>filename</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reads an RDF file.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>filename
</em>&nbsp;</td><td>
The filename to read in.</td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
An RdfSchema containing the parsed document, or NULL on error. </dl>    </td>
  </tr>
</table>
<a name="a6" doxytag="schema.h::rdfSetCompressionLevel"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void rdfSetCompressionLevel </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname">&nbsp; <em>schema</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname">&nbsp; <em>level</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the schema's gzip compression level.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>schema
</em>&nbsp;</td><td>
The document schema to compress. </td></tr>
<tr><td valign=top><em>level
</em>&nbsp;</td><td>
The gzip compression level. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a9" doxytag="schema.h::rdfWrite"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void rdfWrite </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname">&nbsp; <em>schema</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname">&nbsp; <em>filename</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Writes RDF to a file.
<p>
<dl compact><dt><b>
Deprecated: </b><dd>
This function has been replaced by <a class="el" href="schema_8h.html#a4">rdfWriteFile</a>()</dl><dl compact><dt><b>
See also: </b><dd>
<a class="el" href="schema_8h.html#a4">rdfWriteFile</a>() </dl>    </td>
  </tr>
</table>
<a name="a5" doxytag="schema.h::rdfWriteBuffer"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void rdfWriteBuffer </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname">&nbsp; <em>schema</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&nbsp;</td>
          <td class="mdname">&nbsp; <em>buffer</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int *&nbsp;</td>
          <td class="mdname">&nbsp; <em>size</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Writes RDF to a buffer.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>schema
</em>&nbsp;</td><td>
The document schema to write. </td></tr>
<tr><td valign=top><em>buffer
</em>&nbsp;</td><td>
The buffer to store the RDF into. </td></tr>
<tr><td valign=top><em>size
</em>&nbsp;</td><td>
The new size of the buffer. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a4" doxytag="schema.h::rdfWriteFile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void rdfWriteFile </td>
          <td class="md">(&nbsp;</td>
          <td class="md" nowrap><a class="el" href="types_8h.html#a5">RdfSchema</a> *&nbsp;</td>
          <td class="mdname">&nbsp; <em>schema</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname">&nbsp; <em>filename</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Writes RDF to a file.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>schema
</em>&nbsp;</td><td>
The document schema to write. </td></tr>
<tr><td valign=top><em>filename
</em>&nbsp;</td><td>
The name of the file to write to. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<hr><address><small>Generated on Thu Sep 20 16:12:08 2001 for libgnurdf by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.9-20010819 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>