<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Parsers</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-node.html" title="RDF term (librdf_node)">
<link rel="next" href="redland-query.html" title="Querying">
<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-node.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="redland-query.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-parser.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#redland-parser.description" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="redland-parser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="redland-parser.top_of_page"></a>Parsers</span></h2>
<p>Parsers — RDF parsers from syntax to triples.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="redland-parser.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
typedef             <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a>;
typedef             <a class="link" href="redland-parser.html#librdf-parser-factory" title="librdf_parser_factory">librdf_parser_factory</a>;
int                 <a class="link" href="redland-parser.html#librdf-parser-enumerate" title="librdf_parser_enumerate ()">librdf_parser_enumerate</a>             (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         unsigned int counter,
                                                         const char **name,
                                                         const char **label);
const char*         <a class="link" href="redland-parser.html#librdf-parser-guess-name" title="librdf_parser_guess_name ()">librdf_parser_guess_name</a>            (const char *mime_type,
                                                         unsigned char *buffer,
                                                         unsigned char *identifier);
void                <a class="link" href="redland-parser.html#librdf-parser-register-factory" title="librdf_parser_register_factory ()">librdf_parser_register_factory</a>      (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         const char *name,
                                                         const char *label,
                                                         const char *mime_type,
                                                         unsigned char *uri_string,
                                                         void (factorylibrdf_parser_factory*) ());
<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a>*      <a class="link" href="redland-parser.html#librdf-new-parser" title="librdf_new_parser ()">librdf_new_parser</a>                   (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         const char *name,
                                                         const char *mime_type,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *type_uri);
<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a>*      <a class="link" href="redland-parser.html#librdf-new-parser-from-factory" title="librdf_new_parser_from_factory ()">librdf_new_parser_from_factory</a>      (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         <a class="link" href="redland-parser.html#librdf-parser-factory" title="librdf_parser_factory">librdf_parser_factory</a> *factory);
void                <a class="link" href="redland-parser.html#librdf-free-parser" title="librdf_free_parser ()">librdf_free_parser</a>                  (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);
<a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      <a class="link" href="redland-parser.html#librdf-parser-parse-as-stream" title="librdf_parser_parse_as_stream ()">librdf_parser_parse_as_stream</a>       (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <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> *base_uri);
int                 <a class="link" href="redland-parser.html#librdf-parser-parse-into-model" title="librdf_parser_parse_into_model ()">librdf_parser_parse_into_model</a>      (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <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> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);
<a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      <a class="link" href="redland-parser.html#librdf-parser-parse-file-handle-as-stream" title="librdf_parser_parse_file_handle_as_stream ()">librdf_parser_parse_file_handle_as_stream</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         FILE *fh,
                                                         int close_fh,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);
int                 <a class="link" href="redland-parser.html#librdf-parser-parse-file-handle-into-model" title="librdf_parser_parse_file_handle_into_model ()">librdf_parser_parse_file_handle_into_model</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         FILE *fh,
                                                         int close_fh,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);
<a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      <a class="link" href="redland-parser.html#librdf-parser-parse-string-as-stream" title="librdf_parser_parse_string_as_stream ()">librdf_parser_parse_string_as_stream</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);
int                 <a class="link" href="redland-parser.html#librdf-parser-parse-string-into-model" title="librdf_parser_parse_string_into_model ()">librdf_parser_parse_string_into_model</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);
void                <a class="link" href="redland-parser.html#librdf-parser-set-error" title="librdf_parser_set_error ()">librdf_parser_set_error</a>             (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void *user_data,
                                                         void (error_fnvoid *user_data, const char *msg, ...) ());
void                <a class="link" href="redland-parser.html#librdf-parser-set-warning" title="librdf_parser_set_warning ()">librdf_parser_set_warning</a>           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void *user_data,
                                                         void (warning_fnvoid *user_data, const char *msg, ...) ());
