-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-2222] Add Network Visualization #2125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@conker84 Pretty graph! I have one question.
So, what happens when we click 'table` or other visualization icons in the situation? (the screenshot you attached.) |
|
@1ambda the graph is flatten by javascript apis so we can leverage the other visualizations provided by Zeppelin |
|
@conker84 FYI, you can simply just take a GIF using software called LICEcap, and upload it directly here with drag and drop :) |
| * each edge has a label that denotes the type of relationship between its two vertices. | ||
| * each edge has a collection of properties defined by a map from key to value. | ||
|
|
||
| <img src="https://github.com/tinkerpop/gremlin/raw/master/doc/images/graph-example-1.jpg" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sidenote: would be great to support tinkerpop? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any special reason to use github hosted image instead of adding a new one to Zeppelin source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AhyoungRyu sorry i had lost your comment, no there is no special reason (it's taken from the Property Graph Model page), if you think is better I can import the image inside the project
| * "data": the data attached to the edge; | ||
| * "labels": a map (K, V) where K is the node label and V is the color of the node; | ||
| * "directed": (true/false, default false) wich tells if is directed graph or not; | ||
| * "types": a *distinct* list of the edge types of the graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you include a sample of the json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
| <h4>Globals</h4> | ||
| <div class="form-check col-xs-4"> | ||
| <div class="form-group"> | ||
| <label for="{{$id}}_charge">Minumin scale to show node and edge labels</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minumin -> Minimum?
|
I will test and give you feedback soon. |
|
Hi guys any news/feedback? |
|
Hi guys i'm still here, let me know if i can do something to simplify the review! |
|
@jongyoul thanks for the answer, i checked the Spel and the Visualization and i understood they are front-end only. This contribution is a mixed front/back-end becouse it want to provide a set of base api in order to enable graph-databases's exploration (like Neo4j or others) with Zeppelin. |
|
I think this is introducing a new result type from interpreter on the backend side that could be useful for this new Neo4J interpreter and other graph-base ones in the future? |
|
Yes it is! |
|
Really sorry for late reply. I missed notification for a while. |
|
It's just my opinion. Thus, it's ok to use d3
|
|
We are talk about graphdb, the UI is an important part of the PR, as well as the new interpreter apis! |
|
UI can be improved in the following PRs. So it's ok not to resolve the whole things in this PR. |
|
Let me know if you want go ahead with this PR or i have to close it! |
|
Ok! So i'll rebase the code ASAP. |
|
FYI, i didn't mean you have to create other PRs. Others can improve UI. |
|
Done! |
|
@conker84 you should rebase based on master, not other branch. Currently, your change mixed with others. |
|
Is it now ok? |
|
I think i made some error with git commits please can someone help me? |
|
Please rebase it upon apache master branch |
|
Is it now ok? (I don't think so) |
|
Hi, @conker84 Here is failed JOB and looks irrelevant. But could you make CI green? you can click |
|
i tried but it still fails... |
They might be due to flaky tests. You can simply pass them by clicking |
|
It should be ok now |
|
Hi, could you please update me about the status of the review? Thanks! |
|
No news? |
|
@conker84 Hi, I have a question. I'm not sure but classes under org.apache.zeppelin.interpreter.graph is used only for testing it. Can you verify it? If it does, can you move these classes under test? |
|
@jongyoul this contribution is the result of the split of #1582 in two little PR; the classes under |
|
Still no news? |
|
Hi guys, |
|
Oh, I'm so sorry for the late reply. I've missed it. I think you'd better to move those classes into another PR |
|
Thanks, Will merge it after CI become green |
|
Can you make CI green? |
|
looks like everything is green on travis but jenkins isn't picking them up |
|
@felixcheung Yes, I already checked it but I was confused the branch name is master. :-) Thanks |
|
@conker84 I found it's your first contribution. Thank you. |
|
Congrats! And thanks!
|
|
Thank you guys now I'll proceed with the second part of the original PR. The Neo4j's interpreter:) |
|
@conker84 Hi, could you take care this issue might be related without NETWORK viz? <div ng-if="type == 'TABLE' || type == 'NETWORK'" class="btn-group">
<button type="button" class="btn btn-default btn-sm"
ng-repeat="viz in builtInTableDataVisualizationList track by $index"
ng-if="viz.supports.indexOf(type) > -1"
ng-class="{'active' : viz.id == graphMode && !config.helium.activeApp}"
ng-click="switchViz(viz.id)"
tooltip-placement="bottom" uib-tooltip="{{viz.name ? viz.name : ''}}"
ng-bind-html="viz.icon">
</button>
</div> |

What is this PR for?
This issue is about a new network visualization that can leverage the Property Graph Model (https://github.com/tinkerpop/gremlin/wiki/Defining-a-Property-Graph), but also simple graphs in order to provide a set of base apis that can be used by graph dbs (like Neo4j) or graph processing frameworks (like GraphX or Giraph).
What type of PR is it?
[Feature]
Is related to the #1582
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2222
How should this be tested?
You can download this notebook to test the PR
Screenshots (if appropriate)
Video
Questions: