Spaces:
Runtime error
Runtime error
Commit
•
1b44ced
1
Parent(s):
f1c75b2
Updating permissions
Browse files- init_neo4j.sh +1 -0
- neo4j.conf +1 -1
- scripts/init_neo4j.cypher +1 -0
- scripts/load_data.cypher +1 -0
init_neo4j.sh
CHANGED
@@ -15,3 +15,4 @@ echo "Running load_data..."
|
|
15 |
cat /neo4j/scripts/load_data.cypher | cypher-shell -u neo4j -p password
|
16 |
|
17 |
echo "Completed initialization scripts!"
|
|
|
|
15 |
cat /neo4j/scripts/load_data.cypher | cypher-shell -u neo4j -p password
|
16 |
|
17 |
echo "Completed initialization scripts!"
|
18 |
+
|
neo4j.conf
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
dbms.security.auth_enabled=false
|
2 |
-
dbms.security.http_access_control_allow_origin=*
|
|
|
1 |
dbms.security.auth_enabled=false
|
2 |
+
dbms.security.http_access_control_allow_origin=*
|
scripts/init_neo4j.cypher
CHANGED
@@ -10,3 +10,4 @@ MERGE (model:Model {
|
|
10 |
datasets: COALESCE(row.datasets, ''),
|
11 |
language: COALESCE(row.language, '[]')
|
12 |
})
|
|
|
|
10 |
datasets: COALESCE(row.datasets, ''),
|
11 |
language: COALESCE(row.language, '[]')
|
12 |
})
|
13 |
+
|
scripts/load_data.cypher
CHANGED
@@ -2,3 +2,4 @@ LOAD CSV WITH HEADERS FROM 'file:///var/lib/neo4j/import/base-model-properties.c
|
|
2 |
MERGE (model:Model {modelId: row.modelId})
|
3 |
MERGE (baseModel:Model {modelId: row.base_model})
|
4 |
MERGE (model)-[:DERIVED_FROM]->(baseModel)
|
|
|
|
2 |
MERGE (model:Model {modelId: row.modelId})
|
3 |
MERGE (baseModel:Model {modelId: row.base_model})
|
4 |
MERGE (model)-[:DERIVED_FROM]->(baseModel)
|
5 |
+
|