All Projects → entrepreneur-interet-general → graph-explorer

entrepreneur-interet-general / graph-explorer

Licence: MIT License
Graph Explorer

Programming Languages

Vue
7211 projects
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
groovy
2714 projects
Dockerfile
14818 projects
CSS
56736 projects

Projects that are alternatives of or similar to graph-explorer

React D3 Graph
Interactive and configurable graphs with react and d3 effortlessly
Stars: ✭ 541 (+1903.7%)
Mutual labels:  network-visualization, d3js
jelass
Janus + Elastic Search + Cassandra docker container with SSL Client Certificates implemented.
Stars: ✭ 13 (-51.85%)
Mutual labels:  gremlin, janusgraph
Particles
A particle simulation engine based on a port of d3-force
Stars: ✭ 104 (+285.19%)
Mutual labels:  network-visualization, d3js
janusgraph-python
JanusGraph Python Gremlin Language Variant (GLV)
Stars: ✭ 17 (-37.04%)
Mutual labels:  gremlin, janusgraph
janusgraph-docker
Yet another JanusGraph, Cassandra/Scylla and Elasticsearch in Docker Compose setup
Stars: ✭ 54 (+100%)
Mutual labels:  gremlin, janusgraph
janusgraph-dotnet
JanusGraph .NET Gremlin Language Variant (GLV)
Stars: ✭ 18 (-33.33%)
Mutual labels:  gremlin, janusgraph
meshviewer
Meshviewer - more in the README
Stars: ✭ 37 (+37.04%)
Mutual labels:  network-visualization
meet-the-fans
Query and Visualize the network graph of your GitHub repositories, followers, stargazers, and forks.
Stars: ✭ 22 (-18.52%)
Mutual labels:  d3js
hiccup-d3
D3-Charts written in Clojure
Stars: ✭ 74 (+174.07%)
Mutual labels:  d3js
upsetjs
😠 UpSet.js - a set visualization library for rendering UpSet Plots (a JavaScript re-implementation of UpSet(R) by Lex et al), Euler Diagrams, Venn Diagrams, and Karnaugh Maps
Stars: ✭ 62 (+129.63%)
Mutual labels:  d3js
d3-boxplot
d3js box plot plugin
Stars: ✭ 21 (-22.22%)
Mutual labels:  d3js
turkeyvisited
Mark the cities you have visited in Turkey and share the map!
Stars: ✭ 82 (+203.7%)
Mutual labels:  d3js
CS231n
My solutions for Assignments of CS231n: Convolutional Neural Networks for Visual Recognition
Stars: ✭ 30 (+11.11%)
Mutual labels:  network-visualization
d3-cv.js
Render your CV with some d3 goodies.
Stars: ✭ 12 (-55.56%)
Mutual labels:  d3js
d3.geometer
[NOT MAINTAINED] A D3js library for drawing polytopes, angles, coordinates, geometries and more.
Stars: ✭ 18 (-33.33%)
Mutual labels:  d3js
taipei-house-age-map
利用台北市政府開放的建築使用執照資料,製作台北市屋齡地圖
Stars: ✭ 28 (+3.7%)
Mutual labels:  d3js
billboard
🎤 Lyrics/associated NLP data for Billboard's Top 100, 1950-2015.
Stars: ✭ 53 (+96.3%)
Mutual labels:  d3js
obvz
org-brain visualization via PyQt
Stars: ✭ 64 (+137.04%)
Mutual labels:  network-visualization
treemap-chart
A treemap interactive chart web component for visualizing hierarchical data
Stars: ✭ 27 (+0%)
Mutual labels:  d3js
rcvis
Understandable visualizations for Ranked-Choice Voting elections: sankey, bargraphs, tabular formats, and automatically-generated videos with text-to-speech using AWS Polly.
Stars: ✭ 13 (-51.85%)
Mutual labels:  d3js

Graph Explorer

Visualize and explore a large graph of money transactions.

architecture

Table of Contents

Architecture

  • JanusGraph 0.2.1
  • ScyllaDB 2.2.0 (storage backend for JanusGraph)
  • Elasticsearch 6.0.1 (index backend for JanusGraph)
  • Python Flask server
  • Vue.js
  • d3.js v4 force layout

architecture

Demo

