Skip to content

Commit d3f821b

Browse files
authored
Merge pull request #2463 from IIIF/uc08_3d_annotation
Adding uc08_3d_annotation example manifest
2 parents 684d5bb + 8649196 commit d3f821b

2 files changed

Lines changed: 78 additions & 79 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/4/context.json",
3+
"id": "https://iiif.io/api/presentation/4.0/example/uc08_3d_annotation.json",
4+
"type": "Manifest",
5+
"label": { "en": ["2nd century BC Greek sculpture"] },
6+
"items": [
7+
{
8+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
9+
"type": "Scene",
10+
"items": [
11+
{
12+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/pages/1",
13+
"type": "AnnotationPage",
14+
"items": [
15+
{
16+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/sculpture",
17+
"type": "Annotation",
18+
"motivation": ["painting"] ,
19+
"label": {
20+
"en": ["A 1st century Roman portrait bust."]
21+
},
22+
"body":
23+
{
24+
"id": "https://fixtures.iiif.io/3d/smk/venus.glb",
25+
"type": "Model"
26+
},
27+
"target": {
28+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
29+
"type": "Scene"
30+
}
31+
}
32+
]
33+
}
34+
]
35+
}
36+
],
37+
"annotations": [
38+
{
39+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/commenting-annotation-pages/1",
40+
"type": "AnnotationPage",
41+
"items": [
42+
{
43+
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3",
44+
"type": "Annotation",
45+
"motivation": ["commenting"],
46+
"body":
47+
{
48+
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1",
49+
"type": "TextualBody",
50+
"language": "en",
51+
"format": "text/plain",
52+
"value": "This sculpture embodies the Hellenistic synthesis of idealised form and expressive naturalism that emerged in the late Greek period.",
53+
"position": {
54+
"type": "SpecificResource",
55+
"source": {
56+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
57+
"type": "Scene"
58+
},
59+
"selector": [
60+
{
61+
"type": "PointSelector",
62+
"x": 0.75,
63+
"y": 1.5,
64+
"z": 0.1
65+
}
66+
]
67+
}
68+
},
69+
"target": {
70+
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
71+
"type": "Scene"
72+
}
73+
}
74+
]
75+
}
76+
]
77+
}

source/presentation/4.0/index.md

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -748,85 +748,7 @@ A commenting annotation can also reference a Content Resource, such as a Model,
748748

749749
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`.
750750

751-
```jsonc
752-
{
753-
"@context": "http://iiif.io/api/presentation/4/context.json",
754-
"id": "https://example.org/iiif/manifest/commenting/manifest/3",
755-
"type": "Manifest",
756-
"label": { "en": ["1st Century Roman portrait bust with comment"] },
757-
"items": [
758-
{
759-
"id": "https://example.org/iiif/scene/commenting/scene3",
760-
"type": "Scene",
761-
"items": [
762-
{
763-
"id": "https://example.org/iiif/scene/commenting/scene3/painting-annotation-pages/1",
764-
"type": "AnnotationPage",
765-
"items": [
766-
{
767-
"id": "https://example.org/iiif/scene/commenting/scene3/sculpture",
768-
"type": "Annotation",
769-
"motivation": ["painting"] ,
770-
"label": {
771-
"en": ["A 1st century Roman portrait bust."]
772-
},
773-
"body":
774-
{
775-
"id": "https://example.org/iiif/scene/commenting/models/portrait.gltf",
776-
"type": "Model"
777-
},
778-
"target": {
779-
"id": "https://example.org/iiif/scene/commenting/scene3",
780-
"type": "Scene"
781-
}
782-
}
783-
]
784-
}
785-
]
786-
}
787-
],
788-
"annotations": [
789-
{
790-
"id": "https://example.org/iiif/scene/commenting/scene3/commenting-annotation-pages/1",
791-
"type": "AnnotationPage",
792-
"items": [
793-
{
794-
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3",
795-
"type": "Annotation",
796-
"motivation": ["commenting"],
797-
"body":
798-
{
799-
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1",
800-
"type": "TextualBody",
801-
"language": "en",
802-
"format": "text/plain",
803-
"value": "This marble portrait exemplifies the veristic tradition that dominated Roman Republican portraiture and persisted into the early Imperial period.",
804-
"position": {
805-
"type": "SpecificResource",
806-
"source": {
807-
"id": "https://example.org/iiif/scene/commenting/scene3",
808-
"type": "Scene"
809-
},
810-
"selector": [
811-
{
812-
"type": "PointSelector",
813-
"x": 0.75,
814-
"y": 1.5,
815-
"z": 0.1
816-
}
817-
]
818-
}
819-
},
820-
"target": {
821-
"id": "https://example.org/iiif/scene/commenting/scene3",
822-
"type": "Scene"
823-
}
824-
}
825-
]
826-
}
827-
]
828-
}
829-
```
751+
{% include code_example.html src="uc08_3d_annotation.json" %}
830752

831753
<!--
832754
TODO: This is mostly copy-pasted from properties, is it needed here? Use in above example.

0 commit comments

Comments
 (0)