InfraNodus is a web / mobile interface to Neo4J made using Node.Js and Sigma.Js.
Keep track of all the connections using this simple tool that converts natural language into graph (English, Russian and other languages are supported).
Update! You can now visualize your notes (Evernote and Gmail import) or tweets and see how they all connect in a graph.
Watch a Video Demo - a 2-minute introduction
The basic ideas behind InfraNodus are:
- Graph DB model that can suit any purpose.
- Works on desktop and mobile.
- Make it easy to add nodes into a graph through a simple web interface.
- Work with what people already know and use well: #hashtags and @mentions, not nodes and edges.
- Use natural language to enter nodes in a graph (English and Russian morphology is supported)
- Move away from binary edges (e.g. A < - > B) to hyperedges in one statement (e.g. A and B and C or D)
- API and JSON export of all data;
- Twitter, Evernote, Gmail (Notes) import (TODO: gexf, xml, csv upload)
- Make it as lightweight, portable, and standalone as possible;
- Make it as fast as possible;
- Enable people to use ше collaboratively, both locally and over the internet (TODO);
- Your suggestions? (open an issue)
InfraNodus is built on
- Sigma.Js for graph visualization;
- Neo4J for graph database storage (TODO: add support for OrientDB and Titanium);
- Express Node.Js library;
- Node-Neo4J layer;
- Textexture algorithm for text network visualization;
- Help from the people on StackOverflow and Neo4J community;
To use this software you should install Neo4J 2.0 on your local computer. To install Neo4J on a Mac use homebrew (see Neo4J instructions here). For settings, check out How to Set Up Neo4J for InfraNodus. You may also find other wiki pages interesting.
You will also need to have npm Node.Js package manager on your computer and run
in node_modules folder of the project to install all the dependencies.
You might need to manually install ejs rending Node.Js module
npm install ejs
You might also need to manually
npm build node-lemmer
Check out the config.json.sample file and edit it to add your own Evernote and Twitter API credentials. Then rename it to config.json.
The general rationale for the data model used in InfraNodus is outlined in
- Cognitive Network Protocol article (more specific)
- From Cognitive Interfaces to Transcendental Protocols article (more general)
- Graph Database Model Draft detailed description
The main properties of this model are
- There are 5 labels (types) for nodes: Concepts, Statements, Contexts, Users, and Narratives
- Every expression of a user into the system is a Statement
- Example: "#antibiotics can fight #bacteria which are #dangerous for #health" is the user's input. The system creates 4 :Concept nodes from the hashtags inside the :Statement, which is linked to the :Context (by default, "@private") and all those are attached to the :User.
- Types of connections: :TO (between Concepts), :AT (Concepts to Context), :OF (Concepts to Statement), :IN (Statement to Context), :BY (to User)
- Narrative is implemented through creating a :Narrative node, which is linked to from Statements and Concepts by :INTO type of connection (think of :Narrative as another :Context)
- Narrative elements are linked to each other via :THRU type of connection.
This data model enables to create custom views for any kind of data and introduce the idea of narrative into holistic graph views.
This data model is derived from the Cognitive Graph DB Model draft created by Nodus Labs.
The current data model description utilized in InfraNodus app is available in https://github.com/noduslabs/graphdbmodel repository.
InfraNodus can also be used on a mobile.
This open source, free software is available under MIT license. It is provided as is, with no guarantees and no liabilities. You can re-use it as long as you keep this notice inside the code
You are very welcome to join the project!
In some parts the code from the book "Node.js in Action" is used (highly recommended, btw!) (c) 2014 Manning Publications Co. Any source code files provided as a supplement to the book are freely available to the public for download. Reuse of the code is permitted, in whole or in part, including the creation of derivative works, provided that you acknowledge that you are using it and identify the source: title, publisher and year.*