@@ -366,7 +366,7 @@ const uploadFile = async ({
366366 if ( allPreferredNamesDifferent ) {
367367 for ( const dup of dups ) {
368368 dup . name = dup . synonyms [ 0 ] ;
369- logger . log ( 'info' , `record with non-unique name (${ name } , ${ dup . sourceId } ) being loaded with its preferred name (${ dup . name } );` ) ;
369+ logger . log ( 'info' , `record with non-unique name (${ name } , ${ dup . sourceId } ) being loaded with its preferred name (${ dup . name . toLowerCase ( ) } );` ) ;
370370 }
371371 continue ;
372372 }
@@ -386,7 +386,7 @@ const uploadFile = async ({
386386 // list the ncit records already loaded
387387 // query only the main records (aliased terms); should be one per sourceId
388388 const cached = { } ;
389- logger . info ( 'getting previously loaded records' ) ;
389+ logger . info ( 'getting previously loaded records... ' ) ;
390390 const cachedRecords = await conn . getRecords ( {
391391 filters : { AND : [ { source } , { alias : false } ] } ,
392392 neighbors : 0 ,
@@ -406,6 +406,7 @@ const uploadFile = async ({
406406 exists . add ( existsHashCheck ( record ) ) ;
407407 }
408408 logger . info ( `loaded and cached ${ Object . keys ( cached ) . length } records` ) ;
409+ logger . info ( 'uploading NCIt records to GraphKB...' ) ;
409410
410411 const recordsById = { } ;
411412
@@ -447,6 +448,8 @@ const uploadFile = async ({
447448 url,
448449 } = row ;
449450
451+ logger . verbose ( `- processing ${ name } ` ) ;
452+
450453 // main Therapy|Disease|AnatomicalEntity node record
451454 record = await conn . addRecord ( {
452455 content : {
@@ -474,6 +477,8 @@ const uploadFile = async ({
474477
475478 // add the synonyms as alias records
476479 for ( const synonym of synonyms ) {
480+ logger . verbose ( `- processing synonym ${ synonym . toLowerCase ( ) } ` ) ;
481+
477482 // Skipping synonym if equal to the record's name
478483 if ( synonym . toLowerCase ( ) === name ) {
479484 continue ;
0 commit comments