Last active
June 26, 2020 16:40
-
-
Save regisrob/7ea0651f544847950844a50b9b33c195 to your computer and use it in GitHub Desktop.
Manifest IIIF par descripteurs d'enluminures (mapping)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/manifest", | |
"@type": "sc:Manifest", | |
"label": "\"{Descriptor.name_bbma}\" - Collection d'images d'enluminures et décors de manuscrits", | |
"description": "Ce document regroupe toutes les enluminures et décors de manuscrits médiévaux indexés avec le descripteur \"{Descriptor.displayed_title}\" dans les bases iconographiques de Biblissima : Initiale (IRHT-CNRS) et Mandragore (BnF)", | |
"attribution": "Produit par Biblissima (https://biblissima.fr)", | |
"thumbnail": "", // image du premier Canvas ? ou random ? | |
"logo": "https://static.biblissima.fr/images/logo-biblissima-350w.jpg", | |
"metadata": [ | |
{ | |
"label": "Page du descripteur sur le portail Biblissima", | |
"value": "<a href=\"{Descriptor_url}\">{descriptor.displayed_title}</a>" | |
}, | |
{ | |
"label": "Source des métadonnées", | |
"value": [ | |
"Mandragore (Bibliothèque nationale de France)", | |
"Initiale (IRHT-CNRS)" | |
] | |
}, | |
{ | |
"label": "Fournisseur des images", | |
"value": [ | |
"Gallica (Bibliothèque nationale de France)", | |
"BVMM - Bibliothèque virtuelle des manuscrits médiévaux (IRHT-CNRS)" | |
] | |
} | |
], | |
"sequences": [ | |
{ | |
"@type": "sc:Sequence", | |
"canvases": [ | |
// Canvas BVMM (Manifest[@type="decor"]) | |
{ | |
"@id": "https://bvmm.irht.cnrs.fr/iiif/11725/canvas/canvas-1317002", | |
"@type": "sc:Canvas", | |
// le label du Canvas devient le libellé complet de l'enluminure (= titre de la page) | |
"label": "{Illumination.displayed_title}", | |
"height": 2100, | |
"width": 3117, | |
"thumbnail": "{HasFeature/Thumbnail}", | |
"images": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Alen%C3%A7on/B610016201/DEPOT/IRHT_099152_2/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 2100, | |
"width": 3117, | |
"service": { | |
"@context": "http://iiif.io/api/image/2/context.json", | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Alen%C3%A7on/B610016201/DEPOT/IRHT_099152_2", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
}, | |
"on": "https://bvmm.irht.cnrs.fr/iiif/11725/canvas/canvas-1317002" | |
} | |
], | |
"metadata": [ | |
// Métadonnées calquées sur ce qu'on trouve dans l'entête de la page de l'enluminure... | |
// on répète d'abord le "titre" de l'enluminure, avec le lien vers sa page | |
{ | |
"label": "Sur le portail Biblissima", | |
"value": "<a href=\"{Illumination_url}\">{Illumination.displayed_title}</a>" | |
}, | |
{ | |
"label": "Manuscrit", | |
"value": "<a href=\"{Manuscript_url}\">{Manuscript->shelfmarks->Shelfmark.canonical_shelfmark}</a>" | |
}, | |
{ | |
"label": "Feuillet / page", | |
"value": "{Illumination.pageno}" | |
}, | |
{ | |
"label": "Légende", | |
"value": "{Illumination.caption}" | |
}, | |
{ | |
"label": "Lieu de fabrication", | |
"value": "{Illumination->origin->Location.displayed_title}" | |
}, | |
{ | |
"label": "Date", | |
"value": "{Illumination->manufacture_date->DateInfo.literal_date}" | |
}, | |
// liste de tous les descripteurs de l'enluminure en question ? | |
{ | |
"label": "Descripteurs", | |
"value": "{Illumination->descriptors->Descriptor.displayed_title}" | |
}, | |
{ | |
"label": "Personne ou collectivité associée", | |
"value": "<a href=\"{depicted_agents_url}\">{Illumination->depicted_agents->[Person||CorporateBody].displayed_title}</a>" | |
}, | |
{ | |
"label": "Lieu associé", | |
"value": "<a href=\"{depicted_places_url}\">{Illumination->depicted_places->Location.displayed_title}</a>" | |
} | |
] | |
}, | |
// Canvas Gallica (image IIIF : si HasFeature/Canvas) | |
{ | |
"@id": "https://gallica.bnf.fr/iiif/ark:/12148/btv1b52502689n/canvas/f149", | |
"@type": "sc:Canvas", | |
"label": "{Illumination.displayed_title}", | |
"height": 3836, | |
"width": 2843, | |
"thumbnail": { | |
"@id" : "https://gallica.bnf.fr/ark:/12148/btv1b52502689n/f149.thumbnail" | |
}, | |
"images": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "https://gallica.bnf.fr/iiif/ark:/12148/btv1b52502689n/f149/full/full/0/native.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 3836, | |
"width": 2843, | |
"service": { | |
"profile": "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2", | |
"@context": "http://iiif.io/api/image/1/context.json", | |
"@id": "https://gallica.bnf.fr/iiif/ark:/12148/btv1b52502689n/f149" | |
} | |
}, | |
"on": "https://gallica.bnf.fr/iiif/ark:/12148/btv1b52502689n/canvas/f149" | |
} | |
] | |
}, | |
// Canvas Biblissima (image non-IIIF de Mandragore = HasFeature/DigitalSurrogate) | |
{ | |
"@id": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1", | |
"@type": "sc:Canvas", | |
"label": "{Illumination.displayed_title}", | |
"height": 2609, | |
"width": 2048, | |
"thumbnail": "https://portail.biblissima.fr/iiif/image/00a1de9f83ab9b45327226c42c3f9ae3d1a20e30/full/,150/0/default.jpg", | |
"images": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@id": "https://portail.biblissima.fr/iiif/image/00a1de9f83ab9b45327226c42c3f9ae3d1a20e30/full/full/0/default.jpg", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 2609, | |
"width": 2048, | |
// Service IIIF Biblissima | |
// @id pointe vers la "base_url" du service IIIF de l'image (sans slash final) | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://portail.biblissima.fr/iiif/image/00a1de9f83ab9b45327226c42c3f9ae3d1a20e30", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
}, | |
"on": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1" | |
} | |
] | |
}, | |
// Canvas Biblissima (images multiples non-IIIF de la BVMM = HasFeature[count(DigitalSurrogate)>1]) | |
// Choice pattern | |
{ | |
"@id": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1", | |
"@type": "sc:Canvas", | |
"label": "{Illumination.displayed_title}", | |
"height": 1973, | |
"width": 2952, | |
"thumbnail": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}/full/,150/0/default.jpg", | |
// ex. : | |
// - HasFeature/DigitalSurrogate = https://bvmm.irht.cnrs.fr/consult/consult.php?VUE_ID=1236035 | |
// - VUE_ID = 1236035 | |
// - IRHT image pleine taille (à télécharger) : https://bvmm.irht.cnrs.fr/includes/php/rotation.php?vueId=1236035&niveauZoom=grand&angle=0 | |
// - IRHT image filename = IRHT_044140_2.jpg | |
// - Biblissima image filename (feature id_bbma + VUE_ID) = 6c2220cbf7e1a5dd12891a787c96a17cfb165509_1236035 | |
// - Biblissima image url = https://portail.biblissima.fr/iiif/image/6c2220cbf7e1a5dd12891a787c96a17cfb165509_1236035/full/full/0/default.jpg | |
"images": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@type": "oa:Choice", | |
"default": { | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}/full/full/0/default.jpg", | |
"label": "{Illumination.displayed_title} - vue 1", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 1973, | |
"width": 2952, | |
// Service IIIF Biblissima | |
// @id pointe vers la "base_url" du service IIIF de l'image (sans slash final) | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
}, | |
"item" : [ | |
{ | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}/full/full/0/default.jpg", | |
"label": "{Illumination.displayed_title} - vue 2", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 1453, | |
"width": 2356, | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
}, | |
{ | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}/full/full/0/default.jpg", | |
"label": "{Illumination.displayed_title} - vue 3", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 1213, | |
"width": 1648, | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://portail.biblissima.fr/iiif/image/{Feature.internal_id}_{img_filename}", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
} | |
] | |
}, | |
"on": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1" | |
} | |
] | |
}, | |
// Canvas Biblissima (images multiples IIIF de la BVMM = HasFeature[count(Canvas)>1]) | |
// Choice pattern | |
{ | |
// nouvel ID Biblissima forgé pour le Canvas (car "nouveau" Canvas combinant en fait 2 Canvas pré-existants dans le Manifest type "décor") | |
"@id": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1", | |
"@type": "sc:Canvas", | |
"label": "{Illumination.displayed_title}", | |
"height": 3117, | |
"width": 2100, | |
"images": [ | |
{ | |
"@type": "oa:Annotation", | |
"motivation": "sc:painting", | |
"resource": { | |
"@type": "oa:Choice", | |
"default": { | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Abbeville/B800016201/DEPOT/IRHT_106265_2/full/full/0/default.jpg", | |
"label": "{Illumination.displayed_title} - vue 1", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 3117, | |
"width": 2100, | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Abbeville/B800016201/DEPOT/IRHT_106265_2", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
}, | |
"item" : [ | |
{ | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Abbeville/B800016201/DEPOT/IRHT_106266_2/full/full/0/default.jpg", | |
"label": "{Illumination.displayed_title} - vue 2", | |
"@type": "dctypes:Image", | |
"format": "image/jpeg", | |
"height": 2100, | |
"width": 3150, | |
"service": { | |
"@context" : "http://iiif.io/api/image/2/context.json", | |
"@id": "https://iiif.irht.cnrs.fr/iiif/France/Abbeville/B800016201/DEPOT/IRHT_106266_2", | |
"profile": "http://iiif.io/api/image/2/level2.json" | |
} | |
} | |
] | |
}, | |
"on": "https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1" | |
} | |
] | |
} | |
] | |
} | |
], | |
"structures": [ | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r0", | |
"@type": "sc:Range", | |
"label": "Enluminures et décors", | |
"viewingHint": "top", | |
"ranges": [ | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r1", | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r2", | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r3", | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r4" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r1", | |
"@type": "sc:Range", | |
"label": "{Manuscript->shelfmarks->Shelfmark.canonical_shelfmark}", // préférable d'avoir la cote abrégée... (= à stocker dans un champ séparé) | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r0", | |
"ranges": [ | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r1-1" | |
], | |
"canvases": [ | |
"https://gallica.bnf.fr/iiif/ark:/12148/btv1b9059132s/canvas/f211" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r2", | |
"@type": "sc:Range", | |
"label": "{Manuscript->shelfmarks->Shelfmark.canonical_shelfmark}", // préférable d'avoir la cote abrégée... (= à stocker dans un champ séparé) | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r0", | |
"ranges": [ | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r2-1" | |
], | |
"canvases": [ | |
"https://bvmm.irht.cnrs.fr/iiif/15039/canvas/canvas-1384890" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r3", | |
"@type": "sc:Range", | |
"label": "{Manuscript->shelfmarks->Shelfmark.canonical_shelfmark}", // préférable d'avoir la cote abrégée... (= à stocker dans un champ séparé) | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r0", | |
"ranges": [ | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r3-1" | |
], | |
"canvases": [ | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r4", | |
"@type": "sc:Range", | |
"label": "{Manuscript->shelfmarks->Shelfmark.canonical_shelfmark}", // préférable d'avoir la cote abrégée... (= à stocker dans un champ séparé) | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r0", | |
"ranges": [ | |
"https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r4-1" | |
], | |
"canvases": [ | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1", | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/2" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r1-1", | |
"@type": "sc:Range", | |
"label": "{Illumination.pageno} : {Illumination.caption}", | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r1", | |
"canvases": [ | |
"https://gallica.bnf.fr/iiif/ark:/12148/btv1b9059132s/canvas/f211" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r2-1", | |
"@type": "sc:Range", | |
"label": "{Illumination.pageno} : {Illumination.caption}", | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r2", | |
"canvases": [ | |
"https://bvmm.irht.cnrs.fr/iiif/15039/canvas/canvas-1384890" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r3-1", | |
"@type": "sc:Range", | |
"label": "{Illumination.pageno} : {Illumination.caption}", | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r3", | |
"canvases": [ | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1" | |
] | |
}, | |
{ | |
"@id": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r4-1", | |
"@type": "sc:Range", | |
"label": "{Illumination.pageno} : {Illumination.caption}", | |
"within": "https://biblissima.fr/iiif/{Descriptor.internal_id}/range/r4", | |
"canvases": [ | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/1", | |
"https://biblissima.fr/iiif/{Feature.internal_id}/canvas/2" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment