SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Simple Way for Neo4j Visualization
Ramazan FIRIN
29.01.2014

This document is intended for only AVEA İletiƟim Hizmetleri A.ƞ.("AVEA"), its dealers, employees and/or others specifically authorised. The contents of this document are
confidential and any disclosure, copying, distribution and/or taking any action in reliance with the content of this document is prohibited. AVEA is not liable for the transmission
of this document in any manner to any third parties that are not authorised to receive.
AGENDA
‱

Why visulation?

‱

How visulation ?

‱

Very simple way for Neo4j visulation

2
Why Visulation?

‱

To capture knowledge from graph

‱

To understand relationships

‱

To see, what you have been missing

‱

For more beatiful view

Avea

3

3R&D /MW Developement
How Visulation? - Gephi

‱
Avea

Gephi
4

4R&D /MW Developement
How Visulation? – Sigma.js

Sigma.js
Avea

5

5R&D /MW Developement
How Visulation? – Processing.js

Processing.js
Avea

6

6R&D /MW Developement
How Visulation? – D3.js

D3.js
Avea

7

7R&D /MW Developement
Perfect Blog for visulation-maxdemarzi.com
‱

Avea

Follow this page

8

8R&D /MW Developement
We need Ruby?

‱

All samples on internet need ruby..

‱

We really need it?....

Avea

9

9R&D /MW Developement
Which component we need?

For samples senario, a few component is enough,
‱

An html page to Show graph

‱

And a datasource..(neo4j)

‱

A web server for html file (if you want to serve by web)

Avea

10

10R&D /MW Developement
Which component we need for html?

‱

A graph library to draw graph

‱

A library to pull data from server by ajax (jquery is perfect)

Avea

11

11R&D /MW Developement
Which properties we need for visulation?
‱

For most cases, three components are enough

1.

Properties of node

2.

Relations of nodes

3.

Properties of relationship

Avea

12

12R&D /MW Developement
How can we pull properties from Neo4j?
Ä°f you have id of node, you can pull all data by Rest..
"outgoing_relationships"

: "http://localhost:7474/db/data/node/284/relationships/out",

"traverse"

: "http://localhost:7474/db/data/node/284/traverse/{returnType}",

"all_typed_relationships"

: "http://localhost:7474/db/data/node/284/relationships/all/{-list|&|types}",

"property"

: "http://localhost:7474/db/data/node/284/properties/{key}",

"all_relationships"

: "http://localhost:7474/db/data/node/284/relationships/all",

"self«

: "http://localhost:7474/db/data/node/284",

"properties"

: "http://localhost:7474/db/data/node/284/properties",

"outgoing_typed_relationships"

: "http://localhost:7474/db/data/node/284/relationships/out/{-list|&|types}",

"incoming_relationships«

: "http://localhost:7474/db/data/node/284/relationships/in",

"incoming_typed_relationships« : "http://localhost:7474/db/data/node/284/relationships/in/{-list|&|types}",
"create_relationship"

: "http://localhost:7474/db/data/node/284/relationships",

"data"

:{

"properties-returnCodes" : "0, 9998, 9999",

}

Avea

13

13R&D /MW Developement
Solution – Vivagraph.js

Special solution for graph visulation
‱

Simple

‱

Good examples

‱

Opensource

‱

https://github.com/anvaka/VivaGraphJS

Avea

14

14R&D /MW Developement
Sample code
 Show graph
Code

Output

