Skip to content

Commit

Permalink
working on annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
robcast committed Sep 27, 2024
1 parent c002dc6 commit c858ffa
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 13 deletions.
87 changes: 82 additions & 5 deletions recipe/0309-annotation-collection/anno_p1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
{
"id": "{{ id.url }}-1",
"type": "Annotation",
"motivation": "supplementing",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"format": "text/plain",
"language": "de",
"value": "I. 54. Jahrgang"
"value": "headline-1"
},
"target": {
"type": "SpecificResource",
Expand All @@ -28,9 +27,87 @@
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=0,376,399,53"
"value": "xywh=88,957,2768,248"
}
}
}
},
{
"id": "{{ id.url }}-2",
"type": "Annotation",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "article-1-1"
},
"target": {
"type": "SpecificResource",
"source": {
"id": "{{ id.path }}/canvas/p1",
"type": "Canvas",
"partOf": [{
"id": "{{ id.path }}/manifest.json",
"type": "Manifest"
}]
},
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=80,1181,928,3384"
}
}
},
{
"id": "{{ id.url }}-3",
"type": "Annotation",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "article-1-2"
},
"target": {
"type": "SpecificResource",
"source": {
"id": "{{ id.path }}/canvas/p1",
"type": "Canvas",
"partOf": [{
"id": "{{ id.path }}/manifest.json",
"type": "Manifest"
}]
},
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=1000,2693,1880,1824"
}
}
},
{
"id": "{{ id.url }}-4",
"type": "Annotation",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"format": "text/plain",
"value": "article-2"
},
"target": {
"type": "SpecificResource",
"source": {
"id": "{{ id.path }}/canvas/p1",
"type": "Canvas",
"partOf": [{
"id": "{{ id.path }}/manifest.json",
"type": "Manifest"
}]
},
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=992,1213,1904,1472"
}
}
}
]
}
1 change: 1 addition & 0 deletions recipe/0309-annotation-collection/anno_p2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "{{ id.url }}",
"type": "AnnotationPage",
"partOf": "{{ id.path }}/anno_coll.json",
"items": [
{
"id": "{{ id.url }}-1",
Expand Down
9 changes: 1 addition & 8 deletions recipe/0309-annotation-collection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,13 @@ All AnnotationPages are separate documents that have an `items` property contain

A IIIF viewer that displays Annotations on a Canvas follows the URIs in the `annotations` property of the Canvas and loads the Annotations in the referenced AnnotationPages. If the viewer wants to indicate that these Annotations belong to one or more AnnotationCollections it has to follow the URI in the `partOf` property of the AnnotationPages to identify the AnnotationCollection and display its label and choose a common color for the Annotations. This means that a viewer has to load all AnnotationPages from all Canvases if it wants to present a list of all AnnotationCollections in the Manifest to the user.



ISSUES
- mention `supplementary` property of Range? seems very specialized
- can a viewer find the AnnotationCollection from the Manifest? seeAlso?
- images from https://fixtures.iiif.io/

## Restrictions

???

## Example

We use a Manifest containing two pages from a newspaper (Berliner Tageblatt, February 16, 1925, from Europeana) and a set of Annotations concerning layout elements.
We use a Manifest containing two pages from a newspaper (Berliner Tageblatt, February 16, 1925, from Staatsbibliothek Berlin via Europeana) and a set of Annotations concerning layout elements.

{% include manifest_links.html viewers="UV, Mirador, Curation" manifest="manifest.json" %}

Expand Down

0 comments on commit c858ffa

Please sign in to comment.