RDF::Redland::Storage - Redland RDF Storage Class
use RDF::Redland; my $storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='memory'"); ...
Create objects for storing RDF::Redland::Model objects either persistently or in memory.
The storage options are formatted in the form key1='value1',key2='value2' and the single quotes are required.
Currently defined storage options:
dir='DIR' Work in DIR directory when creating files.
hash-type='TYPE' Use the TYPE hash-type for I<hashes> storage. Current defined types are 'memory' and 'bdb' but is dependent on the hash factories available.
mode='MODE' File creation mode, default is (octal) 0644 Takes decimal (123), hex (0x123) or octal (0123).
new='yes' Create a new storage erasing any existing one (default).
write='yes' Provide write access to store (default) otherwise is read only.
Example:
$storage=new RDF::Redland::Storage("hashes", "test", "new='yes',hash-type='bdb',dir='.'");
Creates a new storage of the hashes type (indexed hashes) named test (these will be file names or URIs if the storage is persistent) and with options new='yes',hash-type='bdb',dir='.' so a new storage is created with BerkeleyDB (BDB) key:value hashes i.e. persistent and in the current directory.
the RDF::Redland::Model manpage
Dave Beckett - http://purl.org/net/dajobe/
Copyright 2000-2003 Dave Beckett, Institute for Learning and Research Technology, University of Bristol