function main () {
// Step 1. We create a graph object.

var graph = Viva.Graph.graph();

graph.addNode(1);
graph.addNode(2);
graph.addLink(1, 2);

// Step 3. Render the graph.

var renderer = Viva.Graph.View.renderer(graph);
renderer.run();

Avea

15

15R&D /MW Developement
Sample Code - Draw Node..
graphics.node(function(node) {

$(ui).click(function() {

var ui = Viva.Graph.svg('g'),

getProperties(node.id, true);
});

On click event :
get all properties

img = Viva.Graph.svg('image')
.attr('width', nodeSize)

$(ui).dblclick(function() { // mouse over

.attr('height', nodeSize)

getOutRelation(node.id, true);

.link('./computer.png');

getInRelation(node.id, true);

});
ui.append(img);

return ui;
Draw a Picture
to Show node

Avea

})

16

on double click event:
Get incoming and
outgoing relations

16R&D /MW Developement
Sample Code - getOutRelation

$.get( out.end, function( dataEnd ) {
getOutRelation = function(nodeId, isOn) {

//alert(id + "-"+dataEnd.data.name);

// alert("getAllrelation");

var name;

var out;

var localId;

var res ;
var id ;

Get name of
node for each
relation

if (dataEnd.data.name){
name = dataEnd.data.name;

$.get( "localhost:7474/db/data/node/"+nodeId+"/relationships/out", function(
data ) {

var values = dataEnd.self.split("/");
localId = values[6];
}

for(var index in data) {
out = data[index];
res = out.end.split("/");
id = res[6];

graph.addNode(localId,name);

Get outgoing
relation list

graph.addLink(nodeId, localId);
});
};

Create new

node and
relation
Mercedes-Benz TĂŒrk A.ƞ.

17

R&D /MW Developement
Sample Code - getAllProperties
Get all
propertie
s

getProperties = function(nodeId, isOn) {

$('#explanation').html("");
$.get( "http://10.248.68.88:7474/db/data/node/"+nodeId+"/properties", function( data ) {
for(var key in data) {
var val = data[key];
$('#explanation').append(key+"="+val+"<br></br>");
}
});
};

Mercedes-Benz TĂŒrk A.ƞ.

Add to div for
each properties

18

R&D /MW Developement
Output

You can check out codes from:

https://github.com/ramazanfirin/neo4visulationVivagraph/
Avea

19

19R&D /MW Developement
Thanks

20

Weitere Àhnliche Inhalte

Ähnlich wie Simple Way for Neo4j Visualization

Real life-maf-2015
Real life-maf-2015Real life-maf-2015
Real life-maf-2015Luc Bors
 
OWASP, PHP, life and universe
OWASP, PHP, life and universeOWASP, PHP, life and universe
OWASP, PHP, life and universeSebastien Gioria
 
2014 06-05-mozilla-afup
2014 06-05-mozilla-afup2014 06-05-mozilla-afup
2014 06-05-mozilla-afupSebastien Gioria
 
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013The World Bank
 
Logstash - CeBIT 2014 - Open Source Forum
Logstash - CeBIT 2014 - Open Source ForumLogstash - CeBIT 2014 - Open Source Forum
Logstash - CeBIT 2014 - Open Source ForumNETWAYS
 
Single Sign-On for APEX apps (Important: latest version on edocr!)
Single Sign-On for APEX apps (Important: latest version on edocr!)Single Sign-On for APEX apps (Important: latest version on edocr!)
Single Sign-On for APEX apps (Important: latest version on edocr!)Niels de Bruijn
 
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & TricksPennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & TricksJeff Smith
 
Rapid prototyping with solr - By Erik Hatcher
Rapid prototyping with solr -  By Erik Hatcher Rapid prototyping with solr -  By Erik Hatcher
Rapid prototyping with solr - By Erik Hatcher lucenerevolution
 
Simple Web Apps With Sinatra
Simple Web Apps With SinatraSimple Web Apps With Sinatra
Simple Web Apps With Sinatraa_l
 
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouHTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouDavid Delabassee
 
Biwa summit 2015 oaa oracle data miner hands on lab
Biwa summit 2015 oaa oracle data miner hands on labBiwa summit 2015 oaa oracle data miner hands on lab
Biwa summit 2015 oaa oracle data miner hands on labCharlie Berger
 
Mysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMark Leith
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on RailsDiki Andeas
 
20160308 apex sso
20160308 apex sso20160308 apex sso
20160308 apex ssoMT AG
 
Programming with Azure Active Directory
Programming with Azure Active DirectoryProgramming with Azure Active Directory
Programming with Azure Active DirectoryJoonas Westlin
 

Ähnlich wie Simple Way for Neo4j Visualization (20)

Scim overview
Scim overviewScim overview
Scim overview
 
Real life-maf-2015
Real life-maf-2015Real life-maf-2015
Real life-maf-2015
 
OWASP, PHP, life and universe
OWASP, PHP, life and universeOWASP, PHP, life and universe
OWASP, PHP, life and universe
 
2014 06-05-mozilla-afup
2014 06-05-mozilla-afup2014 06-05-mozilla-afup
2014 06-05-mozilla-afup
 
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013
Prospectus: Cloud, Mobility and Interopability - AMIK Bandung Sept 2013
 
Logstash - CeBIT 2014 - Open Source Forum
Logstash - CeBIT 2014 - Open Source ForumLogstash - CeBIT 2014 - Open Source Forum
Logstash - CeBIT 2014 - Open Source Forum
 
Single Sign-On for APEX apps (Important: latest version on edocr!)
Single Sign-On for APEX apps (Important: latest version on edocr!)Single Sign-On for APEX apps (Important: latest version on edocr!)
Single Sign-On for APEX apps (Important: latest version on edocr!)
 
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & TricksPennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
Pennsylvania Banner User Group Webinar: Oracle SQL Developer Tips & Tricks
 
Rapid Prototyping with Solr
Rapid Prototyping with SolrRapid Prototyping with Solr
Rapid Prototyping with Solr
 
Rapid prototyping with solr - By Erik Hatcher
Rapid prototyping with solr -  By Erik Hatcher Rapid prototyping with solr -  By Erik Hatcher
Rapid prototyping with solr - By Erik Hatcher
 
Simple Web Apps With Sinatra
Simple Web Apps With SinatraSimple Web Apps With Sinatra
Simple Web Apps With Sinatra
 
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouHTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
 
Biwa summit 2015 oaa oracle data miner hands on lab
Biwa summit 2015 oaa oracle data miner hands on labBiwa summit 2015 oaa oracle data miner hands on lab
Biwa summit 2015 oaa oracle data miner hands on lab
 
LOD2 Webinar: SIREn
LOD2 Webinar: SIREnLOD2 Webinar: SIREn
LOD2 Webinar: SIREn
 
Mysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sysMysql tech day_paris_ps_and_sys
Mysql tech day_paris_ps_and_sys
 
Android networking-2
Android networking-2Android networking-2
Android networking-2
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Rails
 
20160308 apex sso
20160308 apex sso20160308 apex sso
20160308 apex sso
 
The Open Web
The Open WebThe Open Web
The Open Web
 
Programming with Azure Active Directory
Programming with Azure Active DirectoryProgramming with Azure Active Directory
Programming with Azure Active Directory
 

KĂŒrzlich hochgeladen

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 

KĂŒrzlich hochgeladen (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 

Simple Way for Neo4j Visualization

  • 1. Simple Way for Neo4j Visualization Ramazan FIRIN 29.01.2014 This document is intended for only AVEA Ä°letiƟim Hizmetleri A.ƞ.("AVEA"), its dealers, employees and/or others specifically authorised. The contents of this document are confidential and any disclosure, copying, distribution and/or taking any action in reliance with the content of this document is prohibited. AVEA is not liable for the transmission of this document in any manner to any third parties that are not authorised to receive.
  • 2. AGENDA ‱ Why visulation? ‱ How visulation ? ‱ Very simple way for Neo4j visulation 2
  • 3. Why Visulation? ‱ To capture knowledge from graph ‱ To understand relationships ‱ To see, what you have been missing ‱ For more beatiful view Avea 3 3R&D /MW Developement
  • 4. How Visulation? - Gephi ‱ Avea Gephi 4 4R&D /MW Developement
  • 5. How Visulation? – Sigma.js Sigma.js Avea 5 5R&D /MW Developement
  • 6. How Visulation? – Processing.js Processing.js Avea 6 6R&D /MW Developement
  • 7. How Visulation? – D3.js D3.js Avea 7 7R&D /MW Developement
  • 8. Perfect Blog for visulation-maxdemarzi.com ‱ Avea Follow this page 8 8R&D /MW Developement
  • 9. We need Ruby? ‱ All samples on internet need ruby.. ‱ We really need it?.... Avea 9 9R&D /MW Developement
  • 10. Which component we need? For samples senario, a few component is enough, ‱ An html page to Show graph ‱ And a datasource..(neo4j) ‱ A web server for html file (if you want to serve by web) Avea 10 10R&D /MW Developement
  • 11. Which component we need for html? ‱ A graph library to draw graph ‱ A library to pull data from server by ajax (jquery is perfect) Avea 11 11R&D /MW Developement
  • 12. Which properties we need for visulation? ‱ For most cases, three components are enough 1. Properties of node 2. Relations of nodes 3. Properties of relationship Avea 12 12R&D /MW Developement
  • 13. How can we pull properties from Neo4j? Ä°f you have id of node, you can pull all data by Rest.. "outgoing_relationships" : "http://localhost:7474/db/data/node/284/relationships/out", "traverse" : "http://localhost:7474/db/data/node/284/traverse/{returnType}", "all_typed_relationships" : "http://localhost:7474/db/data/node/284/relationships/all/{-list|&|types}", "property" : "http://localhost:7474/db/data/node/284/properties/{key}", "all_relationships" : "http://localhost:7474/db/data/node/284/relationships/all", "self« : "http://localhost:7474/db/data/node/284", "properties" : "http://localhost:7474/db/data/node/284/properties", "outgoing_typed_relationships" : "http://localhost:7474/db/data/node/284/relationships/out/{-list|&|types}", "incoming_relationships« : "http://localhost:7474/db/data/node/284/relationships/in", "incoming_typed_relationships« : "http://localhost:7474/db/data/node/284/relationships/in/{-list|&|types}", "create_relationship" : "http://localhost:7474/db/data/node/284/relationships", "data" :{ "properties-returnCodes" : "0, 9998, 9999", } Avea 13 13R&D /MW Developement
  • 14. Solution – Vivagraph.js Special solution for graph visulation ‱ Simple ‱ Good examples ‱ Opensource ‱ https://github.com/anvaka/VivaGraphJS Avea 14 14R&D /MW Developement
  • 15. Sample code
 Show graph Code Output function main () { // Step 1. We create a graph object. var graph = Viva.Graph.graph(); graph.addNode(1); graph.addNode(2); graph.addLink(1, 2); // Step 3. Render the graph. var renderer = Viva.Graph.View.renderer(graph); renderer.run(); Avea 15 15R&D /MW Developement
  • 16. Sample Code - Draw Node.. graphics.node(function(node) { $(ui).click(function() { var ui = Viva.Graph.svg('g'), getProperties(node.id, true); }); On click event : get all properties img = Viva.Graph.svg('image') .attr('width', nodeSize) $(ui).dblclick(function() { // mouse over .attr('height', nodeSize) getOutRelation(node.id, true); .link('./computer.png'); getInRelation(node.id, true); }); ui.append(img); return ui; Draw a Picture to Show node Avea }) 16 on double click event: Get incoming and outgoing relations 16R&D /MW Developement
  • 17. Sample Code - getOutRelation $.get( out.end, function( dataEnd ) { getOutRelation = function(nodeId, isOn) { //alert(id + "-"+dataEnd.data.name); // alert("getAllrelation"); var name; var out; var localId; var res ; var id ; Get name of node for each relation if (dataEnd.data.name){ name = dataEnd.data.name; $.get( "localhost:7474/db/data/node/"+nodeId+"/relationships/out", function( data ) { var values = dataEnd.self.split("/"); localId = values[6]; } for(var index in data) { out = data[index]; res = out.end.split("/"); id = res[6]; graph.addNode(localId,name); Get outgoing relation list graph.addLink(nodeId, localId); }); }; Create new node and relation Mercedes-Benz TĂŒrk A.ƞ. 17 R&D /MW Developement
  • 18. Sample Code - getAllProperties Get all propertie s getProperties = function(nodeId, isOn) { $('#explanation').html(""); $.get( "http://10.248.68.88:7474/db/data/node/"+nodeId+"/properties", function( data ) { for(var key in data) { var val = data[key]; $('#explanation').append(key+"="+val+"<br></br>"); } }); }; Mercedes-Benz TĂŒrk A.ƞ. Add to div for each properties 18 R&D /MW Developement
  • 19. Output You can check out codes from: https://github.com/ramazanfirin/neo4visulationVivagraph/ Avea 19 19R&D /MW Developement

Hinweis der Redaktion

  1. This template can be used as a starter file to give updates for project milestones.SectionsRight-click on a slide to add sections. Sections can help to organize your slides or facilitate collaboration between multiple authors.NotesUse the Notes section for delivery notes or to provide additional details for the audience. View these notes in Presentation View during your presentation. Keep in mind the font size (important for accessibility, visibility, videotaping, and online production)Coordinated colors Pay particular attention to the graphs, charts, and text boxes.Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale.Graphics, tables, and graphsKeep it simple: If possible, use consistent, non-distracting styles and colors.Label all graphs and tables.
  2. What is the project about?Define the goal of this projectIs it similar to projects in the past or is it a new effort?Define the scope of this projectIs it an independent project or is it related to other projects?* Note that this slide is not necessary for weekly status meetings
  3. Duplicate this slide as necessary if there is more than one issue.This and related slides can be moved to the appendix or hidden if necessary.