1 Star 0 Fork 0

极客时间/rag-project04-knowledgegraph

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.cypher 149.03 KB
一键复制 编辑 原始数据 按行查看 历史
JiaHuang_c8a5 提交于 3个月前 . 祝大家学习愉快
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141
// -----------------------------------------------------------------------------------------
// Concept: Update a SNOMED_G Graph Database from input CSV files which describe the changes
// to concepts, descriptions, ISA relationships and defining relationships.
// Input Files:
// concept_new.csv
// descrip_new.csv
// isa_rel_new.csv
// defining_rel_new.csv
// NEXT STEP -- create INDEXES
CREATE CONSTRAINT FOR (c:ObjectConcept) REQUIRE c.id IS UNIQUE;
CREATE CONSTRAINT FOR (c:ObjectConcept) REQUIRE c.sctid IS UNIQUE;
// id,sctid index created, requiring uniqueness
// Note: Can't have "FSN is UNIQUE"" constraint, can have dups (inactive concepts)
// for example -- "retired procedure" is FSN of multiple inactive concepts
CREATE CONSTRAINT FOR (c:Description) REQUIRE c.id IS UNIQUE;
CREATE INDEX FOR (x:Description) ON (x.sctid);
// need index so setting HAS_DESCRIPTION edges doesn't stall
// there can be more than one description for the same sctid, sctid not unique, but id is unique
// ROLE_GROUP nodes. Index needed for defining relationship assignment.
CREATE INDEX FOR (x:RoleGroup) ON (x.sctid);
// NEXT STEP -- create CONCEPT nodes
RETURN 'Creating NEW ObjectConcept nodes';
LOAD csv with headers from "file:/var/lib/neo4j/import/concept_new.csv" as line
CALL {
with line
CREATE (n:ObjectConcept
{ nodetype: 'concept',
id: line.id,
sctid: line.id,
active: line.active,
effectiveTime: line.effectiveTime,
moduleId: line.moduleId,
definitionStatusId: line.definitionStatusId,
FSN: line.FSN,
history: line.history} )
} IN TRANSACTIONS OF 200 ROWS;
// NEXT STEP -- create DESCRIPTION nodes (info from Language+Description file)
RETURN 'Creating NEW Description nodes';
LOAD csv with headers from "file:/var/lib/neo4j/import/descrip_new.csv" as line
CALL {
with line
CREATE (n:Description
{ nodetype:'description',
id: line.id,
sctid: line.sctid,
active: line.active,
typeId: line.typeId,
moduleId: line.moduleId,
descriptionType: line.descriptionType,
id128bit: line.id128bit,
term: line.term,
effectiveTime: line.effectiveTime,
acceptabilityId: line.acceptabilityId,
refsetId: line.refsetId,
caseSignificanceId: line.caseSignificanceId,
languageCode: line.languageCode,
history: line.history} )
} IN TRANSACTIONS OF 200 ROWS;
// NEXT STEP - create DESCRIPTION edges
RETURN 'Creating HAS_DESCRIPTION edges for new Description nodes related to ObjectConcept nodes';
LOAD csv with headers from "file:/var/lib/neo4j/import/descrip_new.csv" as line
CALL {
with line
MATCH (c:ObjectConcept { sctid: line.sctid }), (f:Description { id: line.id })
MERGE (c)-[:HAS_DESCRIPTION]->(f)
} IN TRANSACTIONS OF 200 ROWS;
// --------------------------------------------------------------------------------------
// NEXT STEP -- create ISA relationships
// --------------------------------------------------------------------------------------
RETURN 'Creating NEW ISA edges';
LOAD csv with headers from "file:/var/lib/neo4j/import/isa_rel_new.csv" as line
CALL {
with line
MATCH (c1:ObjectConcept { id: line.sourceId }), (c2:ObjectConcept { id: line.destinationId })
MERGE (c1)-[:ISA { id: line.id,
active: line.active,
effectiveTime: line.effectiveTime,
moduleId: line.moduleId,
relationshipGroup: line.relationshipGroup,
typeId: line.typeId,
characteristicTypeId: line.characteristicTypeId,
sourceId: line.sourceId,
destinationId: line.destinationId,
history: line.history }]->(c2)
} IN TRANSACTIONS OF 200 ROWS;
// --------------------------------------------------------------------------------------
// NEXT STEP -- create RoleGroup nodes
// --------------------------------------------------------------------------------------
RETURN 'Creating RoleGroup nodes';
LOAD csv with headers from "file:/var/lib/neo4j/import/rolegroups.csv" as line
CALL {
with line
MERGE (rg:RoleGroup
{ nodetype:'rolegroup',
sctid: line.sctid,
rolegroup: line.rolegroup})
} IN TRANSACTIONS OF 500 ROWS;
// Add edge in 2nd step, Java memory issue
RETURN 'Creating HAS_ROLE_GROUP edges';
LOAD csv with headers from "file:/var/lib/neo4j/import/rolegroups.csv" as line
CALL {
with line
MATCH (c:ObjectConcept { sctid: line.sctid }), (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
MERGE (c)-[:HAS_ROLE_GROUP]->(rg)
} IN TRANSACTIONS OF 500 ROWS;
// --------------------------------------------------------------------------------------
// NEXT STEP -- create Defining relationships
// --------------------------------------------------------------------------------------
// FINDING_SITE defining relationships
RETURN 'NEW Defining relationships of type FINDING_SITE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363698007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363698007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:FINDING_SITE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PART_OF defining relationships
RETURN 'NEW Defining relationships of type PART_OF';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_123005000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_123005000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PART_OF { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PATHOLOGICAL_PROCESS_QUALIFIER_VALUE defining relationships
RETURN 'NEW Defining relationships of type PATHOLOGICAL_PROCESS_QUALIFIER_VALUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_308489006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_308489006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PATHOLOGICAL_PROCESS_QUALIFIER_VALUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// CAUSATIVE_AGENT defining relationships
RETURN 'NEW Defining relationships of type CAUSATIVE_AGENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246075003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246075003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:CAUSATIVE_AGENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// EXTENT defining relationships
RETURN 'NEW Defining relationships of type EXTENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260858005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260858005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:EXTENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_MORPHOLOGY defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_MORPHOLOGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116676008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116676008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_MORPHOLOGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// METHOD defining relationships
RETURN 'NEW Defining relationships of type METHOD';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260686004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260686004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:METHOD { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_SITE defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_SITE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363704007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363704007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_SITE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// USING defining relationships
RETURN 'NEW Defining relationships of type USING';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_261583007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_261583007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:USING { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DIRECT_MORPHOLOGY defining relationships
RETURN 'NEW Defining relationships of type DIRECT_MORPHOLOGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363700003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363700003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DIRECT_MORPHOLOGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// OCCURRENCE defining relationships
RETURN 'NEW Defining relationships of type OCCURRENCE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246454002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246454002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:OCCURRENCE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INTERPRETS defining relationships
RETURN 'NEW Defining relationships of type INTERPRETS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363714003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363714003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INTERPRETS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_INTENT defining relationships
RETURN 'NEW Defining relationships of type HAS_INTENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363703001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363703001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_INTENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// COURSE defining relationships
RETURN 'NEW Defining relationships of type COURSE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260908002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260908002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:COURSE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_MEASURED_COMPONENT defining relationships
RETURN 'NEW Defining relationships of type HAS_MEASURED_COMPONENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116678009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116678009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_MEASURED_COMPONENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// APPROACH defining relationships
RETURN 'NEW Defining relationships of type APPROACH';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260669005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260669005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:APPROACH { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ACCESS defining relationships
RETURN 'NEW Defining relationships of type ACCESS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260507000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260507000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ACCESS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// REVISION_STATUS defining relationships
RETURN 'NEW Defining relationships of type REVISION_STATUS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246513007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246513007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:REVISION_STATUS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DIRECT_SUBSTANCE defining relationships
RETURN 'NEW Defining relationships of type DIRECT_SUBSTANCE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363701004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363701004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DIRECT_SUBSTANCE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DIRECT_DEVICE defining relationships
RETURN 'NEW Defining relationships of type DIRECT_DEVICE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363699004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363699004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DIRECT_DEVICE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_FINDING defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_FINDING';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246090004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246090004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_FINDING { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// EPISODICITY defining relationships
RETURN 'NEW Defining relationships of type EPISODICITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246456000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246456000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:EPISODICITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// LATERALITY defining relationships
RETURN 'NEW Defining relationships of type LATERALITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_272741003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_272741003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:LATERALITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SEVERITY defining relationships
RETURN 'NEW Defining relationships of type SEVERITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246112005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246112005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SEVERITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// MEASURES defining relationships
RETURN 'NEW Defining relationships of type MEASURES';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_367346004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_367346004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:MEASURES { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// COMMUNICATION_WITH_WOUND defining relationships
RETURN 'NEW Defining relationships of type COMMUNICATION_WITH_WOUND';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_263535000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_263535000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:COMMUNICATION_WITH_WOUND { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DEFINITIONAL_MANIFESTATION defining relationships
RETURN 'NEW Defining relationships of type HAS_DEFINITIONAL_MANIFESTATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363705008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363705008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DEFINITIONAL_MANIFESTATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_FOCUS defining relationships
RETURN 'NEW Defining relationships of type HAS_FOCUS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363702006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363702006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_FOCUS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PRIORITY defining relationships
RETURN 'NEW Defining relationships of type PRIORITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260870009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_260870009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PRIORITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INSTRUMENTATION defining relationships
RETURN 'NEW Defining relationships of type INSTRUMENTATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_309824003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_309824003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INSTRUMENTATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TEMPORALLY_FOLLOWS defining relationships
RETURN 'NEW Defining relationships of type TEMPORALLY_FOLLOWS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363708005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363708005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TEMPORALLY_FOLLOWS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ONSET defining relationships
RETURN 'NEW Defining relationships of type ONSET';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246100006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246100006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ONSET { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// STAGE defining relationships
RETURN 'NEW Defining relationships of type STAGE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_258214002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_258214002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:STAGE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_ACTIVE_INGREDIENT defining relationships
RETURN 'NEW Defining relationships of type HAS_ACTIVE_INGREDIENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_127489000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_127489000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_ACTIVE_INGREDIENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_ETIOLOGIC_FINDING defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_ETIOLOGIC_FINDING';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363715002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363715002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_ETIOLOGIC_FINDING { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_PROCEDURE defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_PROCEDURE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363589002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363589002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_PROCEDURE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_FUNCTION defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_FUNCTION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116683001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116683001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_FUNCTION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// LOCATION defining relationships
RETURN 'NEW Defining relationships of type LOCATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246267002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246267002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:LOCATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INDIRECT_MORPHOLOGY defining relationships
RETURN 'NEW Defining relationships of type INDIRECT_MORPHOLOGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363709002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363709002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INDIRECT_MORPHOLOGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// COMPONENT defining relationships
RETURN 'NEW Defining relationships of type COMPONENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246093002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246093002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:COMPONENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_SPECIMEN defining relationships
RETURN 'NEW Defining relationships of type HAS_SPECIMEN';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116686009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_116686009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_SPECIMEN { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_INTERPRETATION defining relationships
RETURN 'NEW Defining relationships of type HAS_INTERPRETATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363713009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363713009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_INTERPRETATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SUBJECT_OF_INFORMATION defining relationships
RETURN 'NEW Defining relationships of type SUBJECT_OF_INFORMATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_131195008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_131195008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SUBJECT_OF_INFORMATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ACCESS_INSTRUMENT defining relationships
RETURN 'NEW Defining relationships of type ACCESS_INSTRUMENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370127007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370127007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ACCESS_INSTRUMENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INDIRECT_DEVICE defining relationships
RETURN 'NEW Defining relationships of type INDIRECT_DEVICE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363710007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_363710007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INDIRECT_DEVICE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// RECIPIENT_CATEGORY defining relationships
RETURN 'NEW Defining relationships of type RECIPIENT_CATEGORY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370131001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370131001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:RECIPIENT_CATEGORY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PATHOLOGICAL_PROCESS defining relationships
RETURN 'NEW Defining relationships of type PATHOLOGICAL_PROCESS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370135005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370135005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PATHOLOGICAL_PROCESS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SPECIMEN_SOURCE_TOPOGRAPHY defining relationships
RETURN 'NEW Defining relationships of type SPECIMEN_SOURCE_TOPOGRAPHY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118169006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118169006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SPECIMEN_SOURCE_TOPOGRAPHY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SPECIMEN_PROCEDURE defining relationships
RETURN 'NEW Defining relationships of type SPECIMEN_PROCEDURE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118171006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118171006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SPECIMEN_PROCEDURE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SPECIMEN_SUBSTANCE defining relationships
RETURN 'NEW Defining relationships of type SPECIMEN_SUBSTANCE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370133003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370133003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SPECIMEN_SUBSTANCE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SPECIMEN_SOURCE_IDENTITY defining relationships
RETURN 'NEW Defining relationships of type SPECIMEN_SOURCE_IDENTITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118170007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118170007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SPECIMEN_SOURCE_IDENTITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SPECIMEN_SOURCE_MORPHOLOGY defining relationships
RETURN 'NEW Defining relationships of type SPECIMEN_SOURCE_MORPHOLOGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118168003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_118168003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SPECIMEN_SOURCE_MORPHOLOGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SCALE_TYPE defining relationships
RETURN 'NEW Defining relationships of type SCALE_TYPE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370132008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370132008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SCALE_TYPE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROPERTY defining relationships
RETURN 'NEW Defining relationships of type PROPERTY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370130000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370130000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROPERTY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TIME_ASPECT defining relationships
RETURN 'NEW Defining relationships of type TIME_ASPECT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370134009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370134009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TIME_ASPECT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// MEASUREMENT_METHOD defining relationships
RETURN 'NEW Defining relationships of type MEASUREMENT_METHOD';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370129005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_370129005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:MEASUREMENT_METHOD { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_SITE__INDIRECT defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_SITE__INDIRECT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405814001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405814001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_SITE__INDIRECT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// AFTER defining relationships
RETURN 'NEW Defining relationships of type AFTER';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_255234002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_255234002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:AFTER { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ASSOCIATED_WITH defining relationships
RETURN 'NEW Defining relationships of type ASSOCIATED_WITH';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_47429007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_47429007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ASSOCIATED_WITH { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TEMPORAL_CONTEXT defining relationships
RETURN 'NEW Defining relationships of type TEMPORAL_CONTEXT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408731000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408731000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TEMPORAL_CONTEXT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// FINDING_CONTEXT defining relationships
RETURN 'NEW Defining relationships of type FINDING_CONTEXT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408729009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408729009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:FINDING_CONTEXT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SUBJECT_RELATIONSHIP_CONTEXT defining relationships
RETURN 'NEW Defining relationships of type SUBJECT_RELATIONSHIP_CONTEXT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408732007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408732007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SUBJECT_RELATIONSHIP_CONTEXT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DUE_TO defining relationships
RETURN 'NEW Defining relationships of type DUE_TO';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_42752001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_42752001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DUE_TO { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_CONTEXT defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_CONTEXT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408730004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_408730004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_CONTEXT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_DEVICE defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_DEVICE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405815000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405815000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_DEVICE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_SITE__DIRECT defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_SITE__DIRECT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405813007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405813007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_SITE__DIRECT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCEDURE_MORPHOLOGY defining relationships
RETURN 'NEW Defining relationships of type PROCEDURE_MORPHOLOGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405816004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_405816004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCEDURE_MORPHOLOGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_MANUFACTURED_DOSE_FORM defining relationships
RETURN 'NEW Defining relationships of type HAS_MANUFACTURED_DOSE_FORM';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_411116001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_411116001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_MANUFACTURED_DOSE_FORM { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// FINDING_METHOD defining relationships
RETURN 'NEW Defining relationships of type FINDING_METHOD';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_418775008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_418775008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:FINDING_METHOD { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// FINDING_INFORMER defining relationships
RETURN 'NEW Defining relationships of type FINDING_INFORMER';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_419066007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_419066007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:FINDING_INFORMER { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// ROUTE_OF_ADMINISTRATION defining relationships
RETURN 'NEW Defining relationships of type ROUTE_OF_ADMINISTRATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_410675002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_410675002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:ROUTE_OF_ADMINISTRATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// USING_DEVICE defining relationships
RETURN 'NEW Defining relationships of type USING_DEVICE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424226004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424226004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:USING_DEVICE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// USING_SUBSTANCE defining relationships
RETURN 'NEW Defining relationships of type USING_SUBSTANCE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424361007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424361007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:USING_SUBSTANCE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// CLINICAL_COURSE defining relationships
RETURN 'NEW Defining relationships of type CLINICAL_COURSE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_263502005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_263502005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:CLINICAL_COURSE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// USING_ENERGY defining relationships
RETURN 'NEW Defining relationships of type USING_ENERGY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424244007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424244007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:USING_ENERGY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// USING_ACCESS_DEVICE defining relationships
RETURN 'NEW Defining relationships of type USING_ACCESS_DEVICE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_425391005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_425391005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:USING_ACCESS_DEVICE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// SURGICAL_APPROACH defining relationships
RETURN 'NEW Defining relationships of type SURGICAL_APPROACH';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424876005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_424876005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:SURGICAL_APPROACH { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROPERTY_TYPE defining relationships
RETURN 'NEW Defining relationships of type PROPERTY_TYPE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704318007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704318007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROPERTY_TYPE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// CHARACTERIZES defining relationships
RETURN 'NEW Defining relationships of type CHARACTERIZES';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704321009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704321009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:CHARACTERIZES { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCESS_OUTPUT defining relationships
RETURN 'NEW Defining relationships of type PROCESS_OUTPUT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704324001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704324001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCESS_OUTPUT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DIRECT_SITE defining relationships
RETURN 'NEW Defining relationships of type DIRECT_SITE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704327008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704327008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DIRECT_SITE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INHERES_IN defining relationships
RETURN 'NEW Defining relationships of type INHERES_IN';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704319004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704319004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INHERES_IN { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PRECONDITION defining relationships
RETURN 'NEW Defining relationships of type PRECONDITION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704326004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704326004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PRECONDITION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// INHERENT_LOCATION defining relationships
RETURN 'NEW Defining relationships of type INHERENT_LOCATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_718497002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_718497002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:INHERENT_LOCATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TECHNIQUE defining relationships
RETURN 'NEW Defining relationships of type TECHNIQUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246501002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246501002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TECHNIQUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// RELATIVE_TO_PART_OF defining relationships
RETURN 'NEW Defining relationships of type RELATIVE_TO_PART_OF';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_719715003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_719715003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:RELATIVE_TO_PART_OF { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// DURING defining relationships
RETURN 'NEW Defining relationships of type DURING';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_371881003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_371881003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:DURING { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_BASIS_OF_STRENGTH_SUBSTANCE defining relationships
RETURN 'NEW Defining relationships of type HAS_BASIS_OF_STRENGTH_SUBSTANCE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732943007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732943007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_BASIS_OF_STRENGTH_SUBSTANCE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRESENTATION_STRENGTH_NUMERATOR_VALUE defining relationships
RETURN 'NEW Defining relationships of type HAS_PRESENTATION_STRENGTH_NUMERATOR_VALUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732944001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732944001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRESENTATION_STRENGTH_NUMERATOR_VALUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRESENTATION_STRENGTH_NUMERATOR_UNIT defining relationships
RETURN 'NEW Defining relationships of type HAS_PRESENTATION_STRENGTH_NUMERATOR_UNIT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732945000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732945000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRESENTATION_STRENGTH_NUMERATOR_UNIT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRESENTATION_STRENGTH_DENOMINATOR_VALUE defining relationships
RETURN 'NEW Defining relationships of type HAS_PRESENTATION_STRENGTH_DENOMINATOR_VALUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732946004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732946004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRESENTATION_STRENGTH_DENOMINATOR_VALUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRESENTATION_STRENGTH_DENOMINATOR_UNIT defining relationships
RETURN 'NEW Defining relationships of type HAS_PRESENTATION_STRENGTH_DENOMINATOR_UNIT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732947008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_732947008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRESENTATION_STRENGTH_DENOMINATOR_UNIT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DISPOSITION defining relationships
RETURN 'NEW Defining relationships of type HAS_DISPOSITION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_726542003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_726542003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DISPOSITION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_STATE_OF_MATTER defining relationships
RETURN 'NEW Defining relationships of type HAS_STATE_OF_MATTER';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736518005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736518005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_STATE_OF_MATTER { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DOSE_FORM_ADMINISTRATION_METHOD defining relationships
RETURN 'NEW Defining relationships of type HAS_DOSE_FORM_ADMINISTRATION_METHOD';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736472000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736472000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DOSE_FORM_ADMINISTRATION_METHOD { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DOSE_FORM_INTENDED_SITE defining relationships
RETURN 'NEW Defining relationships of type HAS_DOSE_FORM_INTENDED_SITE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736474004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736474004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DOSE_FORM_INTENDED_SITE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DOSE_FORM_RELEASE_CHARACTERISTIC defining relationships
RETURN 'NEW Defining relationships of type HAS_DOSE_FORM_RELEASE_CHARACTERISTIC';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736475003_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736475003_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DOSE_FORM_RELEASE_CHARACTERISTIC { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_BASIC_DOSE_FORM defining relationships
RETURN 'NEW Defining relationships of type HAS_BASIC_DOSE_FORM';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736476002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736476002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_BASIC_DOSE_FORM { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DOSE_FORM_TRANSFORMATION defining relationships
RETURN 'NEW Defining relationships of type HAS_DOSE_FORM_TRANSFORMATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736473005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_736473005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DOSE_FORM_TRANSFORMATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TEMPORALLY_RELATED_TO defining relationships
RETURN 'NEW Defining relationships of type TEMPORALLY_RELATED_TO';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_726633004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_726633004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TEMPORALLY_RELATED_TO { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// IS_MODIFICATION_OF defining relationships
RETURN 'NEW Defining relationships of type IS_MODIFICATION_OF';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_738774007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_738774007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:IS_MODIFICATION_OF { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRECISE_ACTIVE_INGREDIENT defining relationships
RETURN 'NEW Defining relationships of type HAS_PRECISE_ACTIVE_INGREDIENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_762949000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_762949000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRECISE_ACTIVE_INGREDIENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_UNIT_OF_PRESENTATION defining relationships
RETURN 'NEW Defining relationships of type HAS_UNIT_OF_PRESENTATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_763032000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_763032000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_UNIT_OF_PRESENTATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// COUNT_OF_BASE_OF_ACTIVE_INGREDIENT defining relationships
RETURN 'NEW Defining relationships of type COUNT_OF_BASE_OF_ACTIVE_INGREDIENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766952006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766952006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:COUNT_OF_BASE_OF_ACTIVE_INGREDIENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_CONCENTRATION_STRENGTH_DENOMINATOR_VALUE defining relationships
RETURN 'NEW Defining relationships of type HAS_CONCENTRATION_STRENGTH_DENOMINATOR_VALUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733723002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733723002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_CONCENTRATION_STRENGTH_DENOMINATOR_VALUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_CONCENTRATION_STRENGTH_NUMERATOR_VALUE defining relationships
RETURN 'NEW Defining relationships of type HAS_CONCENTRATION_STRENGTH_NUMERATOR_VALUE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733724008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733724008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_CONCENTRATION_STRENGTH_NUMERATOR_VALUE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_CONCENTRATION_STRENGTH_NUMERATOR_UNIT defining relationships
RETURN 'NEW Defining relationships of type HAS_CONCENTRATION_STRENGTH_NUMERATOR_UNIT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733725009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733725009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_CONCENTRATION_STRENGTH_NUMERATOR_UNIT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_CONCENTRATION_STRENGTH_DENOMINATOR_UNIT defining relationships
RETURN 'NEW Defining relationships of type HAS_CONCENTRATION_STRENGTH_DENOMINATOR_UNIT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733722007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_733722007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_CONCENTRATION_STRENGTH_DENOMINATOR_UNIT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PLAYS_ROLE defining relationships
RETURN 'NEW Defining relationships of type PLAYS_ROLE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766939001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766939001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PLAYS_ROLE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_REALIZATION defining relationships
RETURN 'NEW Defining relationships of type HAS_REALIZATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_719722006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_719722006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_REALIZATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCESS_DURATION defining relationships
RETURN 'NEW Defining relationships of type PROCESS_DURATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704323007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704323007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCESS_DURATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// UNITS defining relationships
RETURN 'NEW Defining relationships of type UNITS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246514001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246514001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:UNITS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DEVICE_INTENDED_SITE defining relationships
RETURN 'NEW Defining relationships of type HAS_DEVICE_INTENDED_SITE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_836358009_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_836358009_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DEVICE_INTENDED_SITE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_COMPOSITIONAL_MATERIAL defining relationships
RETURN 'NEW Defining relationships of type HAS_COMPOSITIONAL_MATERIAL';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_840560000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_840560000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_COMPOSITIONAL_MATERIAL { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_DEVICE_CHARACTERISTIC defining relationships
RETURN 'NEW Defining relationships of type HAS_DEVICE_CHARACTERISTIC';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_840562008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_840562008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_DEVICE_CHARACTERISTIC { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_FILLING defining relationships
RETURN 'NEW Defining relationships of type HAS_FILLING';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_827081001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_827081001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_FILLING { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_SURFACE_CHARACTERISTIC defining relationships
RETURN 'NEW Defining relationships of type HAS_SURFACE_CHARACTERISTIC';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246196007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_246196007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_SURFACE_CHARACTERISTIC { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// COUNT_OF_ACTIVE_INGREDIENT defining relationships
RETURN 'NEW Defining relationships of type COUNT_OF_ACTIVE_INGREDIENT';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766953001_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_766953001_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:COUNT_OF_ACTIVE_INGREDIENT { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_PRODUCT_CHARACTERISTIC defining relationships
RETURN 'NEW Defining relationships of type HAS_PRODUCT_CHARACTERISTIC';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_860781008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_860781008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_PRODUCT_CHARACTERISTIC { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// RELATIVE_TO defining relationships
RETURN 'NEW Defining relationships of type RELATIVE_TO';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704325000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704325000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:RELATIVE_TO { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_INGREDIENT_CHARACTERISTIC defining relationships
RETURN 'NEW Defining relationships of type HAS_INGREDIENT_CHARACTERISTIC';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_860779006_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_860779006_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_INGREDIENT_CHARACTERISTIC { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_SURFACE_TEXTURE defining relationships
RETURN 'NEW Defining relationships of type HAS_SURFACE_TEXTURE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148968002_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148968002_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_SURFACE_TEXTURE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_ABSORBABILITY defining relationships
RETURN 'NEW Defining relationships of type HAS_ABSORBABILITY';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148969005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148969005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_ABSORBABILITY { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_COATING_MATERIAL defining relationships
RETURN 'NEW Defining relationships of type HAS_COATING_MATERIAL';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148967007_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148967007_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_COATING_MATERIAL { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_INGREDIENT_QUALITATIVE_STRENGTH defining relationships
RETURN 'NEW Defining relationships of type HAS_INGREDIENT_QUALITATIVE_STRENGTH';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1149366004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1149366004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_INGREDIENT_QUALITATIVE_STRENGTH { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// HAS_TARGET_POPULATION defining relationships
RETURN 'NEW Defining relationships of type HAS_TARGET_POPULATION';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1149367008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1149367008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:HAS_TARGET_POPULATION { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// IS_STERILE defining relationships
RETURN 'NEW Defining relationships of type IS_STERILE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148965004_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1148965004_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:IS_STERILE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCESS_EXTENDS_TO defining relationships
RETURN 'NEW Defining relationships of type PROCESS_EXTENDS_TO';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1003703000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1003703000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCESS_EXTENDS_TO { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// BEFORE defining relationships
RETURN 'NEW Defining relationships of type BEFORE';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_288556008_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_288556008_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:BEFORE { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// PROCESS_ACTS_ON defining relationships
RETURN 'NEW Defining relationships of type PROCESS_ACTS_ON';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1003735000_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_1003735000_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:PROCESS_ACTS_ON { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// TOWARDS defining relationships
RETURN 'NEW Defining relationships of type TOWARDS';
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704320005_new.csv" as line
CALL {
with line
MERGE (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
} IN TRANSACTIONS OF 200 ROWS;
// Add defining relationship edge in 2nd step, Java memory issue
LOAD CSV with headers from "file:/var/lib/neo4j/import/DR_704320005_new.csv" as line
CALL {
with line
MATCH (rg:RoleGroup { sctid: line.sctid, rolegroup: line.rolegroup })
WITH line,rg
MATCH (c:ObjectConcept { sctid: line.destinationId })
MERGE (rg)-[:TOWARDS { id: line.id, active: line.active, sctid: line.sctid,
typeId: line.typeId,
rolegroup: line.rolegroup, effectiveTime: line.effectiveTime,
moduleId: line.moduleId, characteristicTypeId: line.characteristicTypeId,
modifierId: line.modifierId,
history: line.history }]->(c)
} IN TRANSACTIONS OF 200 ROWS;
// Finito
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geektime-geekbang_admin/rag-project04-knowledgegraph.git
git@gitee.com:geektime-geekbang_admin/rag-project04-knowledgegraph.git
geektime-geekbang_admin
rag-project04-knowledgegraph
rag-project04-knowledgegraph
master

搜索帮助