<a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      <a class="link" href="redland-parser.html#librdf-parser-parse-counted-string-as-stream" title="librdf_parser_parse_counted_string_as_stream ()">librdf_parser_parse_counted_string_as_stream</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         size_t length,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);
int                 <a class="link" href="redland-parser.html#librdf-parser-parse-counted-string-into-model" title="librdf_parser_parse_counted_string_into_model ()">librdf_parser_parse_counted_string_into_model</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         size_t length,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);
#define             <a class="link" href="redland-parser.html#LIBRDF-PARSER-FEATURE-ERROR-COUNT:CAPS" title="LIBRDF_PARSER_FEATURE_ERROR_COUNT">LIBRDF_PARSER_FEATURE_ERROR_COUNT</a>
#define             <a class="link" href="redland-parser.html#LIBRDF-PARSER-FEATURE-WARNING-COUNT:CAPS" title="LIBRDF_PARSER_FEATURE_WARNING_COUNT">LIBRDF_PARSER_FEATURE_WARNING_COUNT</a>
<a class="link" href="redland-node.html#librdf-node" title="librdf_node">librdf_node</a>*        <a class="link" href="redland-parser.html#librdf-parser-get-feature" title="librdf_parser_get_feature ()">librdf_parser_get_feature</a>           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *feature);
int                 <a class="link" href="redland-parser.html#librdf-parser-set-feature" title="librdf_parser_set_feature ()">librdf_parser_set_feature</a>           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *feature,
                                                         <a class="link" href="redland-node.html#librdf-node" title="librdf_node">librdf_node</a> *value);
char*               <a class="link" href="redland-parser.html#librdf-parser-get-accept-header" title="librdf_parser_get_accept_header ()">librdf_parser_get_accept_header</a>     (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);
int                 <a class="link" href="redland-parser.html#librdf-parser-get-namespaces-seen-count" title="librdf_parser_get_namespaces_seen_count ()">librdf_parser_get_namespaces_seen_count</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);
const char*         <a class="link" href="redland-parser.html#librdf-parser-get-namespaces-seen-prefix" title="librdf_parser_get_namespaces_seen_prefix ()">librdf_parser_get_namespaces_seen_prefix</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         int offset);
<a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>*         <a class="link" href="redland-parser.html#librdf-parser-get-namespaces-seen-uri" title="librdf_parser_get_namespaces_seen_uri ()">librdf_parser_get_namespaces_seen_uri</a>
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         int offset);
<a class="link" href="redland-uri.html#librdf-uri-filter-func" title="librdf_uri_filter_func ()">librdf_uri_filter_func</a> <a class="link" href="redland-parser.html#librdf-parser-get-uri-filter" title="librdf_parser_get_uri_filter ()">librdf_parser_get_uri_filter</a>     (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void **user_data_p);
void                <a class="link" href="redland-parser.html#librdf-parser-set-uri-filter" title="librdf_parser_set_uri_filter ()">librdf_parser_set_uri_filter</a>        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         librdf_uri_filter_funcfilter ,
                                                         void *user_data);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="redland-parser.description"></a><h2>Description</h2>
<p>
Provides classes to create parsers and parse syntaxes from URIs or a
string into RDF graphs (<a class="link" href="redland-model.html#librdf-model" title="librdf_model"><span class="type">librdf_model</span></a>) or sequences of triples
(<a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a>).  Parser features can be set, which are passed down
to Raptor and errors and warnings that are returned can be retrieved
by callbacks. 
</p>
</div>
<div class="refsect1" lang="en">
<a name="redland-parser.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="librdf-parser"></a><h3>librdf_parser</h3>
<pre class="programlisting">typedef struct librdf_parser_s librdf_parser;
</pre>
<p>
Redland parser class.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-factory"></a><h3>librdf_parser_factory</h3>
<pre class="programlisting">typedef struct librdf_parser_factory_s librdf_parser_factory;
</pre>
<p>
Redland parser factory class.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-enumerate"></a><h3>librdf_parser_enumerate ()</h3>
<pre class="programlisting">int                 librdf_parser_enumerate             (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         unsigned int counter,
                                                         const char **name,
                                                         const char **label);</pre>
