-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemoData.js
261 lines (251 loc) · 11.7 KB
/
demoData.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
// For the browser, deliver the data via a JSONP-type call.
/* global gotData */ // Prevent ESLint error.
if (typeof gotData !== 'undefined') gotData(createData());
// For Node.js, deliver the data via `module.exports`. But define `module`
// first, for browser compatibility.
if (typeof module === 'undefined') { var module = {} }
module.exports = createData();
function createData() {
return {
dictData: [
{ id: 'CW', name: 'Common words', entries: [
{ id: 'CW:0045', terms: [{str: 'about'}] },
{ id: 'CW:0082', terms: [{str: 'after'}] },
{ id: 'CW:0036', terms: [{str: 'all'}] },
{ id: 'CW:0080', terms: [{str: 'also'}] },
{ id: 'CW:0095', terms: [{str: 'any'}] },
{ id: 'CW:0017', terms: [{str: 'as'}] },
{ id: 'CW:0081', terms: [{str: 'back'}] },
{ id: 'CW:0094', terms: [{str: 'because'}] },
{ id: 'CW:0024', terms: [{str: 'by'}] },
{ id: 'CW:0053', terms: [{str: 'can'}] },
{ id: 'CW:0076', terms: [{str: 'come'}] },
{ id: 'CW:0067', terms: [{str: 'could'}] },
{ id: 'CW:0098', terms: [{str: 'day'}] },
{ id: 'CW:0019', terms: [{str: 'do'}] },
{ id: 'CW:0088', terms: [{str: 'first'}] },
{ id: 'CW:0025', terms: [{str: 'from'}] },
{ id: 'CW:0047', terms: [{str: 'get'}] },
{ id: 'CW:0097', terms: [{str: 'give'}] },
{ id: 'CW:0049', terms: [{str: 'go'}] },
{ id: 'CW:0065', terms: [{str: 'good'}] },
{ id: 'CW:0009', terms: [{str: 'have'}] },
{ id: 'CW:0062', terms: [{str: 'into'}] },
{ id: 'CW:0057', terms: [{str: 'just'}] },
{ id: 'CW:0059', terms: [{str: 'know'}] },
{ id: 'CW:0054', terms: [{str: 'like'}] },
{ id: 'CW:0074', terms: [{str: 'look'}] },
{ id: 'CW:0052', terms: [{str: 'make'}] },
{ id: 'CW:0099', terms: [{str: 'most'}] },
{ id: 'CW:0092', terms: [{str: 'new'}] },
{ id: 'CW:0056', terms: [{str: 'no'}] },
{ id: 'CW:0013', terms: [{str: 'not'}] },
{ id: 'CW:0073', terms: [{str: 'now'}] },
{ id: 'CW:0004', terms: [{str: 'of'}] },
{ id: 'CW:0014', terms: [{str: 'on'}] },
{ id: 'CW:0035', terms: [{str: 'one'}] },
{ id: 'CW:0075', terms: [{str: 'only'}] },
{ id: 'CW:0031', terms: [{str: 'or'}] },
{ id: 'CW:0078', terms: [{str: 'over'}] },
{ id: 'CW:0061', terms: [{str: 'person'}] },
{ id: 'CW:0066', terms: [{str: 'some'}] },
{ id: 'CW:0060', terms: [{str: 'take'}] },
{ id: 'CW:0079', terms: [{str: 'think'}] },
{ id: 'CW:0055', terms: [{str: 'time'}] },
{ id: 'CW:0084', terms: [{str: 'two'}] },
{ id: 'CW:0042', terms: [{str: 'up'}] },
{ id: 'CW:0083', terms: [{str: 'use'}] },
{ id: 'CW:0093', terms: [{str: 'want'}] },
{ id: 'CW:0090', terms: [{str: 'way'}] },
{ id: 'CW:0087', terms: [{str: 'work'}] },
{ id: 'CW:0063', terms: [{str: 'year'}, {str: 'years'}] },
{ id: 'CW:0101', descr: 'to eat',
terms: [{str: 'eat'}, {str: 'eats'}, {str: 'to eat'}] },
{ id: 'CW:0069', descr: 'to see',
terms: [{str: 'see'}, {str: 'sees'}, {str: 'to see'}] },
{ id: 'CW:0028', descr: 'to say',
terms: [{str: 'say'}, {str: 'says'}, {str: 'to say'}] },
{ id: 'CW:0103', descr: 'someone with little courage',
terms: [
{str: 'coward'},
{str: 'chicken', style: 'i', descr: 'as in \'coward\''}
]
},
{ id: 'CW:0108', terms: [{str: 'fork'}] },
{ id: 'CW:0109', terms: [{str: 'burnt'}] },
{ id: 'CW:0105', descr: 'to use', terms: [
{str: 'with'},
{str: 'using'},
{str: 'use of'},
{str: 'to use'}
]},
{ id: 'CW:0106', descr: 'to be accompanied by', terms: [
{str: 'with'},
{str: 'accompanied by'},
{str: 'to be accompanied by'}
]},
{ id: 'CW:0020', descr: 'associated with', terms: [{str: 'at'}] },
{ id: 'CW:0007', descr: 'to be located in', terms: [
{str: 'in', style: ''}, {str: 'is located in'}, {str: 'located in'},
{str: 'located at'}, {str: 'at'} ]
///, {str: 'locatedness-inside', style: 'i'}
},
{ id: 'CW:0115', descr: 'to happen in time period',
terms: [{str: 'in'}, {str: 'during'}] },
{ id: 'CW:0116', descr: 'to happen at timepoint',
terms: [{str: 'at', descr: 'happens at timepoint'}] },
{ id: 'CW:0111', descr: 'to pertain to',
terms: [{str: 'in', descr: 'pertains to'}] },
{ id: 'CW:0005', descr: 'List, plain collection of items',
terms: [{str: 'and'}]
},
{ id: 'CW:0112', descr: 'List where item order is important',
terms: [{str: 'ordered-and', style: 'i0-8'}] },
{ id: 'CW:0002', descr: 'to be',
terms: [
{str: 'to be'},
{str: 'being'},
{str: 'is', descr: '\'to be\', in its 3rd-person avatar'},
{str: 'are', descr: '\'to be\', in its plural avatar'}
]
},
{ id: 'CW:0123', descr: 'belonging to', terms: [{str: 'of'}, {str: '\'s'}] },
{ id: 'CW:0003', descr: 'having purpose', terms: [{str: 'to'}, {str: 'for'}] },
{ id: 'CW:0126', terms: [{str: 'book'}] },
{ id: 'CW:0131',
descr: 'Single-term relation concept, for the \'if ... then ...\' ' +
'construct used in natural language',
terms: [{str: 'if-then'}]
},
{ id: 'CW:0132',
descr: '= \'if not {subject} then {object}\'',
terms: [{str: 'else'}]
},
{ id: 'CW:0133', terms: [{str: 'has'}] },
{ id: 'CW:0141', descr: 'being located amongst',
terms: [{str: 'between'}, {str: 'is between'}, {str: 'are between'}] },
{ id: 'CW:0142', descr: 'the location amongst some things',
terms: [{str: 'between'}]
},
]},
{ id: 'PRS', name: 'Persons', entries: [
{ id: 'PRS:0004', terms: [{str: 'Brown'}] },
{ id: 'PRS:0020', terms: [{str: 'Clarke'}] },
{ id: 'PRS:0008', terms: [{str: 'Davis'}] },
{ id: 'PRS:0012', terms: [{str: 'Evans'}] },
{ id: 'PRS:0016', terms: [{str: 'Green'}] },
{ id: 'PRS:0017', terms: [{str: 'Hall'}] },
{ id: 'PRS:0019', terms: [{str: 'Jackson'}] },
{ id: 'PRS:0007', terms: [{str: 'Johnson'}] },
{ id: 'PRS:0002', terms: [{str: 'Jones'}] },
{ id: 'PRS:0015', terms: [{str: 'Roberts'}] },
{ id: 'PRS:0009', terms: [{str: 'Robinson'}] },
{ id: 'PRS:0001', terms: [{str: 'Smith'}] },
{ id: 'PRS:0003', terms: [{str: 'Taylor'}] },
{ id: 'PRS:0011', terms: [{str: 'Thompson'}] },
{ id: 'PRS:0013', terms: [{str: 'Walker'}] },
{ id: 'PRS:0014', terms: [{str: 'White'}] },
{ id: 'PRS:0005', terms: [{str: 'Williams'}] },
{ id: 'PRS:0006', terms: [{str: 'Wilson'}] },
{ id: 'PRS:0018', terms: [{str: 'Wood'}] },
{ id: 'PRS:0010', terms: [{str: 'Wright'}] },
{ id: 'PRS:0501', terms: [{str: 'Alice'}] },
{ id: 'PRS:0502', terms: [{str: 'Bob'}] },
{ id: 'PRS:0510', terms: [{str: 'John'}],
descr: 'my imaginary friend John Doe in Norway' },
{ id: 'PRS:0256', descr: 'Steven Vercruysse (Cruy), creator of VSM',
terms: [{str: 'Steven'}] },
]},
{ id: 'BIO', name: 'Biological concepts', entries: [
{ id:'BIO:0010', terms: [{str: 'Ca2+', style: 'u2-4'}] },
{ id:'BIO:0011', terms: [{str: 'Na+Cl-', style: 'u2;u5'}] },
{ id:'BIO:0001', terms: [{str: 'beta-Carotene'}, {str: 'β-Carotene'}] },
{ id:'BIO:0002', descr: 'the Human gene ICER', terms: [{str: 'ICER'}] },
{ id:'BIO:0003', descr: 'the Human gene cdc2',
terms: [{str: 'cdc2', style: 'i'}], ///, {str: 'cdc'}, {str: 'KRP5'},
z: {species: 'Human'}
},
{ id:'BIO:0903', descr: 'the Mouse gene cdc2', terms: [{str: 'cdc2'}] },
{ id:'BIO:0014',
descr: 'to activate (= the activation of) a molecule, by some actor',
terms: [
{str: 'activates'},
{str: 'activation'},
{str: 'activation (of)', style: 'i11-15'}
],
},
{ id:'BIO:0015', terms: [{str: 'inhibits'}] },
{ id:'BIO:0016', terms: [{str: 'regulates'}, {str: 'regulation'}] },
{ id:'BIO:0017', terms: [{str: 'has function'}] },
{ id:'BIO:0018', terms: [{str: 'according to'}] },
{ id:'BIO:0019', terms: [
{str: 'binds to'},
{str: 'binds'},
{str: 'bind'},
{str: 'bound to'}
]},
{ id:'BIO:0030',
descr: 'addition of a ubiquitin-molecule tag to a protein, ' +
'which marks it for degradation by a proteasome',
terms: [{str: 'ubiquitinates'}]
},
{ id:'BIO:0042', descr: 'the animal', terms: [{str: 'chicken'}] },
{ id:'BIO:0101', descr: 'example molecule A', terms: [{str: 'A'}] },
{ id:'BIO:0102', descr: 'example molecule B', terms: [{str: 'B'}] },
{ id:'BIO:0103', descr: 'example molecule C', terms: [{str: 'C'}] },
{ id:'BIO:0104', descr: 'example molecule D', terms: [{str: 'D'}] },
{ id:'BIO:0124', descr: 'example molecule X', terms: [{str: 'X'}] },
{ id:'BIO:0131', descr: 'example protein A', terms: [{str: 'protein A'}] },
{ id:'BIO:0132', descr: 'example protein B', terms: [{str: 'protein B'}] },
{ id:'BIO:0133', descr: 'example location C', terms: [{str: 'location C'}] },
{ id:'BIO:0151', descr: 'the blade of a plant leaf (Plant Ontology term)',
terms: [{str: 'leaf lamina'}] },
{ id:'BIO:0152', descr: 'a plant leaf shape variation (PATO term)',
terms: [{str: 'twisted'}] },
]},
{ id: 'VAR', name: 'Various concepts',
entries: [
{ id: 'VAR:0015', descr: 'Computer science, Information Technology',
terms: [{str: 'IT'}] },
{ id: 'VAR:0016', descr: 'to turn on a device',
terms: [{str: 'activate'}, {str: 'activates'}],
z: { extraChar: '⍾' }
},
{ id: 'VAR:0017', terms: [{str: 'device'}] },
{ id: 'VAR:0018', descr: 'is subclass of',
terms: [{str: 'is subclass of'}, {str: 'is a'}] },
{ id: 'VAR:0021', descr: 'percent',
terms: [{str: 'percent'}, {str: '%'}, {str: 'percentage'}] },
{ id: 'VAR:0093', descr: 'unit of acceleration',
terms: [{str: 'm/s2', style: 'u3'}] },
{ id: 'VAR:0151', descr: 'the mathematical operator \'for all\'',
terms: [{str: '∀'}, {str: 'for all'}] },
{ id: 'VAR:0153', descr: 'the mathematical operator \'there exists\'',
terms: [{str: '∃'}, {str: 'exists'}] },
{ id: 'VAR:0011',
terms: [
{str: 'HCO3- ⇌ CO32- + H+', style: 's3;u4;s10;u11-13;u17'}
],
descr: 'step 2 of carbonic acid ionization reaction'
},
{ id: 'VAR:0255',
descr: 'Visual Syntax Method, a way to represent ' +
'contextualised information, so it is manageable by ' +
'both humans and computers',
terms: [{str: 'VSM'}]
},
],
},
{ id: '00', name: 'Numbers', entries: [
{ id: '00:5e+0', terms: [{str: '5'}, {str: 'five'}] },
{ id: '00:1.2e+1', terms: [{str: '12'}, {str: 'twelve'}, {str: 'dozen'}],
descr: 'the amount of twelve' },
{ id: '00:4e+1', terms: [{str: '40'}, {str: 'forty'}] },
]},
{ id: 'NEW', name: 'New Concepts', entries: [] },
],
refTerms: [
'it', 'this', 'that', 'they', 'these', 'them'
]
};
}