From c858ffacce77ac8c41d8867c2f8486f07f6a9ffe Mon Sep 17 00:00:00 2001 From: Robert Casties Date: Fri, 27 Sep 2024 18:31:21 +0200 Subject: [PATCH] working on annotations. --- .../0309-annotation-collection/anno_p1.json | 87 +++++++++++++++++-- .../0309-annotation-collection/anno_p2.json | 1 + recipe/0309-annotation-collection/index.md | 9 +- 3 files changed, 84 insertions(+), 13 deletions(-) diff --git a/recipe/0309-annotation-collection/anno_p1.json b/recipe/0309-annotation-collection/anno_p1.json index 0039d42e0..706e4a918 100644 --- a/recipe/0309-annotation-collection/anno_p1.json +++ b/recipe/0309-annotation-collection/anno_p1.json @@ -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", @@ -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" + } + } + } ] } diff --git a/recipe/0309-annotation-collection/anno_p2.json b/recipe/0309-annotation-collection/anno_p2.json index edefe9332..b0f416752 100644 --- a/recipe/0309-annotation-collection/anno_p2.json +++ b/recipe/0309-annotation-collection/anno_p2.json @@ -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", diff --git a/recipe/0309-annotation-collection/index.md b/recipe/0309-annotation-collection/index.md index f8f5f68c2..43cfb231d 100644 --- a/recipe/0309-annotation-collection/index.md +++ b/recipe/0309-annotation-collection/index.md @@ -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" %}