diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 000000000..cf5b02354 --- /dev/null +++ b/.github/workflows/validate.yml @@ -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" diff --git a/source/presentation/4.0/example/uc06_canvas_in_scene.json b/source/presentation/4.0/example/uc06_canvas_in_scene.json index 8f83ab5e8..a72177d3f 100644 --- a/source/presentation/4.0/example/uc06_canvas_in_scene.json +++ b/source/presentation/4.0/example/uc06_canvas_in_scene.json @@ -54,7 +54,10 @@ "width": 800, "height": 800 }, - "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" + } } ] } diff --git a/source/presentation/4.0/example/uc06_scene_in_scene.json b/source/presentation/4.0/example/uc06_scene_in_scene.json index 1442451aa..0a25c691b 100644 --- a/source/presentation/4.0/example/uc06_scene_in_scene.json +++ b/source/presentation/4.0/example/uc06_scene_in_scene.json @@ -19,7 +19,34 @@ "motivation": [ "painting" ], "body": { "id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/1", - "type": "Scene" + "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" + } + } + ] + } + ] }, "target": { "id": "https://iiif.io/api/presentation/4.0/example/uc06/scene/parent/anno/1/specificResource/1", diff --git a/source/presentation/4.0/example/uc07_duration_composite.json b/source/presentation/4.0/example/uc07_duration_composite.json index 2e44a2554..81dd2294b 100644 --- a/source/presentation/4.0/example/uc07_duration_composite.json +++ b/source/presentation/4.0/example/uc07_duration_composite.json @@ -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",