Visualize Output of Paragraphs
If a paragraph returns data rows separated by \n
(newline) and columns separated by \t
(tab) with the first row as the header row, Graph Studio will render the result visually.
In addition to table-based visualization, the results of PGQL queries
can be rendered using graph visualization. %pgql-pgx
paragraphs
will be rendered as graph visualization automatically, if possible.
The following example shows the Java and the Python interpreter using a helper object to generate graph visualization output:
out.println(visualQuery.queryPgql("SELECT v,e,m FROM MATCH (v)-[e]->(m) ON SH LIMIT 50"))
print(visual_query.query_pgql("SELECT v, e, m FROM MATCH (v)-[e]->(m) ON SH LIMIT 50"))
Only a subset of queries can be visualized. If a query cannot be visualized, the notebook will render the result set as a table instead.