/usr/share/gtk-doc/html/rasqal/rasqal-section-service.html is in librasqal3-doc 0.9.32-1build1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Service</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-row.html" title="Query Result Row">
<link rel="next" href="rasqal-section-triple.html" title="Triples">
<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-row.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-triple.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-service.synopsis" class="shortcut">Top</a>
|
<a href="#rasqal-section-service.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="rasqal-section-service"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="rasqal-section-service.top_of_page"></a>Service</span></h2>
<p>Service — Execute queries remotely via a SPARQL HTTP Protocol service.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="rasqal-section-service.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef <a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service">rasqal_service</a>;
<a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="returnvalue">rasqal_service</span></a> * <a class="link" href="rasqal-section-service.html#rasqal-new-service" title="rasqal_new_service ()">rasqal_new_service</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>,
<em class="parameter"><code><span class="type">raptor_uri</span> *service_uri</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *query_string</code></em>,
<em class="parameter"><code><span class="type">raptor_sequence</span> *data_graphs</code></em>);
<span class="returnvalue">void</span> <a class="link" href="rasqal-section-service.html#rasqal-free-service" title="rasqal_free_service ()">rasqal_free_service</a> (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>);
<a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="returnvalue">rasqal_query_results</span></a> * <a class="link" href="rasqal-section-service.html#rasqal-service-execute" title="rasqal_service_execute ()">rasqal_service_execute</a> (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-service.html#rasqal-service-set-format" title="rasqal_service_set_format ()">rasqal_service_set_format</a> (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *format</code></em>);
<span class="returnvalue">int</span> <a class="link" href="rasqal-section-service.html#rasqal-service-set-www" title="rasqal_service_set_www ()">rasqal_service_set_www</a> (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>,
<em class="parameter"><code><span class="type">raptor_www</span> *www</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="rasqal-section-service.description"></a><h2>Description</h2>
<p>
The SPARQL Protocol defines an HTTP binding that enables remote
queries to be executed over specified default and named graphs.
This class allows that to be constructed and executed, returning
a Rasqal query results <a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="type">rasqal_query_results</span></a> that may be used,
for example, with a formatter to generate output.
</p>
</div>
<div class="refsect1">
<a name="rasqal-section-service.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="rasqal-service"></a><h3>rasqal_service</h3>
<pre class="programlisting">typedef struct rasqal_service_s rasqal_service;
</pre>
<p>
Rasqal SPARQL Protocol Service
</p>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-new-service"></a><h3>rasqal_new_service ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="returnvalue">rasqal_service</span></a> * rasqal_new_service (<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>,
<em class="parameter"><code><span class="type">raptor_uri</span> *service_uri</code></em>,
<em class="parameter"><code>const unsigned <span class="type">char</span> *query_string</code></em>,
<em class="parameter"><code><span class="type">raptor_sequence</span> *data_graphs</code></em>);</pre>
<p>
Constructor - create a new rasqal protocol service object.
</p>
<p>
Create a structure to execute a sparql protocol service at
<em class="parameter"><code>service_uri</code></em> running the query <em class="parameter"><code>query_string</code></em> and returning
a sparql result set.
</p>
<p>
All arguments are copied by the service object
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>world</code></em> :</span></p></td>
<td>rasqal_world object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>service_uri</code></em> :</span></p></td>
<td>sparql protocol service URI</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query_string</code></em> :</span></p></td>
<td>query string (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_graphs</code></em> :</span></p></td>
<td>sequence of <a class="link" href="rasqal-section-data.html#rasqal-data-graph" title="rasqal_data_graph"><span class="type">rasqal_data_graph</span></a> graphs for service</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="rasqal-section-query.html#rasqal-query" title="rasqal_query"><span class="type">rasqal_query</span></a> object or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-free-service"></a><h3>rasqal_free_service ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> rasqal_free_service (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>);</pre>
<p>
Destructor - destroy a <a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>svc</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> object</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-service-execute"></a><h3>rasqal_service_execute ()</h3>
<pre class="programlisting"><a class="link" href="rasqal-section-query-results.html#rasqal-query-results" title="rasqal_query_results"><span class="returnvalue">rasqal_query_results</span></a> * rasqal_service_execute (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>);</pre>
<p>
Execute a rasqal sparql protocol service
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>svc</code></em> :</span></p></td>
<td>rasqal service</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>query results or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-service-set-format"></a><h3>rasqal_service_set_format ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_service_set_format (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *format</code></em>);</pre>
<p>
Set the MIME Type to use in HTTP Accept when executing the service
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>svc</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> service object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>service mime type (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rasqal-service-set-www"></a><h3>rasqal_service_set_www ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> rasqal_service_set_www (<em class="parameter"><code><a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> *svc</code></em>,
<em class="parameter"><code><span class="type">raptor_www</span> *www</code></em>);</pre>
<p>
Set the WWW object to use when executing the service
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>svc</code></em> :</span></p></td>
<td>
<a class="link" href="rasqal-section-service.html#rasqal-service" title="rasqal_service"><span class="type">rasqal_service</span></a> service object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>www</code></em> :</span></p></td>
<td>WWW object (or NULL)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>non 0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|