Skip to content

Commit 0529a76

Browse files
committed
Adding Annotation example
1 parent f9e3bfb commit 0529a76

1 file changed

Lines changed: 1 addition & 51 deletions

File tree

source/presentation/4.0/index.md

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -255,57 +255,7 @@ Annotations are grouped within the [`items`][prezi-40-model-items] property of a
255255

256256
The required properties of Annotations, as used in IIIF, are [`id`][prezi-40-model-id], [`type`][prezi-40-model-type], [`target`][prezi-40-model-target] and [`motivation`][prezi-40-model-motivation]. Most Annotations also have the [`body`][prezi-40-model-body]. See the [Annotation Documentation](model/#Annotation) for more detail.
257257

258-
259-
> TODO: JSON examples for Anno, Anno Page and Anno Coll'n ?
260-
{: .warning}
261-
262-
<!--
263-
264-
```json
265-
{
266-
"id": "https://example.org/iiif/book1/annocoll/transcription",
267-
"type": "AnnotationCollection",
268-
"label": {"en": ["Diplomatic Transcription"]},
269-
"total": 112,
270-
"first": { "id": "https://example.org/iiif/book1/annopage/l1", "type": "AnnotationPage" },
271-
"last": { "id": "https://example.org/iiif/book1/annopage/l112", "type": "AnnotationPage" }
272-
}
273-
```
274-
275-
```jsonc
276-
{
277-
"id": "https://example.org/iiif/book1/annopage/l2",
278-
"type": "AnnotationPage",
279-
"prev": "https://example.org/iiif/book1/annopage/l1",
280-
"next": "https://example.org/iiif/book1/annopage/l3",
281-
"items": [
282-
{
283-
"id": "https://example.org/iiif/book1/annopage/l2/a1",
284-
"type": "Annotation"
285-
// ...
286-
},
287-
{
288-
"id": "https://example.org/iiif/book1/annopage/l2/a2",
289-
"type": "Annotation"
290-
// ...
291-
}
292-
],
293-
"partOf": [
294-
{
295-
"id": "https://example.org/iiif/book1/annocoll/transcription",
296-
"type": "AnnotationCollection",
297-
}
298-
]
299-
}
300-
```
301-
302-
-->
303-
304-
<!--
305-
use totalItems? https://iiif.io/api/discovery/1.0/#totalitems
306-
https://github.com/IIIF/api/issues/2118
307-
-->
308-
258+
{% include code_example.html src="09_anno_page_1.json" from=14 to=28 %}
309259

310260
### Annotation Page
311261

0 commit comments

Comments
 (0)