-
Notifications
You must be signed in to change notification settings - Fork 6
/
datasets.json
55 lines (54 loc) · 2.64 KB
/
datasets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"traversalGraph": {
"create": "~examples.loadGraph('traversalGraph');",
"remove": "~examples.dropGraph('traversalGraph');"
},
"kShortestPathsGraph": {
"create":
"~examples.loadGraph('kShortestPathsGraph');",
"remove":
"~examples.dropGraph('kShortestPathsGraph');"
},
"mps_graph": {
"create":
"~examples.loadGraph('mps_graph');",
"remove":
"~examples.dropGraph('mps_graph');"
},
"knows_graph": {
"create":
"~examples.loadGraph('knows_graph');",
"remove":
"~examples.dropGraph('knows_graph');"
},
"routeplanner": {
"create":
"~examples.loadGraph('routeplanner');",
"remove":
"~examples.dropGraph('routeplanner');"
},
"connectedComponentsGraph": {
"create":
"~examples.loadGraph('connectedComponentsGraph');",
"remove":
"~examples.dropGraph('connectedComponentsGraph');"
},
"joinSampleDataset": {
"create":
"~db._create('users');db._create('relations');[ [1, 'Abigail', true ],[2, 'Fred', true ],[3, 'Mary', true ],[4, 'Mariah', true ],[5, 'John', false]].forEach(function (v) {db.users.save( {key: v[1],name: v[1],active: v[2],userId: v[0]});});[[1,2,'friend'],[1,3,'friend'],[1,4,'friend'],[2,5,'friend'],[2,2,'friend'],[3,4,'friend'],[3,1,'friend'],[4,1,'friend'],[4,2,'friend']].forEach(function (v) {db.relations.save( {type: v[2],friendOf: v[0],thisUser: v[1]});});",
"remove":
"~try {db._drop('users');} catch (e) {}try {db._drop('relations');} catch (e) {}"
},
"observationsSampleDataset": {
"create":
"~db._create('observations');db.observations.save([{ 'time': '2021-05-25 07:00:00', 'subject': 'st113', 'val': 10 },{ 'time': '2021-05-25 07:15:00', 'subject': 'st113', 'val': 9 },{ 'time': '2021-05-25 07:30:00', 'subject': 'st113', 'val': 25 },{ 'time': '2021-05-25 07:45:00', 'subject': 'st113', 'val': 20 },{ 'time': '2021-05-25 07:00:00', 'subject': 'xh458', 'val': 0 },{ 'time': '2021-05-25 07:15:00', 'subject': 'xh458', 'val': 10 },{ 'time': '2021-05-25 07:30:00', 'subject': 'xh458', 'val': 5 },{ 'time': '2021-05-25 07:45:00', 'subject': 'xh458', 'val': 30 },{ 'time': '2021-05-25 08:00:00', 'subject': 'xh458', 'val': 25 },]);",
"remove":
"~try {db._drop('observations');} catch (e) {}"
},
"usersDataset": {
"create":
"~let u = user_examples.createUsers('users');let r = user_examples.createRegions('regions');user_examples.createLocations('locations', u);",
"remove":
"~try {db._drop('users');db._drop('regions');db._drop('locations');} catch (e) {}"
}
}