This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| p.key as publisherKey, p.title, d.key as datasetKey, d.title, replace(replace(e.url, 'http://registry.als.scot/GBIF/', ''), '.zip', '') as guid | |
| from | |
| dataset d JOIN | |
| dataset_endpoint de ON d.key=de.dataset_key JOIN | |
| endpoint e ON e.key=de.endpoint_key JOIN | |
| organization p ON d.publishing_organization_key = p.key | |
| where | |
| e.url like 'http://registry.als.scot/GBIF/%' | |
| order by p.title, d.title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| p.key as publisherKey, p.title, d.key as datasetKey, d.title, replace(replace(e.url, 'http://registry.als.scot/GBIF/', ''), '.zip', '') as guid | |
| from | |
| dataset d JOIN | |
| dataset_endpoint de ON d.key=de.dataset_key JOIN | |
| endpoint e ON e.key=de.endpoint_key JOIN | |
| organization p ON d.publishing_organization_key = p.key | |
| where | |
| e.url like 'http://registry.als.scot/GBIF/%' | |
| order by p.title, d.title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET hive.exec.compress.output = true; | |
| SET avro.output.codec = gzip; | |
| CREATE TABLE tim.jw1 STORED AS avro AS | |
| SELECT * FROM prod_a.occurrence_hdfs | |
| WHERE | |
| dynamicProperties is not null or | |
| occurrenceRemarks is not null or | |
| organismRemarks is not null or | |
| fieldNotes is not null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - asset publishing: http://www.gbif.org/sites/default/files/gbif_project/files/Encounter_Bay.pdf | |
| (node:90697) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ServerError: { | |
| "request": { | |
| "url": "https://api.contentful.com:443/spaces/210sv5srxtrc/entries/82202", | |
| "headers": { | |
| "Accept": "application/json, text/plain, */*", | |
| "Content-Type": "application/vnd.contentful.management.v1+json", | |
| "X-Contentful-User-Agent": "contentful-management.js/1.3.1", | |
| "Authorization": "Bearer 5760fa26420af97aa3a38bddeb96688a6a29b3d29c555ad881224a0a2c617943", | |
| "user-agent": "node.js/v7.7.1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let asset = await space.createAsset({ | |
| fields: { | |
| title: {'en-GB': "test"}, | |
| description: {'en-GB': "test"}, | |
| file: { | |
| 'en-GB': { | |
| contentType: "image/png", | |
| fileName: "logo-1.png", | |
| upload: "https://api.gbif.org/v1/image/unsafe/cms.gbif-uat.org/sites/default/files/gbif_event/images/logo-1.png" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "datasetUuid":"15f819bd-6612-4447-854b-14d12ee1022d", | |
| "status":"UPDATED", | |
| "crawlAttempt":24, | |
| "oldOccurrence":{ | |
| "key":1139047634, | |
| "datasetKey":"15f819bd-6612-4447-854b-14d12ee1022d", | |
| "publishingOrgKey":null, | |
| "publishingCountry":null, | |
| "protocol":"DWC_ARCHIVE", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| n.nid AS id, | |
| n.title AS title, | |
| b.body_value AS summary, | |
| concat( | |
| DATE_FORMAT(t.ge_date_ical_value, '%Y-%m-%dT%H:%i'), | |
| CASE WHEN t.ge_date_ical_offset <0 THEN '' ELSE '+' END, | |
| TIME_FORMAT(SEC_TO_TIME(COALESCE(t.ge_date_ical_offset, 0)),'%H:%i')) AS start, | |
| concat( | |
| DATE_FORMAT(t.ge_date_ical_value2, '%Y-%m-%dT%H:%i'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "datasetUuid":"4fa7b334-ce0d-4e88-aaae-2e0c138d049e", | |
| "status":"UPDATED", | |
| "crawlAttempt":7, | |
| "oldOccurrence":{ | |
| "key":1161897615, | |
| "datasetKey":"4fa7b334-ce0d-4e88-aaae-2e0c138d049e", | |
| "publishingOrgKey":"e2e717bf-551a-4917-bdc9-4fa0f342c530", | |
| "publishingCountry":"US", | |
| "protocol":"DWC_ARCHIVE", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Protista|Chlorophyta||Chlorococcales|Characiaceae|Characium|Characium minutum var. disculiferum|minutum|disculiferum|variety | |
| ||||Algues|Ectocarpus|Ectocarpus littoralis||| | |
| ||||Algues|Ectocarpus|Ectocarpus littoralis||| | |
| ||||Algues|Ectocarpus|Ectocarpus littoralis||| | |
| ||||Algues|Ectocarpus|Ectocarpus littoralis||| | |
| ||||Algues|Hildenbrandtia|Hildenbrandtia rosea Kütz.||| | |
| ||||Algues|Hildenbrandtia|Hildenbrandtia rosea Kütz.||| | |
| ||||Algues|Hildenbrandtia|Hildenbrandtia rosea Kütz.||| | |
| ||||Algues|Hildenbrandtia|Hildenbrandtia rosea Kütz.||| | |
| ||||Algues|Ulva|Ulva plantaginea var.||| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DROP TABLE prod_b.0023084_160910150852091_interpreted; | |
| DROP TABLE prod_b.0023084_160910150852091_verbatim; | |
| DROP TABLE prod_b.0035467_160910150852091; | |
| DROP TABLE prod_b.0035467_160910150852091_citation; | |
| DROP TABLE prod_b.0035499_160910150852091; | |
| DROP TABLE prod_b.0035499_160910150852091_citation; | |
| DROP TABLE prod_b.0040768_160910150852091_interpreted; | |
| DROP TABLE prod_b.0040768_160910150852091_verbatim; | |
| DROP TABLE prod_b.0040789_160910150852091_interpreted; | |
| DROP TABLE prod_b.0040789_160910150852091_verbatim; |