| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>Store 'tstore'</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> |
| 7 | <link rel="home" href="index.html" title="Redland RDF Library Manual"> |
| 8 | <link rel="up" href="redland-storage-modules.html" title="Storage Modules"> |
| 9 | <link rel="prev" href="redland-storage-module-sqlite.html" title="Store 'sqlite'"> |
| 10 | <link rel="next" href="redland-storage-module-uri.html" title="Store 'uri'"> |
| 11 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> |
| 16 | <td><a accesskey="p" href="redland-storage-module-sqlite.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 17 | <td><a accesskey="u" href="redland-storage-modules.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 18 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 19 | <th width="100%" align="center">Redland RDF Library Manual</th> |
| 20 | <td><a accesskey="n" href="redland-storage-module-uri.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 21 | </tr></table> |
| 22 | <div class="section"> |
| 23 | <div class="titlepage"><div><div><h2 class="title" style="clear: both"> |
| 24 | <a name="redland-storage-module-tstore"></a>Store 'tstore'</h2></div></div></div> |
| 25 | <p>This module provides storage via the |
| 26 | <a class="ulink" href="http://triplestore.aktors.org/" target="_top">AKT Triplestore</a> |
| 27 | when available. It was added in Redland 0.9.15 |
| 28 | and is alpha quality - not complete or tested significantly (although |
| 29 | the AKT store itself is used in production). This store provides a |
| 30 | basic triple API but no redland contexts. The underlying RDQL |
| 31 | support and inference is not yet exposed in Redland but may be in |
| 32 | future. |
| 33 | </p> |
| 34 | <p>There are several options required with the tstore storage in |
| 35 | order to connect to the tstore database (which uses MySQL). These |
| 36 | are:</p> |
| 37 | <div class="itemizedlist"><ul class="itemizedlist" type="disc"> |
| 38 | <li class="listitem"><p><code class="literal">host</code> for the database server hostname</p></li> |
| 39 | <li class="listitem"><p><code class="literal">port</code> for the database server port</p></li> |
| 40 | <li class="listitem"><p><code class="literal">database</code> for the database name (not the storage name)</p></li> |
| 41 | <li class="listitem"><p><code class="literal">user</code> for the database server user name</p></li> |
| 42 | <li class="listitem"><p><code class="literal">password</code> for the database server password</p></li> |
| 43 | </ul></div> |
| 44 | <p>NOTE: Take care exposing the password as for example, program |
| 45 | arguments or environment variables. The rdfproc utility can with |
| 46 | help this by reading the password from standard input. Inside |
| 47 | programs, one way to prevent storing the password in a string is to |
| 48 | construct a Redland hash of the storage options such as |
| 49 | via <code class="literal">librdf_hash_from_string</code> and use |
| 50 | <code class="literal">librdf_new_storage_with_options</code> to create a storage. |
| 51 | The rdfproc utility source code demonstrates this. |
| 52 | </p> |
| 53 | <p>Summary:</p> |
| 54 | <div class="itemizedlist"><ul class="itemizedlist" type="disc"> |
| 55 | <li class="listitem"><p>Persistent</p></li> |
| 56 | <li class="listitem"><p>Suitable for very large models</p></li> |
| 57 | <li class="listitem"><p>Indexed and optimized by the AKT project</p></li> |
| 58 | <li class="listitem"><p>No Redland contexts</p></li> |
| 59 | <li class="listitem"><p>Alpha quality</p></li> |
| 60 | </ul></div> |
| 61 | </div> |
| 62 | <div class="footer"> |
| 63 | <hr> |
| 64 | Generated by GTK-Doc V1.18</div> |
| 65 | </body> |
| 66 | </html> |