finishes setup
This commit is contained in:
19
neo4jqueries/loadingQueriesNeo4j/LoadNodes.cypher
Normal file
19
neo4jqueries/loadingQueriesNeo4j/LoadNodes.cypher
Normal file
@@ -0,0 +1,19 @@
|
||||
// Genes
|
||||
LOAD CSV WITH HEADERS FROM 'file:///nodes_Gene.csv' AS row
|
||||
CREATE (g:Gene) SET g = row;
|
||||
|
||||
// Diseases
|
||||
LOAD CSV WITH HEADERS FROM 'file:///nodes_Disease.csv' AS row
|
||||
CREATE (d:Disease) SET d = row;
|
||||
|
||||
// Compounds
|
||||
LOAD CSV WITH HEADERS FROM 'file:///nodes_Compound.csv' AS row
|
||||
CREATE (c:Compound) SET c = row;
|
||||
|
||||
// Symptoms
|
||||
LOAD CSV WITH HEADERS FROM 'file:///nodes_Symptom.csv' AS row
|
||||
CREATE (s:Symptom) SET s = row;
|
||||
|
||||
// Side Effects
|
||||
LOAD CSV WITH HEADERS FROM 'file:///nodes_Side_Effect.csv' AS row
|
||||
CREATE (se:Side_Effect) SET se = row;
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_treats.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:TREATS]->(target);
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_binds.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:BINDS]->(target);
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_interacts.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:INTERACTS]->(target);
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_covaries.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:COVARIES]->(target);
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_causes.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:CAUSES]->(target);
|
||||
@@ -0,0 +1,4 @@
|
||||
LOAD CSV WITH HEADERS FROM 'file:///edges_causes.csv' AS row
|
||||
MATCH (source {id: row.source})
|
||||
MATCH (target {id: row.target})
|
||||
CREATE (source)-[:CAUSES]->(target);
|
||||
Reference in New Issue
Block a user