You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILD.org
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -473,9 +473,10 @@ More details are in [[https://memgraph.com/docs/getting-started/install-memgraph
473
473
474
474
** Generating the CSV File
475
475
Before uploading the file to Memgrpah, run =alzkb/rdf_to_memgraph_csv.py= with the =alzkb_v2-populated.rdf= file to generate =alzkb-populated.csv=.
476
+
Then run =populate_edge_weights.py= to create =alzkb_with_edge_properties.csv= file if you want to add edge properies to the knowledge graph.
476
477
477
478
** Starting Memgraph with Docker
478
-
Follow the instructions in [[https://memgraph.com/docs/data-migration/migrate-from-neo4j#importing-data-into-memgraph][importing-data-into-memgraph]] Step 1. Starting Memgraph with Docker to upload the =alzkb-populated.csv= file to the container.
479
+
Follow the instructions in [[https://memgraph.com/docs/data-migration/migrate-from-neo4j#importing-data-into-memgraph][importing-data-into-memgraph]] Step 1. Starting Memgraph with Docker to upload the =alzkb-populated.csv= or =alzkb_with_edge_properties.csv= file to the container.
479
480
480
481
Open Memgraph Lab. Memgraph Lab is available at =http://localhost:3000=. Click the =Query Execution= in MENU on the left bar. Then, you can type a Cypher query in the =Cypher Editor=.
481
482
@@ -632,7 +633,7 @@ RETURN count(rel)
632
633
- GENEREGULATESGENE relationships
633
634
#+begin_src cypher
634
635
LOAD CSV FROM "/usr/lib/memgraph/alzkb-populated.csv" WITH HEADER AS row
635
-
WITH row WHERE row._type = 'GENEREGULATESGENE'\
636
+
WITH row WHERE row._type = 'GENEREGULATESGENE'
636
637
MATCH (g:Gene {nodeID: row._start}) MATCH (g2:Gene {nodeID: row._end})
637
638
MERGE (g)-[rel:GENEREGULATESGENE]->(g2)
638
639
RETURN count(rel)
@@ -697,7 +698,7 @@ RETURN count(rel)
697
698
LOAD CSV FROM "/usr/lib/memgraph/alzkb-populated.csv" WITH HEADER AS row
698
699
WITH row WHERE row._type = 'GENECOVARIESWITHGENE'
699
700
MATCH (g:Gene {nodeID: row._start}) MATCH (g2:Gene {nodeID: row._end})
0 commit comments