Skip to content

Commit 7314cfb

Browse files
committed
Changing body + target shape
1 parent 2a1a17b commit 7314cfb

File tree

10 files changed

+7230
-8453
lines changed

10 files changed

+7230
-8453
lines changed

source/presentation/4.0/example/02_timeline.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@
2121
"id": "https://iiif.io/api/presentation/4.0/example/02/page/anno",
2222
"type": "Annotation",
2323
"motivation": ["painting"],
24-
"body": [
25-
{
26-
"id": "https://fixtures.iiif.io/audio/indiana/mahler-symphony-3/CD1/medium/128Kbps.mp4",
27-
"type": "Sound",
28-
"format": "audio/mp4",
29-
"duration": 1985.024
30-
}
31-
],
32-
"target": [
33-
"https://iiif.io/api/presentation/4.0/example/02"
34-
]
24+
"body": {
25+
"id": "https://fixtures.iiif.io/audio/indiana/mahler-symphony-3/CD1/medium/128Kbps.mp4",
26+
"type": "Sound",
27+
"format": "audio/mp4",
28+
"duration": 1985.024
29+
},
30+
"target": {
31+
"id": "https://iiif.io/api/presentation/4.0/example/02",
32+
"type": "Timeline"
33+
}
3534
}
3635
]
3736
}

source/presentation/4.0/example/03_canvas.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@
2222
"id": "https://iiif.io/api/presentation/4.0/example/03_canvas/annotation/p0001-image",
2323
"type": "Annotation",
2424
"motivation": [ "painting" ],
25-
"body": [
26-
{
27-
"id": "http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png",
28-
"type": "Image",
29-
"format": "image/png",
30-
"height": 1800,
31-
"width": 1200
32-
}
33-
],
34-
"target": [ "https://iiif.io/api/presentation/4.0/example/03_canvas/canvas/p1" ]
25+
"body": {
26+
"id": "http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png",
27+
"type": "Image",
28+
"format": "image/png",
29+
"height": 1800,
30+
"width": 1200
31+
},
32+
"target": {
33+
"id": "https://iiif.io/api/presentation/4.0/example/03_canvas/canvas/p1",
34+
"type": "Canvas"
35+
}
3536
}
3637
]
3738
}

source/presentation/4.0/example/04_scene.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@
3232
"motivation": [
3333
"painting"
3434
],
35-
"body": [
36-
{
37-
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/astronaut/astronaut.glb",
38-
"type": "Model",
39-
"format": "model/gltf-binary"
40-
}
41-
],
42-
"target": [
43-
"https://iiif.io/api/presentation/4.0/example/scene/1/annotationPage/1"
44-
]
35+
"body": {
36+
"id": "https://raw.githubusercontent.com/IIIF/3d/main/assets/astronaut/astronaut.glb",
37+
"type": "Model",
38+
"format": "model/gltf-binary"
39+
},
40+
"target": {
41+
"id": "https://iiif.io/api/presentation/4.0/example/scene/1",
42+
"type": "Scene"
43+
}
4544
}
4645
]
4746
}

source/presentation/4.0/example/05_fragment.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,24 @@
2727
"motivation": [
2828
"painting"
2929
],
30-
"body": [
31-
{
32-
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004/full/max/0/default.jpg",
33-
"type": "Image",
34-
"format": "image/jpeg",
35-
"height": 3966,
36-
"width": 8800,
37-
"service": [
38-
{
39-
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004",
40-
"profile": "level1",
41-
"type": "ImageService3"
42-
}
43-
]
44-
}
45-
],
46-
"target": [
47-
"https://iiif.io/api/presentation/4.0/example/05/canvas/p1"
48-
]
30+
"body": {
31+
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004/full/max/0/default.jpg",
32+
"type": "Image",
33+
"format": "image/jpeg",
34+
"height": 3966,
35+
"width": 8800,
36+
"service": [
37+
{
38+
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004",
39+
"profile": "level1",
40+
"type": "ImageService3"
41+
}
42+
]
43+
},
44+
"target": {
45+
"id": "https://iiif.io/api/presentation/4.0/example/05/canvas/p1",
46+
"type":"Canvas"
47+
}
4948
}
5049
]
5150
}
@@ -59,16 +58,17 @@
5958
"id": "https://iiif.io/api/presentation/4.0/example/05/annotation/p0001-comment",
6059
"type": "Annotation",
6160
"motivation": [ "commenting" ],
62-
"body": [
63-
{
64-
"id": "https://iiif.io/api/presentation/4.0/example/05/annotation/bodies/koto-body",
65-
"type": "TextualBody",
66-
"value": "Koto with a cover being carried",
67-
"language": "en",
68-
"format": "text/plain"
69-
}
70-
],
71-
"target": [ "https://iiif.io/api/presentation/4.0/example/05/canvas/p1#xywh=1650,1200,925,1250" ]
61+
"body": {
62+
"id": "https://iiif.io/api/presentation/4.0/example/05/annotation/bodies/koto-body",
63+
"type": "TextualBody",
64+
"value": "Koto with a cover being carried",
65+
"language": "en",
66+
"format": "text/plain"
67+
},
68+
"target": {
69+
"id": "https://iiif.io/api/presentation/4.0/example/05/canvas/p1#xywh=1650,1200,925,1250",
70+
"type": "Canvas"
71+
}
7272
}
7373
]
7474
}

