| 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>Data Graphs</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-general.html" title="General library facilities"> |
| 10 | <link rel="next" href="rasqal-section-expression.html" title="Expressions"> |
| 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-general.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-expression.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-data.synopsis" class="shortcut">Top</a> |
| 25 | | |
| 26 | <a href="#rasqal-section-data.description" class="shortcut">Description</a> |
| 27 | </td></tr> |
| 28 | </table> |
| 29 | <div class="refentry"> |
| 30 | <a name="rasqal-section-data"></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-data.top_of_page"></a>Data Graphs</span></h2> |
| 34 | <p>Data Graphs — RDF graph sources for triples.</p> |
| 35 | </td> |
| 36 | <td valign="top" align="right"></td> |
| 37 | </tr></table></div> |
| 38 | <div class="refsynopsisdiv"> |
| 39 | <a name="rasqal-section-data.synopsis"></a><h2>Synopsis</h2> |
| 40 | <pre class="synopsis"> <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph">rasqal_data_graph</a>; |
| 41 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * <a class="link" href="rasqal-section-data.html#rasqal-new-data-graph-from-data-graph" title="rasqal_new_data_graph_from_data_graph ()">rasqal_new_data_graph_from_data_graph</a> |
| 42 | (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>); |
| 43 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * <a class="link" href="rasqal-section-data.html#rasqal-new-data-graph-from-iostream" title="rasqal_new_data_graph_from_iostream ()">rasqal_new_data_graph_from_iostream</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>, |
| 44 | <em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>, |
| 45 | <em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>, |
| 46 | <em class="parameter"><code><span class="type">raptor_uri</span> *name_uri</code></em>, |
| 47 | <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>, |
| 48 | <em class="parameter"><code>const <span class="type">char</span> *format_type</code></em>, |
| 49 | <em class="parameter"><code>const <span class="type">char</span> *format_name</code></em>, |
| 50 | <em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>); |
| 51 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * <a class="link" href="rasqal-section-data.html#rasqal-new-data-graph-from-uri" title="rasqal_new_data_graph_from_uri ()">rasqal_new_data_graph_from_uri</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>, |
| 52 | <em class="parameter"><code><span class="type">raptor_uri</span> *uri</code></em>, |
| 53 | <em class="parameter"><code><span class="type">raptor_uri</span> *name_uri</code></em>, |
| 54 | <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>, |
| 55 | <em class="parameter"><code>const <span class="type">char</span> *format_type</code></em>, |
| 56 | <em class="parameter"><code>const <span class="type">char</span> *format_name</code></em>, |
| 57 | <em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>); |
| 58 | <span class="returnvalue">void</span> <a class="link" href="rasqal-section-data.html#rasqal-free-data-graph" title="rasqal_free_data_graph ()">rasqal_free_data_graph</a> (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>); |
| 59 | enum <a class="link" href="rasqal-section-data.html#rasqal-data-graph-flags" title="enum rasqal_data_graph_flags">rasqal_data_graph_flags</a>; |
| 60 | <span class="returnvalue">int</span> <a class="link" href="rasqal-section-data.html#rasqal-data-graph-print" title="rasqal_data_graph_print ()">rasqal_data_graph_print</a> (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>, |
| 61 | <em class="parameter"><code><span class="type">FILE</span> *fh</code></em>); |
| 62 | </pre> |
| 63 | </div> |
| 64 | <div class="refsect1"> |
| 65 | <a name="rasqal-section-data.description"></a><h2>Description</h2> |
| 66 | <p> |
| 67 | Data graphs are used in the query to describe RDF graphs that can be |
| 68 | used to query against. The graphs can be used either with <span class="type">raptor_uri</span> |
| 69 | to name the graph, or without a name. The query language determines |
| 70 | which graphs are used in the query. |
| 71 | </p> |
| 72 | </div> |
| 73 | <div class="refsect1"> |
| 74 | <a name="rasqal-section-data.details"></a><h2>Details</h2> |
| 75 | <div class="refsect2"> |
| 76 | <a name="rasqal-data-graph"></a><h3>rasqal_data_graph</h3> |
| 77 | <pre class="programlisting">typedef struct { |
| 78 | rasqal_world* world; |
| 79 | raptor_uri* uri; |
| 80 | raptor_uri* name_uri; |
| 81 | unsigned int flags; |
| 82 | char* format_type; |
| 83 | char* format_name; |
| 84 | raptor_uri* format_uri; |
| 85 | raptor_iostream* iostr; |
| 86 | raptor_uri* base_uri; |
| 87 | int usage; |
| 88 | } rasqal_data_graph; |
| 89 | </pre> |
| 90 | <p> |
| 91 | A source of RDF data for querying. |
| 92 | </p> |
| 93 | <p> |
| 94 | If <em class="parameter"><code>iostr</code></em> is present, the graph can be constructed by parsing the |
| 95 | iostream and using <em class="parameter"><code>base_uri</code></em> as a base uri. Otherwise the graph |
| 96 | can be constructed from the graph at URI <em class="parameter"><code>uri</code></em>. |
| 97 | </p> |
| 98 | <p> |
| 99 | In either case the <em class="parameter"><code>name_uri</code></em> is the graph name as long as <em class="parameter"><code>flags</code></em> |
| 100 | is <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a> |
| 101 | </p> |
| 102 | <div class="variablelist"><table border="0"> |
| 103 | <col align="left" valign="top"> |
| 104 | <tbody> |
| 105 | <tr> |
| 106 | <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-data-graph.world"></a>world</code></em>;</span></p></td> |
| 107 | <td>rasqal_world object</td> |
| 108 | </tr> |
| 109 | <tr> |
| 110 | <td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-data-graph.uri"></a>uri</code></em>;</span></p></td> |
| 111 | <td>source URI</td> |
| 112 | </tr> |
| 113 | <tr> |
| 114 | <td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-data-graph.name-uri"></a>name_uri</code></em>;</span></p></td> |
| 115 | <td>name of graph for <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a> |
| 116 | </td> |
| 117 | </tr> |
| 118 | <tr> |
| 119 | <td><p><span class="term">unsigned <span class="type">int</span> <em class="structfield"><code><a name="rasqal-data-graph.flags"></a>flags</code></em>;</span></p></td> |
| 120 | <td> |
| 121 | <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a> or <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-BACKGROUND:CAPS"><code class="literal">RASQAL_DATA_GRAPH_BACKGROUND</code></a> |
| 122 | </td> |
| 123 | </tr> |
| 124 | <tr> |
| 125 | <td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="rasqal-data-graph.format-type"></a>format_type</code></em>;</span></p></td> |
| 126 | <td>MIME Type of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 127 | </tr> |
| 128 | <tr> |
| 129 | <td><p><span class="term"><span class="type">char</span> *<em class="structfield"><code><a name="rasqal-data-graph.format-name"></a>format_name</code></em>;</span></p></td> |
| 130 | <td>Raptor parser Name of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 131 | </tr> |
| 132 | <tr> |
| 133 | <td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-data-graph.format-uri"></a>format_uri</code></em>;</span></p></td> |
| 134 | <td>URI of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 135 | </tr> |
| 136 | <tr> |
| 137 | <td><p><span class="term"><span class="type">raptor_iostream</span> *<em class="structfield"><code><a name="rasqal-data-graph.iostr"></a>iostr</code></em>;</span></p></td> |
| 138 | <td>Raptor iostream for content, overriding <em class="parameter"><code>uri</code></em> if present (or NULL)</td> |
| 139 | </tr> |
| 140 | <tr> |
| 141 | <td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-data-graph.base-uri"></a>base_uri</code></em>;</span></p></td> |
| 142 | <td>base URI for reading from iostream</td> |
| 143 | </tr> |
| 144 | <tr> |
| 145 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="rasqal-data-graph.usage"></a>usage</code></em>;</span></p></td> |
| 146 | <td>usage count of this object</td> |
| 147 | </tr> |
| 148 | </tbody> |
| 149 | </table></div> |
| 150 | </div> |
| 151 | <hr> |
| 152 | <div class="refsect2"> |
| 153 | <a name="rasqal-new-data-graph-from-data-graph"></a><h3>rasqal_new_data_graph_from_data_graph ()</h3> |
| 154 | <pre class="programlisting"><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * rasqal_new_data_graph_from_data_graph |
| 155 | (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>);</pre> |
| 156 | <p> |
| 157 | Copy Constructor - create a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object from an existing <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object. |
| 158 | </p> |
| 159 | <div class="variablelist"><table border="0"> |
| 160 | <col align="left" valign="top"> |
| 161 | <tbody> |
| 162 | <tr> |
| 163 | <td><p><span class="term"><em class="parameter"><code>dg</code></em> :</span></p></td> |
| 164 | <td> |
| 165 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object to copy or NULL</td> |
| 166 | </tr> |
| 167 | <tr> |
| 168 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 169 | <td>a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object or NULL if <em class="parameter"><code>dg</code></em> was NULL.</td> |
| 170 | </tr> |
| 171 | </tbody> |
| 172 | </table></div> |
| 173 | </div> |
| 174 | <hr> |
| 175 | <div class="refsect2"> |
| 176 | <a name="rasqal-new-data-graph-from-iostream"></a><h3>rasqal_new_data_graph_from_iostream ()</h3> |
| 177 | <pre class="programlisting"><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * rasqal_new_data_graph_from_iostream (<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>, |
| 178 | <em class="parameter"><code><span class="type">raptor_iostream</span> *iostr</code></em>, |
| 179 | <em class="parameter"><code><span class="type">raptor_uri</span> *base_uri</code></em>, |
| 180 | <em class="parameter"><code><span class="type">raptor_uri</span> *name_uri</code></em>, |
| 181 | <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>, |
| 182 | <em class="parameter"><code>const <span class="type">char</span> *format_type</code></em>, |
| 183 | <em class="parameter"><code>const <span class="type">char</span> *format_name</code></em>, |
| 184 | <em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>);</pre> |
| 185 | <p> |
| 186 | Constructor - create a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> from iostream content |
| 187 | </p> |
| 188 | <p> |
| 189 | The <em class="parameter"><code>name_uri</code></em> is used when the flags are <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a>. |
| 190 | </p> |
| 191 | <p> |
| 192 | The <em class="parameter"><code>base_uri</code></em> is used to provide the Raptor parser a base URI. If |
| 193 | a base URI is required but none is given, the parsing will fail |
| 194 | and the query that uses this data source will fail. |
| 195 | </p> |
| 196 | <div class="variablelist"><table border="0"> |
| 197 | <col align="left" valign="top"> |
| 198 | <tbody> |
| 199 | <tr> |
| 200 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 201 | <td>rasqal_world object</td> |
| 202 | </tr> |
| 203 | <tr> |
| 204 | <td><p><span class="term"><em class="parameter"><code>iostr</code></em> :</span></p></td> |
| 205 | <td>source graph format iostream</td> |
| 206 | </tr> |
| 207 | <tr> |
| 208 | <td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td> |
| 209 | <td>base URI for iostream content</td> |
| 210 | </tr> |
| 211 | <tr> |
| 212 | <td><p><span class="term"><em class="parameter"><code>name_uri</code></em> :</span></p></td> |
| 213 | <td>name of graph (or NULL)</td> |
| 214 | </tr> |
| 215 | <tr> |
| 216 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> |
| 217 | <td> |
| 218 | <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a> or <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-BACKGROUND:CAPS"><code class="literal">RASQAL_DATA_GRAPH_BACKGROUND</code></a> |
| 219 | </td> |
| 220 | </tr> |
| 221 | <tr> |
| 222 | <td><p><span class="term"><em class="parameter"><code>format_type</code></em> :</span></p></td> |
| 223 | <td>MIME Type of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 224 | </tr> |
| 225 | <tr> |
| 226 | <td><p><span class="term"><em class="parameter"><code>format_name</code></em> :</span></p></td> |
| 227 | <td>Raptor parser Name of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 228 | </tr> |
| 229 | <tr> |
| 230 | <td><p><span class="term"><em class="parameter"><code>format_uri</code></em> :</span></p></td> |
| 231 | <td>URI of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 232 | </tr> |
| 233 | <tr> |
| 234 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 235 | <td>a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> or NULL on failure.</td> |
| 236 | </tr> |
| 237 | </tbody> |
| 238 | </table></div> |
| 239 | </div> |
| 240 | <hr> |
| 241 | <div class="refsect2"> |
| 242 | <a name="rasqal-new-data-graph-from-uri"></a><h3>rasqal_new_data_graph_from_uri ()</h3> |
| 243 | <pre class="programlisting"><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="returnvalue">rasqal_data_graph</span></a> * rasqal_new_data_graph_from_uri (<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>, |
| 244 | <em class="parameter"><code><span class="type">raptor_uri</span> *uri</code></em>, |
| 245 | <em class="parameter"><code><span class="type">raptor_uri</span> *name_uri</code></em>, |
| 246 | <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>, |
| 247 | <em class="parameter"><code>const <span class="type">char</span> *format_type</code></em>, |
| 248 | <em class="parameter"><code>const <span class="type">char</span> *format_name</code></em>, |
| 249 | <em class="parameter"><code><span class="type">raptor_uri</span> *format_uri</code></em>);</pre> |
| 250 | <p> |
| 251 | Constructor - create a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a>. |
| 252 | </p> |
| 253 | <p> |
| 254 | The name_uri is only used when the flags are <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a>. |
| 255 | </p> |
| 256 | <div class="variablelist"><table border="0"> |
| 257 | <col align="left" valign="top"> |
| 258 | <tbody> |
| 259 | <tr> |
| 260 | <td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td> |
| 261 | <td>rasqal_world object</td> |
| 262 | </tr> |
| 263 | <tr> |
| 264 | <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td> |
| 265 | <td>source URI</td> |
| 266 | </tr> |
| 267 | <tr> |
| 268 | <td><p><span class="term"><em class="parameter"><code>name_uri</code></em> :</span></p></td> |
| 269 | <td>name of graph (or NULL)</td> |
| 270 | </tr> |
| 271 | <tr> |
| 272 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> |
| 273 | <td> |
| 274 | <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-NAMED:CAPS"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></a> or <a class="link" href="rasqal-section-data.html#RASQAL-DATA-GRAPH-BACKGROUND:CAPS"><code class="literal">RASQAL_DATA_GRAPH_BACKGROUND</code></a> |
| 275 | </td> |
| 276 | </tr> |
| 277 | <tr> |
| 278 | <td><p><span class="term"><em class="parameter"><code>format_type</code></em> :</span></p></td> |
| 279 | <td>MIME Type of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 280 | </tr> |
| 281 | <tr> |
| 282 | <td><p><span class="term"><em class="parameter"><code>format_name</code></em> :</span></p></td> |
| 283 | <td>Raptor parser Name of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 284 | </tr> |
| 285 | <tr> |
| 286 | <td><p><span class="term"><em class="parameter"><code>format_uri</code></em> :</span></p></td> |
| 287 | <td>URI of data format at <em class="parameter"><code>uri</code></em> (or NULL)</td> |
| 288 | </tr> |
| 289 | <tr> |
| 290 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 291 | <td>a new <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> or NULL on failure.</td> |
| 292 | </tr> |
| 293 | </tbody> |
| 294 | </table></div> |
| 295 | </div> |
| 296 | <hr> |
| 297 | <div class="refsect2"> |
| 298 | <a name="rasqal-free-data-graph"></a><h3>rasqal_free_data_graph ()</h3> |
| 299 | <pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_data_graph (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>);</pre> |
| 300 | <p> |
| 301 | Destructor - destroy a <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object. |
| 302 | </p> |
| 303 | <div class="variablelist"><table border="0"> |
| 304 | <col align="left" valign="top"> |
| 305 | <tbody><tr> |
| 306 | <td><p><span class="term"><em class="parameter"><code>dg</code></em> :</span></p></td> |
| 307 | <td> |
| 308 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object</td> |
| 309 | </tr></tbody> |
| 310 | </table></div> |
| 311 | </div> |
| 312 | <hr> |
| 313 | <div class="refsect2"> |
| 314 | <a name="rasqal-data-graph-flags"></a><h3>enum rasqal_data_graph_flags</h3> |
| 315 | <pre class="programlisting">typedef enum { |
| 316 | RASQAL_DATA_GRAPH_NONE = 0, |
| 317 | RASQAL_DATA_GRAPH_NAMED = 1, |
| 318 | RASQAL_DATA_GRAPH_BACKGROUND = 2 |
| 319 | } rasqal_data_graph_flags; |
| 320 | </pre> |
| 321 | <p> |
| 322 | Flags for the type of <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a>. |
| 323 | </p> |
| 324 | <p> |
| 325 | These are used by <a class="link" href="rasqal-section-data.html#rasqal-new-data-graph-from-uri" title="rasqal_new_data_graph_from_uri ()"><code class="function">rasqal_new_data_graph_from_uri()</code></a> and |
| 326 | <a class="link" href="rasqal-section-data.html#rasqal-new-data-graph-from-iostream" title="rasqal_new_data_graph_from_iostream ()"><code class="function">rasqal_new_data_graph_from_iostream()</code></a>. See <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a>. |
| 327 | </p> |
| 328 | <div class="variablelist"><table border="0"> |
| 329 | <col align="left" valign="top"> |
| 330 | <tbody> |
| 331 | <tr> |
| 332 | <td><p><a name="RASQAL-DATA-GRAPH-NONE:CAPS"></a><span class="term"><code class="literal">RASQAL_DATA_GRAPH_NONE</code></span></p></td> |
| 333 | <td>Internal. |
| 334 | </td> |
| 335 | </tr> |
| 336 | <tr> |
| 337 | <td><p><a name="RASQAL-DATA-GRAPH-NAMED:CAPS"></a><span class="term"><code class="literal">RASQAL_DATA_GRAPH_NAMED</code></span></p></td> |
| 338 | <td>Graphs with a source and name. |
| 339 | </td> |
| 340 | </tr> |
| 341 | <tr> |
| 342 | <td><p><a name="RASQAL-DATA-GRAPH-BACKGROUND:CAPS"></a><span class="term"><code class="literal">RASQAL_DATA_GRAPH_BACKGROUND</code></span></p></td> |
| 343 | <td>Graphs with a source only. |
| 344 | </td> |
| 345 | </tr> |
| 346 | </tbody> |
| 347 | </table></div> |
| 348 | </div> |
| 349 | <hr> |
| 350 | <div class="refsect2"> |
| 351 | <a name="rasqal-data-graph-print"></a><h3>rasqal_data_graph_print ()</h3> |
| 352 | <pre class="programlisting"><span class="returnvalue">int</span> rasqal_data_graph_print (<em class="parameter"><code><a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> *dg</code></em>, |
| 353 | <em class="parameter"><code><span class="type">FILE</span> *fh</code></em>);</pre> |
| 354 | <p> |
| 355 | Print a Rasqal data graph in a debug format. |
| 356 | </p> |
| 357 | <p> |
| 358 | The print debug format may change in any release. |
| 359 | </p> |
| 360 | <div class="variablelist"><table border="0"> |
| 361 | <col align="left" valign="top"> |
| 362 | <tbody> |
| 363 | <tr> |
| 364 | <td><p><span class="term"><em class="parameter"><code>dg</code></em> :</span></p></td> |
| 365 | <td> |
| 366 | <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> object</td> |
| 367 | </tr> |
| 368 | <tr> |
| 369 | <td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td> |
| 370 | <td>the FILE* handle to print to</td> |
| 371 | </tr> |
| 372 | <tr> |
| 373 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 374 | <td>non-0 on failure</td> |
| 375 | </tr> |
| 376 | </tbody> |
| 377 | </table></div> |
| 378 | </div> |
| 379 | </div> |
| 380 | </div> |
| 381 | <div class="footer"> |
| 382 | <hr> |
| 383 | Generated by GTK-Doc V1.18</div> |
| 384 | </body> |
| 385 | </html> |