Skip to content

Storing provenance in a Neo4j graph database

Ashish Gehani edited this page Jul 20, 2020 · 13 revisions

Storage in the Neo4j graph database can be activated using the SPADE controller. The default configuration is loaded from cfg/spade.storage.Neo4j.config. Arguments provided when adding the storage with the SPADE controller override the defaults. The database argument specifies the location in the filesystem where the Neo4j database will be created or accessed from:

-> add storage Neo4j database=spade.graph
Adding storage Neo4j... done

The database corresponding to the above command will be stored in lib/neo4j-community-4.1.1/spade.graph/ within SPADE's top-level directory.


Storage can be added and removed while the SPADE server is running. For example, this will cause the server to stop sending provenance records to the Neo4j database:

-> remove storage Neo4j
Shutting down storage Neo4j... done
Clone this wiki locally