[redland-dev] name argument of RDF.Storage in Python when using PostgreSQL or MySQL

Yuuki Takano ytakanoster at gmail.com
Fri Jun 8 00:44:55 EDT 2012


Hi all,

I am trying to use Redland by using PostgreSQL or MySQL as back-end DB
in Python.
However, I, referencing
http://librdf.org/docs/api/redland-storage-module-postgresql.html,
encounter an error "storage 'db1' not found" when creating the Storage class.

I think I should do some operations on PostgreSQL (or MySQL).
What should I do before creating a instance of Storage class?

I already added a user with password for Redland.

My code is here:
$ python
>>> import RDF
>>> storage = RDF.Storage(storage_name="postgresql", name="db1", options_string="new='yes',host='localhost',port='5432',database='red',user='foo',password='bar'")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/RDF.py", line 1517, in __init__
    args['storage_name'], args['name'], args['options_string'])
RDF.RedlandError: "storage 'db1' not found"


More information about the redland-dev mailing list