/usr/share/gtk-doc/html/librdf/redland-world.html is in librdf0-dev 1.0.17-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>World</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Redland RDF Library Manual">
<link rel="up" href="reference-manual.html" title="Part II. Reference Manual">
<link rel="prev" href="objects.html" title="Objects in C">
<link rel="next" href="redland-general.html" title="General">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="objects.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Redland RDF Library Manual</th>
<td><a accesskey="n" href="redland-general.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#redland-world.synopsis" class="shortcut">Top</a>
|
<a href="#redland-world.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="redland-world"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="redland-world.top_of_page"></a>World</span></h2>
<p>World — Initialisation and termination of library</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="redland-world.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a>;
<a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="returnvalue">librdf_world</span></a> * <a class="link" href="redland-world.html#librdf-new-world" title="librdf_new_world ()">librdf_new_world</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-free-world" title="librdf_free_world ()">librdf_free_world</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()">librdf_world_open</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-rasqal" title="librdf_world_set_rasqal ()">librdf_world_set_rasqal</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);
<span class="returnvalue">rasqal_world</span> * <a class="link" href="redland-world.html#librdf-world-get-rasqal" title="librdf_world_get_rasqal ()">librdf_world_get_rasqal</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<span class="returnvalue">raptor_world</span> * <a class="link" href="redland-world.html#librdf-world-get-raptor" title="librdf_world_get_raptor ()">librdf_world_get_raptor</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-raptor" title="librdf_world_set_raptor ()">librdf_world_set_raptor</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-init-mutex" title="librdf_world_init_mutex ()">librdf_world_init_mutex</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-error" title="librdf_world_set_error ()">librdf_world_set_error</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-level-func" title="librdf_log_level_func ()"><span class="type">librdf_log_level_func</span></a> error_handler</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-warning" title="librdf_world_set_warning ()">librdf_world_set_warning</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-level-func" title="librdf_log_level_func ()"><span class="type">librdf_log_level_func</span></a> warning_handler</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-logger" title="librdf_world_set_logger ()">librdf_world_set_logger</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-func" title="librdf_log_func ()"><span class="type">librdf_log_func</span></a> log_handler</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-digest" title="librdf_world_set_digest ()">librdf_world_set_digest</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="redland-world.html#librdf-raptor-init-handler" title="librdf_raptor_init_handler ()">*librdf_raptor_init_handler</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-raptor-init-handler" title="librdf_world_set_raptor_init_handler ()">librdf_world_set_raptor_init_handler</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-world.html#librdf-raptor-init-handler" title="librdf_raptor_init_handler ()"><span class="type">librdf_raptor_init_handler</span></a> handler</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="redland-world.html#librdf-rasqal-init-handler" title="librdf_rasqal_init_handler ()">*librdf_rasqal_init_handler</a>) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-world-set-rasqal-init-handler" title="librdf_world_set_rasqal_init_handler ()">librdf_world_set_rasqal_init_handler</a>
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-world.html#librdf-rasqal-init-handler" title="librdf_rasqal_init_handler ()"><span class="type">librdf_rasqal_init_handler</span></a> handler</code></em>);
#define <a class="link" href="redland-world.html#LIBRDF-WORLD-FEATURE-GENID-BASE:CAPS" title="LIBRDF_WORLD_FEATURE_GENID_BASE">LIBRDF_WORLD_FEATURE_GENID_BASE</a>
#define <a class="link" href="redland-world.html#LIBRDF-WORLD-FEATURE-GENID-COUNTER:CAPS" title="LIBRDF_WORLD_FEATURE_GENID_COUNTER">LIBRDF_WORLD_FEATURE_GENID_COUNTER</a>
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * <a class="link" href="redland-world.html#librdf-world-get-feature" title="librdf_world_get_feature ()">librdf_world_get_feature</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *feature</code></em>);
<span class="returnvalue">int</span> <a class="link" href="redland-world.html#librdf-world-set-feature" title="librdf_world_set_feature ()">librdf_world_set_feature</a> (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *feature</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-init-world" title="librdf_init_world ()">librdf_init_world</a> (<em class="parameter"><code><span class="type">char</span> *digest_factory_name</code></em>,
<em class="parameter"><code><span class="type">void</span> *not_used2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="redland-world.html#librdf-destroy-world" title="librdf_destroy_world ()">librdf_destroy_world</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="redland-world.description"></a><h2>Description</h2>
<p>
The Redland <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> class handles startup and termination of
the library and cleanup of all allocated resources.
</p>
</div>
<div class="refsect1">
<a name="redland-world.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="librdf-world"></a><h3>librdf_world</h3>
<pre class="programlisting">typedef struct librdf_world_s librdf_world;
</pre>
<p>
Redland world class.
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-new-world"></a><h3>librdf_new_world ()</h3>
<pre class="programlisting"><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="returnvalue">librdf_world</span></a> * librdf_new_world (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create a new Redland execution environment.
</p>
<p>
Once this constructor is called to build a <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object
several functions may be called to set some parameters such as
<a class="link" href="redland-world.html#librdf-world-set-error" title="librdf_world_set_error ()"><code class="function">librdf_world_set_error()</code></a>, <a class="link" href="redland-world.html#librdf-world-set-warning" title="librdf_world_set_warning ()"><code class="function">librdf_world_set_warning()</code></a>,
<a class="link" href="redland-world.html#librdf-world-set-logger" title="librdf_world_set_logger ()"><code class="function">librdf_world_set_logger()</code></a>, <a class="link" href="redland-world.html#librdf-world-set-digest" title="librdf_world_set_digest ()"><code class="function">librdf_world_set_digest()</code></a>,
<a class="link" href="redland-world.html#librdf-world-set-feature" title="librdf_world_set_feature ()"><code class="function">librdf_world_set_feature()</code></a>.
</p>
<p>
The world object needs initializing using <a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a>
whether or not the above functions are called. It will be
automatically called by all object constructors in Redland 1.0.6
or later, but for earlier versions it MUST be called before using
any other part of Redland.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> or NULL on failure</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-free-world"></a><h3>librdf_free_world ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_free_world (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
Terminate the library and frees all allocated resources.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-open"></a><h3>librdf_world_open ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_open (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
Open a created redland world environment.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-rasqal"></a><h3>librdf_world_set_rasqal ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_rasqal (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);</pre>
<p>
Set the <span class="type">rasqal_world</span> instance to be used with this <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a>.
</p>
<p>
If no rasqal_world instance is set with this function,
<a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a> creates a new instance.
</p>
<p>
Ownership of the rasqal_world is not taken. If the rasqal library
instance is set with this function, <a class="link" href="redland-world.html#librdf-free-world" title="librdf_free_world ()"><code class="function">librdf_free_world()</code></a> will not
free it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rasqal_world_ptr</code></em> :</span></p></td>
<td>rasqal_world object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-get-rasqal"></a><h3>librdf_world_get_rasqal ()</h3>
<pre class="programlisting"><span class="returnvalue">rasqal_world</span> * librdf_world_get_rasqal (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
Get the <span class="type">rasqal_world</span> instance used by this <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>rasqal_world object or NULL on failure (e.g. not initialized)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-get-raptor"></a><h3>librdf_world_get_raptor ()</h3>
<pre class="programlisting"><span class="returnvalue">raptor_world</span> * librdf_world_get_raptor (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
Get the <span class="type">raptor_world</span> instance used by this <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>raptor_world object or NULL on failure (e.g. not initialized)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-raptor"></a><h3>librdf_world_set_raptor ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_raptor (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);</pre>
<p>
Set the <span class="type">raptor_world</span> instance to be used with this <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a>.
</p>
<p>
If no raptor_world instance is set with this function,
<a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a> creates a new instance.
</p>
<p>
Ownership of the raptor_world is not taken. If the raptor library
instance is set with this function, <a class="link" href="redland-world.html#librdf-free-world" title="librdf_free_world ()"><code class="function">librdf_free_world()</code></a> will not
free it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>raptor_world_ptr</code></em> :</span></p></td>
<td>raptor_world object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-init-mutex"></a><h3>librdf_world_init_mutex ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_init_mutex (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>);</pre>
<p>
INTERNAL - Create the world mutex.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-error"></a><h3>librdf_world_set_error ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_error (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-level-func" title="librdf_log_level_func ()"><span class="type">librdf_log_level_func</span></a> error_handler</code></em>);</pre>
<p>
Set the world error handling function.
</p>
<p>
The function will receive callbacks when the world fails.
<a class="link" href="redland-world.html#librdf-world-set-logger" title="librdf_world_set_logger ()"><code class="function">librdf_world_set_logger()</code></a> provides richer access to all log messages
and should be used in preference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data to pass to function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_handler</code></em> :</span></p></td>
<td>pointer to the function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-warning"></a><h3>librdf_world_set_warning ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_warning (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-level-func" title="librdf_log_level_func ()"><span class="type">librdf_log_level_func</span></a> warning_handler</code></em>);</pre>
<p>
Set the world warning handling function.
</p>
<p>
The function will receive callbacks when the world gives a warning.
<a class="link" href="redland-world.html#librdf-world-set-logger" title="librdf_world_set_logger ()"><code class="function">librdf_world_set_logger()</code></a> provides richer access to all log messages
and should be used in preference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data to pass to function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>warning_handler</code></em> :</span></p></td>
<td>pointer to the function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-logger"></a><h3>librdf_world_set_logger ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_logger (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-log.html#librdf-log-func" title="librdf_log_func ()"><span class="type">librdf_log_func</span></a> log_handler</code></em>);</pre>
<p>
Set the world log handling function.
</p>
<p>
The function will receive callbacks when redland generates a log message
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data to pass to function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>log_handler</code></em> :</span></p></td>
<td>pointer to the function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-digest"></a><h3>librdf_world_set_digest ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_digest (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
<p>
Set the default content digest name.
</p>
<p>
Sets the digest factory for various modules that need to make
digests of their objects.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>redland world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>Digest factory name</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-raptor-init-handler"></a><h3>librdf_raptor_init_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*librdf_raptor_init_handler) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-raptor-init-handler"></a><h3>librdf_world_set_raptor_init_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_raptor_init_handler
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-world.html#librdf-raptor-init-handler" title="librdf_raptor_init_handler ()"><span class="type">librdf_raptor_init_handler</span></a> handler</code></em>);</pre>
<p>
Set the raptor initialization handler to be called if a new raptor_world is constructed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>handler to call</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-rasqal-init-handler"></a><h3>librdf_rasqal_init_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*librdf_rasqal_init_handler) (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-rasqal-init-handler"></a><h3>librdf_world_set_rasqal_init_handler ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_rasqal_init_handler
(<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
<em class="parameter"><code><a class="link" href="redland-world.html#librdf-rasqal-init-handler" title="librdf_rasqal_init_handler ()"><span class="type">librdf_rasqal_init_handler</span></a> handler</code></em>);</pre>
<p>
Set the rasqal initialization handler to be called if a new rasqal_world is constructed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>librdf_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td>
<td>handler to call</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="LIBRDF-WORLD-FEATURE-GENID-BASE:CAPS"></a><h3>LIBRDF_WORLD_FEATURE_GENID_BASE</h3>
<pre class="programlisting">#define LIBRDF_WORLD_FEATURE_GENID_BASE "http://feature.librdf.org/genid-base"
</pre>
<p>
World feature to set the generated ID base.
</p>
<p>
Must be set before the world is opened with <a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="LIBRDF-WORLD-FEATURE-GENID-COUNTER:CAPS"></a><h3>LIBRDF_WORLD_FEATURE_GENID_COUNTER</h3>
<pre class="programlisting">#define LIBRDF_WORLD_FEATURE_GENID_COUNTER "http://feature.librdf.org/genid-counter"
</pre>
<p>
World feature to set the generated ID counter.
</p>
<p>
Must be set before the world is opened with <a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-get-feature"></a><h3>librdf_world_get_feature ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="returnvalue">librdf_node</span></a> * librdf_world_get_feature (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *feature</code></em>);</pre>
<p>
Get the value of a world feature.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>
<a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> feature property</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> feature value or NULL if no such feature
exists or the value is empty.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-world-set-feature"></a><h3>librdf_world_set_feature ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> librdf_world_set_feature (<em class="parameter"><code><a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> *world</code></em>,
<em class="parameter"><code><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> *feature</code></em>,
<em class="parameter"><code><a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> *value</code></em>);</pre>
<p>
Set the value of a world feature.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>
<a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td>
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> feature property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>
<a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> feature property value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 on failure (negative if no such feature)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-init-world"></a><h3>librdf_init_world ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_init_world (<em class="parameter"><code><span class="type">char</span> *digest_factory_name</code></em>,
<em class="parameter"><code><span class="type">void</span> *not_used2</code></em>);</pre>
<p>
Initialise the library
<em class="parameter"><code>deprecated</code></em>: Do not use.
</p>
<p>
Use <a class="link" href="redland-world.html#librdf-new-world" title="librdf_new_world ()"><code class="function">librdf_new_world()</code></a> and <a class="link" href="redland-world.html#librdf-world-open" title="librdf_world_open ()"><code class="function">librdf_world_open()</code></a> on <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object
</p>
<p>
See <a class="link" href="redland-world.html#librdf-world-set-digest" title="librdf_world_set_digest ()"><code class="function">librdf_world_set_digest()</code></a> for documentation on arguments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>digest_factory_name</code></em> :</span></p></td>
<td>Name of digest factory to use</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>not_used2</code></em> :</span></p></td>
<td>Not used</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-destroy-world"></a><h3>librdf_destroy_world ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> librdf_destroy_world (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Terminate the library
<em class="parameter"><code>deprecated</code></em>: Do not use.
</p>
<p>
Use <a class="link" href="redland-world.html#librdf-free-world" title="librdf_free_world ()"><code class="function">librdf_free_world()</code></a> on <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object
</p>
<p>
Terminates and frees the resources.
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|