1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 08:30:06 +02:00
audacity/lib-src/libraptor/docs/html/tutorial-serializer-features.html
2010-01-24 09:19:39 +00:00

71 lines
4.4 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Serializer features</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="Raptor RDF Syntax Parsing and Serializing Library Manual">
<link rel="up" href="tutorial-serializing.html" title="Serializing RDF triples to a syntax">
<link rel="prev" href="tutorial-serializer-create.html" title="Create the Serializer object">
<link rel="next" href="tutorial-serializer-declare-namespace.html" title="Declare namespaces">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="introduction.html" title="Raptor Overview">
<link rel="part" href="tutorial.html" title="Part I. Raptor Tutorial">
<link rel="chapter" href="tutorial-initialising-finishing.html" title="Initialising and Finishing using the Library">
<link rel="chapter" href="tutorial-querying-functionality.html" title="Listing built-in functionality">
<link rel="chapter" href="tutorial-parsing.html" title="Parsing syntaxes to RDF Triples">
<link rel="chapter" href="tutorial-serializing.html" title="Serializing RDF triples to a syntax">
<link rel="part" href="reference-manual.html" title="Part II. Raptor Reference Manual">
<link rel="chapter" href="raptor-parsers.html" title="Parsers in Raptor (syntax to triples)">
<link rel="chapter" href="raptor-serializers.html" title="Serializers in Raptor (triples to syntax)">
<link rel="index" href="ix01.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="tutorial-serializer-create.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="tutorial-serializing.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">Raptor RDF Syntax Parsing and Serializing Library Manual</th>
<td><a accesskey="n" href="tutorial-serializer-declare-namespace.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="tutorial-serializer-features"></a>Serializer features</h2></div></div></div>
<p>There are several options that can be set on serializers, called
<span class="emphasis"><em>features</em></span>. The exact list of features can be
found via
<a class="link" href="tutorial-querying-functionality.html" title="Listing built-in functionality">Querying Functionality</a>
or in the API reference for
<a class="link" href="raptor-section-serializer.html#raptor-serializer-set-feature" title="raptor_serializer_set_feature ()"><code class="function">raptor_serializer_set_feature()</code></a>.
</p>
<p>Features are integer enumerations of the
<a class="link" href="raptor-section-feature.html#raptor-feature" title="enum raptor_feature"><span class="type">raptor_feature</span></a> enum and have values
that are either integers (often acting as booleans) or strings.
The two functions that set features are:
</p>
<pre class="programlisting">
/* Set an integer (or boolean) valued feature */
raptor_serializer_set_feature(rdf_serializer, feature, 1);
/* Set a string valued feature */
raptor_serializer_set_feature_string(rdf_serializer, feature, "abc");
</pre>
<p>
</p>
<p>
There are also two corresponding functions for reading the values of serializer
features:
<a class="link" href="raptor-section-serializer.html#raptor-serializer-get-feature" title="raptor_serializer_get_feature ()"><code class="function">raptor_serializer_get_feature()</code></a>
and
<a class="link" href="raptor-section-serializer.html#raptor-serializer-get-feature-string" title="raptor_serializer_get_feature_string ()"><code class="function">raptor_serializer_get_feature_string()</code></a>
taken the feature enumeration parameter and returning the integer or string
value correspondingly.
</p>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.10</div>
</body>
</html>