SOFTWARE DESIGN PATTERN FOR ADAPTING A GRAPH DATABASE VISUALIZATION SOFTWARE
An adapter retrieves graph data from one or more graph databases and adapts the data to be shown through a visualization tool. The adapter may be used to convert multiple formats of graph data into a format which is readable and useable by the visualization tool. The adapter module may make a connection with a graph database and query the database for particular graph data. Once retrieved, the stream of retrieved graph data may be used to populate a template in Java form. From the template, the visualization tool may provide a visualization of the retrieved data.
1 . A method for visualizing data, comprising:
retrieving data from a database in a first format;
adapting the retrieved data to a second format compatible with a visualization interface; and
providing a visualization based on the retrieved data having the second format.
2 . The method of claim 1 , wherein the database is graph database, the method further comprising:
retrieving a data stream from the graph database; and
populating a template from the data stream.
3 . The method of claim 2 , wherein the visualization is generated based on the template.
4 . The method of claim 2 , wherein the data stream is retrieved based on a query sent to the graph database.
5 . The method of claim 1 , herein the visualization includes one or more nodes.
6 . The method of claim 5 , wherein the visualization includes one or more relationships associated with each of the one or more nodes.
7 . The method of claim 1 , further comprising:
retrieving data from a second database in a third format;
adapting the retrieved data to the second format compatible with a visualization interface; and
providing the visualization based on the data retrieved from the first database having the second format and the second database having the second format.
8 . The method of claim 1 , wherein adapting the retrieved data includes performing a JSON conversion on the received data.
9 . A computer readable storage medium having embodied thereon a program, the program being executable by a processor to visualize data, the method comprising:
retrieving data from a database in a first format;
adapting the retrieved data to a second format compatible with a visualization interface; and
providing a visualization based on the retrieved data having the second format.
10 . The computer readable storage medium of claim 8 , wherein the database is graph database, the method further comprising:
retrieving a data stream from the graph database; and
populating a template from the data stream.
11 . The computer readable storage medium of claim 10 , wherein the visualization is generated based on the template.
12 . The computer readable storage medium of claim 10 , wherein the data stream is retrieved based on a query sent to the graph database.
13 . The computer readable storage medium of claim 8 , wherein the visualization includes one or more nodes.
14 . The computer readable storage medium of claim 13 , wherein the visualization includes one or more relationships associated with each of the one or more nodes.
15 . The computer readable storage medium of claim 8 , further comprising:
retrieving data from a second database in a third format;
adapting the retrieved data to the second format compatible with a visualization interface; and
providing the visualization based on the data retrieved from the first database having the second format and the second database having the second format.
16 . The computer readable storage medium of claim 8 , wherein adapting the retrieved data includes performing a JSON conversion on the received data.
17 . A system for visualizing data, comprising:
a processor;
a memory;
one or more modules stored in memory and executable by the processor to retrieve data from a database in a first format, adapt the retrieved data to a second format compatible with a visualization interface, and provide a visualization based on the retrieved data having the second format.
18 . The system of claim 17 , wherein the database is graph database, the one or more modules further executable to retrieve a data stream from the graph database and populate a template from the data stream.
19 . The system of claim 18 , wherein the visualization is generated based on the template.
20 . The system of claim 18 , wherein the data stream is retrieved based on a query sent to the graph database.
21 . The system of claim 17 , herein the visualization includes one or more nodes.
22 . The system of claim 21 , wherein the visualization includes one or more relationships associated with each of the one or more nodes.
23 . The system of claim 17 , the one or more modules further executable to retrieve data from a second database in a third format, adapt the retrieved data to the second format compatible with a visualization interface, and provide the visualization based on the data retrieved from the first database having the second format and the second database having the second format.
24 . The system of claim 17 , wherein adapting the retrieved data includes performing a JSON conversion on the received data.