mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 23:32:53 +02:00
624 lines
29 KiB
HTML
624 lines
29 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>URI</title>
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||
<link rel="start" href="index.html" title="Redland RDF Library Manual">
|
||
<link rel="up" href="reference-manual.html" title="Part II. Reference Manual">
|
||
<link rel="prev" href="redland-unicode.html" title="Unicode">
|
||
<link rel="next" href="indexes.html" title="Index">
|
||
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
||
<link rel="stylesheet" href="style.css" type="text/css">
|
||
<link rel="chapter" href="redland.html" title="Redland Overview">
|
||
<link rel="chapter" href="introduction.html" title="Introduction">
|
||
<link rel="part" href="tutorial.html" title="Part I. Tutorial">
|
||
<link rel="part" href="reference-manual.html" title="Part II. Reference Manual">
|
||
<link rel="chapter" href="objects.html" title="Objects in C">
|
||
<link rel="chapter" href="redland-storage-modules.html" title="Storage Modules">
|
||
<link rel="index" href="indexes.html" title="Index">
|
||
</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="redland-unicode.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">Redland RDF Library Manual</th>
|
||
<td><a accesskey="n" href="indexes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||
</tr>
|
||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#redland-uri.synopsis" class="shortcut">Top</a>
|
||
|
|
||
<a href="#redland-uri.description" class="shortcut">Description</a></nobr></td></tr>
|
||
</table>
|
||
<div class="refentry" lang="en">
|
||
<a name="redland-uri"></a><div class="titlepage"></div>
|
||
<div class="refnamediv"><table width="100%"><tr>
|
||
<td valign="top">
|
||
<h2><span class="refentrytitle"><a name="redland-uri.top_of_page"></a>URI</span></h2>
|
||
<p>URI — URI class</p>
|
||
</td>
|
||
<td valign="top" align="right"></td>
|
||
</tr></table></div>
|
||
<div class="refsynopsisdiv">
|
||
<a name="redland-uri.synopsis"></a><h2>Synopsis</h2>
|
||
<pre class="synopsis">
|
||
typedef <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>;
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri" title="librdf_new_uri ()">librdf_new_uri</a> (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
|
||
unsigned char *uri_string);
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri-from-uri" title="librdf_new_uri_from_uri ()">librdf_new_uri_from_uri</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *old_uri);
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri-from-uri-local-name" title="librdf_new_uri_from_uri_local_name ()">librdf_new_uri_from_uri_local_name</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *old_uri,
|
||
unsigned char *local_name);
|
||
void <a class="link" href="redland-uri.html#librdf-free-uri" title="librdf_free_uri ()">librdf_free_uri</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
unsigned char* <a class="link" href="redland-uri.html#librdf-uri-as-string" title="librdf_uri_as_string ()">librdf_uri_as_string</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
unsigned char* <a class="link" href="redland-uri.html#librdf-uri-as-counted-string" title="librdf_uri_as_counted_string ()">librdf_uri_as_counted_string</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
size_t *len_p);
|
||
void <a class="link" href="redland-uri.html#librdf-uri-print" title="librdf_uri_print ()">librdf_uri_print</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
FILE *fh);
|
||
unsigned char* <a class="link" href="redland-uri.html#librdf-uri-to-string" title="librdf_uri_to_string ()">librdf_uri_to_string</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
unsigned char* <a class="link" href="redland-uri.html#librdf-uri-to-counted-string" title="librdf_uri_to_counted_string ()">librdf_uri_to_counted_string</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
size_t *len_p);
|
||
int <a class="link" href="redland-uri.html#librdf-uri-equals" title="librdf_uri_equals ()">librdf_uri_equals</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *first_uri,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *second_uri);
|
||
int <a class="link" href="redland-uri.html#librdf-uri-is-file-uri" title="librdf_uri_is_file_uri ()">librdf_uri_is_file_uri</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
const char* <a class="link" href="redland-uri.html#librdf-uri-to-filename" title="librdf_uri_to_filename ()">librdf_uri_to_filename</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri-normalised-to-base" title="librdf_new_uri_normalised_to_base ()">librdf_new_uri_normalised_to_base</a> (unsigned char *uri_string,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *source_uri,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri-relative-to-base" title="librdf_new_uri_relative_to_base ()">librdf_new_uri_relative_to_base</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
|
||
unsigned char *uri_string);
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* <a class="link" href="redland-uri.html#librdf-new-uri-from-filename" title="librdf_new_uri_from_filename ()">librdf_new_uri_from_filename</a> (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
|
||
const char *filename);
|
||
int <a class="link" href="redland-uri.html#librdf-uri-compare" title="librdf_uri_compare ()">librdf_uri_compare</a> (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri1,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri2);
|
||
int (<a class="link" href="redland-uri.html#librdf-uri-filter-func" title="librdf_uri_filter_func ()">*librdf_uri_filter_func</a>) (void *user_data,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1" lang="en">
|
||
<a name="redland-uri.description"></a><h2>Description</h2>
|
||
<p>
|
||
A class for absolute URIs and relative URI computation utility
|
||
functions. Only absolute URIs are provided, with no current access
|
||
to internals of URIs such as URI scheme, path, authority. Relative
|
||
URIs can be generated against some base or turned to and from local
|
||
filenames.
|
||
</p>
|
||
</div>
|
||
<div class="refsect1" lang="en">
|
||
<a name="redland-uri.details"></a><h2>Details</h2>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri"></a><h3>librdf_uri</h3>
|
||
<pre class="programlisting">typedef struct librdf_uri_s librdf_uri;
|
||
</pre>
|
||
<p>
|
||
Redland URI class.</p>
|
||
<p>
|
||
|
||
</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri"></a><h3>librdf_new_uri ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
|
||
unsigned char *uri_string);</pre>
|
||
<p>
|
||
Constructor - create a new <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object from a URI string.
|
||
</p>
|
||
<p>
|
||
A new URI is constructed from a copy of the string. If the
|
||
string is a NULL pointer or empty (0 length) then the result is NULL.</p>
|
||
<p>
|
||
|
||
</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> redland world object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
|
||
<td> URI in string form
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri-from-uri"></a><h3>librdf_new_uri_from_uri ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri_from_uri (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *old_uri);</pre>
|
||
<p>
|
||
Copy constructor - create a new librdf_uri object from an existing librdf_uri object.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>old_uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri-from-uri-local-name"></a><h3>librdf_new_uri_from_uri_local_name ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri_from_uri_local_name (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *old_uri,
|
||
unsigned char *local_name);</pre>
|
||
<p>
|
||
Copy constructor - create a new librdf_uri object from an existing librdf_uri object and a local name.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>old_uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>local_name</code></em> :</span></p></td>
|
||
<td> local name to append to URI
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-free-uri"></a><h3>librdf_free_uri ()</h3>
|
||
<pre class="programlisting">void librdf_free_uri (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Destructor - destroy a <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody><tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-as-string"></a><h3>librdf_uri_as_string ()</h3>
|
||
<pre class="programlisting">unsigned char* librdf_uri_as_string (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Get a pointer to the string representation of the URI.
|
||
</p>
|
||
<p>
|
||
Returns a shared pointer to the URI string representation.
|
||
Note: does not allocate a new string so the caller must not free it.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> string representation of URI
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-as-counted-string"></a><h3>librdf_uri_as_counted_string ()</h3>
|
||
<pre class="programlisting">unsigned char* librdf_uri_as_counted_string (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
size_t *len_p);</pre>
|
||
<p>
|
||
Get a pointer to the string representation of the URI with length.
|
||
</p>
|
||
<p>
|
||
Returns a shared pointer to the URI string representation.
|
||
Note: does not allocate a new string so the caller must not free it.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
|
||
<td> pointer to location to store length
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> string representation of URI
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-print"></a><h3>librdf_uri_print ()</h3>
|
||
<pre class="programlisting">void librdf_uri_print (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
FILE *fh);</pre>
|
||
<p>
|
||
Print the URI to the given file handle.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
|
||
<td> file handle
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-to-string"></a><h3>librdf_uri_to_string ()</h3>
|
||
<pre class="programlisting">unsigned char* librdf_uri_to_string (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Format the URI as a string.
|
||
</p>
|
||
<p>
|
||
Note: this method allocates a new string since this is a _to_ method
|
||
and the caller must free the resulting memory.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> string representation of the URI or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-to-counted-string"></a><h3>librdf_uri_to_counted_string ()</h3>
|
||
<pre class="programlisting">unsigned char* librdf_uri_to_counted_string (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri,
|
||
size_t *len_p);</pre>
|
||
<p>
|
||
Format the URI as a counted string.
|
||
</p>
|
||
<p>
|
||
Note: this method allocates a new string since this is a _to_ method
|
||
and the caller must free the resulting memory.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>len_p</code></em> :</span></p></td>
|
||
<td> pointer to location to store length
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> string representation of the URI or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-equals"></a><h3>librdf_uri_equals ()</h3>
|
||
<pre class="programlisting">int librdf_uri_equals (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *first_uri,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *second_uri);</pre>
|
||
<p>
|
||
Compare two librdf_uri objects for equality.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>first_uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object 1
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>second_uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object 2
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> non 0 if the objects are equal
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-is-file-uri"></a><h3>librdf_uri_is_file_uri ()</h3>
|
||
<pre class="programlisting">int librdf_uri_is_file_uri (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Test if a URI points to a filename.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> Non zero if the URI points to a file
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-to-filename"></a><h3>librdf_uri_to_filename ()</h3>
|
||
<pre class="programlisting">const char* librdf_uri_to_filename (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Return pointer to filename of URI.
|
||
</p>
|
||
<p>
|
||
Returns a pointer to a newly allocated buffer that
|
||
the caller must free. This will fail if the URI
|
||
is not a file: URI. This can be checked with <a class="link" href="redland-uri.html#librdf-uri-is-file-uri" title="librdf_uri_is_file_uri ()"><span class="type">librdf_uri_is_file_uri</span></a></p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> pointer to filename or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri-normalised-to-base"></a><h3>librdf_new_uri_normalised_to_base ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri_normalised_to_base (unsigned char *uri_string,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *source_uri,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);</pre>
|
||
<p>
|
||
Constructor - create a new <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object from a URI string stripped of the source URI, made relative to the base URI.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
|
||
<td> URI in string form
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>source_uri</code></em> :</span></p></td>
|
||
<td> source URI to remove
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
|
||
<td> base URI to add
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri-relative-to-base"></a><h3>librdf_new_uri_relative_to_base ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri_relative_to_base (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
|
||
unsigned char *uri_string);</pre>
|
||
<p>
|
||
Constructor - create a new <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object from a URI string relative to a base URI.
|
||
</p>
|
||
<p>
|
||
An empty uri_string or NULL is equivalent to
|
||
librdf_new_uri_from_uri(base_uri)</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
|
||
<td> absolute base URI
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
|
||
<td> relative URI string
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-new-uri-from-filename"></a><h3>librdf_new_uri_from_filename ()</h3>
|
||
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>* librdf_new_uri_from_filename (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
|
||
const char *filename);</pre>
|
||
<p>
|
||
Constructor - create a new <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object from a filename.</p>
|
||
<p>
|
||
|
||
</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> Redland <a class="link" href="redland-world.html#librdf-world" title="librdf_world"><span class="type">librdf_world</span></a> object
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
||
<td> filename
|
||
</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="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object or NULL on failure
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-compare"></a><h3>librdf_uri_compare ()</h3>
|
||
<pre class="programlisting">int librdf_uri_compare (<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri1,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri2);</pre>
|
||
<p>
|
||
Compare two librdf_uri objects lexicographically.
|
||
</p>
|
||
<p>
|
||
A NULL URI is always less than (never equal to) a non-NULL URI.</p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri1</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object 1 or NULL
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri2</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> object 2 or NULL
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> <0 if <em class="parameter"><code>uri1</code></em> is less than <em class="parameter"><code>uri2</code></em>, 0 if equal, >0 if <em class="parameter"><code>uri1</code></em> is greater than <em class="parameter"><code>uri2</code></em>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" lang="en">
|
||
<a name="librdf-uri-filter-func"></a><h3>librdf_uri_filter_func ()</h3>
|
||
<pre class="programlisting">int (*librdf_uri_filter_func) (void *user_data,
|
||
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *uri);</pre>
|
||
<p>
|
||
Callback function for <a class="link" href="redland-parser.html#librdf-parser-set-uri-filter" title="librdf_parser_set_uri_filter ()"><code class="function">librdf_parser_set_uri_filter()</code></a></p>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
||
<td> user data
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
||
<td> <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri"><span class="type">librdf_uri</span></a> URI to check
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> non-0 to filter the URI
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<hr>
|
||
Generated by GTK-Doc V1.10</div>
|
||
</body>
|
||
</html>
|