スキル一覧に戻る
wellcomecollection

data-explore

by wellcomecollection

0🍴 1📅 2026年1月9日
GitHubで見るManusで実行

SKILL.md


name: data-explore description: Explore Hive tables and datasets in the Wellcome Collection data warehouse. Use this skill to query tables, understand schemas, or analyze data distributions. Invoke with /data-explore.

Data Exploration

This skill helps explore the Wellcome Collection data warehouse stored in Hive tables.

Available Tables

Core Tables

TableRecordsDescription
works738,073Wellcome Collection works catalog
images128,755Image metadata from IIIF manifests
iiif_manifests~340,000IIIF manifest metadata
iiif_canvases~42MPage-level canvas data

Text Tables

TableRecordsDescription
alto_text~226,000OCR text from works (9.8B words total)
alto_sentence~550MSentence-level text
alto_text_chunks~74MText chunks for embedding

Embedding Tables

TableDescription
vlm_embeddingsVLM image embeddings (1536-dim)
text_embeddingsQwen3 text embeddings

Label Tables

TableRecordsDescription
dn_labels646,786Combined genres/subjects/contributors

Quick Start

Connect to Spark

from wc_simd.utility import get_spark_session
spark = get_spark_session()

List Tables

spark.sql("SHOW TABLES").show()

Explore Schema

spark.table("works").printSchema()

Sample Data

spark.table("works").show(10, truncate=False)

Count Records

spark.table("works").count()

Common Queries

Works with OCR Text

SELECT COUNT(*) FROM works w
JOIN alto_text t ON w.id = t.id

Genre Distribution

SELECT genre.label, COUNT(*) as cnt
FROM works
LATERAL VIEW explode(genres) AS genre
GROUP BY genre.label
ORDER BY cnt DESC
LIMIT 20

Subject Distribution

SELECT subject.label, COUNT(*) as cnt
FROM works
LATERAL VIEW explode(subjects) AS subject
GROUP BY subject.label
ORDER BY cnt DESC
LIMIT 20

Concept Types

SELECT concept.type, COUNT(*) as cnt
FROM works
LATERAL VIEW explode(subjects) AS subject
LATERAL VIEW explode(subject.concepts) AS concept
GROUP BY concept.type

Key Statistics

  • Total words: 9.8 billion (~12,500 King James Bibles)
  • Text chunks: 74.3 million (1000 chars, 200 overlap)
  • Languages: 78.9% English
  • Genre labels: 1,523 unique
  • Subject labels: 204,322 unique
  • Concept labels: 126,714 unique

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です