| 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>Triples Source</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> |
| 7 | <link rel="home" href="index.html" title="Rasqal RDF Query Library Manual"> |
| 8 | <link rel="up" href="reference-manual.html" title="Part I. Reference Manual"> |
| 9 | <link rel="prev" href="rasqal-section-triple.html" title="Triples"> |
| 10 | <link rel="next" href="rasqal-section-variable.html" title="Variables"> |
| 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="rasqal-section-triple.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">Rasqal RDF Query Library Manual</th> |
| 21 | <td><a accesskey="n" href="rasqal-section-variable.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="#rasqal-section-triples-source.synopsis" class="shortcut">Top</a> |
| 25 | | |
| 26 | <a href="#rasqal-section-triples-source.description" class="shortcut">Description</a> |
| 27 | </td></tr> |
| 28 | </table> |
| 29 | <div class="refentry"> |
| 30 | <a name="rasqal-section-triples-source"></a><div class="titlepage"></div> |
| 31 | <div class="refnamediv"><table width="100%"><tr> |
| 32 | <td valign="top"> |
| 33 | <h2><span class="refentrytitle"><a name="rasqal-section-triples-source.top_of_page"></a>Triples Source</span></h2> |
| 34 | <p>Triples Source — Source of matches to a triple pattern.</p> |
| 35 | </td> |
| 36 | <td valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsynopsisdiv"> |
| 39 | <a name="rasqal-section-triples-source.synopsis"></a><h2>Synopsis</h2> |
| 40 | <pre class="synopsis"> <a class="link" href="rasqal-section-triples-source.html#rasqal-triple-meta" title="rasqal_triple_meta">rasqal_triple_meta</a>; |
| 41 | <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-match" title="rasqal_triples_match">rasqal_triples_match</a>; |
| 42 | <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source">rasqal_triples_source</a>; |
| 43 | <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory">rasqal_triples_source_factory</a>; |
| 44 | <span class="returnvalue">int</span> (<a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory-register-fn" title="rasqal_triples_source_factory_register_fn ()">*rasqal_triples_source_factory_register_fn</a>) |
| 45 | (<em class="parameter"><code><a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory"><span class="type">rasqal_triples_source_factory</span></a> *factory</code></em>); |
| 46 | enum <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-feature" title="enum rasqal_triples_source_feature">rasqal_triples_source_feature</a>; |
| 47 | <span class="returnvalue">void</span> (<a class="link" href="rasqal-section-triples-source.html#rasqal-triples-error-handler" title="rasqal_triples_error_handler ()">*rasqal_triples_error_handler</a>) (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>, |
| 48 | <em class="parameter"><code><span class="type">raptor_locator</span> *locator</code></em>, |
| 49 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>); |
| 50 | <span class="returnvalue">void</span> (<a class="link" href="rasqal-section-triples-source.html#rasqal-triples-error-handler2" title="rasqal_triples_error_handler2 ()">*rasqal_triples_error_handler2</a>) (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>, |
| 51 | <em class="parameter"><code><span class="type">raptor_locator</span> *locator</code></em>, |
| 52 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>); |
| 53 | <span class="returnvalue">int</span> <a class="link" href="rasqal-section-triples-source.html#rasqal-set-triples-source-factory" title="rasqal_set_triples_source_factory ()">rasqal_set_triples_source_factory</a> (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>, |
| 54 | <em class="parameter"><code><a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory-register-fn" title="rasqal_triples_source_factory_register_fn ()"><span class="type">rasqal_triples_source_factory_register_fn</span></a> register_fn</code></em>, |
| 55 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>); |
| 56 | #define <a class="link" href="rasqal-section-triples-source.html#RASQAL-TRIPLES-SOURCE-FACTORY-MIN-VERSION:CAPS" title="RASQAL_TRIPLES_SOURCE_FACTORY_MIN_VERSION">RASQAL_TRIPLES_SOURCE_FACTORY_MIN_VERSION</a> |
| 57 | #define <a class="link" href="rasqal-section-triples-source.html#RASQAL-TRIPLES-SOURCE-FACTORY-MAX-VERSION:CAPS" title="RASQAL_TRIPLES_SOURCE_FACTORY_MAX_VERSION">RASQAL_TRIPLES_SOURCE_FACTORY_MAX_VERSION</a> |
| 58 | #define <a class="link" href="rasqal-section-triples-source.html#RASQAL-TRIPLES-SOURCE-MIN-VERSION:CAPS" title="RASQAL_TRIPLES_SOURCE_MIN_VERSION">RASQAL_TRIPLES_SOURCE_MIN_VERSION</a> |
| 59 | #define <a class="link" href="rasqal-section-triples-source.html#RASQAL-TRIPLES-SOURCE-MAX-VERSION:CAPS" title="RASQAL_TRIPLES_SOURCE_MAX_VERSION">RASQAL_TRIPLES_SOURCE_MAX_VERSION</a> |
| 60 | </pre> |
| 61 | </div> |
| 62 | <div class="refsect1"> |
| 63 | <a name="rasqal-section-triples-source.description"></a><h2>Description</h2> |
| 64 | <p> |
| 65 | A factory that provides the raw triple matches for a triple pattern |
| 66 | against some RDF graph. The <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory"><span class="type">rasqal_triples_source_factory</span></a> |
| 67 | must create use a new <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source"><span class="type">rasqal_triples_source</span></a> that can be used |
| 68 | to initialise and build a <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-match" title="rasqal_triples_match"><span class="type">rasqal_triples_match</span></a> for some |
| 69 | <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> (subject, predicate, object, origin URI). |
| 70 | </p> |
| 71 | </div> |
| 72 | <div class="refsect1"> |
| 73 | <a name="rasqal-section-triples-source.details"></a><h2>Details</h2> |
| 74 | <div class="refsect2"> |
| 75 | <a name="rasqal-triple-meta"></a><h3>rasqal_triple_meta</h3> |
| 76 | <pre class="programlisting">typedef struct { |
| 77 | /* triple (subject, predicate, object) and origin */ |
| 78 | rasqal_variable* bindings[4]; |
| 79 | |
| 80 | rasqal_triples_match *triples_match; |
| 81 | |
| 82 | void *context; |
| 83 | |
| 84 | rasqal_triple_parts parts; |
| 85 | |
| 86 | int is_exact; |
| 87 | |
| 88 | int executed; |
| 89 | } rasqal_triple_meta; |
| 90 | </pre> |
| 91 | <p> |
| 92 | Metadata for triple pattern matching for one triple pattern. |
| 93 | </p> |
| 94 | <div class="variablelist"><table border="0"> |
| 95 | <col align="left" valign="top"> |
| 96 | <tbody> |
| 97 | <tr> |
| 98 | <td><p><span class="term"><a class="link" href="rasqal-section-variable.html#rasqal-variable" title="rasqal_variable"><span class="type">rasqal_variable</span></a> *<em class="structfield"><code><a name="rasqal-triple-meta.bindings"></a>bindings</code></em>[4];</span></p></td> |
| 99 | <td>Variable bindings for this triple+origin to set.</td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td><p><span class="term"><a class="link" href="rasqal-section-triples-source.html#rasqal-triples-match" title="rasqal_triples_match"><span class="type">rasqal_triples_match</span></a> *<em class="structfield"><code><a name="rasqal-triple-meta.triples-match"></a>triples_match</code></em>;</span></p></td> |
| 103 | <td>The matcher that is setting these bindings.</td> |
| 104 | </tr> |
| 105 | <tr> |
| 106 | <td><p><span class="term"><span class="type">void</span> *<em class="structfield"><code><a name="rasqal-triple-meta.context"></a>context</code></em>;</span></p></td> |
| 107 | <td>Context data used by the matcher.</td> |
| 108 | </tr> |
| 109 | <tr> |
| 110 | <td><p><span class="term"><a class="link" href="rasqal-section-triple.html#rasqal-triple-parts" title="enum rasqal_triple_parts"><span class="type">rasqal_triple_parts</span></a> <em class="structfield"><code><a name="rasqal-triple-meta.parts"></a>parts</code></em>;</span></p></td> |
| 111 | <td>Bitmask of <a class="link" href="rasqal-section-triple.html#rasqal-triple-parts" title="enum rasqal_triple_parts"><span class="type">rasqal_triple_parts</span></a> flags describing the parts of the triple pattern that will bind to variables. There may also be variables mentioned that are bound in other triple patterns even if <em class="parameter"><code>parts</code></em> is 0.</td> |
| 112 | </tr> |
| 113 | <tr> |
| 114 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="rasqal-triple-meta.is-exact"></a>is_exact</code></em>;</span></p></td> |
| 115 | <td>unused</td> |
| 116 | </tr> |
| 117 | <tr> |
| 118 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="rasqal-triple-meta.executed"></a>executed</code></em>;</span></p></td> |
| 119 | <td>unused</td> |
| 120 | </tr> |
| 121 | </tbody> |
| 122 | </table></div> |
| 123 | </div> |
| 124 | <hr> |
| 125 | <div class="refsect2"> |
| 126 | <a name="rasqal-triples-match"></a><h3>rasqal_triples_match</h3> |
| 127 | <pre class="programlisting">typedef struct { |
| 128 | void *user_data; |
| 129 | |
| 130 | rasqal_triple_parts (*bind_match)(struct rasqal_triples_match_s* rtm, void *user_data, rasqal_variable *bindings[4], rasqal_triple_parts parts); |
| 131 | |
| 132 | void (*next_match)(struct rasqal_triples_match_s* rtm, void *user_data); |
| 133 | |
| 134 | int (*is_end)(struct rasqal_triples_match_s* rtm, void *user_data); |
| 135 | |
| 136 | void (*finish)(struct rasqal_triples_match_s* rtm, void *user_data); |
| 137 | |
| 138 | rasqal_world *world; |
| 139 | } rasqal_triples_match; |
| 140 | </pre> |
| 141 | <p> |
| 142 | Triples match structure as initialised by <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source"><span class="type">rasqal_triples_source</span></a> |
| 143 | method init_triples_match. |
| 144 | </p> |
| 145 | <div class="variablelist"><table border="0"> |
| 146 | <col align="left" valign="top"> |
| 147 | <tbody> |
| 148 | <tr> |
| 149 | <td><p><span class="term"><span class="type">void</span> *<em class="structfield"><code><a name="rasqal-triples-match.user-data"></a>user_data</code></em>;</span></p></td> |
| 150 | <td>User data pointer for factory methods.</td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-match.bind-match"></a>bind_match</code></em> ()</span></p></td> |
| 154 | <td>The [4]array (s,p,o,origin) bindings against the current triple match only touching triple parts given. Returns parts that were bound or 0 on failure.</td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-match.next-match"></a>next_match</code></em> ()</span></p></td> |
| 158 | <td>Move to next match.</td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-match.is-end"></a>is_end</code></em> ()</span></p></td> |
| 162 | <td>Check for end of triple match - return non-0 if is end.</td> |
| 163 | </tr> |
| 164 | <tr> |
| 165 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-match.finish"></a>finish</code></em> ()</span></p></td> |
| 166 | <td>Finish triples match and destroy any allocated memory.</td> |
| 167 | </tr> |
| 168 | <tr> |
| 169 | <td><p><span class="term"><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *<em class="structfield"><code><a name="rasqal-triples-match.world"></a>world</code></em>;</span></p></td> |
| 170 | <td>rasqal_world object</td> |
| 171 | </tr> |
| 172 | </tbody> |
| 173 | </table></div> |
| 174 | </div> |
| 175 | <hr> |
| 176 | <div class="refsect2"> |
| 177 | <a name="rasqal-triples-source"></a><h3>rasqal_triples_source</h3> |
| 178 | <pre class="programlisting">typedef struct { |
| 179 | rasqal_query* query; |
| 180 | |
| 181 | void *user_data; |
| 182 | |
| 183 | int (*init_triples_match)(rasqal_triples_match* rtm, struct rasqal_triples_source_s* rts, void *user_data, rasqal_triple_meta *m, rasqal_triple *t); |
| 184 | |
| 185 | int (*triple_present)(struct rasqal_triples_source_s* rts, void *user_data, rasqal_triple *t); |
| 186 | |
| 187 | void (*free_triples_source)(void *user_data); |
| 188 | } rasqal_triples_source; |
| 189 | </pre> |
| 190 | <p> |
| 191 | Triples source as initialised by a <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory"><span class="type">rasqal_triples_source_factory</span></a>. |
| 192 | </p> |
| 193 | <div class="variablelist"><table border="0"> |
| 194 | <col align="left" valign="top"> |
| 195 | <tbody> |
| 196 | <tr> |
| 197 | <td><p><span class="term"><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *<em class="structfield"><code><a name="rasqal-triples-source.query"></a>query</code></em>;</span></p></td> |
| 198 | <td>Source for this query.</td> |
| 199 | </tr> |
| 200 | <tr> |
| 201 | <td><p><span class="term"><span class="type">void</span> *<em class="structfield"><code><a name="rasqal-triples-source.user-data"></a>user_data</code></em>;</span></p></td> |
| 202 | <td>Context user data passed into the factory methods.</td> |
| 203 | </tr> |
| 204 | <tr> |
| 205 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source.init-triples-match"></a>init_triples_match</code></em> ()</span></p></td> |
| 206 | <td>Factory method to initalise a new <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-match" title="rasqal_triples_match"><span class="type">rasqal_triples_match</span></a>.</td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source.triple-present"></a>triple_present</code></em> ()</span></p></td> |
| 210 | <td>Factory method to return presence or absence of a complete triple.</td> |
| 211 | </tr> |
| 212 | <tr> |
| 213 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source.free-triples-source"></a>free_triples_source</code></em> ()</span></p></td> |
| 214 | <td>Factory method to deallocate resources.</td> |
| 215 | </tr> |
| 216 | </tbody> |
| 217 | </table></div> |
| 218 | </div> |
| 219 | <hr> |
| 220 | <div class="refsect2"> |
| 221 | <a name="rasqal-triples-source-factory"></a><h3>rasqal_triples_source_factory</h3> |
| 222 | <pre class="programlisting">typedef struct { |
| 223 | int version; |
| 224 | |
| 225 | void *user_data; |
| 226 | size_t user_data_size; |
| 227 | |
| 228 | /* API v1 */ |
| 229 | int (*new_triples_source)(rasqal_query* query, void *factory_user_data, void *user_data, rasqal_triples_source* rts); |
| 230 | /* API v2 onwards */ |
| 231 | int (*init_triples_source)(rasqal_query* query, void *factory_user_data, void *user_data, rasqal_triples_source* rts, rasqal_triples_error_handler handler); |
| 232 | /* API v3 onwards */ |
| 233 | int (*init_triples_source2)(rasqal_world* world, raptor_sequence* data_graphs, void *factory_user_data, void *user_data, rasqal_triples_source *rts, rasqal_triples_error_handler2 handler, unsigned int flags); |
| 234 | } rasqal_triples_source_factory; |
| 235 | </pre> |
| 236 | <p> |
| 237 | A factory that initialises <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source"><span class="type">rasqal_triples_source</span></a> structures to |
| 238 | returning matches to a triple pattern across the dataset formed |
| 239 | from the data graphs recorded in the <em class="parameter"><code>query</code></em> object. |
| 240 | </p> |
| 241 | <div class="variablelist"><table border="0"> |
| 242 | <col align="left" valign="top"> |
| 243 | <tbody> |
| 244 | <tr> |
| 245 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="rasqal-triples-source-factory.version"></a>version</code></em>;</span></p></td> |
| 246 | <td>API factory version from 1 to 3</td> |
| 247 | </tr> |
| 248 | <tr> |
| 249 | <td><p><span class="term"><span class="type">void</span> *<em class="structfield"><code><a name="rasqal-triples-source-factory.user-data"></a>user_data</code></em>;</span></p></td> |
| 250 | <td>User data for triples_source_factory.</td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td><p><span class="term"><span class="type">size_t</span> <em class="structfield"><code><a name="rasqal-triples-source-factory.user-data-size"></a>user_data_size</code></em>;</span></p></td> |
| 254 | <td>Size of <em class="parameter"><code>user_data</code></em> for new_triples_source.</td> |
| 255 | </tr> |
| 256 | <tr> |
| 257 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source-factory.new-triples-source"></a>new_triples_source</code></em> ()</span></p></td> |
| 258 | <td>Create a new triples source - returns non-zero on failure < 0 is a 'no rdf data error', > 0 is an unspecified error. Error messages are generated by rasqal internally. (V1)</td> |
| 259 | </tr> |
| 260 | <tr> |
| 261 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source-factory.init-triples-source"></a>init_triples_source</code></em> ()</span></p></td> |
| 262 | <td>Initialise a new triples source V2 for a particular source URI/base URI and syntax. Returns non-zero on failure with errors reported via the handler callback by the implementation. (V2)</td> |
| 263 | </tr> |
| 264 | <tr> |
| 265 | <td><p><span class="term"><em class="structfield"><code><a name="rasqal-triples-source-factory.init-triples-source2"></a>init_triples_source2</code></em> ()</span></p></td> |
| 266 | <td>Initialise a new triples source V3 for a particular source URI/base URI and syntax and given data graphs. Returns non-zero on failure with errors reported via the handler callback by the implementation. If bit 0 of flags is 1, enforce RAPTOR_FEATURE_NO_NET (V3)</td> |
| 267 | </tr> |
| 268 | </tbody> |
| 269 | </table></div> |
| 270 | </div> |
| 271 | <hr> |
| 272 | <div class="refsect2"> |
| 273 | <a name="rasqal-triples-source-factory-register-fn"></a><h3>rasqal_triples_source_factory_register_fn ()</h3> |
| 274 | <pre class="programlisting"><span class="returnvalue">int</span> (*rasqal_triples_source_factory_register_fn) |
| 275 | (<em class="parameter"><code><a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory"><span class="type">rasqal_triples_source_factory</span></a> *factory</code></em>);</pre> |
| 276 | <p> |
| 277 | Register a factory for generating triples sources <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source"><span class="type">rasqal_triples_source</span></a> |
| 278 | </p> |
| 279 | <div class="variablelist"><table border="0"> |
| 280 | <col align="left" valign="top"> |
| 281 | <tbody> |
| 282 | <tr> |
| 283 | <td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td> |
| 284 | <td>factory to register</td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 288 | <td>non-0 on failure</td> |
| 289 | </tr> |
| 290 | </tbody> |
| 291 | </table></div> |
| 292 | </div> |
| 293 | <hr> |
| 294 | <div class="refsect2"> |
| 295 | <a name="rasqal-triples-source-feature"></a><h3>enum rasqal_triples_source_feature</h3> |
| 296 | <pre class="programlisting">typedef enum { |
| 297 | RASQAL_TRIPLES_SOURCE_FEATURE_NONE, |
| 298 | RASQAL_TRIPLES_SOURCE_FEATURE_IOSTREAM_DATA_GRAPH |
| 299 | } rasqal_triples_source_feature; |
| 300 | </pre> |
| 301 | <p> |
| 302 | Optional features that may be supported by a triple source factory |
| 303 | </p> |
| 304 | <div class="variablelist"><table border="0"> |
| 305 | <col align="left" valign="top"> |
| 306 | <tbody> |
| 307 | <tr> |
| 308 | <td><p><a name="RASQAL-TRIPLES-SOURCE-FEATURE-NONE:CAPS"></a><span class="term"><code class="literal">RASQAL_TRIPLES_SOURCE_FEATURE_NONE</code></span></p></td> |
| 309 | <td>No feature |
| 310 | </td> |
| 311 | </tr> |
| 312 | <tr> |
| 313 | <td><p><a name="RASQAL-TRIPLES-SOURCE-FEATURE-IOSTREAM-DATA-GRAPH:CAPS"></a><span class="term"><code class="literal">RASQAL_TRIPLES_SOURCE_FEATURE_IOSTREAM_DATA_GRAPH</code></span></p></td> |
| 314 | <td>Support raptor_iostream data graphs |
| 315 | </td> |
| 316 | </tr> |
| 317 | </tbody> |
| 318 | </table></div> |
| 319 | </div> |
| 320 | <hr> |
| 321 | <div class="refsect2"> |
| 322 | <a name="rasqal-triples-error-handler"></a><h3>rasqal_triples_error_handler ()</h3> |
| 323 | <pre class="programlisting"><span class="returnvalue">void</span> (*rasqal_triples_error_handler) (<em class="parameter"><code><a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> *query</code></em>, |
| 324 | <em class="parameter"><code><span class="type">raptor_locator</span> *locator</code></em>, |
| 325 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>);</pre> |
| 326 | <p> |
| 327 | Triples source factory error handler callback. |
| 328 | </p> |
| 329 | <div class="variablelist"><table border="0"> |
| 330 | <col align="left" valign="top"> |
| 331 | <tbody> |
| 332 | <tr> |
| 333 | <td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td> |
| 334 | <td>query object</td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td><p><span class="term"><em class="parameter"><code>locator</code></em> :</span></p></td> |
| 338 | <td>error locator (or NULL)</td> |
| 339 | </tr> |
| 340 | <tr> |
| 341 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 342 | <td>error message</td> |
| 343 | </tr> |
| 344 | </tbody> |
| 345 | </table></div> |
| 346 | </div> |
| 347 | <hr> |
| 348 | <div class="refsect2"> |
| 349 | <a name="rasqal-triples-error-handler2"></a><h3>rasqal_triples_error_handler2 ()</h3> |
| 350 | <pre class="programlisting"><span class="returnvalue">void</span> (*rasqal_triples_error_handler2) (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>, |
| 351 | <em class="parameter"><code><span class="type">raptor_locator</span> *locator</code></em>, |
| 352 | <em class="parameter"><code>const <span class="type">char</span> *message</code></em>);</pre> |
| 353 | <p> |
| 354 | Triples source factory error handler callback. |
| 355 | </p> |
| 356 | <div class="variablelist"><table border="0"> |
| 357 | <col align="left" valign="top"> |
| 358 | <tbody> |
| 359 | <tr> |
| 360 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 361 | <td>world object</td> |
| 362 | </tr> |
| 363 | <tr> |
| 364 | <td><p><span class="term"><em class="parameter"><code>locator</code></em> :</span></p></td> |
| 365 | <td>error locator (or NULL)</td> |
| 366 | </tr> |
| 367 | <tr> |
| 368 | <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td> |
| 369 | <td>error message</td> |
| 370 | </tr> |
| 371 | </tbody> |
| 372 | </table></div> |
| 373 | </div> |
| 374 | <hr> |
| 375 | <div class="refsect2"> |
| 376 | <a name="rasqal-set-triples-source-factory"></a><h3>rasqal_set_triples_source_factory ()</h3> |
| 377 | <pre class="programlisting"><span class="returnvalue">int</span> rasqal_set_triples_source_factory (<em class="parameter"><code><a class="link" href="rasqal-section-general.html#rasqal-world" title="rasqal_world"><span class="type">rasqal_world</span></a> *world</code></em>, |
| 378 | <em class="parameter"><code><a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory-register-fn" title="rasqal_triples_source_factory_register_fn ()"><span class="type">rasqal_triples_source_factory_register_fn</span></a> register_fn</code></em>, |
| 379 | <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre> |
| 380 | <p> |
| 381 | Register a factory to generate triple sources. |
| 382 | </p> |
| 383 | <p> |
| 384 | Registers the factory that returns triples sources. Note that |
| 385 | there is only one of these per runtime. |
| 386 | </p> |
| 387 | <p> |
| 388 | The <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source-factory" title="rasqal_triples_source_factory"><span class="type">rasqal_triples_source_factory</span></a> factory method new_triples_source is |
| 389 | called with the user data for some query and <a class="link" href="rasqal-section-triples-source.html#rasqal-triples-source" title="rasqal_triples_source"><span class="type">rasqal_triples_source</span></a>. |
| 390 | </p> |
| 391 | <div class="variablelist"><table border="0"> |
| 392 | <col align="left" valign="top"> |
| 393 | <tbody> |
| 394 | <tr> |
| 395 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 396 | <td>rasqal_world object</td> |
| 397 | </tr> |
| 398 | <tr> |
| 399 | <td><p><span class="term"><em class="parameter"><code>register_fn</code></em> :</span></p></td> |
| 400 | <td>registration function</td> |
| 401 | </tr> |
| 402 | <tr> |
| 403 | <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> |
| 404 | <td>user data for registration</td> |
| 405 | </tr> |
| 406 | <tr> |
| 407 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 408 | <td>non-zero on failure</td> |
| 409 | </tr> |
| 410 | </tbody> |
| 411 | </table></div> |
| 412 | </div> |
| 413 | <hr> |
| 414 | <div class="refsect2"> |
| 415 | <a name="RASQAL-TRIPLES-SOURCE-FACTORY-MIN-VERSION:CAPS"></a><h3>RASQAL_TRIPLES_SOURCE_FACTORY_MIN_VERSION</h3> |
| 416 | <pre class="programlisting">#define RASQAL_TRIPLES_SOURCE_FACTORY_MIN_VERSION 1 |
| 417 | </pre> |
| 418 | <p> |
| 419 | Lowest accepted <em class="parameter"><code>rasqal_triples_source_factory</code></em> API version |
| 420 | </p> |
| 421 | </div> |
| 422 | <hr> |
| 423 | <div class="refsect2"> |
| 424 | <a name="RASQAL-TRIPLES-SOURCE-FACTORY-MAX-VERSION:CAPS"></a><h3>RASQAL_TRIPLES_SOURCE_FACTORY_MAX_VERSION</h3> |
| 425 | <pre class="programlisting">#define RASQAL_TRIPLES_SOURCE_FACTORY_MAX_VERSION 3 |
| 426 | </pre> |
| 427 | <p> |
| 428 | Highest accepted <em class="parameter"><code>rasqal_triples_source_factory</code></em> API version |
| 429 | </p> |
| 430 | </div> |
| 431 | <hr> |
| 432 | <div class="refsect2"> |
| 433 | <a name="RASQAL-TRIPLES-SOURCE-MIN-VERSION:CAPS"></a><h3>RASQAL_TRIPLES_SOURCE_MIN_VERSION</h3> |
| 434 | <pre class="programlisting">#define RASQAL_TRIPLES_SOURCE_MIN_VERSION 1 |
| 435 | </pre> |
| 436 | <p> |
| 437 | Lowest accepted <em class="parameter"><code>rasqal_triples_source</code></em> API version |
| 438 | </p> |
| 439 | </div> |
| 440 | <hr> |
| 441 | <div class="refsect2"> |
| 442 | <a name="RASQAL-TRIPLES-SOURCE-MAX-VERSION:CAPS"></a><h3>RASQAL_TRIPLES_SOURCE_MAX_VERSION</h3> |
| 443 | <pre class="programlisting">#define RASQAL_TRIPLES_SOURCE_MAX_VERSION 2 |
| 444 | </pre> |
| 445 | <p> |
| 446 | Highest accepted <em class="parameter"><code>rasqal_triples_source</code></em> API version |
| 447 | </p> |
| 448 | </div> |
| 449 | </div> |
| 450 | </div> |
| 451 | <div class="footer"> |
| 452 | <hr> |
| 453 | Generated by GTK-Doc V1.18</div> |
| 454 | </body> |
| 455 | </html> |