Skip to content

Instantly share code, notes, and snippets.

@benwbrum
Last active October 18, 2018 13:56
Show Gist options
  • Select an option

  • Save benwbrum/017ceb94c162c5ac4fe7e232e5371fab to your computer and use it in GitHub Desktop.

Select an option

Save benwbrum/017ceb94c162c5ac4fe7e232e5371fab to your computer and use it in GitHub Desktop.
Engel Diaries Example
{
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
"@type": "sc:Canvas",
"label": "Item 4",
"width": 968,
"height": 1673,
"images": [
{
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
"@type": "oa:Annotation",
"motivation": "sc:painting",
"resource": {
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
"@type": "dctypes:Image",
"format": "image/jpeg",
"width": 968,
"height": 1673,
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "https://collections.ushmm.org/assets/iiif/2/374873",
"profile": "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2"
}
},
"on": "https://collections.ushmm.org/assets/iiif/2/374873"
}
],
"related": [
{
"label": "Read this page",
"format": "text/html",
"@id": "http://localhost:3000/display/display_page?page_id=235206"
},
{
"label": "Transcribe this page",
"format": "text/html",
"@id": "http://localhost:3000/transcribe/display_page?page_id=235206"
},
{
"label": "Translate this page",
"format": "text/html",
"@id": "http://localhost:3000/transcribe/translate?page_id=235206"
}
],
"seeAlso": [
{
"label": "HTML Transcription",
"format": "text/html",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#plaintext-for-full-text-search-1",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/annotation/235206/html/transcription"
},
{
"label": "Searchable Plaintext",
"format": "text/plain",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#html-transcription",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/export/235206/plaintext/searchable"
},
{
"label": "Verbatim Plaintext",
"format": "text/plain",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#verbatim-plaintext-2",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/export/235206/plaintext/verbatim"
},
{
"label": "Emended Plaintext",
"format": "text/plain",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#emended-plaintext-1",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/export/235206/plaintext/emended"
},
{
"label": "HTML Translation",
"format": "text/html",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#html-translation",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/annotation/235206/html/translation"
},
{
"label": "Verbatim Translation Plaintext",
"format": "text/plain",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#verbatim-translation-plaintext-1",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/export/235206/plaintext/translation/verbatim"
},
{
"label": "Emended Translation Plaintext",
"format": "text/plain",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#emended-translation-plaintext-1",
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/export/235206/plaintext/translation/emended"
}
],
"service": {
"@context": "http://www.fromthepage.org/jsonld/1/context.json",
"@id": "http://localhost:3000/iiif/11086/235206/status",
"label": "Page Status",
"profile": "https://github.com/benwbrum/fromthepage/wiki/FromThePage-Support-for-the-IIIF-Presentation-API-and-Web-Annotations#service-1",
"pageStatus": [
"hasSubjectTags"
]
},
"otherContent": [
{
"@id": "http://localhost:3000/iiif/235206/list/transcription",
"@type": "sc:AnnotationList",
"label": "Transcription"
}
]
},
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://localhost:3000/iiif/235206/list/transcription",
"@type": "sc:AnnotationList",
"resources": [
{
"@type": "oa:Annotation",
"motivation": "sc:painting",
"on": "https://collections.ushmm.org/assets/iiif/2/374873#xywh=0,0,968,1673",
"resource": {
"@id": "http://localhost:3000/ushmmarchives/selma-engel-papers/selma-engel-papers/annotation/235206/html/transcription",
"@type": "cnt:ContentAsText",
"format": "text/html",
"chars": "<p><a data-tooltip='http://localhost:3000/article/tooltip?article_id=16255&amp;collection_id=selma-engel-papers' href='http://localhost:3000/article/show?article_id=16255' title='0004'>0004</a><span class='line-break'><br/>\n</span>wat men mij had <span class='line-break'><br/>\n</span>kunnen geven.<span class='line-break'><br/>\n</span>Even later komt<span class='line-break'><br/>\n</span>Adam en brengt ons <span class='line-break'><br/>\n</span>een boucet[?] met<span class='line-break'><br/>\n</span>bloemen wat ik in de <span class='line-break'><br/>\n</span>verste verte niet<span class='line-break'><br/>\n</span>had kunnen denken.<span class='line-break'><br/>\n</span>Zo wat moois te<span class='line-break'><br/>\n</span>krijgen en even zo<span class='line-break'><br/>\n</span>van Stefka ook een<span class='line-break'><br/>\n</span>bos bloemen met de<span class='line-break'><br/>\n</span>mooiste en beste <span class='line-break'><br/>\n</span>wensen dat we snel<span class='line-break'><br/>\n</span>op de vrijheid zullen<span class='line-break'><br/>\n</span>zijn en Stefka en Adam<span class='line-break'><br/>\n</span>niet vergeten. O dat <span class='line-break'><br/>\n</span>mijn fam. [illegible]<span class='line-break'><br/>\n</span>[illegible] mogen beleven<span class='line-break'><br/>\n</span>dat ik getrouwd ben<span class='line-break'><br/>\n</span>en met zo een goede <a data-tooltip='http://localhost:3000/article/tooltip?article_id=16258&amp;collection_id=selma-engel-papers' href='http://localhost:3000/article/show?article_id=16258' title='will continue on 0007'>will continue on 0007</a><span class='line-break'><br/>\n</span></p>"
}
}
]
}
<p><a data-tooltip='http://localhost:3000/article/tooltip?article_id=16255&amp;collection_id=selma-engel-papers' href='http://localhost:3000/ushmmarchives/selma-engel-papers/article/16255' title='0004'>0004</a><span class='line-break'><br/>
</span>wat men mij had <span class='line-break'><br/>
</span>kunnen geven.<span class='line-break'><br/>
</span>Even later komt<span class='line-break'><br/>
</span>Adam en brengt ons <span class='line-break'><br/>
</span>een boucet[?] met<span class='line-break'><br/>
</span>bloemen wat ik in de <span class='line-break'><br/>
</span>verste verte niet<span class='line-break'><br/>
</span>had kunnen denken.<span class='line-break'><br/>
</span>Zo wat moois te<span class='line-break'><br/>
</span>krijgen en even zo<span class='line-break'><br/>
</span>van Stefka ook een<span class='line-break'><br/>
</span>bos bloemen met de<span class='line-break'><br/>
</span>mooiste en beste <span class='line-break'><br/>
</span>wensen dat we snel<span class='line-break'><br/>
</span>op de vrijheid zullen<span class='line-break'><br/>
</span>zijn en Stefka en Adam<span class='line-break'><br/>
</span>niet vergeten. O dat <span class='line-break'><br/>
</span>mijn fam. [illegible]<span class='line-break'><br/>
</span>[illegible] mogen beleven<span class='line-break'><br/>
</span>dat ik getrouwd ben<span class='line-break'><br/>
</span>en met zo een goede <a data-tooltip='http://localhost:3000/article/tooltip?article_id=16258&amp;collection_id=selma-engel-papers' href='http://localhost:3000/ushmmarchives/selma-engel-papers/article/16258' title='will continue on 0007'>will continue on 0007</a><span class='line-break'><br/>
</span></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment