/usr/share/gtk-doc/html/rasqal/rasqal-section-updates.html is in librasqal3-doc 0.9.32-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Updates</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Rasqal RDF Query Library Manual">
<link rel="up" href="reference-manual.html" title="Part I. Reference Manual">
<link rel="prev" href="rasqal-section-variables-table.html" title="Variables Table">
<link rel="next" href="rasqal-section-utilities.html" title="Utilities">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="rasqal-section-variables-table.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference-manual.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Rasqal RDF Query Library Manual</th>
<td><a accesskey="n" href="rasqal-section-utilities.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#rasqal-section-updates.synopsis" class="shortcut">Top</a>
|
<a href="#rasqal-section-updates.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-updates"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-updates.top_of_page"></a>Updates</span></h2>
<p>Updates — Graph update operations</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-updates.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="rasqal-section-updates.html#rasqal-update-operation" title="rasqal_update_operation">rasqal_update_operation</a>;
enum <a class="link" href="rasqal-section-updates.html#rasqal-update-type" title="enum rasqal_update_type">rasqal_update_type</a>;
enum <a class="link" href="rasqal-section-updates.html#rasqal-update-flags" title="enum rasqal_update_flags">rasqal_update_flags</a>;
enum <a class="link" href="rasqal-section-updates.html#rasqal-update-graph-applies" title="enum rasqal_update_graph_applies">rasqal_update_graph_applies</a>;
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-updates.description"></a><h2>Description</h2>
<p>
This class provides a object to record a graph update operation
with adding and/or removing triples, using a templated insert/delete
with optional where clause. It is designed to be able to record
the SPARQL 1.1 (Draft) update format, and is a work in progress
as of February 2010.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-updates.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-update-operation"></a><h3>rasqal_update_operation</h3>
<pre class="programlisting">typedef struct {
rasqal_update_type type;
raptor_uri* graph_uri;
raptor_uri* document_uri;
raptor_sequence* insert_templates;
raptor_sequence* delete_templates;
rasqal_graph_pattern* where;
int flags;
rasqal_update_graph_applies applies;
} rasqal_update_operation;
</pre>
<p>
Update operation - changing the dataset
</p>
<p>
For LOAD and CLEAR if <em class="parameter"><code>applies</code></em> is set (not 0) then the operation
applies to just those <code class="function">graph()</code>, otherwise it applies to the <em class="parameter"><code>graph_uri</code></em>.
</p>
<p>
For ADD, MOVE and COPY the source graph is stored in <em class="parameter"><code>graph_uri</code></em>
field and the destination graph in the <em class="parameter"><code>document_uri</code></em> field. The
field names have no meaning in this case since both values are
always present, always graphs and a NULL value signifies the
default graph.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="rasqal-section-updates.html#rasqal-update-type" title="enum rasqal_update_type"><span class="type">rasqal_update_type</span></a> <em class="structfield"><code><a name="rasqal-update-operation.type"></a>type</code></em>;</span></p></td>
<td>type of update</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-update-operation.graph-uri"></a>graph_uri</code></em>;</span></p></td>
<td>optional graph URI (clear, drop, load, with ... delete, insert); source graph (add, move, copy)</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">raptor_uri</span> *<em class="structfield"><code><a name="rasqal-update-operation.document-uri"></a>document_uri</code></em>;</span></p></td>
<td>optional document URI (load); destination graph (add, move, copy)</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">raptor_sequence</span> *<em class="structfield"><code><a name="rasqal-update-operation.insert-templates"></a>insert_templates</code></em>;</span></p></td>
<td>optional sequence of <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> to insert. Data triples if <em class="parameter"><code>flags</code></em> is <a class="link" href="rasqal-section-updates.html#RASQAL-UPDATE-FLAGS-DATA:CAPS"><span class="type">RASQAL_UPDATE_FLAGS_DATA</span></a> set, templates otherwise.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">raptor_sequence</span> *<em class="structfield"><code><a name="rasqal-update-operation.delete-templates"></a>delete_templates</code></em>;</span></p></td>
<td>optional sequence of <a class="link" href="rasqal-section-triple.html#rasqal-triple" title="rasqal_triple"><span class="type">rasqal_triple</span></a> templates to delete</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="rasqal-section-graph-pattern.html#rasqal-graph-pattern" title="rasqal_graph_pattern"><span class="type">rasqal_graph_pattern</span></a> *<em class="structfield"><code><a name="rasqal-update-operation.where"></a>where</code></em>;</span></p></td>
<td>optional where template (insert/delete)</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="rasqal-update-operation.flags"></a>flags</code></em>;</span></p></td>
<td>update flags - bit-or of flags defined in <a class="link" href="rasqal-section-updates.html#rasqal-update-flags" title="enum rasqal_update_flags"><span class="type">rasqal_update_flags</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="rasqal-section-updates.html#rasqal-update-graph-applies" title="enum rasqal_update_graph_applies"><span class="type">rasqal_update_graph_applies</span></a> <em class="structfield"><code><a name="rasqal-update-operation.applies"></a>applies</code></em>;</span></p></td>
<td>the graph(s) that the update operation applies to, or <em class="parameter"><code>graph_uri</code></em> if <a class="link" href="rasqal-section-updates.html#RASQAL-UPDATE-GRAPH-ONE:CAPS"><span class="type">RASQAL_UPDATE_GRAPH_ONE</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-update-type"></a><h3>enum rasqal_update_type</h3>
<pre class="programlisting">typedef enum {
/* internal */
RASQAL_UPDATE_TYPE_UNKNOWN = 0,
RASQAL_UPDATE_TYPE_CLEAR = 1,
RASQAL_UPDATE_TYPE_CREATE = 2,
RASQAL_UPDATE_TYPE_DROP = 3,
RASQAL_UPDATE_TYPE_LOAD = 4,
RASQAL_UPDATE_TYPE_UPDATE = 5,
RASQAL_UPDATE_TYPE_ADD = 6,
RASQAL_UPDATE_TYPE_MOVE = 7,
RASQAL_UPDATE_TYPE_COPY = 8,
/* internal */
RASQAL_UPDATE_TYPE_LAST = RASQAL_UPDATE_TYPE_COPY
} rasqal_update_type;
</pre>
<p>
Update type being performed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-UNKNOWN:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_UNKNOWN</code></span></p></td>
<td>Internal
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-CLEAR:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_CLEAR</code></span></p></td>
<td>Clear graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-CREATE:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_CREATE</code></span></p></td>
<td>Create graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-DROP:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_DROP</code></span></p></td>
<td>Drop graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-LOAD:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_LOAD</code></span></p></td>
<td>Load graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-UPDATE:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_UPDATE</code></span></p></td>
<td>Insert or Delete graph or triples.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-ADD:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_ADD</code></span></p></td>
<td>Add graph to another graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-MOVE:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_MOVE</code></span></p></td>
<td>Move graph to another grpah.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-COPY:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_COPY</code></span></p></td>
<td>Copy graph to another graph.
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-TYPE-LAST:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_TYPE_LAST</code></span></p></td>
<td>Internal
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-update-flags"></a><h3>enum rasqal_update_flags</h3>
<pre class="programlisting">typedef enum {
RASQAL_UPDATE_FLAGS_SILENT = 1,
RASQAL_UPDATE_FLAGS_DATA = 2
} rasqal_update_flags;
</pre>
<p>
Bitflags for graph update operations
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-UPDATE-FLAGS-SILENT:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_FLAGS_SILENT</code></span></p></td>
<td>the update operation should be silent
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-FLAGS-DATA:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_FLAGS_DATA</code></span></p></td>
<td>the update operation is triple data not templates
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-update-graph-applies"></a><h3>enum rasqal_update_graph_applies</h3>
<pre class="programlisting">typedef enum {
RASQAL_UPDATE_GRAPH_ONE = 0,
RASQAL_UPDATE_GRAPH_DEFAULT = 1,
RASQAL_UPDATE_GRAPH_NAMED = 2,
RASQAL_UPDATE_GRAPH_ALL = 3
} rasqal_update_graph_applies;
</pre>
<p>
The graph(s) that the update operation applies to.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="RASQAL-UPDATE-GRAPH-ONE:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_GRAPH_ONE</code></span></p></td>
<td>the update operation applies to 1 graph
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-GRAPH-DEFAULT:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_GRAPH_DEFAULT</code></span></p></td>
<td>the update operation applies to the default graph
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-GRAPH-NAMED:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_GRAPH_NAMED</code></span></p></td>
<td>the update operation applies to all named graphs
</td>
</tr>
<tr>
<td><p><a name="RASQAL-UPDATE-GRAPH-ALL:CAPS"></a><span class="term"><code class="literal">RASQAL_UPDATE_GRAPH_ALL</code></span></p></td>
<td>the update operation applies ALL graphs
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|