Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This very simple graph was used to help introduce students to graphing concepts. We started the class with a powerpoint presentation covering the nature of networks and graphs and basic coding for Cypher so that they would be prepared to work on a [Neo4j GraphGist](http://gist.neo4j.org/) on their own by the end of the hour class. Since everyone intuitively understands that family trees are derived from a set of relationships, the class was assigned to fork the graph below.
1908
vulibrarygis.l367nf49
1920
vulibrarygis.l366jopj
1936
Full video at http://www.infoq.com/news/2009/02/craftsmanship-and-ethics-article
Craftsmanship and Ethics
Robert C. Martin Object Mentor, Inc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: let $localFilesFolderUnix := "c:/test" :) | |
let $localFilesFolderPC := "c:\test" | |
let $uri := "http://services.morphbank.net/mbsvc3/request?method=changes&objecttype=Image&keywords=&geolocated=true&firstResult=0&user=&group=Bioimages&change=&lastDateChanged=&numChangeDays=30&id=&taxonName=&format=svc" | |
let $responseDoc := fn:doc($uri) | |
let $ids := | |
for $id in $responseDoc//object/sourceId | |
return concat($id/external/text(),"|","http://www.morphbank.net/?id=",$id/morphbank/text(),"&imgType=jpeg") | |
return file:write(concat($localFilesFolderPC,"\morphbank-ids.csv"), $ids, map { "item-separator": " "}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Feature", | |
"properties": { | |
"title": "Poststadion Football Complex", | |
"marker-size": "medium", | |
"marker-color": "#e5c228", | |
"marker-symbol": "star-stroked", | |
"images": [ | |
[ | |
"<img src='images/poststadion.jpg' />", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer