Datasets:

Tasks:
Other
Languages:
English
ArXiv:
License:
yanlinf commited on
Commit
2346528
·
1 Parent(s): 2bd0c9a

Add neo4j

Browse files
neo4j/nba-graph.json ADDED
The diff for this file is too large to render. See raw diff
 
neo4j/nba-schema.json ADDED
@@ -0,0 +1,436 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "nba",
3
+ "entities": [
4
+ {
5
+ "label": "Team",
6
+ "wd_source": "Q13393265",
7
+ "wd_is_instance": true,
8
+ "wd_include_subclasses": true,
9
+ "wd_constraints": [
10
+ "$LINKED_TO(P118,Q155223)",
11
+ "$HAS_PROPERTY(P361)"
12
+ ],
13
+ "properties": [
14
+ {
15
+ "label": "inception_year",
16
+ "wd_source": "P571",
17
+ "wd_constraints": [],
18
+ "datatype": "int",
19
+ "quantity_unit": null,
20
+ "quantity_convert_unit": false,
21
+ "is_year": true,
22
+ "disable": false
23
+ },
24
+ {
25
+ "label": "owners",
26
+ "wd_source": "P127",
27
+ "wd_constraints": [],
28
+ "datatype": "list[str]",
29
+ "quantity_unit": null,
30
+ "quantity_convert_unit": false,
31
+ "is_year": false,
32
+ "disable": false
33
+ },
34
+ {
35
+ "label": "head_coach",
36
+ "wd_source": "P286",
37
+ "wd_constraints": [],
38
+ "datatype": "str",
39
+ "quantity_unit": null,
40
+ "quantity_convert_unit": false,
41
+ "is_year": false,
42
+ "disable": false
43
+ }
44
+ ],
45
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q13393265. ?item wdt:P118 wd:Q155223. ?item wdt:P361 [].",
46
+ "wd_sparql_roots": [],
47
+ "disable": false
48
+ },
49
+ {
50
+ "label": "Player",
51
+ "wd_source": "Q5",
52
+ "wd_is_instance": true,
53
+ "wd_include_subclasses": false,
54
+ "wd_constraints": [
55
+ "$FROM_RELATION(playsFor)"
56
+ ],
57
+ "properties": [
58
+ {
59
+ "label": "country_of_citizenship",
60
+ "wd_source": "P27",
61
+ "wd_constraints": [],
62
+ "datatype": "list[str]",
63
+ "quantity_unit": null,
64
+ "quantity_convert_unit": false,
65
+ "is_year": false,
66
+ "disable": false
67
+ },
68
+ {
69
+ "label": "place_of_birth",
70
+ "wd_source": "P19",
71
+ "wd_constraints": [],
72
+ "datatype": "str",
73
+ "quantity_unit": null,
74
+ "quantity_convert_unit": false,
75
+ "is_year": false,
76
+ "disable": false
77
+ },
78
+ {
79
+ "label": "gender",
80
+ "wd_source": "P21",
81
+ "wd_constraints": [],
82
+ "datatype": "str",
83
+ "quantity_unit": null,
84
+ "quantity_convert_unit": false,
85
+ "is_year": false,
86
+ "disable": false
87
+ },
88
+ {
89
+ "label": "date_of_birth",
90
+ "wd_source": "P569",
91
+ "wd_constraints": [],
92
+ "datatype": "date",
93
+ "quantity_unit": null,
94
+ "quantity_convert_unit": false,
95
+ "is_year": false,
96
+ "disable": false
97
+ },
98
+ {
99
+ "label": "date_of_death",
100
+ "wd_source": "P570",
101
+ "wd_constraints": [],
102
+ "datatype": "date",
103
+ "quantity_unit": null,
104
+ "quantity_convert_unit": false,
105
+ "is_year": false,
106
+ "disable": false
107
+ },
108
+ {
109
+ "label": "height_cm",
110
+ "wd_source": "P2048",
111
+ "wd_constraints": [],
112
+ "datatype": "float",
113
+ "quantity_unit": "centimetre",
114
+ "quantity_convert_unit": true,
115
+ "is_year": false,
116
+ "disable": false
117
+ },
118
+ {
119
+ "label": "mass_kg",
120
+ "wd_source": "P2067",
121
+ "wd_constraints": [],
122
+ "datatype": "float",
123
+ "quantity_unit": "kilogram",
124
+ "quantity_convert_unit": true,
125
+ "is_year": false,
126
+ "disable": false
127
+ },
128
+ {
129
+ "label": "nicknames",
130
+ "wd_source": "P1449",
131
+ "wd_constraints": [],
132
+ "datatype": "list[str]",
133
+ "quantity_unit": null,
134
+ "quantity_convert_unit": false,
135
+ "is_year": false,
136
+ "disable": false
137
+ },
138
+ {
139
+ "label": "handedness",
140
+ "wd_source": "P552",
141
+ "wd_constraints": [],
142
+ "datatype": "str",
143
+ "quantity_unit": null,
144
+ "quantity_convert_unit": false,
145
+ "is_year": false,
146
+ "disable": false
147
+ },
148
+ {
149
+ "label": "schools_attended",
150
+ "wd_source": "P69",
151
+ "wd_constraints": [],
152
+ "datatype": "list[str]",
153
+ "quantity_unit": null,
154
+ "quantity_convert_unit": false,
155
+ "is_year": false,
156
+ "disable": false
157
+ }
158
+ ],
159
+ "wd_sparql": "?item wdt:P31 wd:Q5. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root ((^ps:P54)/(^p:P54)) ?item.",
160
+ "wd_sparql_roots": [
161
+ "Team"
162
+ ],
163
+ "disable": false
164
+ },
165
+ {
166
+ "label": "Venue",
167
+ "wd_source": "Q1076486",
168
+ "wd_is_instance": true,
169
+ "wd_include_subclasses": true,
170
+ "wd_constraints": [
171
+ "$FROM_RELATION(hasHomeVenue)"
172
+ ],
173
+ "properties": [],
174
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q1076486. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root (p:P115/ps:P115) ?item.",
175
+ "wd_sparql_roots": [
176
+ "Team"
177
+ ],
178
+ "disable": false
179
+ },
180
+ {
181
+ "label": "Division",
182
+ "wd_source": "Q3032333",
183
+ "wd_is_instance": true,
184
+ "wd_include_subclasses": true,
185
+ "wd_constraints": [
186
+ "$FROM_RELATION(partOfDivision)"
187
+ ],
188
+ "properties": [],
189
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q3032333. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root wdt:P361 ?item.",
190
+ "wd_sparql_roots": [
191
+ "Team"
192
+ ],
193
+ "disable": false
194
+ },
195
+ {
196
+ "label": "Position",
197
+ "wd_source": "Q1148974",
198
+ "wd_is_instance": true,
199
+ "wd_include_subclasses": true,
200
+ "wd_constraints": [
201
+ "$FROM_RELATION(playsPosition)"
202
+ ],
203
+ "properties": [],
204
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q1148974. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root (((^ps:P54)/(^p:P54))/wdt:P413) ?item.",
205
+ "wd_sparql_roots": [
206
+ "Team"
207
+ ],
208
+ "disable": false
209
+ },
210
+ {
211
+ "label": "Award",
212
+ "wd_source": "Q15229207",
213
+ "wd_is_instance": true,
214
+ "wd_include_subclasses": true,
215
+ "wd_constraints": [
216
+ "$FROM_RELATION(receivesAward)"
217
+ ],
218
+ "properties": [],
219
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q15229207. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root (((^ps:P54)/(^p:P54))/(p:P166/ps:P166)) ?item.",
220
+ "wd_sparql_roots": [
221
+ "Team"
222
+ ],
223
+ "disable": false
224
+ },
225
+ {
226
+ "label": "Conference",
227
+ "wd_source": "Q2992826",
228
+ "wd_is_instance": true,
229
+ "wd_include_subclasses": true,
230
+ "wd_constraints": [
231
+ "$FROM_RELATION(partOfConference)"
232
+ ],
233
+ "properties": [],
234
+ "wd_sparql": "?item wdt:P31/wdt:P279* wd:Q2992826. ?root wdt:P31/wdt:P279* wd:Q13393265. ?root wdt:P118 wd:Q155223. ?root wdt:P361 []. ?root (wdt:P361/wdt:P361) ?item.",
235
+ "wd_sparql_roots": [
236
+ "Team"
237
+ ],
238
+ "disable": false
239
+ }
240
+ ],
241
+ "relations": [
242
+ {
243
+ "label": "playsFor",
244
+ "wd_source": "P54",
245
+ "wd_source_suffix": null,
246
+ "wd_qualifier_pid": null,
247
+ "wd_is_transitive": false,
248
+ "wd_rank_filter": "non_deprecated",
249
+ "subj_label": "Player",
250
+ "obj_label": "Team",
251
+ "properties": [
252
+ {
253
+ "label": "start_year",
254
+ "wd_source": "P580",
255
+ "allow_multiple": true,
256
+ "is_qualifier": true,
257
+ "datatype": "int",
258
+ "quantity_unit": null,
259
+ "quantity_convert_unit": false,
260
+ "is_year": true,
261
+ "disable": false
262
+ },
263
+ {
264
+ "label": "end_year",
265
+ "wd_source": "P582",
266
+ "allow_multiple": true,
267
+ "is_qualifier": true,
268
+ "datatype": "int",
269
+ "quantity_unit": null,
270
+ "quantity_convert_unit": false,
271
+ "is_year": true,
272
+ "disable": false
273
+ },
274
+ {
275
+ "label": "sport_number",
276
+ "wd_source": "P1618",
277
+ "allow_multiple": true,
278
+ "is_qualifier": true,
279
+ "datatype": "int",
280
+ "quantity_unit": null,
281
+ "quantity_convert_unit": false,
282
+ "is_year": false,
283
+ "disable": false
284
+ }
285
+ ],
286
+ "wd_sparql": "?obj wdt:P31/wdt:P279* wd:Q13393265. ?obj wdt:P118 wd:Q155223. ?obj wdt:P361 []. ?subj p:P54 ?statement. ?statement ps:P54 ?obj. ?statement wikibase:rank ?rank. FILTER(?rank != wikibase:DeprecatedRank)",
287
+ "wd_sparql_heads": [
288
+ "obj"
289
+ ],
290
+ "disable": false
291
+ },
292
+ {
293
+ "label": "draftedBy",
294
+ "wd_source": "P647",
295
+ "wd_source_suffix": null,
296
+ "wd_qualifier_pid": null,
297
+ "wd_is_transitive": false,
298
+ "wd_rank_filter": "highest",
299
+ "subj_label": "Player",
300
+ "obj_label": "Team",
301
+ "properties": [
302
+ {
303
+ "label": "year",
304
+ "wd_source": "P585",
305
+ "allow_multiple": true,
306
+ "is_qualifier": true,
307
+ "datatype": "int",
308
+ "quantity_unit": null,
309
+ "quantity_convert_unit": false,
310
+ "is_year": true,
311
+ "disable": false
312
+ }
313
+ ],
314
+ "wd_sparql": "?obj wdt:P31/wdt:P279* wd:Q13393265. ?obj wdt:P118 wd:Q155223. ?obj wdt:P361 []. ?subj p:P647 ?statement. ?statement ps:P647 ?obj. ?subj wdt:P647 ?obj1. FILTER(?obj1 = ?obj)",
315
+ "wd_sparql_heads": [
316
+ "obj"
317
+ ],
318
+ "disable": false
319
+ },
320
+ {
321
+ "label": "playsPosition",
322
+ "wd_source": "P413",
323
+ "wd_source_suffix": null,
324
+ "wd_qualifier_pid": null,
325
+ "wd_is_transitive": false,
326
+ "wd_rank_filter": "highest",
327
+ "subj_label": "Player",
328
+ "obj_label": "Position",
329
+ "properties": [],
330
+ "wd_sparql": "?subj wdt:P31 wd:Q5. ?root1 wdt:P31/wdt:P279* wd:Q13393265. ?root1 wdt:P118 wd:Q155223. ?root1 wdt:P361 []. ?root1 ((^ps:P54)/(^p:P54)) ?subj. ?subj p:P413 ?statement. ?statement ps:P413 ?obj. ?subj wdt:P413 ?obj1. FILTER(?obj1 = ?obj)",
331
+ "wd_sparql_heads": [
332
+ "subj"
333
+ ],
334
+ "disable": false
335
+ },
336
+ {
337
+ "label": "receivesAward",
338
+ "wd_source": "P166",
339
+ "wd_source_suffix": null,
340
+ "wd_qualifier_pid": null,
341
+ "wd_is_transitive": false,
342
+ "wd_rank_filter": "non_deprecated",
343
+ "subj_label": "Player",
344
+ "obj_label": "Award",
345
+ "properties": [
346
+ {
347
+ "label": "year",
348
+ "wd_source": "P585",
349
+ "allow_multiple": true,
350
+ "is_qualifier": true,
351
+ "datatype": "int",
352
+ "quantity_unit": null,
353
+ "quantity_convert_unit": false,
354
+ "is_year": true,
355
+ "disable": false
356
+ }
357
+ ],
358
+ "wd_sparql": "?subj wdt:P31 wd:Q5. ?root1 wdt:P31/wdt:P279* wd:Q13393265. ?root1 wdt:P118 wd:Q155223. ?root1 wdt:P361 []. ?root1 ((^ps:P54)/(^p:P54)) ?subj. ?subj p:P166 ?statement. ?statement ps:P166 ?obj. ?statement wikibase:rank ?rank. FILTER(?rank != wikibase:DeprecatedRank)",
359
+ "wd_sparql_heads": [
360
+ "subj"
361
+ ],
362
+ "disable": false
363
+ },
364
+ {
365
+ "label": "hasHomeVenue",
366
+ "wd_source": "P115",
367
+ "wd_source_suffix": null,
368
+ "wd_qualifier_pid": null,
369
+ "wd_is_transitive": false,
370
+ "wd_rank_filter": "non_deprecated",
371
+ "subj_label": "Team",
372
+ "obj_label": "Venue",
373
+ "properties": [
374
+ {
375
+ "label": "start_year",
376
+ "wd_source": "P580",
377
+ "allow_multiple": true,
378
+ "is_qualifier": true,
379
+ "datatype": "int",
380
+ "quantity_unit": null,
381
+ "quantity_convert_unit": false,
382
+ "is_year": true,
383
+ "disable": false
384
+ },
385
+ {
386
+ "label": "end_year",
387
+ "wd_source": "P582",
388
+ "allow_multiple": true,
389
+ "is_qualifier": true,
390
+ "datatype": "int",
391
+ "quantity_unit": null,
392
+ "quantity_convert_unit": false,
393
+ "is_year": true,
394
+ "disable": false
395
+ }
396
+ ],
397
+ "wd_sparql": "?subj wdt:P31/wdt:P279* wd:Q13393265. ?subj wdt:P118 wd:Q155223. ?subj wdt:P361 []. ?subj p:P115 ?statement. ?statement ps:P115 ?obj. ?statement wikibase:rank ?rank. FILTER(?rank != wikibase:DeprecatedRank)",
398
+ "wd_sparql_heads": [
399
+ "subj"
400
+ ],
401
+ "disable": false
402
+ },
403
+ {
404
+ "label": "partOfDivision",
405
+ "wd_source": "P361",
406
+ "wd_source_suffix": null,
407
+ "wd_qualifier_pid": null,
408
+ "wd_is_transitive": false,
409
+ "wd_rank_filter": "highest",
410
+ "subj_label": "Team",
411
+ "obj_label": "Division",
412
+ "properties": [],
413
+ "wd_sparql": "?subj wdt:P31/wdt:P279* wd:Q13393265. ?subj wdt:P118 wd:Q155223. ?subj wdt:P361 []. ?subj p:P361 ?statement. ?statement ps:P361 ?obj. ?subj wdt:P361 ?obj1. FILTER(?obj1 = ?obj)",
414
+ "wd_sparql_heads": [
415
+ "subj"
416
+ ],
417
+ "disable": false
418
+ },
419
+ {
420
+ "label": "partOfConference",
421
+ "wd_source": "P361",
422
+ "wd_source_suffix": null,
423
+ "wd_qualifier_pid": null,
424
+ "wd_is_transitive": false,
425
+ "wd_rank_filter": "highest",
426
+ "subj_label": "Division",
427
+ "obj_label": "Conference",
428
+ "properties": [],
429
+ "wd_sparql": "?subj wdt:P31/wdt:P279* wd:Q3032333. ?root1 wdt:P31/wdt:P279* wd:Q13393265. ?root1 wdt:P118 wd:Q155223. ?root1 wdt:P361 []. ?root1 wdt:P361 ?subj. ?subj p:P361 ?statement. ?statement ps:P361 ?obj. ?subj wdt:P361 ?obj1. FILTER(?obj1 = ?obj)",
430
+ "wd_sparql_heads": [
431
+ "subj"
432
+ ],
433
+ "disable": false
434
+ }
435
+ ]
436
+ }
neo4j/nba_simplekg.json ADDED
The diff for this file is too large to render. See raw diff