Is it possible to visualize the output of a graph query (Gremlin or SPARQL) as nodes and edges in Amazon Neptune? [closed]
Asked Answered
B

4

16

GREMLIN and SPARQL only define the APIs for graph queries. How do I use the API responses and and plot that as an actual graph, with edges and vertices? Is there something like MySQL Workbench for graphs?

Benevento answered 17/10, 2018 at 5:47 Comment(0)
B
16

UPDATE: As of Nov 2019, Neptune launched Workbench, which is a Jupyter based visualization for Gremlin and SPARQL.

UPDATE: As of Aug 2020, Neptune Workbench extended support for visualizing graph data as nodes and edges in addition to tabular representation that was previously supported.

https://aws.amazon.com/about-aws/whats-new/2019/12/amazon-neptune-workbench-provides-in-console-experience-to-query-your-graph/

https://aws.amazon.com/about-aws/whats-new/2020/08/amazon-neptune-announces-graph-visualization-in-neptune-workbench/

Neptune Workbench basically is a Sagemaker instance preconfigured with extensions to help execute Gremlin and SPARQL queries, as well as other Neptune APIs like /loader, /status etc. You can easily create these notebooks from the Neptune console. There are no additional charges for the workbench, apart from the Sagemaker costs incurred by the notebook. These notebooks do support Start and Stop APIs, thereby making it possible for you to enable them only when you need it.

A very recent blog post walking you through some of the features: https://aws.amazon.com/blogs/database/visualize-query-results-using-the-amazon-neptune-workbench/

SPARQL: SPARQL1 Sparql Query GREMLIN: Gremlin1 Gremlin2 Gremlin Query

Benevento answered 17/10, 2018 at 5:47 Comment(4)
Did you find any javascript or iOS & Android SDK view giving the dataset back from Neptune, it can automatically display?Schweinfurt
I'm afraid not, I've not exored those at all. Do let me know if you find something interesting!Benevento
As of August 2020, the Neptune Workbench now has built in visualization capabilities what allow you to visualize the results of a query/traversal for both SPARQL and Gremlin similar to the other tools listed in this post. aws.amazon.com/about-aws/whats-new/2020/08/…Tampon
Other generic graph visualization options that people have used are: 1. [GraphExp] 2. [Tom Sawyer Software] 3. [Cambridge Intelligence / Keylines] 4. [Metaphactory] 5. [Arcade] 6. [Graphileon] github.com/bricaud/graphexp tomsawyer.com/aws-amazon-neptune-visualization cambridge-intelligence.com/… metaphacts.com/amazon-neptune arcadeanalytics.com/amazon-neptune-hands-on graphileon.comBenevento
T
5

This is a tool (like how neo4j visualize) I've created to visualize gremlin queries. You should execute a query to get a set of nodes and it will show you how those nodes are getting connected. You can execute multiple queries and results would add up to the existing graph until you clear the graph. You can also click on a node/edge to see the properties or traverse in/out. Give it a go!

https://github.com/prabushitha/gremlin-visualizer

enter image description here

Telegonus answered 5/12, 2019 at 4:48 Comment(0)
D
2

AWS Neptune does not have any built-in visualization tools. The tools mentioned above work, but are commercial and require some setup. Here is how I do it using Gremlin.

g.V() // returns list of vertices
g.E() // returns list of edges

Form the output of those two queries to create a string that is in DOT format and the visualize using the graphviz application or with javascript.

Davina answered 4/1, 2019 at 20:11 Comment(0)
C
1

You can now use the Neptune Workbench to visualize graphs using Gremlin or SPARQL queries.

https://aws.amazon.com/about-aws/whats-new/2020/08/amazon-neptune-announces-graph-visualization-in-neptune-workbench/

Colourable answered 21/8, 2020 at 16:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.