Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: validate

on:
pull_request:
workflow_dispatch:

jobs:
validate:
runs-on: ubuntu-latest
env:
BUNDLE_WITH: test jekyll_plugins
SITE_ID: 'cookbook' # which iiif site this is
URL: 'https://preview.iiif.io'

steps:
- name: Check out this repository
uses: actions/checkout@v5

- name: Run IIIF validator
uses: IIIF/presentation-validator@main
with:
directory: source/presentation/4.0/example/
version: "4.0"
2 changes: 1 addition & 1 deletion source/presentation/4.0/example/uc06_audio_with_3d.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"type": "ImageBasedLight",
"label": { "en": [ "Image-Based Light" ] },
"environmentMap": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/light/3/environment.hdr",
"id": "https://fixtures.iiif.io/3d/polyhaven/spruit_sunrise_4k.hdr",
"type": "Image",
"format": "image/vnd.radiance",
"profile": "equirectangular"
Expand Down
13 changes: 8 additions & 5 deletions source/presentation/4.0/example/uc06_canvas_in_scene.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@
"type": "Annotation",
"motivation": [ "painting" ],
"body": {
"id": "https://fixtures.iiif.io/3d/chess/chessboard.jpg",
"id": "https://fixtures.iiif.io/3d/thomas_flynn/chess/chessboard.png",
"type": "Image",
"format": "image/jpeg",
"width": 800,
"height": 800
"format": "image/png",
"width": 1024,
"height": 1024
},
"target": "https://iiif.io/api/presentation/4.0/example/uc06/canvas/chessboard"
"target": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/canvas/chessboard",
"type": "Canvas"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"type": "ImageBasedLight",
"label": { "en": [ "Image-Based Light" ] },
"environmentMap": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/light/3/environment.hdr",
"id": "https://fixtures.iiif.io/3d/polyhaven/spruit_sunrise_4k.hdr",
"type": "Image",
"format": "image/vnd.radiance",
"profile": "equirectangular"
Expand Down
80 changes: 75 additions & 5 deletions source/presentation/4.0/example/uc06_scene_in_scene.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,53 @@
"@context": "http://iiif.io/api/presentation/4/context.json",
"id": "https://iiif.io/api/presentation/4.0/example/uc06_scene_in_scene.json",
"type": "Manifest",
"label": { "en": [ "Chess Pieces — Scene in Scene" ] },
"label": {
"en": [
"Chess Pieces — Scene in Scene"
]
},
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1",
"type": "Scene",
"label": {
"en": [
"Chess Pawn"
]
},
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1/page/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/3d/anno/1",
"type": "Annotation",
"motivation": [
"painting"
],
"body": {
"id": "https://fixtures.iiif.io/3d/thomas_flynn/chess/Pawn_black.glb",
"type": "Model",
"format": "model/gltf-binary"
},
"target": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1",
"type": "Scene"
}
}
]
}
]
},
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent",
"type": "Scene",
"label": { "en": [ "Chess Pieces — Scene in Scene" ] },
"label": {
"en": [
"Chess Pieces — Scene in Scene"
]
},
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent/page/1",
Expand All @@ -16,7 +57,9 @@
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent/anno/1",
"type": "Annotation",
"motivation": [ "painting" ],
"motivation": [
"painting"
],
"body": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1",
"type": "Scene"
Expand All @@ -41,7 +84,9 @@
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent/anno/2",
"type": "Annotation",
"motivation": [ "painting" ],
"motivation": [
"painting"
],
"body": {
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1",
"type": "Scene"
Expand All @@ -67,5 +112,30 @@
}
]
}
],
"structures": [
{
"id": "https://iiif.io/api/cookbook/recipe/0027-alternative-page-order/range/r1",
"type": "Range",
"label": {
"en": [
"Only the single parent scene should be shown"
]
},
"behavior": [
"sequence"
],
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent",
"type": "Scene",
"label": {
"en": [
"Chess Pieces — Scene in Scene"
]
}
}
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"label": { "en": [ "Side A: 99 Luftballons - 10min duration" ] },
"width": 100,
"height": 100,
"duration": 36000,
"duration": 600,
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc07_audio/canvas/1/page/1",
Expand Down
Loading