Skip to content

Commit 1d5fc52

Browse files
Merge pull request #54 from IIIF/whale_anno
Add draft manifests for whale cranium and mandible example, including manifests for commenting annotations and content states
2 parents 93430a1 + 4a46cb8 commit 1d5fc52

File tree

10 files changed

+1027
-0
lines changed

10 files changed

+1027
-0
lines changed
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/4/context.json",
3+
"id": "https://example.org/iiif/3d/whale_comment_scope_content_state.json",
4+
"type": "Manifest",
5+
"label": { "en": ["Whale Cranium and Mandible with Dynamic Commenting Annotations and Custom Per-Anno Views"] },
6+
"summary": { "en": ["Description TBA"] },
7+
"items": [
8+
{
9+
"id": "https://example.org/iiif/scene1/page/p1/1",
10+
"type": "Scene",
11+
"label": { "en": ["A Scene Containing a Whale Cranium and Mandible"] },
12+
"items": [
13+
{
14+
"id": "https://example.org/iiif/scene1/page/p1/1",
15+
"type": "AnnotationPage",
16+
"items": [
17+
{
18+
"id": "https://example.org/iiif/3d/anno1",
19+
"type": "Annotation",
20+
"motivation": ["painting"],
21+
"body": {
22+
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/whale/whale_mandible.glb",
23+
"type": "Model"
24+
},
25+
"target": {
26+
"type": "SpecificResource",
27+
"source": [
28+
{
29+
"id": "https://example.org/iiif/scene1/page/p1/1",
30+
"type": "Scene"
31+
}
32+
],
33+
"selector": [
34+
{
35+
"type": "PointSelector",
36+
"x": 0.0,
37+
"y": 0.03,
38+
"z": 0.05
39+
}
40+
]
41+
}
42+
},
43+
{
44+
"id": "https://example.org/iiif/3d/anno2",
45+
"type": "Annotation",
46+
"motivation": ["painting"],
47+
"body": {
48+
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/whale/whale_cranium.glb",
49+
"type": "Model"
50+
},
51+
"target": {
52+
"type": "SpecificResource",
53+
"source": [
54+
{
55+
"id": "https://example.org/iiif/scene1/page/p1/1",
56+
"type": "Scene"
57+
}
58+
],
59+
"selector": [
60+
{
61+
"type": "PointSelector",
62+
"x": 0.0,
63+
"y": 0.18,
64+
"z": 0.0
65+
}
66+
]
67+
}
68+
}
69+
]
70+
}
71+
]
72+
}
73+
],
74+
"annotations": [
75+
{
76+
"id": "https://example.org/iiif/scene1/page/p1/annotations/1",
77+
"type": "AnnotationPage",
78+
"items": [
79+
{
80+
"id": "https://example.org/iiif/3d/anno7",
81+
"type": "Annotation",
82+
"motivation": ["commenting"],
83+
"bodyValue": "Mandibular tooth",
84+
"target": {
85+
"type": "SpecificResource",
86+
"source": [
87+
{
88+
"id": "https://example.org/iiif/scene1",
89+
"type": "Scene"
90+
}
91+
],
92+
"selector": [
93+
{
94+
"type": "PointSelector",
95+
"x": 0.011,
96+
"y": 0.069,
97+
"z": 0.231
98+
}
99+
],
100+
"scope": {
101+
"@context": "http://iiif.io/api/presentation/4/context.json",
102+
"id": "https://example.org/iiif/3d/anno4",
103+
"type": "Annotation",
104+
"motivation": ["contentState"],
105+
"target": {
106+
"id": "https://example.org/iiif/scene1/page/p1/1",
107+
"type": "Scene",
108+
"backgroundColor": "yellow",
109+
"items": [
110+
{
111+
"id": "https://example.org/iiif/3d/anno8",
112+
"type": "Annotation",
113+
"motivation": ["painting"],
114+
"body": {
115+
"type": "SpecificResource",
116+
"source": [
117+
{
118+
"id": "https://example.org/iiif/3d/cameras/1",
119+
"type": "PerspectiveCamera",
120+
"label": {"en": ["Perspective Camera Pointed At Front of Cranium and Mandible"]},
121+
"fieldOfView": 50.0,
122+
"near": 0.10,
123+
"far": 2000.0
124+
}
125+
]
126+
},
127+
"target": {
128+
"type": "SpecificResource",
129+
"source": [
130+
{
131+
"id": "https://example.org/iiif/scene1",
132+
"type": "Scene"
133+
}
134+
],
135+
"selector": [
136+
{
137+
"type": "PointSelector",
138+
"x": 0.0,
139+
"y": 0.15,
140+
"z": 0.75
141+
}
142+
]
143+
}
144+
}
145+
]
146+
}
147+
}
148+
}
149+
},
150+
{
151+
"id": "https://example.org/iiif/3d/anno5",
152+
"type": "Annotation",
153+
"motivation": ["commenting"],
154+
"bodyValue": "Right pterygoid hamulus",
155+
"target": {
156+
"type": "SpecificResource",
157+
"source": [
158+
{
159+
"id": "https://example.org/iiif/scene1",
160+
"type": "Scene"
161+
}
162+
],
163+
"selector": [
164+
{
165+
"type": "PointSelector",
166+
"x": 0.040,
167+
"y": 0.063,
168+
"z": -0.066
169+
}
170+
],
171+
"scope": {
172+
"@context": "http://iiif.io/api/presentation/4/context.json",
173+
"id": "https://example.org/iiif/3d/anno3",
174+
"type": "Annotation",
175+
"motivation": ["contentState"],
176+
"target": {
177+
"id": "https://example.org/iiif/scene1/page/p1/1",
178+
"type": "Scene",
179+
"backgroundColor": "green",
180+
"items": [
181+
{
182+
"id": "https://example.org/iiif/3d/anno6",
183+
"type": "Annotation",
184+
"motivation": ["painting"],
185+
"body": {
186+
"type": "SpecificResource",
187+
"source": [
188+
{
189+
"id": "https://example.org/iiif/3d/cameras/1",
190+
"type": "PerspectiveCamera",
191+
"label": {"en": ["Perspective Camera Pointed At Pterygoid Hamulus"]},
192+
"fieldOfView": 50.0,
193+
"near": 0.10,
194+
"far": 2000.0
195+
}
196+
],
197+
"transform": [
198+
{
199+
"type": "RotateTransform",
200+
"x": -15.0,
201+
"y": 215.0,
202+
"z": 0.0
203+
}
204+
]
205+
},
206+
"target": {
207+
"type": "SpecificResource",
208+
"source": [
209+
{
210+
"id": "https://example.org/iiif/scene1",
211+
"type": "Scene"
212+
}
213+
],
214+
"selector": [
215+
{
216+
"type": "PointSelector",
217+
"x": -0.25,
218+
"y": 0.0,
219+
"z": -0.5
220+
}
221+
]
222+
}
223+
}
224+
]
225+
}
226+
}
227+
}
228+
}
229+
]
230+
}
231+
]
232+
}
File renamed without changes.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/4/context.json",
3+
"id": "https://example.org/iiif/3d/whale_cranium_and_mandible_position.json",
4+
"type": "Manifest",
5+
"label": { "en": ["Whale Cranium and Mandible Positioned"] },
6+
"summary": { "en": ["Renders two 3D models to display a whale skull. Viewer should render the mandible at (0, 0.03, 0.05) and the cranium at (0, 0.18, 0). This should place the cranium and mandible in something approximating anatomical position relative to each other."] },
7+
"items": [
8+
{
9+
"id": "https://example.org/iiif/scene1/page/p1/1",
10+
"type": "Scene",
11+
"label": { "en": ["A Scene Containing a Whale Cranium and Mandible"] },
12+
"items": [
13+
{
14+
"id": "https://example.org/iiif/scene1/page/p1/1",
15+
"type": "AnnotationPage",
16+
"items": [
17+
{
18+
"id": "https://example.org/iiif/3d/anno1",
19+
"type": "Annotation",
20+
"motivation": ["painting"],
21+
"body": {
22+
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/whale/whale_mandible.glb",
23+
"type": "Model"
24+
},
25+
"target": {
26+
"type": "SpecificResource",
27+
"source": [
28+
{
29+
"id": "https://example.org/iiif/scene1/page/p1/1",
30+
"type": "Scene"
31+
}
32+
],
33+
"selector": [
34+
{
35+
"type": "PointSelector",
36+
"x": 0.0,
37+
"y": 0.03,
38+
"z": 0.05
39+
}
40+
]
41+
}
42+
},
43+
{
44+
"id": "https://example.org/iiif/3d/anno2",
45+
"type": "Annotation",
46+
"motivation": ["painting"],
47+
"body": {
48+
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/whale/whale_cranium.glb",
49+
"type": "Model"
50+
},
51+
"target": {
52+
"type": "SpecificResource",
53+
"source": [
54+
{
55+
"id": "https://example.org/iiif/scene1/page/p1/1",
56+
"type": "Scene"
57+
}
58+
],
59+
"selector": [
60+
{
61+
"type": "PointSelector",
62+
"x": 0.0,
63+
"y": 0.18,
64+
"z": 0.0
65+
}
66+
]
67+
}
68+
}
69+
]
70+
}
71+
]
72+
}
73+
]
74+
}

0 commit comments

Comments
 (0)