Easier way to create a database

Kjetil Kjernsmo kjetil at kjernsmo.net
Thu Apr 29 23:49:18 CEST 2010


Hi!

When I was documenting RDF::LinkedData yesterday, it occurred to me that it 
was a bit of a PITA creating the database and getting the scripts to use 
it. I think we need to make this easier, somehow. I think that perhaps 
Toby's trapper is the right way to do it.

RDF::Trine::Store can be configured with a single string now, and Greg's 
original RDF::LinkedData::Apache used that. It is indeed very useful, but I 
had a bit of trouble getting the string right when creating a SQlite test 
database (which is now in the RDF::LinkedData distribution). I think it 
would be confusing for a newbie. Also, I created a small script (also in 
the distribution) to parse a Turtle file and create the SQLite database. It 
is also rather ugly. It would be nice if people here would peek at 
RDF::LinkedData and see if it at all makes sense, and form an opinion on 
what can be done to make life easier when setting up an server based on it.

I was thinking, perhaps trapper could have a mode where it parses a file 
(it already does), leaves a database behind, and emits the configuration 
string, so that the user can paste that into config files of modules such 
as RDF::LinkedData?

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
kjetil at kjernsmo.net
http://www.kjetil.kjernsmo.net/


More information about the Dev mailing list