Using Sample Graph Data
The rpm installation of the graph server provides you with sample graph data which can be used for graph analysis.
-
Navigate to
/opt/oracle/graph/dataor<client_dir>/datadirectory.The
bank_graphfolder contains the following.sqlfiles for setting up the sample graph data:-bank_graph.sql,bank_accounts.sql, andbank_transfers.sql. -
Ensure that you have the required privileges to create a SQL property graph.
See Granting System and Object Privileges for SQL Property Graphs for more information.
-
Run
bank_graph.sqlin the required schema.@/opt/oracle/graph/data/bank_graph/bank_graph.sqlThe script performs the following:
-
Creates the
BANK_ACCOUNTStable, sets the primary key constraint, and populates the table with the graph vertex data. -
Creates the
BANK_TRANSFERStable, sets the primary and foreign key constraints, and populates the table with the graph edge data. -
Creates a SQL property graph named
bank_graph.
-