paradite / Graphpedia

:cool: :left_right_arrow: :new: Visualize relationships between terms

Home Page:https://viz.paradite.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Graphpedia

Visualize relationships between terms

For SoC Orbital Programme 2014

image

Setup

neo4j

  • Check that you have the correct neo4j version (2.3.12)
  • deafult neo4j database url at http://localhost:7474
  • set custom neo4j database using environmental variables GRAPHENEDB_URL or NEO4J_URL
  • configuration neo4j database url in models/term.js

docker:

docker run \
    --restart always \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --name neo4j \
    -d \
    neo4j:2.3.12

mongoDB

  • Check that you have the correct mongoDB version (3.0.15):
$ mongod --version
db version v3.0.15
  • default mongoDB database url at mongodb://localhost/passport_local_mongoose
  • set custom mongoDB database url using environmental variables MONGOLAB_URI or MONGOHQ_URL
  • configuration of mongoDB database url in app.js

docker:

docker run --restart always -v $HOME/mongo/db:/data/db -p 27017:27017 --name mongodb -d mongo:3.0.15

Ops

local

DB sync

scp -r ~/neo4j/data <>:~/neo4j

code sync

rsync -a --exclude=node_modules/ ~/workspace/Graphpedia $SERVER_ADDRESS:~

running app

cd Graphpedia/
pm2 start app.js

remote

Setup MongoDB with auth

sudo docker run --restart always -v $HOME/mongo/db:/data/db -p 27017:27017 --name mongodb -d \
    -e MONGO_INITDB_ROOT_USERNAME=<> \
    -e MONGO_INITDB_ROOT_PASSWORD=<> \
    mongo:3.0.15

neo4j

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04

sudo docker run \
    --restart always \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --name neo4j \
    -d \
    neo4j:2.3.12

running app

cd Graphpedia/
pm2 start app.js

TODO List

Non-UI

  • Better data-mining techniques

  • Add category label for generic categories

  • Abstraction of types

    • Done at all levels except jade rendering
  • Add a significance field for the terms for easier suggestions(terms with higher significance will appear more often)

  • Featured terms (Terms with most dependencies or relationships)

  • Handling of synonyms/ merging terms

    • Create a separate model for synonyms and search inside this database before the terms database
  • Modify algorithm to calculate the height of each term in viz panel

UI

  • Prettify the graph

  • Allow user to propose a relationship from an existing term to a new non-exisiting term(by typing the name of the new term)

About

:cool: :left_right_arrow: :new: Visualize relationships between terms

https://viz.paradite.com/


Languages

Language:CSS 59.9%Language:JavaScript 26.3%Language:Pug 13.8%Language:Procfile 0.0%