| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>World</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> |
| 7 | <link rel="home" href="index.html" title="Redland RDF Library Manual"> |
| 8 | <link rel="up" href="reference-manual.html" title="Part II. Reference Manual"> |
| 9 | <link rel="prev" href="objects.html" title="Objects in C"> |
| 10 | <link rel="next" href="redland-general.html" title="General"> |
| 11 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 | <tr valign="middle"> |
| 17 | <td><a accesskey="p" href="objects.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 | <td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 | <th width="100%" align="center">Redland RDF Library Manual</th> |
| 21 | <td><a accesskey="n" href="redland-general.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 | </tr> |
| 23 | <tr><td colspan="5" class="shortcuts"> |
| 24 | <a href="#redland-world.synopsis" class="shortcut">Top</a> |
| 25 | | |
| 26 | <a href="#redland-world.description" class="shortcut">Description</a> |
| 27 | </td></tr> |
| 28 | </table> |
| 29 | <div class="refentry"> |
| 30 | <a name="redland-world"></a><div class="titlepage"></div> |
| 31 | <div class="refnamediv"><table width="100%"><tr> |
| 32 | <td valign="top"> |
| 33 | <h2><span class="refentrytitle"><a name="redland-world.top_of_page"></a>World</span></h2> |
| 34 | <p>World — Initialisation and termination of library</p> |
| 35 | </td> |
| 36 | <td valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsynopsisdiv"> |
| 39 | <a name="redland-world.synopsis"></a><h2>Synopsis</h2> |
| 40 | <pre class="synopsis">typedef <a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a>; |
| 41 | <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>); |
| 42 | <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>); |
| 43 | <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>); |
| 44 | <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>, |
| 45 | <em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>); |
| 46 | <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>); |
| 47 | <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>); |
| 48 | <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>, |
| 49 | <em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>); |
| 50 | <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>); |
| 51 | <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>, |
| 52 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 53 | <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>); |
| 54 | <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>, |
| 55 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 56 | <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>); |
| 57 | <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>, |
| 58 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 59 | <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>); |
| 60 | <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>, |
| 61 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>); |
| 62 | <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>, |
| 63 | <em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>); |
| 64 | <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> |
| 65 | (<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>, |
| 66 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 67 | <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>); |
| 68 | <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>, |
| 69 | <em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>); |
| 70 | <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> |
| 71 | (<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>, |
| 72 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 73 | <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>); |
| 74 | #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> |
| 75 | #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> |
| 76 | <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>, |
| 77 | <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>); |
| 78 | <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>, |
| 79 | <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>, |
| 80 | <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>); |
| 81 | <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>, |
| 82 | <em class="parameter"><code><span class="type">void</span> *not_used2</code></em>); |
| 83 | <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>); |
| 84 | </pre> |
| 85 | </div> |
| 86 | <div class="refsect1"> |
| 87 | <a name="redland-world.description"></a><h2>Description</h2> |
| 88 | <p> |
| 89 | 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 |
| 90 | the library and cleanup of all allocated resources. |
| 91 | </p> |
| 92 | </div> |
| 93 | <div class="refsect1"> |
| 94 | <a name="redland-world.details"></a><h2>Details</h2> |
| 95 | <div class="refsect2"> |
| 96 | <a name="librdf-world"></a><h3>librdf_world</h3> |
| 97 | <pre class="programlisting">typedef struct librdf_world_s librdf_world; |
| 98 | </pre> |
| 99 | <p> |
| 100 | Redland world class. |
| 101 | </p> |
| 102 | </div> |
| 103 | <hr> |
| 104 | <div class="refsect2"> |
| 105 | <a name="librdf-new-world"></a><h3>librdf_new_world ()</h3> |
| 106 | <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> |
| 107 | <p> |
| 108 | Create a new Redland execution environment. |
| 109 | </p> |
| 110 | <p> |
| 111 | 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 |
| 112 | several functions may be called to set some parameters such as |
| 113 | <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>, |
| 114 | <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>, |
| 115 | <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>. |
| 116 | </p> |
| 117 | <p> |
| 118 | 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> |
| 119 | whether or not the above functions are called. It will be |
| 120 | automatically called by all object constructors in Redland 1.0.6 |
| 121 | or later, but for earlier versions it MUST be called before using |
| 122 | any other part of Redland. |
| 123 | </p> |
| 124 | <div class="variablelist"><table border="0"> |
| 125 | <col align="left" valign="top"> |
| 126 | <tbody><tr> |
| 127 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 128 | <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> |
| 129 | </tr></tbody> |
| 130 | </table></div> |
| 131 | </div> |
| 132 | <hr> |
| 133 | <div class="refsect2"> |
| 134 | <a name="librdf-free-world"></a><h3>librdf_free_world ()</h3> |
| 135 | <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> |
| 136 | <p> |
| 137 | Terminate the library and frees all allocated resources. |
| 138 | </p> |
| 139 | <div class="variablelist"><table border="0"> |
| 140 | <col align="left" valign="top"> |
| 141 | <tbody><tr> |
| 142 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 143 | <td>redland world object</td> |
| 144 | </tr></tbody> |
| 145 | </table></div> |
| 146 | </div> |
| 147 | <hr> |
| 148 | <div class="refsect2"> |
| 149 | <a name="librdf-world-open"></a><h3>librdf_world_open ()</h3> |
| 150 | <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> |
| 151 | <p> |
| 152 | Open a created redland world environment. |
| 153 | </p> |
| 154 | <div class="variablelist"><table border="0"> |
| 155 | <col align="left" valign="top"> |
| 156 | <tbody><tr> |
| 157 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 158 | <td>redland world object</td> |
| 159 | </tr></tbody> |
| 160 | </table></div> |
| 161 | </div> |
| 162 | <hr> |
| 163 | <div class="refsect2"> |
| 164 | <a name="librdf-world-set-rasqal"></a><h3>librdf_world_set_rasqal ()</h3> |
| 165 | <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>, |
| 166 | <em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);</pre> |
| 167 | <p> |
| 168 | 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>. |
| 169 | </p> |
| 170 | <p> |
| 171 | If no rasqal_world instance is set with this function, |
| 172 | <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. |
| 173 | </p> |
| 174 | <p> |
| 175 | Ownership of the rasqal_world is not taken. If the rasqal library |
| 176 | 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 |
| 177 | free it. |
| 178 | </p> |
| 179 | <div class="variablelist"><table border="0"> |
| 180 | <col align="left" valign="top"> |
| 181 | <tbody> |
| 182 | <tr> |
| 183 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 184 | <td>librdf_world object</td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td><p><span class="term"><em class="parameter"><code>rasqal_world_ptr</code></em> :</span></p></td> |
| 188 | <td>rasqal_world object</td> |
| 189 | </tr> |
| 190 | </tbody> |
| 191 | </table></div> |
| 192 | </div> |
| 193 | <hr> |
| 194 | <div class="refsect2"> |
| 195 | <a name="librdf-world-get-rasqal"></a><h3>librdf_world_get_rasqal ()</h3> |
| 196 | <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> |
| 197 | <p> |
| 198 | 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>. |
| 199 | </p> |
| 200 | <div class="variablelist"><table border="0"> |
| 201 | <col align="left" valign="top"> |
| 202 | <tbody> |
| 203 | <tr> |
| 204 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 205 | <td>librdf_world object</td> |
| 206 | </tr> |
| 207 | <tr> |
| 208 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 209 | <td>rasqal_world object or NULL on failure (e.g. not initialized)</td> |
| 210 | </tr> |
| 211 | </tbody> |
| 212 | </table></div> |
| 213 | </div> |
| 214 | <hr> |
| 215 | <div class="refsect2"> |
| 216 | <a name="librdf-world-get-raptor"></a><h3>librdf_world_get_raptor ()</h3> |
| 217 | <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> |
| 218 | <p> |
| 219 | 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>. |
| 220 | </p> |
| 221 | <div class="variablelist"><table border="0"> |
| 222 | <col align="left" valign="top"> |
| 223 | <tbody> |
| 224 | <tr> |
| 225 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 226 | <td>librdf_world object</td> |
| 227 | </tr> |
| 228 | <tr> |
| 229 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 230 | <td>raptor_world object or NULL on failure (e.g. not initialized)</td> |
| 231 | </tr> |
| 232 | </tbody> |
| 233 | </table></div> |
| 234 | </div> |
| 235 | <hr> |
| 236 | <div class="refsect2"> |
| 237 | <a name="librdf-world-set-raptor"></a><h3>librdf_world_set_raptor ()</h3> |
| 238 | <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>, |
| 239 | <em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);</pre> |
| 240 | <p> |
| 241 | 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>. |
| 242 | </p> |
| 243 | <p> |
| 244 | If no raptor_world instance is set with this function, |
| 245 | <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. |
| 246 | </p> |
| 247 | <p> |
| 248 | Ownership of the raptor_world is not taken. If the raptor library |
| 249 | 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 |
| 250 | free it. |
| 251 | </p> |
| 252 | <div class="variablelist"><table border="0"> |
| 253 | <col align="left" valign="top"> |
| 254 | <tbody> |
| 255 | <tr> |
| 256 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 257 | <td>librdf_world object</td> |
| 258 | </tr> |
| 259 | <tr> |
| 260 | <td><p><span class="term"><em class="parameter"><code>raptor_world_ptr</code></em> :</span></p></td> |
| 261 | <td>raptor_world object</td> |
| 262 | </tr> |
| 263 | </tbody> |
| 264 | </table></div> |
| 265 | </div> |
| 266 | <hr> |
| 267 | <div class="refsect2"> |
| 268 | <a name="librdf-world-init-mutex"></a><h3>librdf_world_init_mutex ()</h3> |
| 269 | <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> |
| 270 | <p> |
| 271 | INTERNAL - Create the world mutex. |
| 272 | </p> |
| 273 | <div class="variablelist"><table border="0"> |
| 274 | <col align="left" valign="top"> |
| 275 | <tbody><tr> |
| 276 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 277 | <td>redland world object</td> |
| 278 | </tr></tbody> |
| 279 | </table></div> |
| 280 | </div> |
| 281 | <hr> |
| 282 | <div class="refsect2"> |
| 283 | <a name="librdf-world-set-error"></a><h3>librdf_world_set_error ()</h3> |
| 284 | <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>, |
| 285 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 286 | <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> |
| 287 | <p> |
| 288 | Set the world error handling function. |
| 289 | </p> |
| 290 | <p> |
| 291 | The function will receive callbacks when the world fails. |
| 292 | <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 |
| 293 | and should be used in preference. |
| 294 | </p> |
| 295 | <div class="variablelist"><table border="0"> |
| 296 | <col align="left" valign="top"> |
| 297 | <tbody> |
| 298 | <tr> |
| 299 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 300 | <td>redland world object</td> |
| 301 | </tr> |
| 302 | <tr> |
| 303 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 304 | <td>user data to pass to function</td> |
| 305 | </tr> |
| 306 | <tr> |
| 307 | <td><p><span class="term"><em class="parameter"><code>error_handler</code></em> :</span></p></td> |
| 308 | <td>pointer to the function</td> |
| 309 | </tr> |
| 310 | </tbody> |
| 311 | </table></div> |
| 312 | </div> |
| 313 | <hr> |
| 314 | <div class="refsect2"> |
| 315 | <a name="librdf-world-set-warning"></a><h3>librdf_world_set_warning ()</h3> |
| 316 | <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>, |
| 317 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 318 | <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> |
| 319 | <p> |
| 320 | Set the world warning handling function. |
| 321 | </p> |
| 322 | <p> |
| 323 | The function will receive callbacks when the world gives a warning. |
| 324 | <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 |
| 325 | and should be used in preference. |
| 326 | </p> |
| 327 | <div class="variablelist"><table border="0"> |
| 328 | <col align="left" valign="top"> |
| 329 | <tbody> |
| 330 | <tr> |
| 331 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 332 | <td>redland world object</td> |
| 333 | </tr> |
| 334 | <tr> |
| 335 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 336 | <td>user data to pass to function</td> |
| 337 | </tr> |
| 338 | <tr> |
| 339 | <td><p><span class="term"><em class="parameter"><code>warning_handler</code></em> :</span></p></td> |
| 340 | <td>pointer to the function</td> |
| 341 | </tr> |
| 342 | </tbody> |
| 343 | </table></div> |
| 344 | </div> |
| 345 | <hr> |
| 346 | <div class="refsect2"> |
| 347 | <a name="librdf-world-set-logger"></a><h3>librdf_world_set_logger ()</h3> |
| 348 | <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>, |
| 349 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 350 | <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> |
| 351 | <p> |
| 352 | Set the world log handling function. |
| 353 | </p> |
| 354 | <p> |
| 355 | The function will receive callbacks when redland generates a log message |
| 356 | </p> |
| 357 | <div class="variablelist"><table border="0"> |
| 358 | <col align="left" valign="top"> |
| 359 | <tbody> |
| 360 | <tr> |
| 361 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 362 | <td>redland world object</td> |
| 363 | </tr> |
| 364 | <tr> |
| 365 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 366 | <td>user data to pass to function</td> |
| 367 | </tr> |
| 368 | <tr> |
| 369 | <td><p><span class="term"><em class="parameter"><code>log_handler</code></em> :</span></p></td> |
| 370 | <td>pointer to the function</td> |
| 371 | </tr> |
| 372 | </tbody> |
| 373 | </table></div> |
| 374 | </div> |
| 375 | <hr> |
| 376 | <div class="refsect2"> |
| 377 | <a name="librdf-world-set-digest"></a><h3>librdf_world_set_digest ()</h3> |
| 378 | <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>, |
| 379 | <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre> |
| 380 | <p> |
| 381 | Set the default content digest name. |
| 382 | </p> |
| 383 | <p> |
| 384 | Sets the digest factory for various modules that need to make |
| 385 | digests of their objects. |
| 386 | </p> |
| 387 | <div class="variablelist"><table border="0"> |
| 388 | <col align="left" valign="top"> |
| 389 | <tbody> |
| 390 | <tr> |
| 391 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 392 | <td>redland world object</td> |
| 393 | </tr> |
| 394 | <tr> |
| 395 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
| 396 | <td>Digest factory name</td> |
| 397 | </tr> |
| 398 | </tbody> |
| 399 | </table></div> |
| 400 | </div> |
| 401 | <hr> |
| 402 | <div class="refsect2"> |
| 403 | <a name="librdf-raptor-init-handler"></a><h3>librdf_raptor_init_handler ()</h3> |
| 404 | <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>, |
| 405 | <em class="parameter"><code><span class="type">raptor_world</span> *raptor_world_ptr</code></em>);</pre> |
| 406 | <p> |
| 407 | </p> |
| 408 | </div> |
| 409 | <hr> |
| 410 | <div class="refsect2"> |
| 411 | <a name="librdf-world-set-raptor-init-handler"></a><h3>librdf_world_set_raptor_init_handler ()</h3> |
| 412 | <pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_raptor_init_handler |
| 413 | (<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>, |
| 414 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 415 | <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> |
| 416 | <p> |
| 417 | Set the raptor initialization handler to be called if a new raptor_world is constructed. |
| 418 | </p> |
| 419 | <div class="variablelist"><table border="0"> |
| 420 | <col align="left" valign="top"> |
| 421 | <tbody> |
| 422 | <tr> |
| 423 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 424 | <td>librdf_world object</td> |
| 425 | </tr> |
| 426 | <tr> |
| 427 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 428 | <td>user data</td> |
| 429 | </tr> |
| 430 | <tr> |
| 431 | <td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td> |
| 432 | <td>handler to call</td> |
| 433 | </tr> |
| 434 | </tbody> |
| 435 | </table></div> |
| 436 | </div> |
| 437 | <hr> |
| 438 | <div class="refsect2"> |
| 439 | <a name="librdf-rasqal-init-handler"></a><h3>librdf_rasqal_init_handler ()</h3> |
| 440 | <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>, |
| 441 | <em class="parameter"><code><span class="type">rasqal_world</span> *rasqal_world_ptr</code></em>);</pre> |
| 442 | <p> |
| 443 | </p> |
| 444 | </div> |
| 445 | <hr> |
| 446 | <div class="refsect2"> |
| 447 | <a name="librdf-world-set-rasqal-init-handler"></a><h3>librdf_world_set_rasqal_init_handler ()</h3> |
| 448 | <pre class="programlisting"><span class="returnvalue">void</span> librdf_world_set_rasqal_init_handler |
| 449 | (<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>, |
| 450 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>, |
| 451 | <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> |
| 452 | <p> |
| 453 | Set the rasqal initialization handler to be called if a new rasqal_world is constructed. |
| 454 | </p> |
| 455 | <div class="variablelist"><table border="0"> |
| 456 | <col align="left" valign="top"> |
| 457 | <tbody> |
| 458 | <tr> |
| 459 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 460 | <td>librdf_world object</td> |
| 461 | </tr> |
| 462 | <tr> |
| 463 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 464 | <td>user data</td> |
| 465 | </tr> |
| 466 | <tr> |
| 467 | <td><p><span class="term"><em class="parameter"><code>handler</code></em> :</span></p></td> |
| 468 | <td>handler to call</td> |
| 469 | </tr> |
| 470 | </tbody> |
| 471 | </table></div> |
| 472 | </div> |
| 473 | <hr> |
| 474 | <div class="refsect2"> |
| 475 | <a name="LIBRDF-WORLD-FEATURE-GENID-BASE:CAPS"></a><h3>LIBRDF_WORLD_FEATURE_GENID_BASE</h3> |
| 476 | <pre class="programlisting">#define LIBRDF_WORLD_FEATURE_GENID_BASE "http://feature.librdf.org/genid-base" |
| 477 | </pre> |
| 478 | <p> |
| 479 | World feature to set the generated ID base. |
| 480 | </p> |
| 481 | <p> |
| 482 | 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>. |
| 483 | </p> |
| 484 | </div> |
| 485 | <hr> |
| 486 | <div class="refsect2"> |
| 487 | <a name="LIBRDF-WORLD-FEATURE-GENID-COUNTER:CAPS"></a><h3>LIBRDF_WORLD_FEATURE_GENID_COUNTER</h3> |
| 488 | <pre class="programlisting">#define LIBRDF_WORLD_FEATURE_GENID_COUNTER "http://feature.librdf.org/genid-counter" |
| 489 | </pre> |
| 490 | <p> |
| 491 | World feature to set the generated ID counter. |
| 492 | </p> |
| 493 | <p> |
| 494 | 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>. |
| 495 | </p> |
| 496 | </div> |
| 497 | <hr> |
| 498 | <div class="refsect2"> |
| 499 | <a name="librdf-world-get-feature"></a><h3>librdf_world_get_feature ()</h3> |
| 500 | <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>, |
| 501 | <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> |
| 502 | <p> |
| 503 | Get the value of a world feature. |
| 504 | </p> |
| 505 | <div class="variablelist"><table border="0"> |
| 506 | <col align="left" valign="top"> |
| 507 | <tbody> |
| 508 | <tr> |
| 509 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 510 | <td> |
| 511 | <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object</td> |
| 512 | </tr> |
| 513 | <tr> |
| 514 | <td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td> |
| 515 | <td> |
| 516 | <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> feature property</td> |
| 517 | </tr> |
| 518 | <tr> |
| 519 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 520 | <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 |
| 521 | exists or the value is empty.</td> |
| 522 | </tr> |
| 523 | </tbody> |
| 524 | </table></div> |
| 525 | </div> |
| 526 | <hr> |
| 527 | <div class="refsect2"> |
| 528 | <a name="librdf-world-set-feature"></a><h3>librdf_world_set_feature ()</h3> |
| 529 | <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>, |
| 530 | <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>, |
| 531 | <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> |
| 532 | <p> |
| 533 | Set the value of a world feature. |
| 534 | </p> |
| 535 | <div class="variablelist"><table border="0"> |
| 536 | <col align="left" valign="top"> |
| 537 | <tbody> |
| 538 | <tr> |
| 539 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 540 | <td> |
| 541 | <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object</td> |
| 542 | </tr> |
| 543 | <tr> |
| 544 | <td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td> |
| 545 | <td> |
| 546 | <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> feature property</td> |
| 547 | </tr> |
| 548 | <tr> |
| 549 | <td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> |
| 550 | <td> |
| 551 | <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> feature property value</td> |
| 552 | </tr> |
| 553 | <tr> |
| 554 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 555 | <td>non 0 on failure (negative if no such feature)</td> |
| 556 | </tr> |
| 557 | </tbody> |
| 558 | </table></div> |
| 559 | </div> |
| 560 | <hr> |
| 561 | <div class="refsect2"> |
| 562 | <a name="librdf-init-world"></a><h3>librdf_init_world ()</h3> |
| 563 | <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>, |
| 564 | <em class="parameter"><code><span class="type">void</span> *not_used2</code></em>);</pre> |
| 565 | <p> |
| 566 | Initialise the library |
| 567 | <em class="parameter"><code>deprecated</code></em>: Do not use. |
| 568 | </p> |
| 569 | <p> |
| 570 | 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 |
| 571 | </p> |
| 572 | <p> |
| 573 | 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. |
| 574 | </p> |
| 575 | <div class="variablelist"><table border="0"> |
| 576 | <col align="left" valign="top"> |
| 577 | <tbody> |
| 578 | <tr> |
| 579 | <td><p><span class="term"><em class="parameter"><code>digest_factory_name</code></em> :</span></p></td> |
| 580 | <td>Name of digest factory to use</td> |
| 581 | </tr> |
| 582 | <tr> |
| 583 | <td><p><span class="term"><em class="parameter"><code>not_used2</code></em> :</span></p></td> |
| 584 | <td>Not used</td> |
| 585 | </tr> |
| 586 | </tbody> |
| 587 | </table></div> |
| 588 | </div> |
| 589 | <hr> |
| 590 | <div class="refsect2"> |
| 591 | <a name="librdf-destroy-world"></a><h3>librdf_destroy_world ()</h3> |
| 592 | <pre class="programlisting"><span class="returnvalue">void</span> librdf_destroy_world (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 593 | <p> |
| 594 | Terminate the library |
| 595 | <em class="parameter"><code>deprecated</code></em>: Do not use. |
| 596 | </p> |
| 597 | <p> |
| 598 | 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 |
| 599 | </p> |
| 600 | <p> |
| 601 | Terminates and frees the resources. |
| 602 | </p> |
| 603 | </div> |
| 604 | </div> |
| 605 | </div> |
| 606 | <div class="footer"> |
| 607 | <hr> |
| 608 | Generated by GTK-Doc V1.18</div> |
| 609 | </body> |
| 610 | </html> |