Rewrite dataset card to document new subset/split structure
Browse files
README.md
CHANGED
|
@@ -82,97 +82,121 @@ configs:
|
|
| 82 |
- split: records
|
| 83 |
path: tiles/names/*.jsonl.gz
|
| 84 |
---
|
|
|
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
##
|
| 91 |
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
-
|
| 95 |
-
- **Client-side graph visualization** — spatial indices, LOD levels, and edge tiles enable progressive loading of a 500M+ node graph
|
| 96 |
-
- **Entity lookup** — compact ID mappings, name indices, and search indices for fast entity resolution
|
| 97 |
|
| 98 |
-
|
| 99 |
|
| 100 |
-
##
|
| 101 |
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
-
|
| 105 |
|
| 106 |
-
###
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
-
|
| 111 |
|
| 112 |
-
|
|
|
|
| 113 |
|
| 114 |
-
#
|
|
|
|
| 115 |
|
| 116 |
-
|
|
|
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
| 120 |
|
| 121 |
-
#
|
|
|
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
| `n` | `string` | Display name (author name, work title, etc.) |
|
| 127 |
|
| 128 |
-
###
|
| 129 |
|
| 130 |
-
|
|
|
|
| 131 |
|
| 132 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|--------|------|-------------|
|
| 138 |
-
| `id` | `int64` | Compact integer ID |
|
| 139 |
-
| `name` | `string` | Display name |
|
| 140 |
|
| 141 |
-
|
| 142 |
|
| 143 |
-
|
| 144 |
-
|--------|------|-------------|
|
| 145 |
-
| `w` | `string` | Search word (lowercased token) |
|
| 146 |
-
| `ids` | `list[int64]` | Compact IDs of entities containing this word |
|
| 147 |
|
| 148 |
-
|
| 149 |
|
| 150 |
-
|
| 151 |
|
| 152 |
-
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|--------|-------|--------|
|
| 156 |
-
| Works | ~449M | `works` |
|
| 157 |
-
| Authors | ~108M | `authors` |
|
| 158 |
-
| Sources | 255,250 | `sources` |
|
| 159 |
-
| Institutions | 102,709 | `institutions` |
|
| 160 |
-
| Concepts | 65,026 | `concepts` |
|
| 161 |
-
| Funders | 32,437 | `funders` |
|
| 162 |
-
| Publishers | 10,703 | `publishers` |
|
| 163 |
-
| Topics | 4,516 | `topics` |
|
| 164 |
-
| Subfields | 252 | `subfields` |
|
| 165 |
-
| Fields | 26 | `fields` |
|
| 166 |
-
| Domains | 4 | `domains` |
|
| 167 |
|
| 168 |
## Repository Structure
|
| 169 |
|
| 170 |
```
|
| 171 |
snapshot/ # Raw OpenAlex snapshot (gzipped JSONL, date-partitioned)
|
| 172 |
├── works/ # ~449M scholarly works (~750 GB compressed)
|
| 173 |
-
│
|
| 174 |
-
│ └── YYYY-MM-DD/
|
| 175 |
-
│ └── part_NNNN.jsonl.gz
|
| 176 |
├── authors/ # ~108M author profiles (~64 GB compressed)
|
| 177 |
├── institutions/ # 103K institutions
|
| 178 |
├── sources/ # 255K journals/repositories
|
|
@@ -186,23 +210,16 @@ snapshot/ # Raw OpenAlex snapshot (gzipped JSONL, date-partitioned
|
|
| 186 |
|
| 187 |
index/
|
| 188 |
├── entities/ # Small entity types (JSONL.gz: {id, n})
|
| 189 |
-
│ ├── concepts.jsonl.gz
|
| 190 |
-
│ ├── institutions.jsonl.gz
|
| 191 |
-
│ ├── sources.jsonl.gz
|
| 192 |
-
│ └── ... (9 files)
|
| 193 |
├── mappings/ # Binary ID mappings (OpenAlex ID → compact ID)
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
│ └── ... (5 files)
|
| 197 |
-
├── authors/ # Author records (104 shards, JSONL.gz: {id, n})
|
| 198 |
-
├── works/ # Work records (1,098 shards, JSONL.gz: {id, n})
|
| 199 |
├── edges/ # Citation + collaboration edges (adjacency lists)
|
| 200 |
├── adj/ # Compressed adjacency shards
|
| 201 |
└── search/ # Inverted word index for entity search
|
| 202 |
|
| 203 |
layout/
|
| 204 |
-
├── coords-2d.bin # 2D force-directed layout coordinates
|
| 205 |
-
├── coords-3d.bin # 3D force-directed layout coordinates
|
| 206 |
├── layout-2d.json # Layout metadata
|
| 207 |
├── layout-3d.json
|
| 208 |
└── density-2d.png # 4K density visualization
|
|
@@ -220,70 +237,6 @@ tiles/
|
|
| 220 |
└── adj/ # Symlinked from index/adj
|
| 221 |
```
|
| 222 |
|
| 223 |
-
## File Formats
|
| 224 |
-
|
| 225 |
-
| Directory | Format | Description |
|
| 226 |
-
|-----------|--------|-------------|
|
| 227 |
-
| `index/entities/` | JSONL.gz | `{"id": <compact_id>, "n": "<display_name>"}` |
|
| 228 |
-
| `index/authors/` | JSONL.gz | `{"id": <compact_id>, "n": "<display_name>"}` |
|
| 229 |
-
| `index/works/` | JSONL.gz | `{"id": <compact_id>, "n": "<title>"}` |
|
| 230 |
-
| `index/mappings/` | Binary.gz | Sorted arrays of 8-byte integers (OpenAlex ID → compact ID) |
|
| 231 |
-
| `index/edges/` | Binary.gz | Adjacency lists (source → target compact IDs) |
|
| 232 |
-
| `tiles/nodes/` | Binary | Fixed-width entity metadata records |
|
| 233 |
-
| `tiles/coords/` | Binary | `float32[n × dim]` coordinate arrays |
|
| 234 |
-
| `tiles/spatial/` | Binary | Z-order spatial index (compact ID lists per tile) |
|
| 235 |
-
| `layout/coords-*.bin` | Binary | 32-byte header + `float32[n × dim]` |
|
| 236 |
-
|
| 237 |
-
## Usage
|
| 238 |
-
|
| 239 |
-
These files are designed to be served statically over HTTP and consumed by a JavaScript client (e.g., [BibGraph](https://github.com/Mearman/BibGraph)). They are **not** intended for direct use via `datasets.load_dataset()`, though the JSONL entity indices can be loaded that way.
|
| 240 |
-
|
| 241 |
-
### Load via datasets library
|
| 242 |
-
|
| 243 |
-
```python
|
| 244 |
-
from datasets import load_dataset
|
| 245 |
-
|
| 246 |
-
# Load compact entity index
|
| 247 |
-
authors = load_dataset("Mearman/OpenAlex", "authors", split="index")
|
| 248 |
-
works = load_dataset("Mearman/OpenAlex", "works", split="index")
|
| 249 |
-
|
| 250 |
-
# Load full OpenAlex snapshot records
|
| 251 |
-
works_full = load_dataset("Mearman/OpenAlex", "snapshot-works", split="train")
|
| 252 |
-
topics_full = load_dataset("Mearman/OpenAlex", "snapshot-topics", split="train")
|
| 253 |
-
|
| 254 |
-
# Load search index
|
| 255 |
-
search = load_dataset("Mearman/OpenAlex", "search", split="train")
|
| 256 |
-
```
|
| 257 |
-
|
| 258 |
-
### Download specific directories
|
| 259 |
-
|
| 260 |
-
```python
|
| 261 |
-
from huggingface_hub import snapshot_download
|
| 262 |
-
|
| 263 |
-
# Download just the entity index
|
| 264 |
-
snapshot_download(
|
| 265 |
-
"Mearman/OpenAlex",
|
| 266 |
-
repo_type="dataset",
|
| 267 |
-
allow_patterns="index/entities/*",
|
| 268 |
-
local_dir="./openalex",
|
| 269 |
-
)
|
| 270 |
-
|
| 271 |
-
# Download tiles for 2D visualization
|
| 272 |
-
snapshot_download(
|
| 273 |
-
"Mearman/OpenAlex",
|
| 274 |
-
repo_type="dataset",
|
| 275 |
-
allow_patterns=["tiles/manifest.json", "tiles/nodes/*", "tiles/coords/2d/*", "tiles/spatial/2d/*"],
|
| 276 |
-
local_dir="./openalex",
|
| 277 |
-
)
|
| 278 |
-
```
|
| 279 |
-
|
| 280 |
-
### Serve locally
|
| 281 |
-
|
| 282 |
-
```bash
|
| 283 |
-
huggingface-cli download Mearman/OpenAlex --repo-type dataset --local-dir ./openalex
|
| 284 |
-
cd openalex && python3 -m http.server 8080
|
| 285 |
-
```
|
| 286 |
-
|
| 287 |
## Pipeline
|
| 288 |
|
| 289 |
Built using the OpenAlex Pipeline on [Supercomputing Wales](https://www.supercomputing.wales/) (Falcon cluster, 192-core AMD Genoa nodes) as part of PhD research at [Bangor University](https://www.bangor.ac.uk/):
|
|
@@ -300,4 +253,4 @@ The underlying OpenAlex data is [CC0 (public domain)](https://creativecommons.or
|
|
| 300 |
|
| 301 |
## Status
|
| 302 |
|
| 303 |
-
🚧 **In progress** — Raw snapshot and index
|
|
|
|
| 82 |
- split: records
|
| 83 |
path: tiles/names/*.jsonl.gz
|
| 84 |
---
|
| 85 |
+
# OpenAlex Dataset
|
| 86 |
|
| 87 |
+
A complete mirror of the [OpenAlex](https://openalex.org/) scholarly knowledge graph, plus a pre-built graph index and tile repository for client-side visualization.
|
| 88 |
|
| 89 |
+
## Subsets
|
| 90 |
|
| 91 |
+
### Snapshot Records (full OpenAlex data)
|
| 92 |
|
| 93 |
+
| Config | Split | Records | Description |
|
| 94 |
+
|--------|-------|---------|-------------|
|
| 95 |
+
| **`complete`** | `records` | ~583M | All entity types combined |
|
| 96 |
+
| **`works`** (default) | `records` | ~449M | Scholarly works — papers, articles, books, datasets |
|
| 97 |
+
| **`authors`** | `records` | ~108M | Author profiles with affiliations and metrics |
|
| 98 |
+
| **`institutions`** | `records` | ~103K | Universities, research institutes, hospitals |
|
| 99 |
+
| **`sources`** | `records` | ~255K | Journals, repositories, conferences |
|
| 100 |
+
| **`topics`** | `records` | ~4.5K | Research topics (auto-classified) |
|
| 101 |
+
| **`subfields`** | `records` | 252 | Academic subfields |
|
| 102 |
+
| **`fields`** | `records` | 26 | Academic fields |
|
| 103 |
+
| **`domains`** | `records` | 4 | Top-level domains |
|
| 104 |
+
| **`concepts`** | `records` | ~65K | Subject concepts (legacy, replaced by topics) |
|
| 105 |
+
| **`funders`** | `records` | ~32K | Funding organizations |
|
| 106 |
+
| **`publishers`** | `records` | ~11K | Publishing companies |
|
| 107 |
|
| 108 |
+
Each record is the full OpenAlex JSON matching the [REST API schema](https://docs.openalex.org/api-entities). Fields vary by entity type — see [OpenAlex docs](https://docs.openalex.org/) for details.
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
Source files: gzip-compressed JSON Lines from the [OpenAlex S3 snapshot](https://docs.openalex.org/download-all-data/openalex-snapshot) (January 2026), date-partitioned under `snapshot/<entity>/YYYY-MM-DD/`.
|
| 111 |
|
| 112 |
+
### Graph Index (compact IDs)
|
| 113 |
|
| 114 |
+
| Config | Split | Records | Schema | Description |
|
| 115 |
+
|--------|-------|---------|--------|-------------|
|
| 116 |
+
| **`index`** | `works` | ~449M | `{id, n}` | Compact integer ID + title |
|
| 117 |
+
| | `authors` | ~108M | `{id, n}` | Compact integer ID + name |
|
| 118 |
+
| | `institutions` | ~103K | `{id, n}` | Compact integer ID + name |
|
| 119 |
+
| | `sources` | ~255K | `{id, n}` | Compact integer ID + name |
|
| 120 |
+
| | `topics` | ~4.5K | `{id, n}` | Compact integer ID + name |
|
| 121 |
+
| | `subfields` | 252 | `{id, n}` | Compact integer ID + name |
|
| 122 |
+
| | `fields` | 26 | `{id, n}` | Compact integer ID + name |
|
| 123 |
+
| | `domains` | 4 | `{id, n}` | Compact integer ID + name |
|
| 124 |
+
| | `concepts` | ~65K | `{id, n}` | Compact integer ID + name |
|
| 125 |
+
| | `funders` | ~32K | `{id, n}` | Compact integer ID + name |
|
| 126 |
+
| | `publishers` | ~11K | `{id, n}` | Compact integer ID + name |
|
| 127 |
|
| 128 |
+
Pipeline-generated compact IDs (0-indexed integers) mapped from OpenAlex IDs. Used internally by the graph visualization and tile system.
|
| 129 |
|
| 130 |
+
### Utility Configs
|
| 131 |
|
| 132 |
+
| Config | Split | Schema | Description |
|
| 133 |
+
|--------|-------|--------|-------------|
|
| 134 |
+
| **`search`** | `records` | `{w, ids}` | Inverted word index — maps lowercased tokens to compact entity IDs |
|
| 135 |
+
| **`names`** | `records` | `{id, name}` | Display names keyed by compact ID, sharded for tile serving |
|
| 136 |
|
| 137 |
+
## Quick Start
|
| 138 |
|
| 139 |
+
```python
|
| 140 |
+
from datasets import load_dataset
|
| 141 |
|
| 142 |
+
# Load full OpenAlex works records
|
| 143 |
+
works = load_dataset("Mearman/OpenAlex", "works", split="records")
|
| 144 |
|
| 145 |
+
# Stream the complete dataset (all entity types, ~434 GB compressed)
|
| 146 |
+
ds = load_dataset("Mearman/OpenAlex", "complete", split="records", streaming=True)
|
| 147 |
|
| 148 |
+
# Load a single small entity type
|
| 149 |
+
topics = load_dataset("Mearman/OpenAlex", "topics", split="records")
|
| 150 |
|
| 151 |
+
# Load the compact graph index for authors
|
| 152 |
+
authors_index = load_dataset("Mearman/OpenAlex", "index", split="authors")
|
| 153 |
|
| 154 |
+
# Search index
|
| 155 |
+
search = load_dataset("Mearman/OpenAlex", "search", split="records")
|
| 156 |
+
```
|
|
|
|
| 157 |
|
| 158 |
+
### Download specific directories
|
| 159 |
|
| 160 |
+
```python
|
| 161 |
+
from huggingface_hub import snapshot_download
|
| 162 |
|
| 163 |
+
# Download just the raw snapshot for one entity type
|
| 164 |
+
snapshot_download(
|
| 165 |
+
"Mearman/OpenAlex",
|
| 166 |
+
repo_type="dataset",
|
| 167 |
+
allow_patterns="snapshot/topics/**",
|
| 168 |
+
local_dir="./openalex",
|
| 169 |
+
)
|
| 170 |
|
| 171 |
+
# Download tiles for 2D visualization
|
| 172 |
+
snapshot_download(
|
| 173 |
+
"Mearman/OpenAlex",
|
| 174 |
+
repo_type="dataset",
|
| 175 |
+
allow_patterns=["tiles/manifest.json", "tiles/nodes/*", "tiles/coords/2d/*", "tiles/spatial/2d/*"],
|
| 176 |
+
local_dir="./openalex",
|
| 177 |
+
)
|
| 178 |
+
```
|
| 179 |
|
| 180 |
+
## About OpenAlex
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
+
[OpenAlex](https://openalex.org/) is a free, open catalogue of the global research system — scholarly works, authors, institutions, journals, and the connections between them. It is maintained by [OurResearch](https://ourresearch.org/) and available under a [CC0](https://creativecommons.org/publicdomain/zero/1.0/) public domain license.
|
| 183 |
|
| 184 |
+
The `snapshot/` directory in this repository is a mirror of the [OpenAlex S3 snapshot](https://docs.openalex.org/download-all-data/openalex-snapshot) ([AWS Open Data Registry](https://registry.opendata.aws/openalex/)). The upstream snapshot is updated approximately monthly.
|
|
|
|
|
|
|
|
|
|
| 185 |
|
| 186 |
+
### Citation
|
| 187 |
|
| 188 |
+
If you use this data, please cite OpenAlex:
|
| 189 |
|
| 190 |
+
> Priem, J., Piwowar, H., & Orr, R. (2022). OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and concepts. *ArXiv*. [https://arxiv.org/abs/2205.01833](https://arxiv.org/abs/2205.01833)
|
| 191 |
|
| 192 |
+
See also: [OpenAlex documentation](https://docs.openalex.org/) · [API](https://api.openalex.org/) · [GitHub](https://github.com/ourresearch/openalex-snapshot)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
## Repository Structure
|
| 195 |
|
| 196 |
```
|
| 197 |
snapshot/ # Raw OpenAlex snapshot (gzipped JSONL, date-partitioned)
|
| 198 |
├── works/ # ~449M scholarly works (~750 GB compressed)
|
| 199 |
+
│ └── YYYY-MM-DD/part_NNNN.jsonl.gz
|
|
|
|
|
|
|
| 200 |
├── authors/ # ~108M author profiles (~64 GB compressed)
|
| 201 |
├── institutions/ # 103K institutions
|
| 202 |
├── sources/ # 255K journals/repositories
|
|
|
|
| 210 |
|
| 211 |
index/
|
| 212 |
├── entities/ # Small entity types (JSONL.gz: {id, n})
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
├── mappings/ # Binary ID mappings (OpenAlex ID → compact ID)
|
| 214 |
+
├── authors/ # Author index (104 shards, JSONL.gz)
|
| 215 |
+
├── works/ # Work index (1,098 shards, JSONL.gz)
|
|
|
|
|
|
|
|
|
|
| 216 |
├── edges/ # Citation + collaboration edges (adjacency lists)
|
| 217 |
├── adj/ # Compressed adjacency shards
|
| 218 |
└── search/ # Inverted word index for entity search
|
| 219 |
|
| 220 |
layout/
|
| 221 |
+
├── coords-2d.bin # 2D force-directed layout coordinates
|
| 222 |
+
├── coords-3d.bin # 3D force-directed layout coordinates
|
| 223 |
├── layout-2d.json # Layout metadata
|
| 224 |
├── layout-3d.json
|
| 225 |
└── density-2d.png # 4K density visualization
|
|
|
|
| 237 |
└── adj/ # Symlinked from index/adj
|
| 238 |
```
|
| 239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
## Pipeline
|
| 241 |
|
| 242 |
Built using the OpenAlex Pipeline on [Supercomputing Wales](https://www.supercomputing.wales/) (Falcon cluster, 192-core AMD Genoa nodes) as part of PhD research at [Bangor University](https://www.bangor.ac.uk/):
|
|
|
|
| 253 |
|
| 254 |
## Status
|
| 255 |
|
| 256 |
+
🚧 **In progress** — Raw snapshot and index uploaded. Layout and tiles will be added as pipeline jobs complete.
|