Start exploring the graph from any node (e.g. with Amanda Walker) https://graph-explorer.fr

Installation

Prerequisites

  • Docker CE >= 1.13.0
  • docker-compose >= 1.10.0

Below is a step by step guide explaining how to install the app with sample data. If you want to run it with your own data, just replace the following files with your owns:

  • janus/data/nodes.csv
  • janus/data/links.csv
  • logstash/data/transactions.csv

Data directories for Elasticsearch and ScyllaDB will be mounted in the PROJECT_HOME/data.

The different services in the docker-compose setup need to be started in a specific order. wait-for-it.sh mechanisms (or alike) could be implemented in the future to allow running all the services in a one line command like docker-compose --build up.

Steps

  1. Clone the repository
> git clone  [email protected]:entrepreneur-interet-general/graph-explorer.git
> cd graph-explorer
  1. Download and build Docker images
> docker-compose build
  1. Create data directories
mkdir -p data/elasticsearch data/scylla
chown -R 1000:1000 data/elasticsearch
  1. Start Elasticsearch
> docker-compose up -d elasticsearch
  1. Wait for Elasticsearch to be available on port 9200
> curl localhost:9200/_cat/health
docker-cluster yellow 1 1 6 6 0 0 6 0 - 50.0%
  1. Start ScyllaDB
> docker-compose up -d scylladb
  1. Wait for ScyllaDB to be available
> docker-compose exec scylladb nodetool status
--  Address     Load       Tokens       Owns    Host ID                               Rack
UN  172.22.0.3  1.07 MB    256          ?       c961595a-ee52-4f94-baf3-74cdc5058af6  rack1
  1. Start JanusGraph
> docker-compose up -d janus

If a previous janus container has not been shut down correctly, you might get the following error:

A JanusGraph graph with the same instance id [*] is already open. Might required forced shutdown.

In this case you can run a cleanup script and then restart the janus container.

> docker-compose run --no-deps janus bin/gremlin.sh -e scripts/clean.groovy
  1. Wait for JanusGraph to be available on port 8182
> curl -XPOST -d '{"gremlin" : "1+1" }' localhost:8182
{"result":{"data":[2],"meta":{}}}
  1. Create the graph schema and load nodes and edges into JanusGraph (do it only the first time or after deleting the data directory)
> docker-compose exec janus bin/gremlin.sh -e scripts/create_schema.groovy
> docker-compose exec janus bin/gremlin.sh -e scripts/load_data.groovy
  1. Checks that nodes and edges have been loaded
> curl -XPOST -d '{"gremlin" : "g.V().count()" }' localhost:8182
{"result":{"data":[1606],"meta":{}}}

> curl -XPOST -d '{"gremlin" : "g.E().count()" }' localhost:8182
{"result":{"data":[2156],"meta":{}}}
  1. Load raw transactions into Elasticsearch (do it only the first time or after deleting the data directoy)
> docker-compose up -d logstash
  1. Check that transactions have been loaded in the transactions index
> curl localhost:9200/transactions/doc/_count
{"count":2156,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0}}
  1. Start the Flask server with Gunicorn
docker-compose up -d app

Development

Run the tests

  • Unit tests
make test_unit
  • Integration tests requiring ScyllaDB, Elasticsearch and Janus to be up and running with data loaded from steps 10 and 12
make test_integration

Flask server

  • Start Elasticsearch, ScyllaDB and JanusGraph with docker-compose as described in the installation steps.
  • Create a vitualenv for this project with Python version 3.6.0 or higher.
  • Install the dependencies
pip install -r requirements.txt
  • Run Flask in development mode. This will reload the server on code changes.
FLASK_APP=api.app.py FLASK_ENV='development' CONFIG='api.config.Development' python -m flask run

Frontend

  • Make sure to use a version of nodejs higher than 8.0.0. We recomand using nvm.
  • Install the dependencies
npm install
  • The project is built using webpack into the file local/build.js.
  • Build the source once with:
npm run build
  • Or watch for file changes with:
npm run watch

Visit http://localhost:5000 and start coding!

Credits

Please visit the Hopkins mission page for more information.

License

MIT License

Copyright (c) 2018 Ministère de l'Action et des Comptes Publics, Benoît Guigal, Paul Boosz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].