11.1 Using Sample Data for Graph Analysis
The rpm installation of the graph server provides you with sample graph data which
can be used for graph analysis. You can access this sample graph data either in
/opt/oracle/graph/data
or
<client_dir>/data
directory.
The bank_graph
folder contains data that represent the
vertices and edges of a graph in bank_nodes.csv
and
bank_edges_amt.csv
files respectively. You can import the graph
data from these .csv
files into the database. You can then create a
graph for querying and analyses.
11.1.1 Importing Data from CSV Files
-
See Data Import Wizard in Oracle SQL Developer User's Guide on how to import data from files into tables.
- See Oracle Database Utilities for more information on data transfer utilities.
The following instructions enable you to load data into the database tables using Oracle SQL Loader.
bank_accounts
) and edge
(bank_txns
) tables in the database:CREATE TABLE bank_accounts(id NUMBER, name VARCHAR2(10));
CREATE TABLE bank_txns(from_acct_id NUMBER, to_acct_id NUMBER, description VARCHAR2(10), amount NUMBER);
You can then perform the following steps to load the data:
Parent topic: Using Sample Data for Graph Analysis