Skip to content

Instantly share code, notes, and snippets.

@rdmpage
Last active August 29, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdmpage/b3eae499e46390dc9963 to your computer and use it in GitHub Desktop.
Save rdmpage/b3eae499e46390dc9963 to your computer and use it in GitHub Desktop.
API call to get hypothesis.is annotation https://hypothes.is/a/_q5fYmzIRsaO1zdwL9Ja5A
{
"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"
},
{
"endContainer": "/div[1]/article[5]/div[1]/div[3]/p[1]",
"endOffset": 4,
"type": "RangeSelector",
"startOffset": 0,
"startContainer": "/div[1]/article[5]/div[1]/div[3]/p[1]"
},
{
"start": 2821,
"end": 2825,
"type": "TextPositionSelector"
},
{
"exact": "1209",
"prefix": "7\n\n \n\n \n Record Number\n ",
"type": "TextQuoteSelector",
"suffix": "\n \n\n \n \n\n\n\n\n \n \n \n \n "
}
]
}
],
"tags": [
"Correction"
],
"text": "Collection number should read 1269 according to Plantae Hartwegianae.",
"created": "2015-08-28T23:57:04.152662+00:00",
"uri": "http://www.gbif.org/occurrence/912442645",
"user": "acct:dwhly@hypothes.is",
"document": {
"eprints": {},
"title": "Occurrence Detail 912442645",
"twitter": {},
"dc": {},
"favicon": "http://cdn.gbif.org/img/favicon/favicon_32x32.ico",
"prism": {},
"highwire": {},
"link": [
{
"href": "http://www.gbif.org/occurrence/912442645"
}
],
"facebook": {}
},
"consumer": "00000000-0000-0000-0000-000000000000",
"id": "_q5fYmzIRsaO1zdwL9Ja5A",
"permissions": {
"admin": [
"acct:dwhly@hypothes.is"
],
"read": [
"group:__world__"
],
"update": [
"acct:dwhly@hypothes.is"
],
"delete": [
"acct:dwhly@hypothes.is"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment