| 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 'file'</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-memory.html" title="Store 'memory'"> |
| 10 | <link rel="next" href="redland-storage-module-mysql.html" title="Store 'mysql'"> |
| 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-memory.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-mysql.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-file"></a>Store 'file'</h2></div></div></div> |
| 25 | <p>This module provides an in-memory model (internally, |
| 26 | using a <a class="xref" href="redland-storage-module-memory.html" title="Store 'memory'">the section called “Store 'memory'”</a>) initialised from the |
| 27 | RDF/XML content in a file. The file is given as the storage name and |
| 28 | assumed to exist on opening. When a model or storage sync method |
| 29 | is called or the model or store is closed, a new file is created, the |
| 30 | old file renamed to a backup and the new file renamed to replace it. |
| 31 | This store was added in Redland 0.9.15</p> |
| 32 | <p>There are no options for this store and contexts are not supported.</p> |
| 33 | <p>Example:</p> |
| 34 | <pre class="programlisting"> |
| 35 | /* File based store from thing.rdf file */ |
| 36 | storage=librdf_new_storage(world, "file", "thing.rdf", NULL); |
| 37 | </pre> |
| 38 | <p>Summary:</p> |
| 39 | <div class="itemizedlist"><ul class="itemizedlist" type="disc"> |
| 40 | <li class="listitem"><p>In-memory</p></li> |
| 41 | <li class="listitem"><p>Suitable for small models</p></li> |
| 42 | <li class="listitem"><p>Simple local storage to content in RDF/XML</p></li> |
| 43 | <li class="listitem"><p>Not indexed</p></li> |
| 44 | <li class="listitem"><p>No contexts</p></li> |
| 45 | </ul></div> |
| 46 | </div> |
| 47 | <div class="footer"> |
| 48 | <hr> |
| 49 | Generated by GTK-Doc V1.18</div> |
| 50 | </body> |
| 51 | </html> |