← スキル一覧に戻る

iiif
by wellcomecollection
⭐ 0🍴 1📅 2026年1月9日
SKILL.md
name: iiif description: Work with IIIF manifests and the Wellcome Collection API. Use this skill to download manifests, extract metadata, or process canvases. Invoke with /iiif.
IIIF Manifest Processing
This skill helps work with IIIF (International Image Interoperability Framework) manifests from the Wellcome Collection.
Overview
The Wellcome Collection provides digitized works via IIIF Presentation API. Each work has a manifest containing:
- Metadata (title, contributors, subjects)
- Sequences of canvases (pages)
- Image URLs and dimensions
- Text renderings (OCR text URLs)
CLI Commands
The iiif_manifests.py module provides Click-based CLI commands:
Download Manifests
# Download first 1000 manifests
python -m wc_simd.iiif_manifests download-manifests --limit 1000
# Download all manifests
python -m wc_simd.iiif_manifests download-manifests
Create Hive Tables
python -m wc_simd.iiif_manifests create-tables
Process Specific Work
python -m wc_simd.iiif_manifests process-work --work-id abc123
API Endpoints
Works API
https://api.wellcomecollection.org/catalogue/v2/works
https://api.wellcomecollection.org/catalogue/v2/works/{id}
IIIF Presentation API
https://iiif.wellcomecollection.org/presentation/v3/{id}
Image API
https://iiif.wellcomecollection.org/image/{image_id}/full/max/0/default.jpg
Python Usage
from wc_simd.iiif_manifests import (
fetch_manifest,
extract_canvases,
get_text_rendering_url
)
# Fetch a manifest
manifest = fetch_manifest("abc123")
# Extract canvas metadata
canvases = extract_canvases(manifest)
# Get OCR text URL
text_url = get_text_rendering_url(manifest)
Content Advisory Authentication
Some images require authentication due to content advisory. Handle with session cookies:
import requests
session = requests.Session()
# Accept content advisory
session.get("https://wellcomecollection.org/works/{id}?acceptContentAdvisory=true")
# Now fetch protected content
response = session.get(protected_url)
Key Statistics
- Total manifests: ~340,000
- Works with OCR text: 226,145
- Total pages: ~42 million
- Download failure rate: 0.47%
Hive Tables Created
| Table | Description |
|---|---|
iiif_manifests | Manifest metadata (id, label, attribution) |
iiif_canvases | Canvas data (image URLs, dimensions, labels) |
alto_text | OCR text extracted from text renderings |
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です