The code assumes that Neo4j is installed.
Install Neo4j:
- Use the Neo4j Desktop (recommended), or
- Neo4j Community Server
PromG should be installed as a Python package using pip
pip install promg==2.2.3
.
The source code for PromG can be found PromG Core Github repository.
- Create a New Graph Data In Neo4j Desktop
- Select
+Add
(Top right corner) - Choose Local DBMS or Remote Connection
- Follow the prompted steps
- the default password we assume is 12345678
- version should be v5.9.0
- Select
Important
The code only works Neo4j databases up to v5.9.0.
- Install APOC (see https://neo4j.com/labs/apoc/)
- Install
Neo4j APOC Core library
:- Select the database in Neo4j desktop
- On the right, click on the
plugins
tab > Open theAPOC
section > Click theinstall
button - Wait until a green check mark shows up next to
APOC
- that means it's good to go!
- Install
Neo4j APOC Extended library
- Download the appropriate release (same version numbers as your Neo4j version)
- Look for the release that matches the version number of your Neo4j Database.
- Download the file
apoc-[your neo4j version]-extended.jar
- Locate the
plugins
folder of your database:
Select the Neo4j Server in Neo4j Desktop > Click the three dots > SelectOpen Folder
> SelectPlugins
- Put
apoc-[your neo4j version]-extended.jar
into theplugins
folder of your database - Restart the server (database)
- Download the appropriate release (same version numbers as your Neo4j version)
- Configure extra settings using the configuration file
$NEO4J_HOME/conf/apoc.conf
- Locate the
conf
folder of your database
Select the Neo4j Server in Neo4j Desktop > Click the three dots > SelectOpen Folder
> SelectConf
- Create the file
apoc.conf
- Add the following line to
apoc.conf
:apoc.import.file.enabled=true
.
- Locate the
- Install
- Ensure to allocate enough memory to your database, advised:
dbms.memory.heap.max_size=10G
- Select the Neo4j Server in Neo4j Desktop > Click the three dots > Select
Settings
- Locate
dbms.memory.heap.max_size=512m
- Change
512m
to10G
- Select the Neo4j Server in Neo4j Desktop > Click the three dots > Select
- Configuration;
config.yaml
- Set the URI in
config.yaml
to the URI of your server. Default value isbolt://localhost:7687
. - Set the password in
config.yaml
to the password of your server. Default value is12345678
.
- Set the URI in
We provide data and scripts for BPI Challenge 2017; store the original data in CSV format in the directory /data
.
The datasets are available from:
Esser, Stefan, & Fahland, Dirk. (2020). Event Data and Queries
for Multi-Dimensional Event Data in the Neo4j Graph Database
(Version 1.0) [Data set]. Zenodo.
http://doi.org/10.5281/zenodo.3865222
The library can be installed in Python using pip: pip install promg==2.2.3
.
The source code for PromG can be found PromG Core Github repository.
- Set the configuration in
config.yaml
.- For database settings, see Create a new graph database.
- Set
use_sample
to True/False
- start the Neo4j server
- run main.py
There is one script that creates the Event knowledge graph: main.py
This script imports normalized event table of BPIC17 from CSV files and executes several data modeling queries to construct an event knowledge graph using the semantic header.
- json_files/BPIC17.json - json file that contains the semantic header for BPIC17
- json_files/BPIC17_DS.json - json file that contains a description for the different datasets for BPIC17 (event tables etc)