Skip to content

Instantly share code, notes, and snippets.

Roderic Page rdmpage

Block or report user

Report or block rdmpage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View _q5fYmzIRsaO1zdwL9Ja5A.json
{
"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 Mar 7, 2014
GBIF data overlayed on Google Maps
View index.html
<!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 Apr 2, 2014
Edit point location
View index.html
<!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 Aug 29, 2015
Edit point location (with georeferencing)
View index.html
<!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 Aug 29, 2015
Linking taxa by synonyms
View synonym.asc

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
View gist:8ce96f26ff9826d206c5
= 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 Jun 22, 2014
WKT GBIF query
View index.html
<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 Aug 25, 2014
BioStor geotagging stats
View geotagging.txt
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 Aug 29, 2015
Getagged in Genbank but not GBIF
View getag.asc
View gist:28255b22c3af10d70a67
== GBIF geotagged, sequence in Genbank not geotagged
//hide
//setup
//output
[source,cypher]
----
// GBIF occurrence
You can’t perform that action at this time.