From 864919632e26bdc6c7ce93a1eb27c6bd91463a72 Mon Sep 17 00:00:00 2001 From: Glen Robson Date: Fri, 3 Apr 2026 00:42:33 +0100 Subject: [PATCH] Adding uc08_3d_annotation --- .../4.0/example/uc08_3d_annotation.json | 77 ++++++++++++++++++ source/presentation/4.0/index.md | 80 +------------------ 2 files changed, 78 insertions(+), 79 deletions(-) create mode 100644 source/presentation/4.0/example/uc08_3d_annotation.json diff --git a/source/presentation/4.0/example/uc08_3d_annotation.json b/source/presentation/4.0/example/uc08_3d_annotation.json new file mode 100644 index 000000000..6f08acd23 --- /dev/null +++ b/source/presentation/4.0/example/uc08_3d_annotation.json @@ -0,0 +1,77 @@ +{ + "@context": "http://iiif.io/api/presentation/4/context.json", + "id": "https://iiif.io/api/presentation/4.0/example/uc08_3d_annotation.json", + "type": "Manifest", + "label": { "en": ["2nd century BC Greek sculpture"] }, + "items": [ + { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1", + "type": "Scene", + "items": [ + { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/pages/1", + "type": "AnnotationPage", + "items": [ + { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/sculpture", + "type": "Annotation", + "motivation": ["painting"] , + "label": { + "en": ["A 1st century Roman portrait bust."] + }, + "body": + { + "id": "https://fixtures.iiif.io/3d/smk/venus.glb", + "type": "Model" + }, + "target": { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1", + "type": "Scene" + } + } + ] + } + ] + } + ], + "annotations": [ + { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/commenting-annotation-pages/1", + "type": "AnnotationPage", + "items": [ + { + "id": "https://example.org/iiif/presentation/examples/commenting/anno/3", + "type": "Annotation", + "motivation": ["commenting"], + "body": + { + "id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1", + "type": "TextualBody", + "language": "en", + "format": "text/plain", + "value": "This sculpture embodies the Hellenistic synthesis of idealised form and expressive naturalism that emerged in the late Greek period.", + "position": { + "type": "SpecificResource", + "source": { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1", + "type": "Scene" + }, + "selector": [ + { + "type": "PointSelector", + "x": 0.75, + "y": 1.5, + "z": 0.1 + } + ] + } + }, + "target": { + "id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1", + "type": "Scene" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/source/presentation/4.0/index.md b/source/presentation/4.0/index.md index f48720f3f..4049302ea 100644 --- a/source/presentation/4.0/index.md +++ b/source/presentation/4.0/index.md @@ -748,85 +748,7 @@ A commenting annotation can also reference a Content Resource, such as a Model, In some cases it is desirable to influence the client's positioning of the commenting annotation when rendered. This may be done to ensure that the annotation does not hide key visual elements or to ensure that the annotation itself is not obscured by resources painted in the Container, such as 3D models. In these cases, the [`position`][prezi-40-model-position] property may be used to define the position where a TextualBody should be rendered. The example shows a [`position`][prezi-40-model-position] that places the annotation at a specific coordinate within the Scene. The position is a [Specific Resource][prezi-40-model-SpecificResource] that requires a [`source`][prezi-40-model-source] and `selector`. -```jsonc -{ - "@context": "http://iiif.io/api/presentation/4/context.json", - "id": "https://example.org/iiif/manifest/commenting/manifest/3", - "type": "Manifest", - "label": { "en": ["1st Century Roman portrait bust with comment"] }, - "items": [ - { - "id": "https://example.org/iiif/scene/commenting/scene3", - "type": "Scene", - "items": [ - { - "id": "https://example.org/iiif/scene/commenting/scene3/painting-annotation-pages/1", - "type": "AnnotationPage", - "items": [ - { - "id": "https://example.org/iiif/scene/commenting/scene3/sculpture", - "type": "Annotation", - "motivation": ["painting"] , - "label": { - "en": ["A 1st century Roman portrait bust."] - }, - "body": - { - "id": "https://example.org/iiif/scene/commenting/models/portrait.gltf", - "type": "Model" - }, - "target": { - "id": "https://example.org/iiif/scene/commenting/scene3", - "type": "Scene" - } - } - ] - } - ] - } - ], - "annotations": [ - { - "id": "https://example.org/iiif/scene/commenting/scene3/commenting-annotation-pages/1", - "type": "AnnotationPage", - "items": [ - { - "id": "https://example.org/iiif/presentation/examples/commenting/anno/3", - "type": "Annotation", - "motivation": ["commenting"], - "body": - { - "id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1", - "type": "TextualBody", - "language": "en", - "format": "text/plain", - "value": "This marble portrait exemplifies the veristic tradition that dominated Roman Republican portraiture and persisted into the early Imperial period.", - "position": { - "type": "SpecificResource", - "source": { - "id": "https://example.org/iiif/scene/commenting/scene3", - "type": "Scene" - }, - "selector": [ - { - "type": "PointSelector", - "x": 0.75, - "y": 1.5, - "z": 0.1 - } - ] - } - }, - "target": { - "id": "https://example.org/iiif/scene/commenting/scene3", - "type": "Scene" - } - } - ] - } - ] -} -``` +{% include code_example.html src="uc08_3d_annotation.json" %}