source/presentation/4.0/example/06_specific_resource.json

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,24 @@
2727
"motivation": [
2828
"painting"
2929
],
30-
"body": [
31-
{
32-
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004/full/max/0/default.jpg",
33-
"type": "Image",
34-
"format": "image/jpeg",
35-
"height": 3966,
36-
"width": 8800,
37-
"service": [
38-
{
39-
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004",
40-
"profile": "level1",
41-
"type": "ImageService3"
42-
}
43-
]
44-
}
45-
],
46-
"target": [
47-
"https://iiif.io/api/presentation/4.0/example/06/canvas/p1"
48-
]
30+
"body": {
31+
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004/full/max/0/default.jpg",
32+
"type": "Image",
33+
"format": "image/jpeg",
34+
"height": 3966,
35+
"width": 8800,
36+
"service": [
37+
{
38+
"id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004",
39+
"profile": "level1",
40+
"type": "ImageService3"
41+
}
42+
]
43+
},
44+
"target": {
45+
"id":"https://iiif.io/api/presentation/4.0/example/06/canvas/p1",
46+
"type":"Canvas"
47+
}
4948
}
5049
]
5150
}
@@ -59,30 +58,26 @@
5958
"id": "https://iiif.io/api/presentation/4.0/example/06/annotation/p0001-comment",
6059
"type": "Annotation",
6160
"motivation": [ "commenting" ],
62-
"body": [
63-
{
64-
"id": "https://iiif.io/api/presentation/4.0/example/06/annotation/bodies/koto-body",
65-
"type": "TextualBody",
66-
"value": "Koto with a cover being carried",
67-
"language": "en",
68-
"format": "text/plain"
69-
}
70-
],
71-
"target": [
72-
{
73-
"id": "https://iiif.io/api/presentation/4.0/example/06/resources/koto-sr",
74-
"type": "SpecificResource",
75-
"source": {
76-
"id": "https://iiif.io/api/presentation/4.0/example/06/page/p1/1",
77-
"type": "Canvas"
78-
},
79-
"selector": {
80-
"id": "https://iiif.io/api/presentation/4.0/example/06/selectors/koto-selector",
81-
"type": "FragmentSelector",
82-
"value": "xywh=1650,1200,925,1250"
83-
}
61+
"body": {
62+
"id": "https://iiif.io/api/presentation/4.0/example/06/annotation/bodies/koto-body",
63+
"type": "TextualBody",
64+
"value": "Koto with a cover being carried",
65+
"language": "en",
66+
"format": "text/plain"
67+
},
68+
"target": {
69+
"id": "https://iiif.io/api/presentation/4.0/example/06/resources/koto-sr",
70+
"type": "SpecificResource",
71+
"source": {
72+
"id": "https://iiif.io/api/presentation/4.0/example/06/page/p1/1",
73+
"type": "Canvas"
74+
},
75+
"selector": {
76+
"id": "https://iiif.io/api/presentation/4.0/example/06/selectors/koto-selector",
77+
"type": "FragmentSelector",
78+
"value": "xywh=1650,1200,925,1250"
8479
}
85-
]
80+
}
8681
}
8782
]
8883
}

0 commit comments

Comments
 (0)