Revision 11964
Added by Aaron Marcuse-Kubitza almost 11 years ago
inputs/.TNRS/schema.sql | ||
---|---|---|
306 | 306 |
|
307 | 307 |
|
308 | 308 |
-- |
309 |
-- Name: taxon_scrub.scrubbed_unique_taxon_name.*; Type: VIEW; Schema: TNRS; Owner: - |
|
310 |
-- |
|
311 |
|
|
312 |
CREATE VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" AS |
|
313 |
SELECT tnrs."Name_submitted" AS scrubbed_unique_taxon_name, |
|
314 |
tnrs."Name_matched_rank" AS scrubbed_taxon_rank, |
|
315 |
tnrs."Name_matched_accepted_family" AS scrubbed_family, |
|
316 |
tnrs."Genus_matched" AS scrubbed_genus, |
|
317 |
tnrs."Specific_epithet_matched" AS scrubbed_specific_epithet, |
|
318 |
tnrs."Infraspecific_rank" AS scrubbed_infraspecific_rank, |
|
319 |
tnrs."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet, |
|
320 |
tnrs."Name_matched_author" AS scrubbed_author, |
|
321 |
tnrs."Name_matched" AS scrubbed_taxon_name_no_author |
|
322 |
FROM tnrs; |
|
323 |
|
|
324 |
|
|
325 |
-- |
|
326 |
-- Name: taxon_scrub; Type: VIEW; Schema: TNRS; Owner: - |
|
327 |
-- |
|
328 |
|
|
329 |
CREATE VIEW taxon_scrub AS |
|
330 |
SELECT "ValidMatchedTaxon".scrubbed_unique_taxon_name, |
|
331 |
"ValidMatchedTaxon"."*Name_matched.batch", |
|
332 |
"ValidMatchedTaxon"."concatenatedScientificName", |
|
333 |
"ValidMatchedTaxon"."matchedTaxonName", |
|
334 |
"ValidMatchedTaxon"."matchedTaxonRank", |
|
335 |
"ValidMatchedTaxon"."*Name_matched.Name_score", |
|
336 |
"ValidMatchedTaxon"."matchedScientificNameAuthorship", |
|
337 |
"ValidMatchedTaxon"."matchedScientificNameID", |
|
338 |
"ValidMatchedTaxon"."*Name_matched.Author_score", |
|
339 |
"ValidMatchedTaxon"."matchedFamilyConfidence_fraction", |
|
340 |
"ValidMatchedTaxon"."matchedFamily", |
|
341 |
"ValidMatchedTaxon"."matchedGenus", |
|
342 |
"ValidMatchedTaxon"."matchedGenusConfidence_fraction", |
|
343 |
"ValidMatchedTaxon"."matchedSpecificEpithet", |
|
344 |
"ValidMatchedTaxon"."matchedSpeciesConfidence_fraction", |
|
345 |
"ValidMatchedTaxon"."matchedInfraspecificEpithet", |
|
346 |
"ValidMatchedTaxon"."*Name_matched.Infraspecific_epithet_score", |
|
347 |
"ValidMatchedTaxon"."identificationQualifier", |
|
348 |
"ValidMatchedTaxon"."morphospeciesSuffix", |
|
349 |
"ValidMatchedTaxon"."taxonomicStatus", |
|
350 |
"ValidMatchedTaxon"."acceptedTaxonName", |
|
351 |
"ValidMatchedTaxon"."acceptedScientificNameAuthorship", |
|
352 |
"ValidMatchedTaxon"."acceptedTaxonRank", |
|
353 |
"ValidMatchedTaxon"."acceptedScientificNameID", |
|
354 |
"ValidMatchedTaxon"."*Name_matched.Accepted_name_species", |
|
355 |
"ValidMatchedTaxon"."acceptedFamily", |
|
356 |
"ValidMatchedTaxon"."*Name_matched.Selected", |
|
357 |
"ValidMatchedTaxon"."*Name_matched.Source", |
|
358 |
"ValidMatchedTaxon"."*Name_matched.Warnings", |
|
359 |
"ValidMatchedTaxon"."*Name_matched.Accepted_name_lsid", |
|
360 |
"ValidMatchedTaxon".taxon_scrub__is_valid_match, |
|
361 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_taxon_rank, |
|
362 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_family, |
|
363 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_genus, |
|
364 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_specific_epithet, |
|
365 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_infraspecific_rank, |
|
366 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_infraspecific_epithet, |
|
367 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_author, |
|
368 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_taxon_name_no_author |
|
369 |
FROM ("ValidMatchedTaxon" |
|
370 |
LEFT JOIN "taxon_scrub.scrubbed_unique_taxon_name.*" USING (scrubbed_unique_taxon_name)); |
|
371 |
|
|
372 |
|
|
373 |
-- |
|
374 |
-- Name: VIEW taxon_scrub; Type: COMMENT; Schema: TNRS; Owner: - |
|
375 |
-- |
|
376 |
|
|
377 |
COMMENT ON VIEW taxon_scrub IS 'to update, use * as the column list'; |
|
378 |
|
|
379 |
|
|
380 |
-- |
|
381 | 309 |
-- Name: batch; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: |
382 | 310 |
-- |
383 | 311 |
|
... | ... | |
459 | 387 |
|
460 | 388 |
|
461 | 389 |
-- |
390 |
-- Name: taxon_scrub.scrubbed_unique_taxon_name.*; Type: VIEW; Schema: TNRS; Owner: - |
|
391 |
-- |
|
392 |
|
|
393 |
CREATE VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" AS |
|
394 |
SELECT tnrs."Name_submitted" AS scrubbed_unique_taxon_name, |
|
395 |
tnrs."Name_matched_rank" AS scrubbed_taxon_rank, |
|
396 |
tnrs."Name_matched_accepted_family" AS scrubbed_family, |
|
397 |
tnrs."Genus_matched" AS scrubbed_genus, |
|
398 |
tnrs."Specific_epithet_matched" AS scrubbed_specific_epithet, |
|
399 |
tnrs."Infraspecific_rank" AS scrubbed_infraspecific_rank, |
|
400 |
tnrs."Infraspecific_epithet_matched" AS scrubbed_infraspecific_epithet, |
|
401 |
tnrs."Name_matched_author" AS scrubbed_author, |
|
402 |
tnrs."Name_matched" AS scrubbed_taxon_name_no_author |
|
403 |
FROM tnrs; |
|
404 |
|
|
405 |
|
|
406 |
-- |
|
407 |
-- Name: taxon_scrub; Type: VIEW; Schema: TNRS; Owner: - |
|
408 |
-- |
|
409 |
|
|
410 |
CREATE VIEW taxon_scrub AS |
|
411 |
SELECT "ValidMatchedTaxon".scrubbed_unique_taxon_name, |
|
412 |
"ValidMatchedTaxon"."*Name_matched.batch", |
|
413 |
"ValidMatchedTaxon"."concatenatedScientificName", |
|
414 |
"ValidMatchedTaxon"."matchedTaxonName", |
|
415 |
"ValidMatchedTaxon"."matchedTaxonRank", |
|
416 |
"ValidMatchedTaxon"."*Name_matched.Name_score", |
|
417 |
"ValidMatchedTaxon"."matchedScientificNameAuthorship", |
|
418 |
"ValidMatchedTaxon"."matchedScientificNameID", |
|
419 |
"ValidMatchedTaxon"."*Name_matched.Author_score", |
|
420 |
"ValidMatchedTaxon"."matchedFamilyConfidence_fraction", |
|
421 |
"ValidMatchedTaxon"."matchedFamily", |
|
422 |
"ValidMatchedTaxon"."matchedGenus", |
|
423 |
"ValidMatchedTaxon"."matchedGenusConfidence_fraction", |
|
424 |
"ValidMatchedTaxon"."matchedSpecificEpithet", |
|
425 |
"ValidMatchedTaxon"."matchedSpeciesConfidence_fraction", |
|
426 |
"ValidMatchedTaxon"."matchedInfraspecificEpithet", |
|
427 |
"ValidMatchedTaxon"."*Name_matched.Infraspecific_epithet_score", |
|
428 |
"ValidMatchedTaxon"."identificationQualifier", |
|
429 |
"ValidMatchedTaxon"."morphospeciesSuffix", |
|
430 |
"ValidMatchedTaxon"."taxonomicStatus", |
|
431 |
"ValidMatchedTaxon"."acceptedTaxonName", |
|
432 |
"ValidMatchedTaxon"."acceptedScientificNameAuthorship", |
|
433 |
"ValidMatchedTaxon"."acceptedTaxonRank", |
|
434 |
"ValidMatchedTaxon"."acceptedScientificNameID", |
|
435 |
"ValidMatchedTaxon"."*Name_matched.Accepted_name_species", |
|
436 |
"ValidMatchedTaxon"."acceptedFamily", |
|
437 |
"ValidMatchedTaxon"."*Name_matched.Selected", |
|
438 |
"ValidMatchedTaxon"."*Name_matched.Source", |
|
439 |
"ValidMatchedTaxon"."*Name_matched.Warnings", |
|
440 |
"ValidMatchedTaxon"."*Name_matched.Accepted_name_lsid", |
|
441 |
"ValidMatchedTaxon".taxon_scrub__is_valid_match, |
|
442 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_taxon_rank, |
|
443 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_family, |
|
444 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_genus, |
|
445 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_specific_epithet, |
|
446 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_infraspecific_rank, |
|
447 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_infraspecific_epithet, |
|
448 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_author, |
|
449 |
"taxon_scrub.scrubbed_unique_taxon_name.*".scrubbed_taxon_name_no_author |
|
450 |
FROM ("ValidMatchedTaxon" |
|
451 |
LEFT JOIN "taxon_scrub.scrubbed_unique_taxon_name.*" USING (scrubbed_unique_taxon_name)); |
|
452 |
|
|
453 |
|
|
454 |
-- |
|
455 |
-- Name: VIEW taxon_scrub; Type: COMMENT; Schema: TNRS; Owner: - |
|
456 |
-- |
|
457 |
|
|
458 |
COMMENT ON VIEW taxon_scrub IS 'to update, use * as the column list'; |
|
459 |
|
|
460 |
|
|
461 |
-- |
|
462 | 462 |
-- Name: batch_download_settings_pkey; Type: CONSTRAINT; Schema: TNRS; Owner: -; Tablespace: |
463 | 463 |
-- |
464 | 464 |
|
Also available in: Unified diff
inputs/.TNRS/schema.sql: reexported from live DB, which changes the element order