Revision b9cdcc88
Added by Andreas Müller about 8 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/cuba/CubaVocabularyImport.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
//doubtfully endemic |
132 | 132 |
UUID doubtfullyEndemicUuid = transformer.getPresenceTermUuid("?E"); |
133 |
this.getPresenceTerm(state, doubtfullyEndemicUuid, "doubtfully endemic", "doubtfully endemic", "?E", false);
|
|
133 |
this.getPresenceTerm(state, doubtfullyEndemicUuid, "endemic, doubtfully present", "endemic, doubtfully present", "?E", false);
|
|
134 | 134 |
|
135 | 135 |
//indigenous |
136 |
UUID indigenousUuid = transformer.getPresenceTermUuid("+"); |
|
137 |
this.getPresenceTerm(state, indigenousUuid, "indigenous", "Indigenous", "+", false); |
|
138 |
UUID indigenousDoubtfulUuid = transformer.getPresenceTermUuid("?"); |
|
139 |
this.getPresenceTerm(state, indigenousDoubtfulUuid, "indigenous, doubtfully present", "indigenous, doubtfully present", "?", false); |
|
136 |
// UUID indigenousUuid = transformer.getPresenceTermUuid("+"); |
|
137 |
// this.getPresenceTerm(state, indigenousUuid, "indigenous", "Indigenous", "+", false); |
|
138 |
// UUID indigenousDoubtfulUuid = transformer.getPresenceTermUuid("?"); |
|
139 |
// this.getPresenceTerm(state, indigenousDoubtfulUuid, "indigenous, doubtfully present", "indigenous, doubtfully present", "?", false); |
|
140 |
|
|
140 | 141 |
UUID nonNativeDoubtfulNaturalizedUuid = transformer.getPresenceTermUuid("P"); |
141 | 142 |
this.getPresenceTerm(state, nonNativeDoubtfulNaturalizedUuid, "non-native and doubtfully naturalised", "non-native and doubtfully naturalised", "P", false); |
142 |
UUID casualUuid = transformer.getPresenceTermUuid("A");
|
|
143 |
this.getPresenceTerm(state, casualUuid, "adventive (casual) alien", "adventive (casual) alien", "A", false);
|
|
143 |
UUID rareCasualUuid = transformer.getPresenceTermUuid("(A)");
|
|
144 |
this.getPresenceTerm(state, rareCasualUuid, "rare casual", "rare casual", "(A)", false);
|
|
144 | 145 |
|
145 | 146 |
//occasionally cultivated |
146 | 147 |
label = "occasionally cultivated"; |
... | ... | |
149 | 150 |
getPresenceTerm(state, occasionallyCultivatedUuid, label, label, abbrev, PRESENT, cubaStatusVocabualary); |
150 | 151 |
|
151 | 152 |
//doubtfully present |
152 |
UUID doubtfullyIndigenousUuid = transformer.getPresenceTermUuid("D");
|
|
153 |
this.getPresenceTerm(state, doubtfullyIndigenousUuid, "indigenous?", "Indigenous?", "D", false);
|
|
154 |
UUID doubtfullyIndigenousDoubtfulUuid = transformer.getPresenceTermUuid("??"); |
|
155 |
this.getPresenceTerm(state, doubtfullyIndigenousDoubtfulUuid, "?indigenous?", "doubfully indigenous, (und) doubtfully present", "??", false);
|
|
153 |
UUID indigenousDoubtfullyPresentUuid = transformer.getPresenceTermUuid("D");
|
|
154 |
this.getPresenceTerm(state, indigenousDoubtfullyPresentUuid, "indigenous?", "Indigenous?", "D", false);
|
|
155 |
UUID doubtfullyIndigenousDoubtfullyPresentUuid = transformer.getPresenceTermUuid("??");
|
|
156 |
this.getPresenceTerm(state, doubtfullyIndigenousDoubtfullyPresentUuid, "?indigenous?", "doubfully indigenous, (and) doubtfully present", "??", false);
|
|
156 | 157 |
|
157 | 158 |
UUID doubtfullyNaturalisedUuid = transformer.getPresenceTermUuid("?N"); |
158 | 159 |
this.getPresenceTerm(state, doubtfullyNaturalisedUuid, "?non-native and doubtfully naturalised", "non-native and doubtfully naturalised, doubtfully present", "?N", false); |
... | ... | |
197 | 198 |
abbrev = "C"; |
198 | 199 |
UUID cubaUuid = transformer.getNamedAreaUuid(abbrev); |
199 | 200 |
NamedArea cuba = getNamedArea(state, cubaUuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
201 |
cuba.setIdInVocabulary(abbrev); |
|
200 | 202 |
|
201 | 203 |
//Regions |
202 | 204 |
level = null; |
... | ... | |
207 | 209 |
UUID cubaWestUuid = transformer.getNamedAreaUuid(abbrev); |
208 | 210 |
NamedArea westernCuba = getNamedArea(state, cubaWestUuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
209 | 211 |
cuba.addIncludes(westernCuba); |
212 |
westernCuba.setIdInVocabulary(abbrev); |
|
210 | 213 |
|
211 | 214 |
//Central Cuba |
212 | 215 |
label = "Central Cuba"; |
... | ... | |
214 | 217 |
UUID cubaCentralUuid = transformer.getNamedAreaUuid(abbrev); |
215 | 218 |
NamedArea centralCuba = getNamedArea(state, cubaCentralUuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
216 | 219 |
cuba.addIncludes(centralCuba); |
220 |
centralCuba.setIdInVocabulary(abbrev); |
|
217 | 221 |
|
218 | 222 |
//East Cuba |
219 | 223 |
label = "East Cuba"; |
... | ... | |
221 | 225 |
UUID cubaEastUuid = transformer.getNamedAreaUuid(abbrev); |
222 | 226 |
NamedArea eastCuba = getNamedArea(state, cubaEastUuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
223 | 227 |
cuba.addIncludes(eastCuba); |
228 |
eastCuba.setIdInVocabulary(abbrev); |
|
224 | 229 |
|
225 | 230 |
//Provinces - West |
226 | 231 |
level = NamedAreaLevel.PROVINCE(); |
... | ... | |
231 | 236 |
UUID uuid = transformer.getNamedAreaUuid(abbrev); |
232 | 237 |
NamedArea area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
233 | 238 |
westernCuba.addIncludes(area); |
239 |
area.setIdInVocabulary(abbrev); |
|
234 | 240 |
|
235 | 241 |
// //Habana Hab |
236 | 242 |
// label = "Habana"; //including Ciudad de la Habana, Mayabeque, Artemisa |
... | ... | |
238 | 244 |
// uuid = transformer.getNamedAreaUuid(abbrev); |
239 | 245 |
// NamedArea habana = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
240 | 246 |
// westernCuba.addIncludes(habana); |
247 |
// area.setIdInVocabulary(abbrev); |
|
248 |
|
|
249 |
//Artemisa |
|
250 |
label = "Artemisa"; |
|
251 |
abbrev = "Art"; |
|
252 |
uuid = transformer.getNamedAreaUuid(abbrev); |
|
253 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
|
254 |
westernCuba.addIncludes(area); |
|
255 |
area.setIdInVocabulary(abbrev); |
|
241 | 256 |
|
242 | 257 |
//Ciudad de la Habana |
243 | 258 |
label = "Ciudad de la Habana"; |
... | ... | |
245 | 260 |
uuid = transformer.getNamedAreaUuid(abbrev); |
246 | 261 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
247 | 262 |
westernCuba.addIncludes(area); |
263 |
area.setIdInVocabulary(abbrev); |
|
264 |
|
|
248 | 265 |
//Ciudad de la Habana |
249 | 266 |
label = "Mayabeque"; |
250 | 267 |
abbrev = "May"; |
251 | 268 |
uuid = transformer.getNamedAreaUuid(abbrev); |
252 | 269 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
253 | 270 |
westernCuba.addIncludes(area); |
254 |
//Ciudad de la Habana |
|
255 |
label = "Artemisa"; |
|
256 |
abbrev = "Art"; |
|
257 |
uuid = transformer.getNamedAreaUuid(abbrev); |
|
258 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
|
259 |
westernCuba.addIncludes(area); |
|
271 |
area.setIdInVocabulary(abbrev); |
|
260 | 272 |
|
261 | 273 |
|
262 | 274 |
//Matanzas Mat |
... | ... | |
265 | 277 |
uuid = transformer.getNamedAreaUuid(abbrev); |
266 | 278 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
267 | 279 |
westernCuba.addIncludes(area); |
280 |
area.setIdInVocabulary(abbrev); |
|
268 | 281 |
|
269 | 282 |
//Isla de la Juventud IJ |
270 | 283 |
label = "Isla de la Juventud"; |
... | ... | |
272 | 285 |
uuid = transformer.getNamedAreaUuid(abbrev); |
273 | 286 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
274 | 287 |
westernCuba.addIncludes(area); |
288 |
area.setIdInVocabulary(abbrev); |
|
275 | 289 |
|
276 | 290 |
//Provinces - Central |
277 | 291 |
//Villa Clara VC |
... | ... | |
280 | 294 |
uuid = transformer.getNamedAreaUuid(abbrev); |
281 | 295 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
282 | 296 |
centralCuba.addIncludes(area); |
297 |
area.setIdInVocabulary(abbrev); |
|
283 | 298 |
|
284 | 299 |
//Cienfuegos Ci VC |
285 | 300 |
label = "Cienfuegos"; |
... | ... | |
287 | 302 |
uuid = transformer.getNamedAreaUuid(abbrev); |
288 | 303 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
289 | 304 |
centralCuba.addIncludes(area); |
305 |
area.setIdInVocabulary(abbrev); |
|
290 | 306 |
|
291 | 307 |
//Sancti Spiritus SS |
292 | 308 |
label = "Sancti Spiritus"; |
... | ... | |
294 | 310 |
uuid = transformer.getNamedAreaUuid(abbrev); |
295 | 311 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
296 | 312 |
centralCuba.addIncludes(area); |
313 |
area.setIdInVocabulary(abbrev); |
|
297 | 314 |
|
298 | 315 |
//Ciego de Ávila CA |
299 | 316 |
label = "Ciego de Ávila"; |
... | ... | |
301 | 318 |
uuid = transformer.getNamedAreaUuid(abbrev); |
302 | 319 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
303 | 320 |
centralCuba.addIncludes(area); |
321 |
area.setIdInVocabulary(abbrev); |
|
304 | 322 |
|
305 | 323 |
//Camagüey Cam |
306 | 324 |
label = "Camagüey"; |
... | ... | |
308 | 326 |
uuid = transformer.getNamedAreaUuid(abbrev); |
309 | 327 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
310 | 328 |
centralCuba.addIncludes(area); |
329 |
area.setIdInVocabulary(abbrev); |
|
311 | 330 |
|
312 | 331 |
//Las Tunas LT |
313 | 332 |
label = "Las Tunas"; |
... | ... | |
315 | 334 |
uuid = transformer.getNamedAreaUuid(abbrev); |
316 | 335 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
317 | 336 |
centralCuba.addIncludes(area); |
337 |
area.setIdInVocabulary(abbrev); |
|
318 | 338 |
|
319 | 339 |
//Provinces - East |
320 | 340 |
//Granma Gr |
... | ... | |
323 | 343 |
uuid = transformer.getNamedAreaUuid(abbrev); |
324 | 344 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
325 | 345 |
eastCuba.addIncludes(area); |
346 |
area.setIdInVocabulary(abbrev); |
|
326 | 347 |
|
327 | 348 |
//Holguín Ho |
328 | 349 |
label = "Holguín"; |
... | ... | |
330 | 351 |
uuid = transformer.getNamedAreaUuid(abbrev); |
331 | 352 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
332 | 353 |
eastCuba.addIncludes(area); |
354 |
area.setIdInVocabulary(abbrev); |
|
333 | 355 |
|
334 | 356 |
//Santiago de Cuba SC |
335 | 357 |
label = "Santiago de Cuba"; |
... | ... | |
337 | 359 |
uuid = transformer.getNamedAreaUuid(abbrev); |
338 | 360 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
339 | 361 |
eastCuba.addIncludes(area); |
362 |
area.setIdInVocabulary(abbrev); |
|
340 | 363 |
|
341 | 364 |
//Guantánamo Gu |
342 | 365 |
label = "Guantánamo"; |
... | ... | |
344 | 367 |
uuid = transformer.getNamedAreaUuid(abbrev); |
345 | 368 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
346 | 369 |
eastCuba.addIncludes(area); |
370 |
area.setIdInVocabulary(abbrev); |
|
347 | 371 |
|
348 | 372 |
//other Greater Antilles (Cuba, Española, Jamaica, Puerto Rico) |
349 | 373 |
level = null; |
... | ... | |
352 | 376 |
abbrev = "Esp"; |
353 | 377 |
uuid = transformer.getNamedAreaUuid(abbrev); |
354 | 378 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
379 |
area.setIdInVocabulary(abbrev); |
|
355 | 380 |
|
356 | 381 |
//Jamaica Ja |
357 | 382 |
level = NamedAreaLevel.COUNTRY(); |
... | ... | |
359 | 384 |
abbrev = "Ja"; |
360 | 385 |
uuid = transformer.getNamedAreaUuid(abbrev); |
361 | 386 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
387 |
area.setIdInVocabulary(abbrev); |
|
362 | 388 |
|
363 | 389 |
//Puerto Rico PR |
364 | 390 |
level = NamedAreaLevel.COUNTRY(); |
... | ... | |
366 | 392 |
abbrev = "PR"; |
367 | 393 |
uuid = transformer.getNamedAreaUuid(abbrev); |
368 | 394 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
395 |
area.setIdInVocabulary(abbrev); |
|
369 | 396 |
|
370 | 397 |
//Lesser Antilles Men |
371 | 398 |
level = null; |
... | ... | |
373 | 400 |
abbrev = "Men"; |
374 | 401 |
uuid = transformer.getNamedAreaUuid(abbrev); |
375 | 402 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
403 |
area.setIdInVocabulary(abbrev); |
|
376 | 404 |
|
377 | 405 |
//Bahamas |
378 | 406 |
label = "Bahamas"; |
379 | 407 |
abbrev = "Bah"; |
380 | 408 |
uuid = transformer.getNamedAreaUuid(abbrev); |
381 | 409 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
410 |
area.setIdInVocabulary(abbrev); |
|
382 | 411 |
|
383 | 412 |
//Cayman Islands |
384 | 413 |
label = "Cayman Islands"; //[Trinidad, Tobago, Curaçao, Margarita, ABC Isl. => S. America]; |
385 | 414 |
abbrev = "Cay"; |
386 | 415 |
uuid = transformer.getNamedAreaUuid(abbrev); |
387 | 416 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
417 |
area.setIdInVocabulary(abbrev); |
|
388 | 418 |
|
389 | 419 |
//World |
390 | 420 |
//N America |
... | ... | |
392 | 422 |
abbrev = "AmN"; |
393 | 423 |
uuid = transformer.getNamedAreaUuid(abbrev); |
394 | 424 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
425 |
area.setIdInVocabulary(abbrev); |
|
395 | 426 |
|
396 | 427 |
//Central America |
397 | 428 |
label = "Central America"; |
398 | 429 |
abbrev = "AmC"; |
399 | 430 |
uuid = transformer.getNamedAreaUuid(abbrev); |
400 | 431 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
432 |
area.setIdInVocabulary(abbrev); |
|
401 | 433 |
|
402 | 434 |
//S America |
403 | 435 |
label = "S America"; |
404 | 436 |
abbrev = "AmS"; |
405 | 437 |
uuid = transformer.getNamedAreaUuid(abbrev); |
406 | 438 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
439 |
area.setIdInVocabulary(abbrev); |
|
407 | 440 |
|
408 | 441 |
//Old World |
409 | 442 |
label = "Old World "; |
410 | 443 |
abbrev = "VM"; |
411 | 444 |
uuid = transformer.getNamedAreaUuid(abbrev); |
412 | 445 |
area = getNamedArea(state, uuid, label, label, abbrev, areaType, level, cubaAreasVocabualary, matchMode); |
446 |
area.setIdInVocabulary(abbrev); |
|
413 | 447 |
|
414 | 448 |
commitTransaction(tx); |
415 | 449 |
return true; |
Also available in: Unified diff
Latest changes to Cuba import