Skip to content

Instantly share code, notes, and snippets.

View sterkenburgsara-zz's full-sized avatar

Sara Sterkenburg sterkenburgsara-zz

  • Vanderbilt University
  • Nashville, TN
View GitHub Profile
@sterkenburgsara-zz
sterkenburgsara-zz / roosevelt
Last active August 29, 2015 14:07 — forked from stardustnrust/roosevelt
Neo4j Data on Roosevelt Family Genealogy for Cypher Queries
= Roosevelt Family Genealogy
== Modeling the Graph
//graph
=== OUR DATASET
[source, cypher]
= Roosevelt Family Geneaology
:neo4j-version: 2.1.0
:author: Suellen Stringer-Hye
:twitter: @suellenshye
:tags: domain:education, use-case:geneaology
== Purpose of Graph
@sterkenburgsara-zz
sterkenburgsara-zz / bookartists_nodes.txt
Last active July 14, 2016 15:36 — forked from brownht1/gist:807d996c35de219a806d
Neo4j Nodes for Vanderbilt Collection of Southern Artists' Books / Cypher Queries to Display Graph Relationships
= Graphing Artists’ Books: Visualizing Connections within Vanderbilt’s Collection of Southern Presses
=== OUR DATASET
This collection is based on rougly 250 of Vanderbilt University's artists' books published in the "south" (defined using the U.S. Census Bureau's definition). The gist is a part of a Vanderbilt University Dean's Fellow project by Haley Brown.
The project has also been expanded into an exhibition held within the Vanderbilt Special Collections Library. The show will be up from May 2016-May 2017.
Data encoding by Haley Brown and Sara Sterkenburg.
//hide
let $uri := fn:encode-for-uri( "http://bioimages.vanderbilt.edu/vanderbilt/7-314#2002-06-14")
let $json := fetch:text("http://api.gbif.org/v1/occurrence/search?occurrenceID=" || $uri)
let $json := fn:parse-json($json)
let $latitude := $json?results?1?decimalLatitude
let $longitude := $json?results?1?decimalLongitude
let $identifier := $json?results?1?identifier
return map {
"type": "Feature",
"geometry": map {
"type": "Point",
@sterkenburgsara-zz
sterkenburgsara-zz / gbif-api.txt
Created February 12, 2016 21:32 — forked from baskaufs/gbif-api.txt
Some test API calls to get JSON with geocoordinates from the Global Biodiversity Information Facility (GBIF)
See http://www.gbif.org/developer/summary for background.
Find the single occurrence with identifier http://bioimages.vanderbilt.edu/vanderbilt/7-314#2002-06-14
http://api.gbif.org/v1/occurrence/search?occurrenceID=http%3A%2F%2Fbioimages.vanderbilt.edu%2Fvanderbilt%2F7-314%232002-06-14
Note: the occurrenceID is URLencoded.
Find occurrences
- with scientificName=Quercus%20macrocarpa (bur oak, note: space between genus and species is URLencoded as "%20")
- with decimalLatitude between 35.81 and 36.45
- with decimalLongitude between -87.21 and -86.27