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 $books := | |
<books> | |
<book class="fiction">Book of Strange New Things</book> | |
<book class="nonfiction">Programming Scala</book> | |
<book class="fiction">Absurdistan</book> | |
<book class="nonfiction">Art of R Programming</book> | |
<book class="fiction">I, Robot</book> | |
</books> | |
for $book in $books/book | |
let $title := $book/text()||" " |
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"; | |
declare namespace vra="http://www.vraweb.org/vracore4.htm"; | |
for $name in fn:collection("Metadata")//vra:agent | |
(:where substring($name/vra:name/text(),1,5)="Burri":) | |
where normalize-space($name/vra:name/@refid/data()) != $name/vra:name/@refid/data() | |
return $name/vra:name/text()||" "||base-uri($name/vra:name)||" "||" " |
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"; | |
declare namespace sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"; | |
(: | |
*********** Get data from GitHub ********* | |
:) | |
let $textOrganisms := http:send-request(<http:request method='get' href='https://raw.githubusercontent.com/baskaufs/Bioimages/master/organisms.csv'/>)[2] | |
let $xmlOrganisms := csv:parse($textOrganisms, map { 'header' : true(),'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
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/> | |
PREFIX ac: <http://rs.tdwg.org/ac/terms/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX dsw: <http://purl.org/dsw/> | |
PREFIX Iptc4xmpExt: <http://iptc.org/std/Iptc4xmpExt/2008-02-29/> | |
SELECT DISTINCT ?genus ?species ?uri | |
WHERE { | |
?organism foaf:depiction ?image. |
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
curl --data-urlencode "[email protected]" http://tdwg-rdf.phylodiversity.net/store2/sparql |
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
http://api.gbif.org/v1/occurrence/search?occurrenceID=http%3A%2F%2Fbioimages.vanderbilt.edu%2Find-baskauf%2F28747%232003-07-25 |
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
SELECT DISTINCT ?image WHERE { | |
<http://bioimages.vanderbilt.edu/ind-baskauf/00000> <http://xmlns.com/foaf/0.1/depiction> ?image. | |
} |
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
http://tdwg-rdf.phylodiversity.net/store2/sparql?query=SELECT%20DISTINCT%20%3Fimage%20WHERE%20%7B%3Chttp%3A%2F%2Fbioimages.vanderbilt.edu%2Find-baskauf%2F00000%3E%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2Fdepiction%3E%20%3Fimage.%7D |
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
<html> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
<title>test HTTP GET from cross-domain URL using Javascript</title> | |
</head> | |
<body> | |
This will send an HTTP GET request to a URL. | |
<script type="text/javascript"> | |
var http = new XMLHttpRequest(); | |
var url = "http://api.gbif.org/v1/occurrence/search?occurrenceID=http%3A%2F%2Fbioimages.vanderbilt.edu%2Find-baskauf%2F28747%232003-07-25"; |
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
<html> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
<title>test HTTP GET from cross-domain URL using Javascript</title> | |
</head> | |
<body> | |
This will send an HTTP GET request to a URL. | |
<script type="text/javascript"> | |
var http = new XMLHttpRequest(); | |
var url = "http://api.gbif.org/v1/occurrence/search?occurrenceID=http%3A%2F%2Fbioimages.vanderbilt.edu%2Find-baskauf%2F28747%232003-07-25"; |
OlderNewer