<p>
Get information on parsers.</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>counter</code></em> :</span></p></td>
<td> index into the list of parsers
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td> pointer to store the name of the parser (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td> pointer to store syntax readable label (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 of if counter is out of range
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-guess-name"></a><h3>librdf_parser_guess_name ()</h3>
<pre class="programlisting">const char*         librdf_parser_guess_name            (const char *mime_type,
                                                         unsigned char *buffer,
                                                         unsigned char *identifier);</pre>
<p>
Get a parser name for content with type or identiifer</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>mime_type</code></em> :</span></p></td>
<td> MIME type of syntax or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td> content buffer or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>identifier</code></em> :</span></p></td>
<td> content identifier or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a parser name or NULL if nothing was guessable
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-register-factory"></a><h3>librdf_parser_register_factory ()</h3>
<pre class="programlisting">void                librdf_parser_register_factory      (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         const char *name,
                                                         const char *label,
                                                         const char *mime_type,
                                                         unsigned char *uri_string,
                                                         void (factorylibrdf_parser_factory*) ());</pre>
<p>
Register a parser factory .</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>name</code></em> :</span></p></td>
<td> the name of the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td> the label of the parser (optional)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td> MIME type of the syntax (optional)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri_string</code></em> :</span></p></td>
<td> URI of the syntax (optional)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td> function to be called to register the factor parameters
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-new-parser"></a><h3>librdf_new_parser ()</h3>
<pre class="programlisting"><a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a>*      librdf_new_parser                   (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         const char *name,
                                                         const char *mime_type,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *type_uri);</pre>
<p>
Constructor - create a new <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object.
</p>
<p>
If all fields are NULL, this means any parser supporting
MIME Type "application/rdf+xml"</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>name</code></em> :</span></p></td>
<td> the parser factory name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
<td> the MIME type of the syntax (NULL if not used)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type_uri</code></em> :</span></p></td>
<td> URI of syntax (NULL if not used)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> new <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-new-parser-from-factory"></a><h3>librdf_new_parser_from_factory ()</h3>
<pre class="programlisting"><a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a>*      librdf_new_parser_from_factory      (<a class="link" href="redland-world.html#librdf-world" title="librdf_world">librdf_world</a> *world,
                                                         <a class="link" href="redland-parser.html#librdf-parser-factory" title="librdf_parser_factory">librdf_parser_factory</a> *factory);</pre>
<p>
Constructor - create a new <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</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>world</code></em> :</span></p></td>
<td> redland world object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>factory</code></em> :</span></p></td>
<td> the parser factory to use to create this parser
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> new <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-free-parser"></a><h3>librdf_free_parser ()</h3>
<pre class="programlisting">void                librdf_free_parser                  (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);</pre>
<p>
Destructor - destroys a <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-as-stream"></a><h3>librdf_parser_parse_as_stream ()</h3>
<pre class="programlisting"><a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      librdf_parser_parse_as_stream       (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <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> *base_uri);</pre>
<p>
Parse a URI to a librdf_stream of statements.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> the URI to read
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a> of statements or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-into-model"></a><h3>librdf_parser_parse_into_model ()</h3>
<pre class="programlisting">int                 librdf_parser_parse_into_model      (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <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> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);</pre>
<p>
Parse a URI of content into an librdf_model.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td> the URI to read the content
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> the model to use
</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" lang="en">
<a name="librdf-parser-parse-file-handle-as-stream"></a><h3>librdf_parser_parse_file_handle_as_stream ()</h3>
<pre class="programlisting"><a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      librdf_parser_parse_file_handle_as_stream
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         FILE *fh,
                                                         int close_fh,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);</pre>
<p>
Parse a FILE* handle of content to a <a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a> of statements.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td> FILE* to read content source
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>close_fh</code></em> :</span></p></td>
<td> non-0 to <code class="function">fclose()</code> the file handle on finishing
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a> of statements or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-file-handle-into-model"></a><h3>librdf_parser_parse_file_handle_into_model ()</h3>
<pre class="programlisting">int                 librdf_parser_parse_file_handle_into_model
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         FILE *fh,
                                                         int close_fh,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);</pre>
<p>
Parse a FILE* handle of content into an <a class="link" href="redland-model.html#librdf-model" title="librdf_model"><span class="type">librdf_model</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fh</code></em> :</span></p></td>
<td> FILE* to read content source
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>close_fh</code></em> :</span></p></td>
<td> non-0 to <code class="function">fclose()</code> the file handle on finishing
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use (or NULL)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> the model to write to
</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" lang="en">
<a name="librdf-parser-parse-string-as-stream"></a><h3>librdf_parser_parse_string_as_stream ()</h3>
<pre class="programlisting"><a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      librdf_parser_parse_string_as_stream
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);</pre>
<p>
Parse a string of content to a librdf_stream of statements.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td> the string to parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a> of statements or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-string-into-model"></a><h3>librdf_parser_parse_string_into_model ()</h3>
<pre class="programlisting">int                 librdf_parser_parse_string_into_model
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);</pre>
<p>
Parse a string of content into an librdf_model.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td> the content to parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> the model to use
</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" lang="en">
<a name="librdf-parser-set-error"></a><h3>librdf_parser_set_error ()</h3>
<pre class="programlisting">void                librdf_parser_set_error             (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void *user_data,
                                                         void (error_fnvoid *user_data, const char *msg, ...) ());</pre>
<p>
<em class="parameter"><code>Deprecated</code></em>: Does nothing
</p>
<p>
Set the parser error handling function.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td> user data to pass to function
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_fn</code></em> :</span></p></td>
<td> pointer to the function
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-set-warning"></a><h3>librdf_parser_set_warning ()</h3>
<pre class="programlisting">void                librdf_parser_set_warning           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void *user_data,
                                                         void (warning_fnvoid *user_data, const char *msg, ...) ());</pre>
<p>
<em class="parameter"><code>Deprecated</code></em>: Does nothing.
</p>
<p>
Set the parser warning handling function.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td> user data to pass to function
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>warning_fn</code></em> :</span></p></td>
<td> pointer to the function
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-counted-string-as-stream"></a><h3>librdf_parser_parse_counted_string_as_stream ()</h3>
<pre class="programlisting"><a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream">librdf_stream</a>*      librdf_parser_parse_counted_string_as_stream
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         size_t length,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri);</pre>
<p>
Parse a counted string of content to a librdf_stream of statements.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td> the string to parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td> length of the string content (must be &gt;0)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a class="link" href="redland-stream.html#librdf-stream" title="librdf_stream"><span class="type">librdf_stream</span></a> of statements or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-parse-counted-string-into-model"></a><h3>librdf_parser_parse_counted_string_into_model ()</h3>
<pre class="programlisting">int                 librdf_parser_parse_counted_string_into_model
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         unsigned char *string,
                                                         size_t length,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *base_uri,
                                                         <a class="link" href="redland-model.html#librdf-model" title="librdf_model">librdf_model</a> *model);</pre>
