Hi there, would be very grateful if anyone can help with the following:
I'm running neo4j-community-4.0.3 in order to analyze an online database that can be downloaded as a neo4j directory (https://reactome.org/download/current/reactome.graphdb.tgz). I call it a neo4j directory because it includes files with all the same names (neostore...., store_lock, database_lock) as the default neo4j database that is created when I first start neo4j.
The problem is that I am unable to load and query this database. In the documentation, I see commands to load csv files into the default database (neo4j) but how to load an existing database like the one referenced above? Here's what I have tried:
-
delete neo4j and rename graph.db (the downloaded database) to be neo4j. The result is that when I run cypher-shell, I get the error
"Database 'neo4j' is unavailable." -
copy-paste the contents of graph.db (the downloaded database) into the neo4j folder, replacing all files with the same name, while leaving the rest. Now when running cypher-shell I get the error
"Unable to get a routing table for database 'neo4j' because this database is unavailable" -
Changing the default database in the neo4j.conf file, changing "dbms.default_database=neo4j" to "dbms.default_database=graph.db". This has no apparent effect, the default database remains neo4j, as seen here from within the cypher-shell
neo4j@neo4j> :use system
neo4j@system> show databases ;
+------------------------------------------------------------------------------------------------+
| name | address | role | requestedStatus | currentStatus | error | default |
+------------------------------------------------------------------------------------------------+
| "neo4j" | "localhost:7687" | "standalone" | "online" | "online" | "" | TRUE |
| "system" | "localhost:7687" | "standalone" | "online" | "online" | "" | FALSE |
+------------------------------------------------------------------------------------------------+ -
a natural thing would be to add graph.db as a new database. I tried doing so in cypher-shell but this functionality is apparently not included in the community edition:
neo4j@system> create database
graph.db
;
Unsupported administration command: create databasegraph.db
;
What else can I do? Any guidance would be much appreciated. Thank you in advance.