You are viewing a plain text version of this content. The canonical link for it is here.
Posted to triplesoup-commits@incubator.apache.org by le...@apache.org on 2007/04/13 15:19:52 UTC
svn commit: r528519 [6/12] - in
/incubator/triplesoup/donations/TRIPLES-2-libb: ./ docs/ docs/html/
docs/tmpl/ docs/xml/ redland-integration/ redland/ src/ test/ tests/ utils/
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Iterators.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Iterators.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Iterators.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Iterators.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,327 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Iterators</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="b2.html" title="Part II. Functions and Operations">
+<link rel="prev" href="B-Count.html" title="Count functions">
+<link rel="next" href="B-Timers.html" title="Timers">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="B-Count.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td><a accesskey="u" href="b2.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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="B-Timers.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="#top_of_page" class="shortcut">Top</a>
+  | 
+ <a href="#desc" class="shortcut">Description</a></nobr></td></tr>
+</table>
+<div class="refentry" lang="en">
+<a name="B-Iterators"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="top_of_page"></a>Iterators</span></h2>
+<p>Iterators — How you can move between the elements</p>
+</td>
+<td valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsynopsisdiv">
+<a name="synopsis"></a><h2>Synopsis</h2>
+<pre class="synopsis">
+
+
+
+typedef <a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a>;
+typedef <a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a>;
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-type-new">b_iterator_type_new</a> (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Init.html#b-type-t">b_type_t</a> type,
+ <a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> **iterator);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-type-step">b_iterator_type_step</a> (<a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> *iterator,
+ unsigned char **ret,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *ret_size);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-type-destroy">b_iterator_type_destroy</a> (<a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> *iterator);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-triple-new">b_iterator_triple_new</a> (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> **iterator,
+ b_triple_t *compare);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-triple-step">b_iterator_triple_step</a> (<a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> *iterator,
+ b_triple_t **triple);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Iterators.html#b-iterator-triple-destroy">b_iterator_triple_destroy</a> (<a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> *iterator);
+</pre>
+</div>
+<div class="refsect1" lang="en">
+<a name="desc"></a><h2>Description</h2>
+<p>
+The iterators are useful to get any data from a storage. The triple iterator
+permit you to get triples with a template. For any other information you
+should read the Introduction.
+</p>
+</div>
+<div class="refsect1" lang="en">
+<a name="details"></a><h2>Details</h2>
+<div class="refsect2" lang="en">
+<a name="id2540544"></a><h3>
+<a name="b-iterator-type-t"></a>b_iterator_type_t</h3>
+<a class="indexterm" name="id2540556"></a><pre class="programlisting">typedef struct b_iterator_type_t b_iterator_type_t;
+</pre>
+<p>
+The data struct for a Type Iterator. You should use this data struct
+only with b_iterator_type_*() functions.</p>
+<p>
+
+</p>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2540578"></a><h3>
+<a name="b-iterator-triple-t"></a>b_iterator_triple_t</h3>
+<a class="indexterm" name="id2540590"></a><pre class="programlisting">typedef struct b_iterator_triple_t b_iterator_triple_t;
+</pre>
+<p>
+The data struct for a Triple Iterator. You should use this data struct
+only with b_iterator_triple_*() functions.</p>
+<p>
+
+</p>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2540612"></a><h3>
+<a name="b-iterator-type-new"></a>b_iterator_type_new ()</h3>
+<a class="indexterm" name="id2540625"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_type_new (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Init.html#b-type-t">b_type_t</a> type,
+ <a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> **iterator);</pre>
+<p>
+Creates a new Iterator for a type of element. The iterator must be destoyed
+with <a href="B-Iterators.html#b-iterator-type-destroy"><code class="function">b_iterator_type_destroy()</code></a>. You should use <a href="B-Iterators.html#b-iterator-type-step"><code class="function">b_iterator_type_step()</code></a> to get
+the list of results.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
+<td> The pointer to a b_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
+<td> The type of the elements
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The return pointer.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2518129"></a><h3>
+<a name="b-iterator-type-step"></a>b_iterator_type_step ()</h3>
+<a class="indexterm" name="id2518140"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_type_step (<a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> *iterator,
+ unsigned char **ret,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *ret_size);</pre>
+<p>
+Returns the next element of the storage iterator. If *ret will be NULL
+no other results are into the storage. The new *ret string must be freed
+with a normal <code class="function">free()</code>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The pointer of a b_iterator_t struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>ret</code></em> :</span></td>
+<td> The return string for the next result.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>ret_size</code></em> :</span></td>
+<td> the len of the ret string. It can be NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2518253"></a><h3>
+<a name="b-iterator-type-destroy"></a>b_iterator_type_destroy ()</h3>
+<a class="indexterm" name="id2518264"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_type_destroy (<a href="B-Iterators.html#b-iterator-type-t">b_iterator_type_t</a> *iterator);</pre>
+<p>
+Destroies a b_iterator_t struct.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The pointer of a b_iterator_t struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2555686"></a><h3>
+<a name="b-iterator-triple-new"></a>b_iterator_triple_new ()</h3>
+<a class="indexterm" name="id2555697"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_triple_new (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> **iterator,
+ b_triple_t *compare);</pre>
+<p>
+Creates a new iterator for triples. It must be destroied with
+<a href="B-Iterators.html#b-iterator-triple-destroy"><code class="function">b_iterator_triple_destroy()</code></a>. You can get the list of results with
+<a href="B-Iterators.html#b-iterator-triple-step"><code class="function">b_iterator_triple_step()</code></a>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
+<td> The pointer to a b_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The return pointer for the new iterator.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>compare</code></em> :</span></td>
+<td> If you want have only results from a template, this b_triple_t
+describes the template. You can create it with <a href="B-Triples.html#b-triple-new-incomplete"><code class="function">b_triple_new_incomplete()</code></a>.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2555830"></a><h3>
+<a name="b-iterator-triple-step"></a>b_iterator_triple_step ()</h3>
+<a class="indexterm" name="id2555841"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_triple_step (<a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> *iterator,
+ b_triple_t **triple);</pre>
+<p>
+Gets the next results. The new b_triple_t must be freed with
+<a href="B-Triples.html#b-triple-destroy"><code class="function">b_triple_destroy()</code></a>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The triple iterator.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The return pointer for the next b_triple_t. If it is NULL, no other
+results are into the storage.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2555934"></a><h3>
+<a name="b-iterator-triple-destroy"></a>b_iterator_triple_destroy ()</h3>
+<a class="indexterm" name="id2555945"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_iterator_triple_destroy (<a href="B-Iterators.html#b-iterator-triple-t">b_iterator_triple_t</a> *iterator);</pre>
+<p>
+Destroies a b_iterator_triple_t data struct.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>iterator</code></em> :</span></td>
+<td> The triple iterator.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Remove.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Remove.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Remove.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Remove.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,149 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Remove functions</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="b2.html" title="Part II. Functions and Operations">
+<link rel="prev" href="B-Get.html" title="Get data">
+<link rel="next" href="B-Count.html" title="Count functions">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="B-Get.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td><a accesskey="u" href="b2.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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="B-Count.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="#top_of_page" class="shortcut">Top</a>
+  | 
+ <a href="#desc" class="shortcut">Description</a></nobr></td></tr>
+</table>
+<div class="refentry" lang="en">
+<a name="B-Remove"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="top_of_page"></a>Remove functions</span></h2>
+<p>Remove functions — How you can remove elements from a storage</p>
+</td>
+<td valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsynopsisdiv">
+<a name="synopsis"></a><h2>Synopsis</h2>
+<pre class="synopsis">
+
+
+
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Remove.html#b-remove-type">b_remove_type</a> (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Init.html#b-type-t">b_type_t</a> type,
+ unsigned char *what,
+ <a href="B-Init.html#b-uint64">b_uint64</a> len);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Remove.html#b-remove-triple">b_remove_triple</a> (<a href="B-Init.html#b-t">b_t</a> *data,
+ b_triple_t *triple);
+</pre>
+</div>
+<div class="refsect1" lang="en">
+<a name="desc"></a><h2>Description</h2>
+<p>
+For any other informantion, read the Introduction.
+</p>
+</div>
+<div class="refsect1" lang="en">
+<a name="details"></a><h2>Details</h2>
+<div class="refsect2" lang="en">
+<a name="id2546555"></a><h3>
+<a name="b-remove-type"></a>b_remove_type ()</h3>
+<a class="indexterm" name="id2546567"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_remove_type (<a href="B-Init.html#b-t">b_t</a> *data,
+ <a href="B-Init.html#b-type-t">b_type_t</a> type,
+ unsigned char *what,
+ <a href="B-Init.html#b-uint64">b_uint64</a> len);</pre>
+<p>
+Removes a element into the storage. The element is removed if it is not
+used by some triple.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
+<td> The pointer to a b_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
+<td> The type of the element
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>what</code></em> :</span></td>
+<td> the value of the element
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
+<td> The len. It can be 0
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2534537"></a><h3>
+<a name="b-remove-triple"></a>b_remove_triple ()</h3>
+<a class="indexterm" name="id2534550"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_remove_triple (<a href="B-Init.html#b-t">b_t</a> *data,
+ b_triple_t *triple);</pre>
+<p>
+Removes a triple into the storage.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
+<td> The pointer to a b_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The pointer of the triple.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Timers.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Timers.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Timers.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Timers.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,238 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Timers</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="b2.html" title="Part II. Functions and Operations">
+<link rel="prev" href="B-Iterators.html" title="Iterators">
+<link rel="next" href="b-example.html" title="Part III. An Example">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="B-Iterators.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td><a accesskey="u" href="b2.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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="b-example.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="#top_of_page" class="shortcut">Top</a>
+  | 
+ <a href="#desc" class="shortcut">Description</a></nobr></td></tr>
+</table>
+<div class="refentry" lang="en">
+<a name="B-Timers"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="top_of_page"></a>Timers</span></h2>
+<p>Timers — Some timer functions</p>
+</td>
+<td valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsynopsisdiv">
+<a name="synopsis"></a><h2>Synopsis</h2>
+<pre class="synopsis">
+
+
+
+typedef <a href="B-Timers.html#b-timer-t">b_timer_t</a>;
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Timers.html#b-timer-new">b_timer_new</a> (<a href="B-Timers.html#b-timer-t">b_timer_t</a> **timer);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Timers.html#b-timer-destroy">b_timer_destroy</a> (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *nanosec);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Timers.html#b-timer-start">b_timer_start</a> (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Timers.html#b-timer-stop">b_timer_stop</a> (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Timers.html#b-timer-diff">b_timer_diff</a> (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *nanosec);
+</pre>
+</div>
+<div class="refsect1" lang="en">
+<a name="desc"></a><h2>Description</h2>
+<p>
+These functions could be useful into your software.
+</p>
+</div>
+<div class="refsect1" lang="en">
+<a name="details"></a><h2>Details</h2>
+<div class="refsect2" lang="en">
+<a name="id2528812"></a><h3>
+<a name="b-timer-t"></a>b_timer_t</h3>
+<a class="indexterm" name="id2528824"></a><pre class="programlisting">typedef struct b_timer_t b_timer_t;
+</pre>
+<p>
+The data struct for a Timer. You should use this data struct only with
+b_timer_*() functions.</p>
+<p>
+
+</p>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2527359"></a><h3>
+<a name="b-timer-new"></a>b_timer_new ()</h3>
+<a class="indexterm" name="id2527371"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_timer_new (<a href="B-Timers.html#b-timer-t">b_timer_t</a> **timer);</pre>
+<p>
+Creates a timer. This function execs the <a href="B-Timers.html#b-timer-start"><code class="function">b_timer_start()</code></a>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>timer</code></em> :</span></td>
+<td> The return pointer to a b_timer_t struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2527440"></a><h3>
+<a name="b-timer-destroy"></a>b_timer_destroy ()</h3>
+<a class="indexterm" name="id2527452"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_timer_destroy (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *nanosec);</pre>
+<p>
+Destroies the b_timer_t data struct and returns the nanonsec from the start
+moment.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>timer</code></em> :</span></td>
+<td> The timer you want destroy.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>nanosec</code></em> :</span></td>
+<td> If it != NULL, It will contain the number of nanosec from the
+start moment and the stop event. If no stop was execed, the <a href="B-Timers.html#b-timer-stop"><code class="function">b_timer_stop()</code></a>
+will be executed.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2526907"></a><h3>
+<a name="b-timer-start"></a>b_timer_start ()</h3>
+<a class="indexterm" name="id2526919"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_timer_start (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer);</pre>
+<p>
+starts the timer.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>timer</code></em> :</span></td>
+<td> The b_timer_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2526979"></a><h3>
+<a name="b-timer-stop"></a>b_timer_stop ()</h3>
+<a class="indexterm" name="id2526992"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_timer_stop (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer);</pre>
+<p>
+stops the timer.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>timer</code></em> :</span></td>
+<td> The b_timer_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2527052"></a><h3>
+<a name="b-timer-diff"></a>b_timer_diff ()</h3>
+<a class="indexterm" name="id2527064"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_timer_diff (<a href="B-Timers.html#b-timer-t">b_timer_t</a> *timer,
+ <a href="B-Init.html#b-uint64">b_uint64</a> *nanosec);</pre>
+<p>
+checks and returns the differences from the start and the stop (or now).</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>timer</code></em> :</span></td>
+<td> The b_timer_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>nanosec</code></em> :</span></td>
+<td> The nanosec variable'll contain the nanosec from the start moment
+and the stop moment. If no <a href="B-Timers.html#b-timer-stop"><code class="function">b_timer_stop()</code></a> was executed, the stop moment is
+now.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Triples.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Triples.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Triples.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B-Triples.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,480 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Triples</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="b2.html" title="Part II. Functions and Operations">
+<link rel="prev" href="B-Error.html" title="Error">
+<link rel="next" href="B-Add.html" title="Add functions">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="B-Error.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td><a accesskey="u" href="b2.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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="B-Add.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="#top_of_page" class="shortcut">Top</a>
+  | 
+ <a href="#desc" class="shortcut">Description</a></nobr></td></tr>
+</table>
+<div class="refentry" lang="en">
+<a name="B-Triples"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="top_of_page"></a>Triples</span></h2>
+<p>Triples — How you can create, destroy complete or incomplete triples</p>
+</td>
+<td valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsynopsisdiv">
+<a name="synopsis"></a><h2>Synopsis</h2>
+<pre class="synopsis">
+
+
+
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Triples.html#b-triple-new">b_triple_new</a> (b_triple_t **triple,
+ unsigned char *subject_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_uri_len,
+ unsigned char *subject_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_bnode_len,
+ unsigned char *property,
+ <a href="B-Init.html#b-uint64">b_uint64</a> property_len,
+ unsigned char *object_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_uri_len,
+ unsigned char *object_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_bnode_len,
+ unsigned char *object_literal,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_literal_len,
+ unsigned char *context,
+ <a href="B-Init.html#b-uint64">b_uint64</a> context_len,
+ unsigned char *datatype,
+ <a href="B-Init.html#b-uint64">b_uint64</a> datatype_len,
+ unsigned char *lang,
+ <a href="B-Init.html#b-uint64">b_uint64</a> lang_len);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Triples.html#b-triple-new-incomplete">b_triple_new_incomplete</a> (b_triple_t **triple,
+ unsigned char *subject_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_uri_len,
+ unsigned char *subject_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_bnode_len,
+ unsigned char *property,
+ <a href="B-Init.html#b-uint64">b_uint64</a> property_len,
+ unsigned char *object_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_uri_len,
+ unsigned char *object_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_bnode_len,
+ unsigned char *object_literal,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_literal_len,
+ unsigned char *context,
+ <a href="B-Init.html#b-uint64">b_uint64</a> context_len,
+ unsigned char *datatype,
+ <a href="B-Init.html#b-uint64">b_uint64</a> datatype_len,
+ unsigned char *lang,
+ <a href="B-Init.html#b-uint64">b_uint64</a> lang_len);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Triples.html#b-triple-destroy">b_triple_destroy</a> (b_triple_t *triple);
+<a href="B-Init.html#b-error-t">b_error_t</a> <a href="B-Triples.html#b-triple-print">b_triple_print</a> (FILE *file,
+ b_triple_t *triple);
+</pre>
+</div>
+<div class="refsect1" lang="en">
+<a name="desc"></a><h2>Description</h2>
+<p>
+How you can create, destroy complete or incomplete triples. For any information read the Introduction.
+</p>
+</div>
+<div class="refsect1" lang="en">
+<a name="details"></a><h2>Details</h2>
+<div class="refsect2" lang="en">
+<a name="id2523695"></a><h3>
+<a name="b-triple-new"></a>b_triple_new ()</h3>
+<a class="indexterm" name="id2523706"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_triple_new (b_triple_t **triple,
+ unsigned char *subject_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_uri_len,
+ unsigned char *subject_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_bnode_len,
+ unsigned char *property,
+ <a href="B-Init.html#b-uint64">b_uint64</a> property_len,
+ unsigned char *object_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_uri_len,
+ unsigned char *object_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_bnode_len,
+ unsigned char *object_literal,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_literal_len,
+ unsigned char *context,
+ <a href="B-Init.html#b-uint64">b_uint64</a> context_len,
+ unsigned char *datatype,
+ <a href="B-Init.html#b-uint64">b_uint64</a> datatype_len,
+ unsigned char *lang,
+ <a href="B-Init.html#b-uint64">b_uint64</a> lang_len);</pre>
+<p>
+Creates a new triples. This triple must be destroy with <a href="B-Triples.html#b-triple-destroy"><code class="function">b_triple_destroy()</code></a>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The return pointer for the new b_triple_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_uri</code></em> :</span></td>
+<td> The subject URI. It can be NULL if the subject_object is not
+NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_uri_len</code></em> :</span></td>
+<td> The length of the subject_uri. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_bnode</code></em> :</span></td>
+<td> The subject BNODE.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_bnode_len</code></em> :</span></td>
+<td> The length of the subject_bnode. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>property</code></em> :</span></td>
+<td> The property of this triple.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>property_len</code></em> :</span></td>
+<td> The length of the property. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_uri</code></em> :</span></td>
+<td> The object as URI. It can be NULL if the triple has not a URI
+object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_uri_len</code></em> :</span></td>
+<td> The length of the URI object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_bnode</code></em> :</span></td>
+<td> The object as BNODE. It can be NULL if the triple has not a
+BNODE object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_bnode_len</code></em> :</span></td>
+<td> The length of the BNODE object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_literal</code></em> :</span></td>
+<td> The object as Literal. It can be NULL if the triple has not
+a Literal object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_literal_len</code></em> :</span></td>
+<td> The length of the Literal Object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
+<td> The context. Can be NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>context_len</code></em> :</span></td>
+<td> The Context Length.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>datatype</code></em> :</span></td>
+<td> The datatype for this Object Literal. It can be NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>datatype_len</code></em> :</span></td>
+<td> The length of the datatype.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>lang</code></em> :</span></td>
+<td> The lang of this Object Literal.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>lang_len</code></em> :</span></td>
+<td> The length of the lang.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2528365"></a><h3>
+<a name="b-triple-new-incomplete"></a>b_triple_new_incomplete ()</h3>
+<a class="indexterm" name="id2528376"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_triple_new_incomplete (b_triple_t **triple,
+ unsigned char *subject_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_uri_len,
+ unsigned char *subject_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> subject_bnode_len,
+ unsigned char *property,
+ <a href="B-Init.html#b-uint64">b_uint64</a> property_len,
+ unsigned char *object_uri,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_uri_len,
+ unsigned char *object_bnode,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_bnode_len,
+ unsigned char *object_literal,
+ <a href="B-Init.html#b-uint64">b_uint64</a> object_literal_len,
+ unsigned char *context,
+ <a href="B-Init.html#b-uint64">b_uint64</a> context_len,
+ unsigned char *datatype,
+ <a href="B-Init.html#b-uint64">b_uint64</a> datatype_len,
+ unsigned char *lang,
+ <a href="B-Init.html#b-uint64">b_uint64</a> lang_len);</pre>
+<p>
+Creates a new triples. It will not checked so you can create a incomplete
+triple for the iterator. This triple must be destroy with
+<a href="B-Triples.html#b-triple-destroy"><code class="function">b_triple_destroy()</code></a>.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The return pointer for the new b_triple_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_uri</code></em> :</span></td>
+<td> The subject URI. It can be NULL if the subject_object is not
+NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_uri_len</code></em> :</span></td>
+<td> The length of the subject_uri. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_bnode</code></em> :</span></td>
+<td> The subject BNODE.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>subject_bnode_len</code></em> :</span></td>
+<td> The length of the subject_bnode. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>property</code></em> :</span></td>
+<td> The property of this triple.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>property_len</code></em> :</span></td>
+<td> The length of the property. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_uri</code></em> :</span></td>
+<td> The object as URI. It can be NULL if the triple has not a URI
+object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_uri_len</code></em> :</span></td>
+<td> The length of the URI object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_bnode</code></em> :</span></td>
+<td> The object as BNODE. It can be NULL if the triple has not a
+BNODE object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_bnode_len</code></em> :</span></td>
+<td> The length of the BNODE object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_literal</code></em> :</span></td>
+<td> The object as Literal. It can be NULL if the triple has not
+a Literal object.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>object_literal_len</code></em> :</span></td>
+<td> The length of the Literal Object. Can be 0.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>context</code></em> :</span></td>
+<td> The context. Can be NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>context_len</code></em> :</span></td>
+<td> The Context Length.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>datatype</code></em> :</span></td>
+<td> The datatype for this Object Literal. It can be NULL.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>datatype_len</code></em> :</span></td>
+<td> The length of the datatype.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>lang</code></em> :</span></td>
+<td> The lang of this Object Literal.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>lang_len</code></em> :</span></td>
+<td> The length of the lang.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2562012"></a><h3>
+<a name="b-triple-destroy"></a>b_triple_destroy ()</h3>
+<a class="indexterm" name="id2562025"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_triple_destroy (b_triple_t *triple);</pre>
+<p>
+Destroies the triple data struct.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The Pointer to the b_triple_t data struct.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<hr>
+<div class="refsect2" lang="en">
+<a name="id2562086"></a><h3>
+<a name="b-triple-print"></a>b_triple_print ()</h3>
+<a class="indexterm" name="id2562098"></a><pre class="programlisting"><a href="B-Init.html#b-error-t">b_error_t</a> b_triple_print (FILE *file,
+ b_triple_t *triple);</pre>
+<p>
+Prints the b_triple_t in n3 syntax in a FILE *.</p>
+<p>
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>file</code></em> :</span></td>
+<td> The FILE.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><em class="parameter"><code>triple</code></em> :</span></td>
+<td> The b_triple_t pointer.
+</td>
+</tr>
+<tr>
+<td>
+<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
+<td> The error code.
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp Fri Apr 13 08:19:45 2007
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
+<book xmlns="http://www.devhelp.net/book" title="B Storage - Reference Manual" link="index.html" author="" name="B">
+ <chapters>
+ <sub name="B Storage - Introduction" link="b-intro.html"/>
+ <sub name="Functions and Operations" link="b2.html">
+ <sub name="Basic functions" link="B-Init.html"/>
+ <sub name="Cache System" link="B-Cache.html"/>
+ <sub name="Error" link="B-Error.html"/>
+ <sub name="Triples" link="B-Triples.html"/>
+ <sub name="Add functions" link="B-Add.html"/>
+ <sub name="Get data" link="B-Get.html"/>
+ <sub name="Remove functions" link="B-Remove.html"/>
+ <sub name="Count functions" link="B-Count.html"/>
+ <sub name="Iterators" link="B-Iterators.html"/>
+ <sub name="Timers" link="B-Timers.html"/>
+ </sub>
+ <sub name="An Example" link="b-example.html"/>
+ <sub name="Stats and comparations" link="b-stats.html"/>
+ </chapters>
+ <functions>
+ <function name="enum b_error_t" link="B-Init.html#b-error-t"/>
+ <function name="b_strerror ()" link="B-Init.html#b-strerror"/>
+ <function name="b_t" link="B-Init.html#b-t"/>
+ <function name="enum b_type_t" link="B-Init.html#b-type-t"/>
+ <function name="b_int64" link="B-Init.html#b-int64"/>
+ <function name="b_uint64" link="B-Init.html#b-uint64"/>
+ <function name="b_new ()" link="B-Init.html#b-new"/>
+ <function name="b_destroy ()" link="B-Init.html#b-destroy"/>
+ <function name="b_sync ()" link="B-Init.html#b-sync"/>
+ <function name="b_set_max_cache ()" link="B-Cache.html#b-set-max-cache"/>
+ <function name="b_get_max_cache ()" link="B-Cache.html#b-get-max-cache"/>
+ <function name="enum b_error_t" link="B-Error.html#b-error-t"/>
+ <function name="b_strerror ()" link="B-Error.html#b-strerror"/>
+ <function name="b_triple_new ()" link="B-Triples.html#b-triple-new"/>
+ <function name="b_triple_new_incomplete ()" link="B-Triples.html#b-triple-new-incomplete"/>
+ <function name="b_triple_destroy ()" link="B-Triples.html#b-triple-destroy"/>
+ <function name="b_triple_print ()" link="B-Triples.html#b-triple-print"/>
+ <function name="b_add_type ()" link="B-Add.html#b-add-type"/>
+ <function name="b_add_triple ()" link="B-Add.html#b-add-triple"/>
+ <function name="b_get_type ()" link="B-Get.html#b-get-type"/>
+ <function name="b_get_triple ()" link="B-Get.html#b-get-triple"/>
+ <function name="b_remove_type ()" link="B-Remove.html#b-remove-type"/>
+ <function name="b_remove_triple ()" link="B-Remove.html#b-remove-triple"/>
+ <function name="b_count_type ()" link="B-Count.html#b-count-type"/>
+ <function name="b_count_triple ()" link="B-Count.html#b-count-triple"/>
+ <function name="b_iterator_type_t" link="B-Iterators.html#b-iterator-type-t"/>
+ <function name="b_iterator_triple_t" link="B-Iterators.html#b-iterator-triple-t"/>
+ <function name="b_iterator_type_new ()" link="B-Iterators.html#b-iterator-type-new"/>
+ <function name="b_iterator_type_step ()" link="B-Iterators.html#b-iterator-type-step"/>
+ <function name="b_iterator_type_destroy ()" link="B-Iterators.html#b-iterator-type-destroy"/>
+ <function name="b_iterator_triple_new ()" link="B-Iterators.html#b-iterator-triple-new"/>
+ <function name="b_iterator_triple_step ()" link="B-Iterators.html#b-iterator-triple-step"/>
+ <function name="b_iterator_triple_destroy ()" link="B-Iterators.html#b-iterator-triple-destroy"/>
+ <function name="b_timer_t" link="B-Timers.html#b-timer-t"/>
+ <function name="b_timer_new ()" link="B-Timers.html#b-timer-new"/>
+ <function name="b_timer_destroy ()" link="B-Timers.html#b-timer-destroy"/>
+ <function name="b_timer_start ()" link="B-Timers.html#b-timer-start"/>
+ <function name="b_timer_stop ()" link="B-Timers.html#b-timer-stop"/>
+ <function name="b_timer_diff ()" link="B-Timers.html#b-timer-diff"/>
+ </functions>
+</book>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp2
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp2?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp2 (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/B.devhelp2 Fri Apr 13 08:19:45 2007
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
+<book xmlns="http://www.devhelp.net/book" title="B Storage - Reference Manual" link="index.html" author="" name="B" version="2">
+ <chapters>
+ <sub name="B Storage - Introduction" link="b-intro.html"/>
+ <sub name="Functions and Operations" link="b2.html">
+ <sub name="Basic functions" link="B-Init.html"/>
+ <sub name="Cache System" link="B-Cache.html"/>
+ <sub name="Error" link="B-Error.html"/>
+ <sub name="Triples" link="B-Triples.html"/>
+ <sub name="Add functions" link="B-Add.html"/>
+ <sub name="Get data" link="B-Get.html"/>
+ <sub name="Remove functions" link="B-Remove.html"/>
+ <sub name="Count functions" link="B-Count.html"/>
+ <sub name="Iterators" link="B-Iterators.html"/>
+ <sub name="Timers" link="B-Timers.html"/>
+ </sub>
+ <sub name="An Example" link="b-example.html"/>
+ <sub name="Stats and comparations" link="b-stats.html"/>
+ </chapters>
+ <functions>
+ <keyword type="enum" name="enum b_error_t" link="B-Init.html#b-error-t"/>
+ <keyword type="function" name="b_strerror ()" link="B-Init.html#b-strerror"/>
+ <keyword type="typedef" name="b_t" link="B-Init.html#b-t"/>
+ <keyword type="enum" name="enum b_type_t" link="B-Init.html#b-type-t"/>
+ <keyword type="typedef" name="b_int64" link="B-Init.html#b-int64"/>
+ <keyword type="typedef" name="b_uint64" link="B-Init.html#b-uint64"/>
+ <keyword type="function" name="b_new ()" link="B-Init.html#b-new"/>
+ <keyword type="function" name="b_destroy ()" link="B-Init.html#b-destroy"/>
+ <keyword type="function" name="b_sync ()" link="B-Init.html#b-sync"/>
+ <keyword type="function" name="b_set_max_cache ()" link="B-Cache.html#b-set-max-cache"/>
+ <keyword type="function" name="b_get_max_cache ()" link="B-Cache.html#b-get-max-cache"/>
+ <keyword type="enum" name="enum b_error_t" link="B-Error.html#b-error-t"/>
+ <keyword type="function" name="b_strerror ()" link="B-Error.html#b-strerror"/>
+ <keyword type="function" name="b_triple_new ()" link="B-Triples.html#b-triple-new"/>
+ <keyword type="function" name="b_triple_new_incomplete ()" link="B-Triples.html#b-triple-new-incomplete"/>
+ <keyword type="function" name="b_triple_destroy ()" link="B-Triples.html#b-triple-destroy"/>
+ <keyword type="function" name="b_triple_print ()" link="B-Triples.html#b-triple-print"/>
+ <keyword type="function" name="b_add_type ()" link="B-Add.html#b-add-type"/>
+ <keyword type="function" name="b_add_triple ()" link="B-Add.html#b-add-triple"/>
+ <keyword type="function" name="b_get_type ()" link="B-Get.html#b-get-type"/>
+ <keyword type="function" name="b_get_triple ()" link="B-Get.html#b-get-triple"/>
+ <keyword type="function" name="b_remove_type ()" link="B-Remove.html#b-remove-type"/>
+ <keyword type="function" name="b_remove_triple ()" link="B-Remove.html#b-remove-triple"/>
+ <keyword type="function" name="b_count_type ()" link="B-Count.html#b-count-type"/>
+ <keyword type="function" name="b_count_triple ()" link="B-Count.html#b-count-triple"/>
+ <keyword type="typedef" name="b_iterator_type_t" link="B-Iterators.html#b-iterator-type-t"/>
+ <keyword type="typedef" name="b_iterator_triple_t" link="B-Iterators.html#b-iterator-triple-t"/>
+ <keyword type="function" name="b_iterator_type_new ()" link="B-Iterators.html#b-iterator-type-new"/>
+ <keyword type="function" name="b_iterator_type_step ()" link="B-Iterators.html#b-iterator-type-step"/>
+ <keyword type="function" name="b_iterator_type_destroy ()" link="B-Iterators.html#b-iterator-type-destroy"/>
+ <keyword type="function" name="b_iterator_triple_new ()" link="B-Iterators.html#b-iterator-triple-new"/>
+ <keyword type="function" name="b_iterator_triple_step ()" link="B-Iterators.html#b-iterator-triple-step"/>
+ <keyword type="function" name="b_iterator_triple_destroy ()" link="B-Iterators.html#b-iterator-triple-destroy"/>
+ <keyword type="typedef" name="b_timer_t" link="B-Timers.html#b-timer-t"/>
+ <keyword type="function" name="b_timer_new ()" link="B-Timers.html#b-timer-new"/>
+ <keyword type="function" name="b_timer_destroy ()" link="B-Timers.html#b-timer-destroy"/>
+ <keyword type="function" name="b_timer_start ()" link="B-Timers.html#b-timer-start"/>
+ <keyword type="function" name="b_timer_stop ()" link="B-Timers.html#b-timer-stop"/>
+ <keyword type="function" name="b_timer_diff ()" link="B-Timers.html#b-timer-diff"/>
+ </functions>
+</book>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-example.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-example.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-example.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-example.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,235 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Part III. An Example</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="index.html" title="B Storage - Reference Manual">
+<link rel="prev" href="B-Timers.html" title="Timers">
+<link rel="next" href="b-stats.html" title="Part IV. Stats and comparations">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="B-Timers.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td> </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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="b-stats.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="part" lang="en">
+<div class="titlepage"><div><div><h1 class="title">
+<a name="b-example"></a>An Example</h1></div></div></div>
+<div class="partintro" lang="en">
+<div></div>
+<p>
+</p>
+<pre class="programlisting">
+#include <b.h>
+
+#define TEST7_MAX 1024
+
+#ifdef WIN32
+#define snprintf sprintf_s
+#define TEST7_FILE ".\\TEST7"
+#else
+#define TEST7_FILE "/tmp/test7"
+#endif
+
+int
+main (int argc, char **argv)
+{
+ b_t *b;
+ b_triple_t *triple;
+ char subject[128];
+ int subject_type;
+ char property[128];
+ char object[128];
+ int object_type;
+ char context[128];
+ int context_type;
+ char datatype[128];
+ char lang[128];
+ int lang_type;
+ int i, m, c;
+ b_error_t err;
+
+ b_iterator_triple_t *iterator;
+
+ fprintf (stderr, "Creating new b struct... ");
+ if ((err = b_new (&b, (unsigned char *) TEST7_FILE)) != B_OK)
+ {
+ fprintf (stderr, "b_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ if (argc > 1 && (c = atoi (argv[1])))
+ {
+ fprintf (stderr, "done.\nSetting cache to %d... ", c);
+ b_set_max_cache (b, c);
+ }
+
+ if (argc <= 2 || !(m = atoi (argv[2])))
+ m = TEST7_MAX;
+
+ fprintf (stderr, "done.\nStoring %d triples...", m);
+
+ for (i = 0; i < m; i++)
+ {
+ subject_type = i % 2;
+ snprintf (subject, sizeof (subject), "subject %d %s", i % 111,
+ !subject_type ? "uri" : "bnode");
+
+ snprintf (property, sizeof (property), "property %d", i);
+
+ object_type = i % 3;
+ snprintf (object, sizeof (object), "object %d %s", i % 333,
+ !object_type ? "uri" : object_type ==
+ 1 ? "bnode" : "literal");
+
+ context_type = i % 4;
+ snprintf (context, sizeof (context), "context %d", i % 222);
+
+ snprintf (datatype, sizeof (datatype), "datatype");
+
+ lang_type = i % 7;
+ snprintf (lang, sizeof (lang), "lang %d", i % 222);
+
+ if ((err =
+ b_triple_new (&triple,
+ !subject_type ? (unsigned char *) subject : NULL, 0,
+ !subject_type ? NULL : (unsigned char *) subject, 0,
+ (unsigned char *) property, 0,
+ !object_type ? (unsigned char *) object : NULL, 0,
+ object_type == 1 ? (unsigned char *) object : NULL,
+ 0,
+ object_type == 2 ? (unsigned char *) object : NULL,
+ 0, context_type ? (unsigned char *) context : NULL,
+ 0, (unsigned char *) datatype,
+ 0, lang_type ? (unsigned char *) lang : NULL,
+ 0)) != B_OK)
+ {
+ fprintf (stderr, "b_triple_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ if ((err = b_add_triple (b, triple)) != B_OK)
+ {
+ fprintf (stderr, "b_triple_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ b_triple_destroy (triple);
+ }
+
+ fprintf (stderr, "done.\nDeleting %d triples...", m / 2);
+
+ for (i = 0; i < m; i++)
+ {
+ if ((i % 2))
+ {
+ subject_type = i % 2;
+ snprintf (subject, sizeof (subject), "subject %d %s", i % 111,
+ !subject_type ? "uri" : "bnode");
+
+ snprintf (property, sizeof (property), "property %d", i);
+
+ object_type = i % 3;
+ snprintf (object, sizeof (object), "object %d %s", i % 333,
+ !object_type ? "uri" : object_type ==
+ 1 ? "bnode" : "literal");
+
+ context_type = i % 4;
+ snprintf (context, sizeof (context), "context %d", i % 222);
+
+ snprintf (datatype, sizeof (datatype), "datatype");
+
+ lang_type = i % 7;
+ snprintf (lang, sizeof (lang), "lang %d", i % 222);
+
+ if ((err =
+ b_triple_new (&triple,
+ !subject_type ? (unsigned char *) subject : NULL,
+ 0,
+ !subject_type ? NULL : (unsigned char *) subject,
+ 0, (unsigned char *) property, 0,
+ !object_type ? (unsigned char *) object : NULL,
+ 0,
+ object_type ==
+ 1 ? (unsigned char *) object : NULL, 0,
+ object_type ==
+ 2 ? (unsigned char *) object : NULL, 0,
+ context_type ? (unsigned char *) context : NULL,
+ 0,
+ (unsigned char *) datatype, 0,
+ lang_type ? (unsigned char *) lang : NULL,
+ 0)) != B_OK)
+ {
+ fprintf (stderr, "b_triple_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ if ((err = b_remove_triple (b, triple)) != B_OK)
+ {
+ fprintf (stderr, "b_triple_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ b_triple_destroy (triple);
+ }
+ }
+
+ fprintf (stderr, "done.\nCreating iterator... ");
+ if ((err = b_iterator_triple_new (b, &iterator, NULL)) != B_OK)
+ {
+ fprintf (stderr, "b_iterator_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ fprintf (stderr, "done.\n");
+
+ while ((err = b_iterator_triple_step (iterator, &triple)) == B_OK && triple)
+ {
+ fprintf (stderr, "Next data: ");
+ b_triple_print (stderr, triple);
+ b_triple_destroy (triple);
+ }
+
+ if (err != B_OK)
+ {
+ fprintf (stderr, "b_iterator_step: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ fprintf (stderr, "Destroying iterator... ");
+ if ((err = b_iterator_triple_destroy (iterator)) != B_OK)
+ {
+ fprintf (stderr, "b_iterator_destroy: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ fprintf (stderr, "done.\nDestroing the b struct... ");
+
+ if ((err = b_destroy (b)) != B_OK)
+ {
+ fprintf (stderr, "b_destroy: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ fprintf (stderr, "done.\n");
+ return 0;
+}
+
+</pre>
+<p>
+</p>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-intro.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-intro.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-intro.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-intro.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,228 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Part I. B Storage - Introduction</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="index.html" title="B Storage - Reference Manual">
+<link rel="prev" href="index.html" title="B Storage - Reference Manual">
+<link rel="next" href="b2.html" title="Part II. Functions and Operations">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td> </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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="b2.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="part" lang="en">
+<div class="titlepage"><div><div><h1 class="title">
+<a name="b-intro"></a>B Storage - Introduction</h1></div></div></div>
+<div class="partintro" lang="en">
+<div></div>
+<p>
+The B Storage memorizes on binary files two kind of data: -Simple Data
+String- and -RDF Triples-. The Simple Data Strings can be URIs, BNodes,
+Literals, Contexts, Datatypes, Properties. These 6 elements are in 6 different
+B-Trees. For any B-Tree we have a separated file. So, If you open the B storage
+'foo', this code opens:
+
+</p>
+<div class="variablelist"><table border="0">
+<col align="left" valign="top">
+<tbody>
+<tr>
+<td>
+<span class="term">foo_uris.data</span></td>
+<td><p>This is the file for the B-Tree of the URIs</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_properties.data</span></td>
+<td><p>Like the previous one, it is for the Properties. The
+ properties in the RDF world are URI but the B storage uses a
+ separated file and a separated cache list becuase it is faster
+ the property in the URIs file.</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_literals.data</span></td>
+<td><p>This is for the Literals. The literals elements are Object
+ (type Literal) and xml:lang.</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_bnodes.data</span></td>
+<td><p>This is the file for the B-Tree of the BNodes.</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_contexts.data</span></td>
+<td><p>Like the properties, the B storage splits the Contexts in a
+ separated file and a separated queues.</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_datatypes.data</span></td>
+<td><p>They are URIs like Context and Properties.</p></td>
+</tr>
+<tr>
+<td>
+<span class="term">foo_triples.data</span></td>
+<td><p>This file is for the triples. It is different and you should
+ read about it later.</p></td>
+</tr>
+</tbody>
+</table></div>
+<p>
+
+These files have a list of this struct and for each data. This struct creates
+a B-Tree:
+
+</p>
+<pre class="programlisting">
+struct b_map_t {
+ unsigned char hash[16];
+ b_uint64 len;
+ b_uint64 instances;
+
+ b_uint64 left;
+ b_uint66 right;
+ b_uint64 parent;
+};
+</pre>
+<p>
+
+A important stuff is the instances flag because this storage removes
+automatically not used elements, so, when you add a new triple, B increments
+the instances for any used elements and when you remove it, it decrement
+the instances flag. If the instances flag is 0, the element is removed from
+the B-Tree.
+
+The RDF triples have 9 elements:
+
+</p>
+<pre class="programlisting">typedef struct {
+ unsigned char * subject_uri;
+ b_uint64 subject_uri_len;
+
+ unsigned char * subject_bnode;
+ b_uint64 subject_bnode_len;
+
+ unsigned char * property;
+ b_uint64 property_len;
+
+ unsigned char * object_uri;
+ b_uint64 object_uri_len;
+
+ unsigned char * object_bnode;
+ b_uint64 object_bnode_len;
+
+ unsigned char * object_literal;
+ b_uint64 object_literal_len;
+
+ unsigned char * context;
+ b_uint64 context_len;
+
+ unsigned char * datatype;
+ b_uint64 datatype_len;
+
+ unsigned char * lang;
+ b_uint64 lang_len;
+} b_triple_t;
+</pre>
+<p>
+
+Subject URI, Object URI are into the URIs file; Subject BNode and Object BNode
+into the BNODEs file; Properties, contexts, datatypes into the different 3
+files; Object Literal into the Literal file.
+</p>
+<p>
+Into any struct you can find some hash element. This is because the URIs or the
+literals has different size and often they don't change too much. The hash
+(md5 - bmd5.c) has always 16 byte of dimension and it changes a lot. The md5
+operation is done if the element is not in a list, so the B storage has a
+cache of hashes (bhash.c).
+</p>
+<p>
+This datastruct is not written into the triples file. This file is totaly
+different and it is based on sparse matrixies. They are based on this data
+struct:
+</p>
+<pre class="programlisting">
+struct b_tmap_t {
+ unsigned char map[B_TMAP_NUMB];
+
+ unsigned char subjects_uri[B_TMAP_NUMB];
+ unsigned char subjects_bnode[B_TMAP_NUMB];
+
+ unsigned char properties[B_TMAP_NUMB];
+
+ unsigned char objects_uri[B_TMAP_NUMB];
+ unsigned char objects_bnode[B_TMAP_NUMB];
+ unsigned char objects_literal[B_TMAP_NUMB];
+
+ unsigned char contexts[B_TMAP_NUMB];
+
+ unsigned char datatypes[B_TMAP_NUMB];
+ unsigned char langs[B_TMAP_NUMB];
+};
+</pre>
+<p>
+
+B_TMAP_NUMB is the size of the matrix. Now it is 128 byte. The explanation
+is in this introduction in the next paragraph.
+</p>
+<p>
+The array 'map' has 0 or 1 if the single triple exist in the matrix or not. So
+if matix[3] is 0, that space will be empty. The other variables are the
+triples ordered by the name of the array (the object_uri contains the index of
+the triples ordered by the object_uri, and so on).
+</p>
+<p>After this matrix, the B_TMAP_NUMB triples has list of this struct:
+
+</p>
+<pre class="programlisting">
+struct b_tmap_item_t {
+ unsigned char hash[B_HASH_SIZE];
+ b_uint64 pointer;
+};
+</pre>
+<p>
+
+Where hash is the hash of the element (subject uri, property, ...) and pointer
+is where this element is in the correct B-Tree.
+</p>
+<p>B_TMAP_NUMB is 128. Why? It is 128 because the single ordered arrays
+don't contain exacly the triples with a specified order. It is more complex
+the this. A single 'unsigned char' of these arrays is 8 bits where the 1
+describes if the element is empty and the other 7 bits describe the correct
+value.
+
+</p>
+<pre class="programlisting">
+#define B_TMAP_NUMB 128 /* <= 127 = 0xFE >> 0x1 -> 01111111 */
+
+#define B_TMAP_VALUE( x ) (x & 0x01)
+#define B_TMAP_DATA( x ) ((x & 0xFE) >> 0x1)
+#define B_TMAP_SET( x , y ) ((x << 0x1 ) | y)
+
+#define B_TMAP_VALUE_EMPTY 0x0
+#define B_TMAP_VALUE_FULL 0x1
+</pre>
+<p>
+
+So 128 because 7bits contain a number between 0 and 128.
+</p>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-stats.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-stats.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-stats.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b-stats.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,246 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Part IV. Stats and comparations</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="index.html" title="B Storage - Reference Manual">
+<link rel="prev" href="b-example.html" title="Part III. An Example">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="b-example.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td> </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">B Storage - Reference Manual</th>
+<td> </td>
+</tr></table>
+<div class="part" lang="en">
+<div class="titlepage"><div><div><h1 class="title">
+<a name="b-stats"></a>Stats and comparations</h1></div></div></div>
+<div class="partintro" lang="en">
+<div></div>
+<p>
+Any test was done on this computer:
+</p>
+<pre class="programlisting">
+CPU: Intel(R) Pentium(R) M processor 2.00GHz
+Ram: 1.5 GiB
+</pre>
+<p>
+
+The test was done with this C code:
+</p>
+<pre class="programlisting">
+#include <b.h>
+
+#define TEST_MAX 4096
+
+#ifdef WIN32
+#define snprintf sprintf_s
+#define TEST_FILE ".\\TEST"
+#else
+#define TEST_FILE "/tmp/test"
+#endif
+
+int
+main (int argc, char **argv)
+{
+ b_t *b;
+ b_triple_t *triple;
+ char subject[128];
+ int subject_type;
+ char property[128];
+ char object[128];
+ int object_type;
+ char context[128];
+ int context_type;
+ char datatype[128];
+ int datatype_type;
+ char lang[128];
+ int lang_type;
+ int i, m, c;
+ b_error_t err;
+
+ fprintf (stderr, "Creating new b struct... ");
+ if ((err = b_new (&b, (unsigned char *) TEST_FILE)) != B_OK)
+ {
+ fprintf (stderr, "b_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ if (argc > 1 && (c = atoi (argv[1])))
+ {
+ fprintf (stderr, "done.\nSetting cache to %d... ", c);
+ b_set_max_cache (b, c);
+ }
+
+ if (argc <= 2 || !(m = atoi (argv[2])))
+ m = TEST_MAX;
+
+ fprintf (stderr, "done.\nStoring %d triples...", m);
+
+ for (i = 0; i < m; i++)
+ {
+ subject_type = i % 2;
+ snprintf (subject, sizeof (subject), "subject %d %s", i % 111,
+ !subject_type ? "uri" : "bnode");
+
+ snprintf (property, sizeof (property), "property %d", i);
+
+ object_type = i % 3;
+ snprintf (object, sizeof (object), "object %d %s", i % 333,
+ !object_type ? "uri" : object_type ==
+ 1 ? "bnode" : "literal");
+
+ context_type = i % 4;
+ snprintf (context, sizeof (context), "context %d", i % 222);
+
+ datatype_type = i % 5;
+ snprintf (datatype, sizeof (datatype), "datatype %d", i % 222);
+
+ lang_type = i % 6;
+ snprintf (lang, sizeof (lang), "lang %d", i % 222);
+
+ if ((err =
+ b_triple_new (&triple,
+ !subject_type ? (unsigned char *) subject : NULL, 0,
+ !subject_type ? NULL : (unsigned char *) subject, 0,
+ (unsigned char *) property, 0,
+ !object_type ? (unsigned char *) object : NULL, 0,
+ object_type == 1 ? (unsigned char *) object : NULL,
+ 0,
+ object_type == 2 ? (unsigned char *) object : NULL,
+ 0, context_type ? (unsigned char *) context : NULL,
+ 0, datatype_type ? (unsigned char *) datatype : NULL,
+ 0, lang_type ? (unsigned char *) lang : NULL,
+ 0)) != B_OK)
+ {
+ fprintf (stderr, "b_triple_new: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ if ((err = b_add_triple (b, triple)) != B_OK)
+ {
+ fprintf (stderr, "b_add: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ b_triple_destroy (triple);
+ }
+
+ fprintf (stderr, "done.\nDestroing the b struct... ");
+
+ if ((err = b_destroy (b)) != B_OK)
+ {
+ fprintf (stderr, "b_destroy: %s\n", b_strerror (err));
+ return 1;
+ }
+
+ fprintf (stderr, "done.\n");
+ return 0;
+}
+</pre>
+<p>
+
+50,000 triples:
+</p>
+<pre class="programlisting">
+Memorizing: 4.687s
+Counting: 0.128s
+Serialising*: 0.374s
+Size: 11311048 byte (11M)
+</pre>
+<p>
+
+500,000 (half milion) triples:
+</p>
+<pre class="programlisting">
+Memorizing: 51.356s
+Counting: 0.165s
+Serialising*: 3.837s
+Size: 113022144 byte (108M)
+</pre>
+<p>
+
+2,000,000 (2 milions) triples:
+</p>
+<pre class="programlisting">
+Memorizing: 4m15.637s
+Counting: 0.191s
+Serialising*: 13.390s
+Size: 452000672 byte (432M)
+</pre>
+<p>
+
+Any serializing operation is redirected to /dev/null.
+</p>
+<p>
+Here a comparation between B and the other redland's storages:
+</p>
+<p>
+4096 triples on file:
+</p>
+<pre class="programlisting">
+Memorizing: 3.025s
+Counting: 2.661s
+Serialising*: 2.132s
+Size: 808664 byte (790K)
+</pre>
+<p>
+</p>
+<p>
+4096 triples on sqlite3 (with single_transaction patch):
+</p>
+<pre class="programlisting">
+Memorizing: 13.679s
+Counting: 0.008s
+Serialising*: 1.094s
+Size: 633856 byte (619K)
+</pre>
+<p>
+</p>
+<p>
+4096 triples on MySQL:
+</p>
+<pre class="programlisting">
+Memorizing: 4.748s
+Counting: 0.066s
+Serialising*: 0.893s
+Size: 903689 byte (882k)
+</pre>
+<p>
+</p>
+<p>
+4096 triples on BDB:
+</p>
+<pre class="programlisting">
+Memorizing: 1.080s
+Counting: n/p
+Serialising*: 0.525s
+Size: 925696 byte (903k)
+</pre>
+<p>
+</p>
+<p>
+4096 triples on B storage:
+</p>
+<pre class="programlisting">
+Memorizing: 0.827s
+Counting: 0.004s
+Serialising*: 0.364s
+Size: 934008 byte (913K)
+</pre>
+<p>
+</p>
+</div>
+</div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b2.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b2.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b2.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/b2.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Part II. Functions and Operations</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="up" href="index.html" title="B Storage - Reference Manual">
+<link rel="prev" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="next" href="B-Init.html" title="Basic functions">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</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="b-intro.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
+<td> </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">B Storage - Reference Manual</th>
+<td><a accesskey="n" href="B-Init.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title">
+<a name="b2"></a>Functions and Operations</h1></div></div></div></div>
+</body>
+</html>
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/home.png
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/home.png?view=auto&rev=528519
==============================================================================
Binary file - no diff available.
Propchange: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/home.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/index.html
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/index.html?view=auto&rev=528519
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/index.html (added)
+++ incubator/triplesoup/donations/TRIPLES-2-libb/docs/html/index.html Fri Apr 13 08:19:45 2007
@@ -0,0 +1,67 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>B Storage - Reference Manual</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="B Storage - Reference Manual">
+<link rel="next" href="b-intro.html" title="Part I. B Storage - Introduction">
+<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+<link rel="part" href="b-intro.html" title="Part I. B Storage - Introduction">
+<link rel="part" href="b2.html" title="Part II. Functions and Operations">
+<link rel="part" href="b-example.html" title="Part III. An Example">
+<link rel="part" href="b-stats.html" title="Part IV. Stats and comparations">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en">
+<div class="titlepage">
+<div>
+<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">B Storage - Reference Manual</p></th></tr></table></div>
+<div><p class="releaseinfo">for B Storage 0.1
+</p></div>
+</div>
+<hr>
+</div>
+<div class="toc">
+<p><b>Table of Contents</b></p>
+<dl>
+<dt><span class="part"><a href="b-intro.html">I. B Storage - Introduction</a></span></dt>
+<dt><span class="part"><a href="b2.html">II. Functions and Operations</a></span></dt>
+<dd><dl>
+<dt>
+<span class="refentrytitle"><a href="B-Init.html">Basic functions</a></span><span class="refpurpose"> - new, destroy, sync</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Cache.html">Cache System</a></span><span class="refpurpose"> - Get or Change the Cache level</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Error.html">Error</a></span><span class="refpurpose"> - Error messages and error functions</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Triples.html">Triples</a></span><span class="refpurpose"> - How you can create, destroy complete or incomplete triples</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Add.html">Add functions</a></span><span class="refpurpose"> - How you can add triples or simple data elements</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Get.html">Get data</a></span><span class="refpurpose"> - Check function of elements in the B Storage</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Remove.html">Remove functions</a></span><span class="refpurpose"> - How you can remove elements from a storage</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Count.html">Count functions</a></span><span class="refpurpose"> - How many elements do you have into your storage?</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Iterators.html">Iterators</a></span><span class="refpurpose"> - How you can move between the elements</span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="B-Timers.html">Timers</a></span><span class="refpurpose"> - Some timer functions</span>
+</dt>
+</dl></dd>
+<dt><span class="part"><a href="b-example.html">III. An Example</a></span></dt>
+<dt><span class="part"><a href="b-stats.html">IV. Stats and comparations</a></span></dt>
+</dl>
+</div>
+</div></body>
+</html>