doc/tutorials/dataimport/index.rst
changeset 12556 d1c659d70368
parent 10496 e95b559a06a2
child 12792 e2cdb1be6bd9
equal deleted inserted replaced
12555:4892e0e48556 12556:d1c659d70368
   352 
   352 
   353 Before using the store, one has to import the ``dataio`` cube's 
   353 Before using the store, one has to import the ``dataio`` cube's 
   354 ``dataimport`` module, then initialize the store by giving it the
   354 ``dataimport`` module, then initialize the store by giving it the
   355 ``session`` parameter::
   355 ``session`` parameter::
   356 
   356 
   357     from cubes.dataio import dataimport as mcwdi
   357     from cubicweb_dataio import dataimport as mcwdi
   358     ...
   358     ...
   359 
   359 
   360     store = mcwdi.MassiveObjectStore(session)
   360     store = mcwdi.MassiveObjectStore(session)
   361 
   361 
   362 The ``MassiveObjectStore`` provides six methods for inserting data
   362 The ``MassiveObjectStore`` provides six methods for inserting data
   439 #. creates and initializes the store to be used, via a line such as::
   439 #. creates and initializes the store to be used, via a line such as::
   440     
   440     
   441         store = cwdi.SQLGenObjectStore(session)
   441         store = cwdi.SQLGenObjectStore(session)
   442    
   442    
   443    where ``cwdi`` is the imported ``cubicweb.dataimport`` or 
   443    where ``cwdi`` is the imported ``cubicweb.dataimport`` or 
   444    ``cubes.dataio.dataimport``.
   444    ``cubicweb_dataio.dataimport``.
   445 
   445 
   446 #. calls the diseasome parser, that is, the ``entities_from_rdf`` function in the 
   446 #. calls the diseasome parser, that is, the ``entities_from_rdf`` function in the 
   447    ``diseasome_parser`` module and iterates on its result, in a line such as::
   447    ``diseasome_parser`` module and iterates on its result, in a line such as::
   448         
   448         
   449         for entity, relations in parser.entities_from_rdf(filename, ('gene', 'disease')):
   449         for entity, relations in parser.entities_from_rdf(filename, ('gene', 'disease')):