<p>
Parse a counted string of content into an librdf_model.</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>parser</code></em> :</span></p></td>
<td> the parser
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
<td> the content to parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td> length of content (must be &gt;0)
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td>
<td> the base URI to use or NULL
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td> the model to use
</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" lang="en">
<a name="LIBRDF-PARSER-FEATURE-ERROR-COUNT:CAPS"></a><h3>LIBRDF_PARSER_FEATURE_ERROR_COUNT</h3>
<pre class="programlisting">#define LIBRDF_PARSER_FEATURE_ERROR_COUNT "http://feature.librdf.org/parser-error-count"
</pre>
<p>
Parser feature URI string for getting the error count of the last parse.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="LIBRDF-PARSER-FEATURE-WARNING-COUNT:CAPS"></a><h3>LIBRDF_PARSER_FEATURE_WARNING_COUNT</h3>
<pre class="programlisting">#define LIBRDF_PARSER_FEATURE_WARNING_COUNT "http://feature.librdf.org/parser-warning-count"
</pre>
<p>
Parser feature URI string for getting the warning count of the last parse.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-feature"></a><h3>librdf_parser_get_feature ()</h3>
<pre class="programlisting"><a class="link" href="redland-node.html#librdf-node" title="librdf_node">librdf_node</a>*        librdf_parser_get_feature           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *feature);</pre>
<p>
Get the value of a parser feature.</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
<td> <span class="type">librdf_Uuri</span> feature property
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> new <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> feature value or NULL if no such feature
exists or the value is empty.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-set-feature"></a><h3>librdf_parser_set_feature ()</h3>
<pre class="programlisting">int                 librdf_parser_set_feature           (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         <a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a> *feature,
                                                         <a class="link" href="redland-node.html#librdf-node" title="librdf_node">librdf_node</a> *value);</pre>
<p>
Set the value of a parser feature.</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feature</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> feature property
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> <a class="link" href="redland-node.html#librdf-node" title="librdf_node"><span class="type">librdf_node</span></a> feature property value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> non 0 on failure (negative if no such feature)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-accept-header"></a><h3>librdf_parser_get_accept_header ()</h3>
<pre class="programlisting">char*               librdf_parser_get_accept_header     (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);</pre>
<p>
Get an HTTP Accept value for the parser.
</p>
<p>
The returned string must be freed by the caller such as with
<a
href="/usr/share/gtk-doc/html/raptor/raptor-section-memory.html#raptor-free-memory"
><code class="function">raptor_free_memory()</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>parser</code></em> :</span></p></td>
<td> parser
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new Accept: header string or NULL on failure
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-namespaces-seen-count"></a><h3>librdf_parser_get_namespaces_seen_count ()</h3>
<pre class="programlisting">int                 librdf_parser_get_namespaces_seen_count
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser);</pre>
<p>
Get the number of namespaces seen during parsing</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> uri or NULL if no such namespace uri
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-namespaces-seen-prefix"></a><h3>librdf_parser_get_namespaces_seen_prefix ()</h3>
<pre class="programlisting">const char*         librdf_parser_get_namespaces_seen_prefix
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         int offset);</pre>
<p>
Get the prefix of namespaces seen during parsing</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> index into list of namespaces
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> prefix or NULL if no such namespace prefix
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-namespaces-seen-uri"></a><h3>librdf_parser_get_namespaces_seen_uri ()</h3>
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri" title="librdf_uri">librdf_uri</a>*         librdf_parser_get_namespaces_seen_uri
                                                        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         int offset);</pre>
<p>
Get the uri of namespaces seen during parsing</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td> index into list of namespaces
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> uri or NULL if no such namespace uri
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-get-uri-filter"></a><h3>librdf_parser_get_uri_filter ()</h3>
<pre class="programlisting"><a class="link" href="redland-uri.html#librdf-uri-filter-func" title="librdf_uri_filter_func ()">librdf_uri_filter_func</a> librdf_parser_get_uri_filter     (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         void **user_data_p);</pre>
<p>
Get the current URI filter function for retrieval during parsing.</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data_p</code></em> :</span></p></td>
<td> Pointer to user data to return
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> current URI filter function
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="librdf-parser-set-uri-filter"></a><h3>librdf_parser_set_uri_filter ()</h3>
<pre class="programlisting">void                librdf_parser_set_uri_filter        (<a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser">librdf_parser</a> *parser,
                                                         librdf_uri_filter_funcfilter ,
                                                         void *user_data);</pre>
<p>
Set URI filter function for retrieval during parsing.</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>parser</code></em> :</span></p></td>
<td> <a class="link" href="redland-parser.html#librdf-parser" title="librdf_parser"><span class="type">librdf_parser</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>Param2</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td> User data to pass to filter function
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.10</div>
</body>
</html>