Example database
We use the following example graph dataset that
consists of User
and City
nodes, Follows
relationships between users,
and LivesIn
relationships between users and cities.
The DDL statements to define the schema of this database, the csv files containing
the records of the tables in the database and the data import (COPY FROM
) commands
are shown below.
User nodes
Schema:
user.csv:
Data import (You need to give full path to user.csv. We assume ${PATH-TO-DIR} is that directory):
City nodes
Schema:
city.csv
Data import:
Follows relationships
Schema:
follows.csv
Data import:
LivesIn relationships
Schema:
lives-in.csv
Data import: