- Docker
- Docker Compose
- A CSKG release
If the neo4j database is empty, the application Docker container looks for data in the container's /data
directory. The docker-compose.yml
mounts the data/kg
directory in this repository (on the host) to /data
in the container.
Currently the data must be in in KGTK edges format and have the file extension .tsv
or .tsv.bz2
:
mv ~/cskg.tsv ./data/kg
Progress messages will be printed to the application console as the data loads asynchronously. The loading process currently (20201015) takes around 50 minutes.
The latest stable build is available on DockerHub.
In the current directory:
docker-compose pull kg-app
In the current directory:
docker-compose up kg-app neo4j
The Docker setup uses Neo4j Community Edition. The only way to quickly and reliably clear a Community Edition database is to stop the neo4j container and delete its backing data. There is a script to do this:
script/delete-neo4j-data
After starting the application and loading the data, open your browser to http://localhost:8080.
The navbar searchbox searches for nodes using full-text search. By default it searches across all of a node's indexed attributes, which currently (2020601) include:
- id
- source
- label
You can specify Lucene-style queries such as id:"someid"
or source:somedatasource
or some combination thereof.