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!
.
|