njh / redstore

RedStore is a lightweight RDF triplestore written in C using the Redland library.
https://www.aelius.com/njh/redstore/
GNU General Public License v3.0
62 stars 6 forks source link

[proposal] Create a new store when it does not exist and `-n` is not given #57

Closed Hibou57 closed 7 years ago

Hibou57 commented 7 years ago

Starting Redstore with redstore -s sqlite foo.db where foo.db does not exist and trying to insert triples, ends with an internal server error (error 500), due to missing tables (which can’t be there).

As a work‑around, a script starting Redstore can check the file exist and it it does not, add the -n option. I just though this may avoid surprise if Redstore did it ifself.

njh commented 7 years ago

Hi,

I tried to make RedStore as thin as possible and ensure that as much of the the RDF/TripleStore functionality is in the Redland libraries as possible.

This behaviour of not creating the store automatically is Redland behaviour - you can experience the same thing with rdfproc - see the -n option there.

But I agree it isn't ideal.

nick.

Hibou57 commented 7 years ago

I understand. Don’t mind closing this issue, that’s just a detail as this can be workaround with no pain.

njh commented 7 years ago

Ok, I will close this one.