Skip to content
Snippets Groups Projects
Commit 383a986a authored by jdchart's avatar jdchart
Browse files

update infra

parent 30c3bb33
Branches
No related tags found
No related merge requests found
Showing
with 96 additions and 180 deletions
......@@ -4,7 +4,7 @@
- Je propose quelques examples qui augementent en complexité.
- A savoir je procède de la manière suivante : j'ai crée [une interface](https://github.com/jdchart/spider) qui permet de créer des structures réseaux simple (noeuds + liens) où chaque élément à une dimension temporelle.
- Je part de cette structure et je la transpose en manifest(s).
- Normalement, il y a juste à glisser ce qui sort de cette interface dans le dossier `www` de [POC-mirador](https://gitlab.tetras-libre.fr/iiif/POC-mirador) et tout doit fonctionner.
- Normalement, il y a juste à glisser ce qui sort de cette interface dans le dossier `www` de [POC-mirador](https://gitlab.tetras-libre.fr/iiif/POC-mirador) et tout doit fonctionner. (mieux de les faire 1 par 1 car pour cetraines collections il y a plein de manifestes qui se créent).
- A savoir, ils partgent tous le même dossier `media` pour éviter de multiplier les ressources.
- Pour chaque example, je donne aussi le fichier original comme référence dans le dossier [originals](/Jacob/originals/)
......@@ -15,17 +15,24 @@
## [video-with-image-annotation](/Jacob/www/video-with-image-annotation)
- Là on a deux images qui viennent annoter la vidéo.
- J'aurais voulu que ça s'affiche en dessous de la vidéo.
- Le manifest "principal" est celui qui s'appelle "_(Dancing Philosophy - Solos improvisés)_".
- Pour tester, j'aurais voulu que ça s'affiche en dessous de la vidéo.
- Vous allez voir que tout est niveau dimensions du canvas et positions des images, et elles s'affichent même au bon endroit, **EN REVENCHE** j'ai beau tenter plein de trucs, Mirador semble toujours garder l'aspect ratio du 1er element de ses `"items"`, du coup on voit pas les annotations.
- **NB** : quand on change l'aspect ratio du navigateur on voit du coup, comme ceci:
Bad:
![bad](/Jacob/resize2.png)
Good:
![good](/Jacob/resize1.png)
- On voit aussi le lien "Go to Manifest" pour chaque annotation.
- On est à 2 pas de pouvoir les ouvrir dans une autre fenetre dans Mirador...
- On voit aussi le lien "Go to Manifest" pour chaque annotation. On est à 2 pas de pouvoir les ouvrir dans une autre fenetre dans Mirador...
- **NB**: j'ai pas encore fait que les annotations infradocumentaires soient reliés à leur neoud d'origine, je ferais ça prochainement.
## [video-with-annotations-infra](/Jacob/www/video-with-annotations-infra)
- En cours... J'essaye de faire apparaitre du SVG à partir de [cette ressource](https://iiif.io/api/cookbook/recipe/0261-non-rectangular-commenting/) mais ça marche pas pour l'instant...
\ No newline at end of file
- Le manifest "principal" est celui qui s'appelle "_(Dancing Philosophy - Solos improvisés)_".
- Là il s'agit en fait d'annotations qui ne sont pas des images, textuels. Pour l'instant je les crée en SVG puis les convertie en PNG.
- Encore une fois, ca marche pas encore dans les deux sens (très prochainement le manifest des annotations aura donc l'annotaion comme element principal, et comme annotation la partie de la vidéo que ca concerne).
- En fait je me dis que ce genre d'annotation il faudrait pas que son image dure la durée de l'annotation sur l'écran, mais que ca dure toute la durée de l'element principale et ca s'affiche en mode timeline pour sa durée.
- En cours... J'essaye de faire apparaitre du SVG direcement dans le manifest à partir de [cette ressource](https://iiif.io/api/cookbook/recipe/0261-non-rectangular-commenting/) mais ça marche pas pour l'instant...
\ No newline at end of file
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/0a3f899c-1d3e-47be-8b5c-0fd93e66dd5d_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_0a3f899c-1d3e-47be-8b5c-0fd93e66dd5d_Moment de silence 6/canvas/1#xywh=0,0,0,0&t=0,2"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_0a3f899c-1d3e-47be-8b5c-0fd93e66dd5d_Moment de silence 6/canvas/1#xywh=0,0,0,0&t=0,2"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/13d29317-f9ae-4ee0-b0ce-91518c398e36_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_13d29317-f9ae-4ee0-b0ce-91518c398e36_Moment de silence 5/canvas/1#xywh=0,0,0,0&t=0,2"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_13d29317-f9ae-4ee0-b0ce-91518c398e36_Moment de silence 5/canvas/1#xywh=0,0,0,0&t=0,2"
}
]
}
......
......@@ -52,147 +52,105 @@
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/e3d73c64-2ed0-4162-be29-bc6a441e1823_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_e3d73c64-2ed0-4162-be29-bc6a441e1823_Moment de silence 1_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=23,26"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=23,26"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/2",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/7f6cf244-ad62-4b68-b4d3-f4918bd8a35d_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_7f6cf244-ad62-4b68-b4d3-f4918bd8a35d_Moment de silence 2_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=41,44"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=41,44"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/3",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/4896c8b2-c711-4ff0-9d85-1679e0276ef8_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_4896c8b2-c711-4ff0-9d85-1679e0276ef8_Moment de silence 3_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=55,57"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=55,57"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/4",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/3f0e86c9-2a38-4916-9296-38310be27c91_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_3f0e86c9-2a38-4916-9296-38310be27c91_Moment de silence 4_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=70,73"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=70,73"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/5",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/13d29317-f9ae-4ee0-b0ce-91518c398e36_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_13d29317-f9ae-4ee0-b0ce-91518c398e36_Moment de silence 5_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=110,112"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=110,112"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/6",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/0a3f899c-1d3e-47be-8b5c-0fd93e66dd5d_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_0a3f899c-1d3e-47be-8b5c-0fd93e66dd5d_Moment de silence 6_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=124,126"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=124,126"
},
{
"id": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1/annotation/2/7",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "en",
"id": "http://localhost:9000/data/video-with-annotations-infra/ab408741-a142-4e87-a974-cb3ec2d6da39_associated_img.png",
"type": "Image",
"format": "image/svg",
"value": "Silence... <a href=\"http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_ab408741-a142-4e87-a974-cb3ec2d6da39_Moment de silence 7_manifest.json\" target=\"_blank\">Go to Manifest</a>",
"height": 0,
"width": 0,
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,720,0,0&t=136,138"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_255d8188-df07-42d3-8b45-2f0ecc000b4e_Dancing Philosophy - Solos improvisés/canvas/1#xywh=0,0,500,500&t=136,138"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/3f0e86c9-2a38-4916-9296-38310be27c91_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_3f0e86c9-2a38-4916-9296-38310be27c91_Moment de silence 4/canvas/1#xywh=0,0,0,0&t=0,3"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_3f0e86c9-2a38-4916-9296-38310be27c91_Moment de silence 4/canvas/1#xywh=0,0,0,0&t=0,3"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/4896c8b2-c711-4ff0-9d85-1679e0276ef8_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_4896c8b2-c711-4ff0-9d85-1679e0276ef8_Moment de silence 3/canvas/1#xywh=0,0,0,0&t=0,2"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_4896c8b2-c711-4ff0-9d85-1679e0276ef8_Moment de silence 3/canvas/1#xywh=0,0,0,0&t=0,2"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/7f6cf244-ad62-4b68-b4d3-f4918bd8a35d_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_7f6cf244-ad62-4b68-b4d3-f4918bd8a35d_Moment de silence 2/canvas/1#xywh=0,0,0,0&t=0,3"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_7f6cf244-ad62-4b68-b4d3-f4918bd8a35d_Moment de silence 2/canvas/1#xywh=0,0,0,0&t=0,3"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/ab408741-a142-4e87-a974-cb3ec2d6da39_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 2
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_ab408741-a142-4e87-a974-cb3ec2d6da39_Moment de silence 7/canvas/1#xywh=0,0,0,0&t=0,2"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_ab408741-a142-4e87-a974-cb3ec2d6da39_Moment de silence 7/canvas/1#xywh=0,0,0,0&t=0,2"
}
]
}
......
......@@ -29,21 +29,14 @@
"type": "Annotation",
"motivation": "painting",
"body": {
"type": "TextualBody",
"language": "en",
"value": "Silence...",
"height": 0,
"width": 0,
"id": "http://localhost:9000/data/video-with-annotations-infra/e3d73c64-2ed0-4162-be29-bc6a441e1823_associated_img.png",
"type": "Image",
"format": "image/svg",
"height": 500,
"width": 500,
"duration": 3
},
"target": {
"type": "SpecificResource",
"selector": {
"type": "SvgSelector",
"value": "<svg height=\"1000\" width=\"1000\"><text x=\"0\" y=\"0\" fill=\"black\">Silence....</text></svg>"
},
"source": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_e3d73c64-2ed0-4162-be29-bc6a441e1823_Moment de silence 1/canvas/1#xywh=0,0,0,0&t=0,3"
}
"target": "http://localhost:9000/data/video-with-annotations-infra/video-with-annotations-infra_e3d73c64-2ed0-4162-be29-bc6a441e1823_Moment de silence 1/canvas/1#xywh=0,0,0,0&t=0,3"
}
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment