Skip to content

Commit

Permalink
Fix #998
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Feb 23, 2023
1 parent 93140d2 commit d9a8dee
Show file tree
Hide file tree
Showing 7 changed files with 1,075,573 additions and 36 deletions.
8 changes: 8 additions & 0 deletions dataset/snap-berkstan/copy.cypher
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"
8 changes: 8 additions & 0 deletions dataset/snap-berkstan/schema.cypher
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);
Loading

0 comments on commit d9a8dee

Please sign in to comment.