-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,075,573 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
COPY person FROM "dataset/tinysnb/vPerson.csv" (HEADER=true); | ||
COPY organisation FROM "dataset/tinysnb/vOrganisation.csv"; | ||
COPY movies FROM "dataset/tinysnb/vMovies.csv"; | ||
COPY knows FROM "dataset/tinysnb/eKnows.csv"; | ||
COPY studyAt FROM "dataset/tinysnb/eStudyAt.csv" (HEADER=true); | ||
COPY workAt FROM "dataset/tinysnb/eWorkAt.csv" | ||
COPY meets FROM "dataset/tinysnb/eMeets.csv" | ||
COPY marries FROM "dataset/tinysnb/eMarries.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
create node table person (ID INt64, fName StRING, gender INT64, isStudent BoOLEAN, isWorker BOOLEAN, age INT64, eyeSight DOUBLE, birthdate DATE, registerTime TIMESTAMP, lastJobDuration interval, workedHours INT64[], usedNames STRING[], courseScoresPerTerm INT64[][], PRIMARY KEY (ID)); | ||
create node table organisation (ID INT64, name STRING, orgCode INT64, mark DOUBLE, score INT64, history STRING, licenseValidInterval INTERVAL, rating DOUBLE, PRIMARY KEY (ID)); | ||
create node table movies (name STRING, PRIMARY KEY (name)); | ||
create rel table knows (FROM person TO person, date DATE, meetTime TIMESTAMP, validInterval INTERVAL, comments STRING[], MANY_MANY); | ||
create rel table studyAt (FROM person TO organisation, year INT64, places STRING[], MANY_ONE); | ||
create rel table workAt (FROM person TO organisation, year INT64, MANY_ONE); | ||
create rel table meets (FROM person TO person, MANY_ONE); | ||
create rel table marries (FROM person TO person, usedAddress STRING[], note STRING, ONE_ONE); |
Oops, something went wrong.