Skip to content

Instantly share code, notes, and snippets.

@edsu
Created May 13, 2013 19:32
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 edsu/5570838 to your computer and use it in GitHub Desktop.
Save edsu/5570838 to your computer and use it in GitHub Desktop.
example of the annotator json that gets posted to the store when the Document plugin is enabled
{
"document": {
"dc": {},
"link": [
{
"href": "https://peerj.com/articles/1/"
},
{
"href": "https://peerj.com/articles/1.pdf",
"rel": "alternate",
"type": "application/pdf"
},
{
"href": "https://peerj.com/articles/1.rdf",
"rel": "alternate",
"type": "application/rdf+xml"
},
{
"href": "https://peerj.com/articles/1.json",
"rel": "alternate",
"type": "application/json"
},
{
"href": "https://peerj.com/articles/1.xml",
"rel": "alternate",
"type": "application/xml"
},
{
"href": "https://peerj.com/articles/1.unixref",
"rel": "alternate",
"type": "application/unixref+xml"
},
{
"href": "https://peerj.com/articles/1.html",
"rel": "alternate",
"type": "text/html"
},
{
"href": "https://peerj.com/articles/1/",
"rel": "canonical",
"type": ""
},
{
"href": "doi:10.7717/peerj.1"
},
{
"href": "https://peerj.com/articles/1.pdf",
"type": "application/pdf"
}
],
"og": {
"image": [
"https://dfzljdn9uc3pi.cloudfront.net/2013/1/1/fig-1-small.jpg"
],
"site_name": [
"PeerJ"
],
"title": [
"How long is a piece of loop?"
],
"type": [
"article"
],
"url": [
"https://peerj.com/articles/1"
]
},
"scholar": {
"citation_author": [
"Yoonjoo Choi",
"Sumeet Agarwal",
"Charlotte M. Deane"
],
"citation_author_email": [
"deane@stats.ox.ac.uk"
],
"citation_author_institution": [
"Department of Computer Science, Dartmouth College, Hanover, NH, USA",
"Department of Systems Biology Doctoral Training Centre, University of Oxford, Oxford, United Kingdom",
"Department of Physics, University of Oxford, Oxford, United Kingdom",
"Department of Electrical Engineering, Indian Institute of Technology Delhi, Delhi, India",
"Department of Statistics, University of Oxford, United Kingdom"
],
"citation_date": [
"2013-02-12"
],
"citation_doi": [
"10.7717/peerj.1"
],
"citation_firstpage": [
"e1"
],
"citation_fulltext_html_url": [
"https://peerj.com/articles/1"
],
"citation_issn": [
"2167-8359"
],
"citation_journal_abbrev": [
"PeerJ"
],
"citation_journal_title": [
"PeerJ"
],
"citation_keywords": [
"Protein structure; Protein loop; Protein structure prediction; Protein loop structure; Protein loop structure prediction; Protein; Loop stretch; Loop span"
],
"citation_language": [
"en"
],
"citation_pdf_url": [
"https://peerj.com/articles/1.pdf"
],
"citation_publisher": [
"PeerJ Inc."
],
"citation_title": [
"How long is a piece of loop?"
],
"citation_volume": [
"1"
]
},
"title": "How long is a piece of loop?"
},
"permissions": {
"admin": [
"acct:edsu@ec2-54-243-11-2.compute-1.amazonaws.com:5000"
],
"delete": [
"acct:edsu@ec2-54-243-11-2.compute-1.amazonaws.com:5000"
],
"read": [
"group:__world__",
"acct:edsu@ec2-54-243-11-2.compute-1.amazonaws.com:5000"
],
"update": [
"acct:edsu@ec2-54-243-11-2.compute-1.amazonaws.com:5000"
]
},
"target": [
{
"$$hashKey": "00P",
"quote": "Loops are irregular structures",
"selector": [
{
"endContainer": "/div[6]/div[1]/div[1]/div[2]/article[1]/header[1]/div[3]/div[2]/div[2]/div[1]/p[1]",
"endOffset": 31,
"startContainer": "/div[6]/div[1]/div[1]/div[2]/article[1]/header[1]/div[3]/div[2]/div[2]/div[1]/p[1]",
"startOffset": 0,
"type": "RangeSelector"
},
{
"exact": "Loops are irregular structures",
"prefix": "nd article information Abstract",
"suffix": "which connect two secondary str",
"type": "TextQuoteSelector"
},
{
"end": 570,
"start": 540,
"type": "TextPositionSelector"
}
],
"source": "https://peerj.com/articles/1/"
}
],
"text": "test",
"uri": "https://peerj.com/articles/1/",
"user": "acct:edsu@ec2-54-243-11-2.compute-1.amazonaws.com:5000"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment