List Info

Thread: Problems loading data




Problems loading data
country flaguser name
Spain
2007-07-20 06:15:20
Hi you all,
I am starting to have problems loading initial data.
 
In my previous apps with Rails, I loaded data this way in environment.rb (and it worked):
*******
require 'active_rdf'
$dc_schema_file_path = 'db/dublin-core-schema.nt'
$db = ConnectionPool.add(:type => :rdflite, :location => 'db/biosem.db3')
$db.load($dc_schema_file_path)
Namespace.register :dc_elements, 'http://purl.org/dc/elements/1.1/'
Namespace.register :dc_terms, 'http://purl.org/dc/terms/'
ObjectManager.construct_classes
****
Now, once updated to the latest version of ActiveRDF (I point this casue it may be the cause of the problem), and starting a new Rails app, that code does not work; the triples in the file do not get loaded in the biosem.db3 (the file do exist in that path, and the db is not being used by any other ;program that may prevent it for being updated from my Rails app). ;Suggestions?
 
Thanks.
 

 



Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .
Re: Problems loading data
user name
2007-07-20 06:42:22
Have you tried :location => '";#{RAILS_ROOT}"/db/biosem.db3' ?

2007/7/20, Damaris Fuentes < dfl_maradentroyahoo.es">dfl_maradentroyahoo.es&gt;:
Hi you all,
I am starting to have problems loading initial data.
 
In my previous apps with Rails, I loaded data this way in environment.rb (and it worked):
*******
require 'active_rdf'
$dc_schema_file_path = 'db/dublin-core-schema.nt &#39;
$db = ConnectionPool.add(:type => :rdflite, :location => 'db/biosem.db39;)
$db.load($dc_schema_file_path)
Namespace.register :dc_elements, ' http://purl.org/dc/elements/1.1/'
Namespace.register :dc_terms, 'http://purl.org/dc/terms/'
ObjectManager.construct_classes
****
Now, once updated to the latest version of ActiveRDF (I point this casue it may be the cause of the problem), and starting a new Rails app, that code does not work; the triples in the file do not get loaded in the biosem.db3 (the file do exist in that path, and the db is not being used by any other ;program that may prevent it for being updated from my Rails app). ;Suggestions?
 
Thanks.
 



Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .


_______________________________________________
ActiveRDF mailing list
lists.deri.org">ActiveRDFlists.deri.org
http://lists.deri.org/mailman/listinfo/activerdf


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )