Skip to content

Instantly share code, notes, and snippets.

View tucotuco's full-sized avatar

John Wieczorek tucotuco

  • Museum of Vertebrate Zoology
  • UC Berkeley
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/style/human.xsl"?>
<extension xmlns="http://rs.gbif.org/extension/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:hc="http://rs.tdwg.org/hc/terms/"
xsi:schemaLocation="http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd"
dc:title="Humboldt Inventory Event Extension"
name="HumboldtInventoryEventExtension"
@tucotuco
tucotuco / extended_measurement_or_fact_2021-08_16.xml
Last active August 17, 2021 22:52
Draft update to the Extended Measurement or Facts Darwin Core Extension
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='/style/human.xsl'?>
<extension xmlns='http://rs.gbif.org/extension/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:dc='http://purl.org/dc/terms/'
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
dc:title='Extended Measurement or Facts'
name='ExtendedMeasurementOrFacts' namespace='http://rs.tdwg.org/dwc/terms/'
rowType='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
dc:issued='2021-07-15'
# Glossary
*Biodiversity information facility*
Variously described as a ‘BIF’, a system or a network, the broader structure of people and institutions, coordinated by the node, that collectively forms an infrastructure for delivering biodiversity information to relevant stakeholders.
*Participant*
A country, economy or organization that joins GBIF by signing a Memorandum of Understanding and establishing a co-ordinated effort to support open access and use of biodiversity data, to advance scientific research, and to promote technological and sustainable development.
*Participant node*
A coordinating team designated by the Participant to coordinate a network of people and institutions that produce, manage and use biodiversity data, collectively building an infrastructure for delivering biodiversity information.
@tucotuco
tucotuco / test.md
Created October 16, 2017 23:48
Test for md editing in gist

Title

@tucotuco
tucotuco / gn.json
Created July 18, 2017 15:56
GNR response JSON
{"id":"55vre03d7y3b","url":"http://resolver.globalnames.org/name_resolvers/55vre03d7y3b.json","data_sources":[],"data":[{"supplied_name_string":"Abies religiosa","is_known_name":true,"results":[{"data_source_id":4,"data_source_title":"NCBI","gni_uuid":"62e75dd3-ebd0-5f04-b987-5cc7d40e5034","name_string":"Abies religiosa","canonical_form":"Abies religiosa","classification_path":"|Eukaryota|Viridiplantae|Streptophyta|Streptophytina|Embryophyta|Tracheophyta|Euphyllophyta|Spermatophyta|Acrogymnospermae|Pinidae|Pinales|Pinaceae|Abies|Abies religiosa","classification_path_ranks":"|superkingdom|kingdom|phylum|subphylum||||||subclass|order|family|genus|species","classification_path_ids":"131567|2759|33090|35493|131221|3193|58023|78536|58024|1437180|3313|1446380|3318|3319|425948","taxon_id":"425948","edit_distance":0,"imported_at":"2017-05-26T17:50:04Z","match_type":1,"match_value":"Exact string match","prescore":"3|0|0","score":0.988}],"data_sources_number":7,"in_curated_sources":false}],"status":"success","message":
georeferenceverificationstatus count
12941869
requires verification 4121780
unverified 1790878
Unverified 172562
verified by curator 162177
verification required 157171
CoGe_corrected_2015-02-04 119658
Verified by data custodian 49514
checked by curator 21844
@tucotuco
tucotuco / bigqueryexample.py
Last active August 23, 2016 19:09
Example to do a bigquery Query for Classes in VertNet when invoked using the vertnet-portal project_id and appropriate authentication in the system where the script is executed.
#!/usr/bin/env python
# Copyright 2015, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@tucotuco
tucotuco / gist:998d272564d115d194e5
Created March 3, 2015 17:28
bco.owl to look at OWL syntax rendering in gist
@prefix : <http://purl.obolibrary.org/obo/bco.owl#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://purl.obolibrary.org/obo/bco.owl> .
@tucotuco
tucotuco / gist:3413d20e056c80bec0b2
Created February 10, 2015 15:24
BigQuery SQL to create old-style harvest
SELECT
pubdate,
url,
eml,
dwca,
title,
icode,
"description" as description,
contact,
orgname,
{u'harvestfoldernew': u'vertnet-harvesting/data/2015-01-08/cumv_rept-47d62ef6-692e-4140-8d75-aa5b13c70063'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2015-01-08/cumv_mamm-6a24898f-9933-4deb-b599-7b1da6550e9b'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2014-12-26/amphibian-211e31b8-da46-4740-987a-dee72fbb6f66'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2015-01-08/uwbm_mammals-f4d0fab6-8c03-4e0f-8186-9051176ec7e0'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2015-01-08/bpbm_verts-a34bc395-ec7d-4be9-a554-cb4291080a1e'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2014-12-26/ipt_vz_her-619891da-c504-45d1-bdd7-2446d16ea71b'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2014-12-25/hsu_wildlife_eggs_nests-73adbb80-bea5-4fb6-85f3-601cec9c0655'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2015-01-08/qm_all-3c081f00-610f-4856-b732-fbce4ee4ffd2'}, {u'harvestfoldernew': u'vertnet-harvesting/data/2014-12-26/uwbm_birds-830191e3-c1ec-4698-9089-1ad5ccd1b1cc'}, {u'harvestfoldernew': u've