Skip to content

Instantly share code, notes, and snippets.

@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;
}
= 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 / 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
@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 / 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
Created March 7, 2014 13:28
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 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 / Dutch.txt
Last active January 4, 2016 20:48
Translation of "En dan nu: het ecologisch weerbericht" by @schilthuizen https://www.researchgate.net/publication/254909886_En_dan_nu_het_ecologisch_weerbericht
En dan nu: het ecologisch weerbericht ‘Wisselvallig. De voedselwebben in
het midden en oosten van het land vertonen matige tot krachtige
verstoring. Biodiversiteits- indices liggen onder het gemiddelde voor
deze tijd van het jaar. De populatie-afnames van waterinsecten zijn
matig, fase III, langs de kust en rond het IJsselmeer soms krachtig,
fase IV of V. En in het Groene Hart is er een pollinatie-alarm van
kracht’. Toekomstmuziek, natuurlijk. Maar met een beetje fantasie is
zo’n ‘ecologisch weerbericht’ over enkele decennia misschien geen
science fiction meer. Al éénderde eeuw registreert EIS-Nederland de
verspreiding en het voorkomen van de Nederlandse insecten en andere
{
"responseCode": 1,
"handle": "10.1186/1475-2875-12-415",
"values": [
{
"index": 1,
"type": "URL",
"data": "http://www.malariajournal.com/content/12/1/415",
"ttl": 86400,
"timestamp": "2013-11-16T20:02:17Z"
@rdmpage
rdmpage / pinnotheridae.gml
Created November 21, 2013 09:20
Graph of the GBIF classification of the pea crabs (family Pinnotheridae) in GML format.
graph
[directed 1
node [ id 8672 label "Pinnotheridae" ]
node [ id 4645088 label "Alain" ]
node [ id 5971711 label "Alain crosnieri" ]
node [ id 5971712 label "Alain raymondi" ]
node [ id 4382392 label "Alainotheres" ]
node [ id 4382393 label "Alainotheres leloeuffi" ]
node [ id 4645085 label "Arcotheres" ]
node [ id 5971485 label "Arcotheres latifrons" ]