Skip to content

Instantly share code, notes, and snippets.

{
"updated": "2015-08-28T23:58:18.165753+00:00",
"target": [
{
"source": "http://www.gbif.org/occurrence/912442645",
"selector": [
{
"conformsTo": "https://tools.ietf.org/html/rfc3236",
"type": "FragmentSelector",
"value": "occurrence"
@rdmpage
rdmpage / index.html
Created March 7, 2014 13:25
GBIF data overlayed on Google Maps
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GBIF and Google Maps</title>
<style type="text/css">
body {
margin: 0;
@rdmpage
rdmpage / index.html
Created April 2, 2014 13:55
Edit point location
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Edit point location</title>
<style type="text/css">
body {
margin: 0;
padding: 40px;
@rdmpage
rdmpage / index.html
Last active August 29, 2015 13:58
Edit point location (with georeferencing)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Edit point location (with georeferencing)</title>
<style type="text/css">
body {
margin: 0;
padding: 40px;
@rdmpage
rdmpage / synonym.asc
Last active August 29, 2015 14:01
Linking taxa by synonyms

Test whether two taxa are same using synonyms

This experiment takes two taxa for the same lizard (Geckonia chazaliae or Tarentola chazaliae) and runs a query to discover that these taxa are duplicates. In other words, GBIF has the same lizard twice in its classification.

63550 88 88
= Network versioning using relationnodes
Recently there was a nice blog on versioning networks by Ian Robinson (http://iansrobinson.com/2014/05/13/time-based-versioned-graphs/[read it here]) on using identity nodes and separating structure from state. In this gist I'd like to put in my 2 cents by introducing another approach using _relationnodes_. This is more about structure of a network than about states of nodes, but it treats versioning differently. As Ian states in his blog, there's always a trade-off to be made, since versioning causes an extra load on storage and processing.
== Relationnodes?
=== What are relationnodes?
Relation nodes are intermediary nodes between two network nodes that represents the relation between the nodes.
So, if A and B are two network nodes, instead of connecting them with a relationship of `[:RELTYPE]`,
@rdmpage
rdmpage / index.html
Created June 22, 2014 19:34
WKT GBIF query
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WKT</title>
<style type="text/css">
#info {
position: absolute;
top: 70px;
left: 550px;
width: 350px;
}
@rdmpage
rdmpage / geotagging.txt
Created August 25, 2014 09:57
BioStor geotagging stats
How many articles?
SELECT COUNT(reference_id) FROM rdmp_reference WHERE PageID <> 0;
+---------------------+
| COUNT(reference_id) |
+---------------------+
| 106617 |
+---------------------+
1 row in set (0.08 sec)
@rdmpage
rdmpage / getag.asc
Last active August 29, 2015 14:07
Getagged in Genbank but not GBIF
@rdmpage
rdmpage / gb.asc
Last active August 29, 2015 14:07
GenBank specimen

Simple case of specimen and sequence both in GBIF