tamnd commited on
Commit
a37c7e7
·
verified ·
1 Parent(s): 5f87b87

Update README

Browse files
Files changed (1) hide show
  1. README.md +689 -0
README.md ADDED
@@ -0,0 +1,689 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - mul
5
+ license: cc0-1.0
6
+ task_categories:
7
+ - text-generation
8
+ - feature-extraction
9
+ - text-classification
10
+ pretty_name: Open Library
11
+ tags:
12
+ - books
13
+ - library
14
+ - bibliography
15
+ - open-library
16
+ - openlibrary
17
+ - isbn
18
+ size_categories:
19
+ - 100M+
20
+ configs:
21
+ - config_name: authors
22
+ data_files:
23
+ - split: train
24
+ path: data/authors/*.parquet
25
+ - config_name: works
26
+ data_files:
27
+ - split: train
28
+ path: data/works/*.parquet
29
+ - config_name: editions
30
+ data_files:
31
+ - split: train
32
+ path: data/editions/*.parquet
33
+ default: true
34
+ - config_name: ratings
35
+ data_files:
36
+ - split: train
37
+ path: data/ratings/*.parquet
38
+ - config_name: reading-log
39
+ data_files:
40
+ - split: train
41
+ path: data/reading-log/*.parquet
42
+ - config_name: redirects
43
+ data_files:
44
+ - split: train
45
+ path: data/redirects/*.parquet
46
+ - config_name: deletes
47
+ data_files:
48
+ - split: train
49
+ path: data/deletes/*.parquet
50
+ - config_name: lists
51
+ data_files:
52
+ - split: train
53
+ path: data/lists/*.parquet
54
+ - config_name: other
55
+ data_files:
56
+ - split: train
57
+ path: data/other/*.parquet
58
+ - config_name: covers_metadata
59
+ data_files:
60
+ - split: train
61
+ path: data/covers_metadata/*.parquet
62
+ - config_name: wikidata
63
+ data_files:
64
+ - split: train
65
+ path: data/wikidata/*.parquet
66
+ dataset_info:
67
+ - config_name: authors
68
+ features:
69
+ - name: key
70
+ dtype: string
71
+ - name: name
72
+ dtype: string
73
+ - name: alternate_names
74
+ dtype: string
75
+ - name: bio
76
+ dtype: string
77
+ - name: birth_date
78
+ dtype: string
79
+ - name: death_date
80
+ dtype: string
81
+ - name: date
82
+ dtype: string
83
+ - name: entity_type
84
+ dtype: string
85
+ - name: fuller_name
86
+ dtype: string
87
+ - name: personal_name
88
+ dtype: string
89
+ - name: title
90
+ dtype: string
91
+ - name: photos
92
+ dtype: string
93
+ - name: links
94
+ dtype: string
95
+ - name: remote_ids
96
+ dtype: string
97
+ - name: wikidata_id
98
+ dtype: string
99
+ - name: viaf_id
100
+ dtype: string
101
+ - name: isni
102
+ dtype: string
103
+ - name: source_records
104
+ dtype: string
105
+ - name: revision
106
+ dtype: int32
107
+ - name: created
108
+ dtype: string
109
+ - name: last_modified
110
+ dtype: string
111
+ splits:
112
+ - name: train
113
+ num_examples: 15071242
114
+ - config_name: works
115
+ features:
116
+ - name: key
117
+ dtype: string
118
+ - name: title
119
+ dtype: string
120
+ - name: subtitle
121
+ dtype: string
122
+ - name: author_keys
123
+ dtype: string
124
+ - name: covers
125
+ dtype: string
126
+ - name: description
127
+ dtype: string
128
+ - name: notes
129
+ dtype: string
130
+ - name: subjects
131
+ dtype: string
132
+ - name: subject_places
133
+ dtype: string
134
+ - name: subject_people
135
+ dtype: string
136
+ - name: subject_times
137
+ dtype: string
138
+ - name: lc_classifications
139
+ dtype: string
140
+ - name: first_publish_date
141
+ dtype: string
142
+ - name: revision
143
+ dtype: int32
144
+ - name: created
145
+ dtype: string
146
+ - name: last_modified
147
+ dtype: string
148
+ splits:
149
+ - name: train
150
+ num_examples: 40718247
151
+ - config_name: editions
152
+ features:
153
+ - name: key
154
+ dtype: string
155
+ - name: title
156
+ dtype: string
157
+ - name: subtitle
158
+ dtype: string
159
+ - name: author_keys
160
+ dtype: string
161
+ - name: work_keys
162
+ dtype: string
163
+ - name: isbn_10
164
+ dtype: string
165
+ - name: isbn_13
166
+ dtype: string
167
+ - name: lccn
168
+ dtype: string
169
+ - name: oclc_numbers
170
+ dtype: string
171
+ - name: ocaid
172
+ dtype: string
173
+ - name: identifiers
174
+ dtype: string
175
+ - name: local_id
176
+ dtype: string
177
+ - name: publishers
178
+ dtype: string
179
+ - name: publish_date
180
+ dtype: string
181
+ - name: publish_places
182
+ dtype: string
183
+ - name: publish_country
184
+ dtype: string
185
+ - name: edition_name
186
+ dtype: string
187
+ - name: by_statement
188
+ dtype: string
189
+ - name: contributions
190
+ dtype: string
191
+ - name: languages
192
+ dtype: string
193
+ - name: translated_from
194
+ dtype: string
195
+ - name: translation_of
196
+ dtype: string
197
+ - name: number_of_pages
198
+ dtype: int32
199
+ - name: pagination
200
+ dtype: string
201
+ - name: physical_format
202
+ dtype: string
203
+ - name: physical_dimensions
204
+ dtype: string
205
+ - name: weight
206
+ dtype: string
207
+ - name: covers
208
+ dtype: string
209
+ - name: description
210
+ dtype: string
211
+ - name: first_sentence
212
+ dtype: string
213
+ - name: notes
214
+ dtype: string
215
+ - name: table_of_contents
216
+ dtype: string
217
+ - name: subjects
218
+ dtype: string
219
+ - name: dewey_decimal_class
220
+ dtype: string
221
+ - name: lc_classifications
222
+ dtype: string
223
+ - name: genres
224
+ dtype: string
225
+ - name: series
226
+ dtype: string
227
+ - name: links
228
+ dtype: string
229
+ - name: source_records
230
+ dtype: string
231
+ - name: copyright_date
232
+ dtype: string
233
+ - name: other_titles
234
+ dtype: string
235
+ - name: work_titles
236
+ dtype: string
237
+ - name: classifications
238
+ dtype: string
239
+ - name: revision
240
+ dtype: int32
241
+ - name: created
242
+ dtype: string
243
+ - name: last_modified
244
+ dtype: string
245
+ splits:
246
+ - name: train
247
+ num_examples: 55615769
248
+ - config_name: ratings
249
+ features:
250
+ - name: work_key
251
+ dtype: string
252
+ - name: edition_key
253
+ dtype: string
254
+ - name: rating
255
+ dtype: int32
256
+ - name: date
257
+ dtype: string
258
+ splits:
259
+ - name: train
260
+ num_examples: 599849
261
+ - config_name: reading-log
262
+ features:
263
+ - name: work_key
264
+ dtype: string
265
+ - name: edition_key
266
+ dtype: string
267
+ - name: shelf
268
+ dtype: string
269
+ - name: date
270
+ dtype: string
271
+ splits:
272
+ - name: train
273
+ num_examples: 11778241
274
+ - config_name: redirects
275
+ features:
276
+ - name: key
277
+ dtype: string
278
+ - name: location
279
+ dtype: string
280
+ - name: type_name
281
+ dtype: string
282
+ - name: revision
283
+ dtype: int32
284
+ - name: last_modified
285
+ dtype: string
286
+ splits:
287
+ - name: train
288
+ num_examples: 1697861
289
+ - config_name: deletes
290
+ features:
291
+ - name: key
292
+ dtype: string
293
+ - name: type_name
294
+ dtype: string
295
+ - name: revision
296
+ dtype: int32
297
+ - name: last_modified
298
+ dtype: string
299
+ splits:
300
+ - name: train
301
+ num_examples: 3717514
302
+ - config_name: lists
303
+ features:
304
+ - name: key
305
+ dtype: string
306
+ - name: name
307
+ dtype: string
308
+ - name: description
309
+ dtype: string
310
+ - name: seeds
311
+ dtype: string
312
+ - name: seed_count
313
+ dtype: int32
314
+ - name: revision
315
+ dtype: int32
316
+ - name: created
317
+ dtype: string
318
+ - name: last_modified
319
+ dtype: string
320
+ splits:
321
+ - name: train
322
+ num_examples: 254050
323
+ - config_name: other
324
+ features:
325
+ - name: key
326
+ dtype: string
327
+ - name: type_name
328
+ dtype: string
329
+ - name: json_data
330
+ dtype: string
331
+ - name: revision
332
+ dtype: int32
333
+ - name: last_modified
334
+ dtype: string
335
+ splits:
336
+ - name: train
337
+ num_examples: 94416
338
+ - config_name: covers_metadata
339
+ features:
340
+ - name: id
341
+ dtype: int64
342
+ - name: width
343
+ dtype: int32
344
+ - name: height
345
+ dtype: int32
346
+ - name: created
347
+ dtype: string
348
+ splits:
349
+ - name: train
350
+ num_examples: 14775164
351
+ - config_name: wikidata
352
+ features:
353
+ - name: wikidata_id
354
+ dtype: string
355
+ - name: json_data
356
+ dtype: string
357
+ splits:
358
+ - name: train
359
+ num_examples: 166311
360
+ ---
361
+
362
+ # Open Library
363
+
364
+ > The world's catalog of books, converted to Parquet for training and analysis
365
+
366
+ ## What is it?
367
+
368
+ **Open Library** is a complete snapshot of the [Open Library](https://openlibrary.org/) database — a project of the [Internet Archive](https://archive.org) that aims to create "one web page for every book ever published." The catalog contains bibliographic records for millions of authors, works, and editions, plus user-contributed ratings and reading logs.
369
+
370
+ This dataset converts the official [OpenLibrary Data Dumps](https://openlibrary.org/developers/dumps) from their native TSV+JSON format into clean, columnar Apache Parquet files with Zstd compression. Every field from every record type is preserved — nothing is dropped.
371
+
372
+ **Dump date:** 2026-02 | **Total records:** 144.5M | **License:** [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) (Public Domain)
373
+
374
+ ## What is being released?
375
+
376
+ The dataset contains **11 configs**, one per entity type. Each config has one or more Parquet shards (~1M rows each):
377
+
378
+ ```
379
+ data/
380
+ authors/
381
+ works/
382
+ editions/
383
+ ratings/
384
+ reading-log/
385
+ redirects/
386
+ deletes/
387
+ lists/
388
+ other/
389
+ covers_metadata/
390
+ wikidata/
391
+ ```
392
+
393
+ | Config | Records | Description |
394
+ |--------|---------|-------------|
395
+ | `authors` | 15.1M | Authors with biographies, birth/death dates, and cross-references to Wikidata/VIAF/ISNI |
396
+ | `works` | 40.7M | Abstract works linking editions together, with subjects and descriptions |
397
+ | `editions` | 55.6M | Physical editions with ISBNs, publishers, page counts, languages, and cover IDs |
398
+ | `ratings` | 599.8K | User star ratings (1-5) for works and editions |
399
+ | `reading-log` | 11.8M | User reading shelves: want-to-read, currently-reading, already-read |
400
+ | `redirects` | 1.7M | Key redirects (merged or moved records) |
401
+ | `deletes` | 3.7M | Deleted record stubs |
402
+ | `lists` | 254.1K | User-created reading lists with seed references |
403
+ | `other` | 94.4K | Miscellaneous types: languages, i18n strings, templates, macros |
404
+ | `covers_metadata` | 14.8M | Cover image dimensions (width, height) for cover IDs |
405
+ | `wikidata` | 166.3K | Wikidata cross-reference records with full JSON |
406
+
407
+ ## How to download and use
408
+
409
+ ### Using `datasets`
410
+
411
+ ```python
412
+ from datasets import load_dataset
413
+
414
+ # Load a specific config
415
+ authors = load_dataset("open-index/open-library", "authors", split="train")
416
+ editions = load_dataset("open-index/open-library", "editions", split="train")
417
+
418
+ # Stream for large configs
419
+ works = load_dataset("open-index/open-library", "works", split="train", streaming=True)
420
+ for doc in works:
421
+ print(doc["key"], doc["title"])
422
+ ```
423
+
424
+ ### Using `huggingface_hub`
425
+
426
+ ```python
427
+ from huggingface_hub import snapshot_download
428
+
429
+ folder = snapshot_download(
430
+ "open-index/open-library",
431
+ repo_type="dataset",
432
+ local_dir="./open-library/",
433
+ allow_patterns="data/authors/*", # download one config
434
+ )
435
+ ```
436
+
437
+ For faster downloads, install `pip install huggingface_hub[hf_transfer]` and set `HF_HUB_ENABLE_HF_TRANSFER=1`.
438
+
439
+ ### Using DuckDB
440
+
441
+ ```sql
442
+ -- Find all editions of a work
443
+ SELECT key, title, isbn_13, publishers, publish_date
444
+ FROM read_parquet('hf://datasets/open-index/open-library/data/editions/*.parquet')
445
+ WHERE work_keys LIKE '%OL45804W%'
446
+ LIMIT 20;
447
+
448
+ -- Top-rated works
449
+ SELECT work_key, avg(rating) AS avg_rating, count(*) AS num_ratings
450
+ FROM read_parquet('hf://datasets/open-index/open-library/data/ratings/*.parquet')
451
+ GROUP BY work_key
452
+ HAVING count(*) >= 100
453
+ ORDER BY avg_rating DESC
454
+ LIMIT 10;
455
+
456
+ -- Authors with Wikidata links
457
+ SELECT key, name, wikidata_id, birth_date, death_date
458
+ FROM read_parquet('hf://datasets/open-index/open-library/data/authors/*.parquet')
459
+ WHERE wikidata_id IS NOT NULL
460
+ LIMIT 10;
461
+ ```
462
+
463
+ # Dataset card for Open Library
464
+
465
+ ## Dataset Description
466
+
467
+ - **Homepage:** [https://openlibrary.org](https://openlibrary.org)
468
+ - **Source Dumps:** [https://openlibrary.org/developers/dumps](https://openlibrary.org/developers/dumps)
469
+ - **Repository:** [https://huggingface.co/datasets/open-index/open-library](https://huggingface.co/datasets/open-index/open-library)
470
+ - **Point of Contact:** Please create a discussion on the Community tab
471
+ - **License:** CC0 1.0 Universal (Public Domain)
472
+
473
+ ## Dataset Structure
474
+
475
+ ### Authors
476
+
477
+ | Column | Type | Description |
478
+ |--------|------|-------------|
479
+ | `key` | string | OpenLibrary key, e.g. `/authors/OL1A` |
480
+ | `name` | string | Display name |
481
+ | `alternate_names` | string | JSON array of alternative name forms |
482
+ | `bio` | string | Biography text (unwrapped from text_block) |
483
+ | `birth_date` | string | Free-form birth date |
484
+ | `death_date` | string | Free-form death date |
485
+ | `date` | string | General date string |
486
+ | `entity_type` | string | `"person"`, `"org"`, or `"event"` |
487
+ | `fuller_name` | string | Full legal name |
488
+ | `personal_name` | string | Personal name variant |
489
+ | `title` | string | Honorific (e.g. "Sir", "OBE") |
490
+ | `photos` | string | JSON array of cover image IDs |
491
+ | `links` | string | JSON array of external link objects |
492
+ | `remote_ids` | string | JSON object: `wikidata`, `viaf`, `isni`, `goodreads`, etc. |
493
+ | `wikidata_id` | string | Extracted from `remote_ids.wikidata` |
494
+ | `viaf_id` | string | Extracted from `remote_ids.viaf` |
495
+ | `isni` | string | Extracted from `remote_ids.isni` |
496
+ | `source_records` | string | JSON array of import source identifiers |
497
+ | `revision` | int32 | Record revision number |
498
+ | `created` | string | ISO 8601 creation timestamp |
499
+ | `last_modified` | string | ISO 8601 last modification timestamp |
500
+
501
+ ### Works
502
+
503
+ | Column | Type | Description |
504
+ |--------|------|-------------|
505
+ | `key` | string | OpenLibrary key, e.g. `/works/OL45804W` |
506
+ | `title` | string | Work title |
507
+ | `subtitle` | string | Subtitle |
508
+ | `author_keys` | string | JSON array of author keys, e.g. `["/authors/OL1A"]` |
509
+ | `covers` | string | JSON array of cover image IDs |
510
+ | `description` | string | Work description (unwrapped from text_block) |
511
+ | `notes` | string | Editorial notes |
512
+ | `subjects` | string | JSON array of subject headings |
513
+ | `subject_places` | string | JSON array of geographic subjects |
514
+ | `subject_people` | string | JSON array of people subjects |
515
+ | `subject_times` | string | JSON array of time period subjects |
516
+ | `lc_classifications` | string | JSON array of Library of Congress classification numbers |
517
+ | `first_publish_date` | string | Earliest known publication date |
518
+ | `revision` | int32 | Record revision number |
519
+ | `created` | string | ISO 8601 creation timestamp |
520
+ | `last_modified` | string | ISO 8601 last modification timestamp |
521
+
522
+ ### Editions
523
+
524
+ | Column | Type | Description |
525
+ |--------|------|-------------|
526
+ | `key` | string | OpenLibrary key, e.g. `/books/OL1M` |
527
+ | `title` | string | Edition title |
528
+ | `subtitle` | string | Subtitle |
529
+ | `author_keys` | string | JSON array of author keys |
530
+ | `work_keys` | string | JSON array of parent work keys |
531
+ | `isbn_10` | string | JSON array of ISBN-10 numbers |
532
+ | `isbn_13` | string | JSON array of ISBN-13 numbers |
533
+ | `lccn` | string | JSON array of Library of Congress Control Numbers |
534
+ | `oclc_numbers` | string | JSON array of OCLC/WorldCat IDs |
535
+ | `ocaid` | string | Internet Archive identifier |
536
+ | `identifiers` | string | JSON object: `goodreads`, `librarything`, `amazon`, etc. |
537
+ | `local_id` | string | JSON array of local URNs |
538
+ | `publishers` | string | JSON array of publisher names |
539
+ | `publish_date` | string | Publication date (free-form) |
540
+ | `publish_places` | string | JSON array of publication places |
541
+ | `publish_country` | string | MARC21 country code |
542
+ | `edition_name` | string | Edition descriptor (e.g. "1st ed.") |
543
+ | `by_statement` | string | Authorship statement |
544
+ | `contributions` | string | JSON array of contributors |
545
+ | `languages` | string | JSON array of MARC language codes, e.g. `["eng"]` |
546
+ | `translated_from` | string | JSON array of original language codes |
547
+ | `translation_of` | string | Original title if translated |
548
+ | `number_of_pages` | int32 | Page count |
549
+ | `pagination` | string | Pagination description |
550
+ | `physical_format` | string | "Paperback", "Hardcover", etc. |
551
+ | `physical_dimensions` | string | Dimensions string |
552
+ | `weight` | string | Weight string |
553
+ | `covers` | string | JSON array of cover image IDs |
554
+ | `description` | string | Edition description |
555
+ | `first_sentence` | string | Opening sentence |
556
+ | `notes` | string | Editorial notes |
557
+ | `table_of_contents` | string | JSON array of TOC entries |
558
+ | `subjects` | string | JSON array of subject headings |
559
+ | `dewey_decimal_class` | string | JSON array of Dewey Decimal numbers |
560
+ | `lc_classifications` | string | JSON array of LC classification numbers |
561
+ | `genres` | string | JSON array of genre labels |
562
+ | `series` | string | JSON array of series names |
563
+ | `links` | string | JSON array of external links |
564
+ | `source_records` | string | JSON array of import sources |
565
+ | `copyright_date` | string | Copyright year |
566
+ | `other_titles` | string | JSON array of alternative titles |
567
+ | `work_titles` | string | JSON array of related work titles |
568
+ | `classifications` | string | JSON object of additional classification schemes |
569
+ | `revision` | int32 | Record revision number |
570
+ | `created` | string | ISO 8601 creation timestamp |
571
+ | `last_modified` | string | ISO 8601 last modification timestamp |
572
+
573
+ ### Ratings
574
+
575
+ | Column | Type | Description |
576
+ |--------|------|-------------|
577
+ | `work_key` | string | Work reference, e.g. `/works/OL123W` |
578
+ | `edition_key` | string | Edition reference (optional) |
579
+ | `rating` | int32 | Star rating, 1-5 |
580
+ | `date` | string | Date the rating was submitted |
581
+
582
+ ### Reading Log
583
+
584
+ | Column | Type | Description |
585
+ |--------|------|-------------|
586
+ | `work_key` | string | Work reference |
587
+ | `edition_key` | string | Edition reference (optional) |
588
+ | `shelf` | string | One of: `want-to-read`, `currently-reading`, `already-read` |
589
+ | `date` | string | Date of the shelf action |
590
+
591
+ ### Redirects
592
+
593
+ | Column | Type | Description |
594
+ |--------|------|-------------|
595
+ | `key` | string | Old/redirected key |
596
+ | `location` | string | Target key being redirected to |
597
+ | `type_name` | string | Type key (e.g. `/type/redirect`) |
598
+ | `revision` | int32 | Record revision number |
599
+ | `last_modified` | string | ISO 8601 timestamp |
600
+
601
+ ### Deletes
602
+
603
+ | Column | Type | Description |
604
+ |--------|------|-------------|
605
+ | `key` | string | Deleted record key |
606
+ | `type_name` | string | Type key (e.g. `/type/delete`) |
607
+ | `revision` | int32 | Record revision number |
608
+ | `last_modified` | string | ISO 8601 timestamp |
609
+
610
+ ### Lists
611
+
612
+ | Column | Type | Description |
613
+ |--------|------|-------------|
614
+ | `key` | string | List key |
615
+ | `name` | string | List name |
616
+ | `description` | string | List description |
617
+ | `seeds` | string | JSON array of seed references |
618
+ | `seed_count` | int32 | Number of seeds in the list |
619
+ | `revision` | int32 | Record revision number |
620
+ | `created` | string | ISO 8601 creation timestamp |
621
+ | `last_modified` | string | ISO 8601 timestamp |
622
+
623
+ ### Covers Metadata
624
+
625
+ | Column | Type | Description |
626
+ |--------|------|-------------|
627
+ | `id` | int64 | Cover image ID |
628
+ | `width` | int32 | Image width in pixels |
629
+ | `height` | int32 | Image height in pixels |
630
+ | `created` | string | Upload timestamp |
631
+
632
+ ### Wikidata
633
+
634
+ | Column | Type | Description |
635
+ |--------|------|-------------|
636
+ | `wikidata_id` | string | Wikidata Q-identifier |
637
+ | `json_data` | string | Full JSON body of the Wikidata record |
638
+
639
+ ### Other
640
+
641
+ | Column | Type | Description |
642
+ |--------|------|-------------|
643
+ | `key` | string | Record key |
644
+ | `type_name` | string | Type key |
645
+ | `json_data` | string | Full JSON body |
646
+ | `revision` | int32 | Record revision number |
647
+ | `last_modified` | string | ISO 8601 timestamp |
648
+
649
+ ## Dataset Creation
650
+
651
+ ### Source Data
652
+
653
+ [Open Library](https://openlibrary.org/) is an open, editable library catalog maintained by the [Internet Archive](https://archive.org). It publishes monthly bulk data dumps at [openlibrary.org/developers/dumps](https://openlibrary.org/developers/dumps) covering every record in the database: authors, works, editions, ratings, reading logs, redirects, deleted records, user lists, cover metadata, and Wikidata cross-references.
654
+
655
+ ### Data Processing
656
+
657
+ The processing pipeline converts each dump type from its native format into clean Parquet:
658
+
659
+ 1. **Download** the `.txt.gz` dump from Internet Archive (the `_latest` URLs redirect to the most recent monthly snapshot)
660
+ 2. **Stream** through the gzipped file line-by-line — no intermediate uncompressed copy
661
+ 3. **Parse** each TSV line and extract all JSON fields using [gjson](https://github.com/tidwall/gjson) (zero-allocation field extraction)
662
+ 4. **Normalize** nested structures: text blocks (`{"type":"/type/text","value":"..."}`) are unwrapped to plain strings; language references (`[{"key":"/languages/eng"}]`) become `["eng"]`; author role arrays become flat key lists
663
+ 5. **Write** to sharded Parquet files with Zstd compression (~1M rows per shard, 500K rows per row group)
664
+
665
+ The full pipeline processes all 11 dump types without storing any intermediate files. Memory usage stays constant regardless of dump size because the pipeline is fully streaming.
666
+
667
+ ## Considerations for Using the Data
668
+
669
+ ### Field Encoding
670
+
671
+ Array and object fields (e.g. `subjects`, `identifiers`, `remote_ids`) are stored as **JSON strings**, not native Parquet lists or maps. This maximizes flexibility — you can query them with DuckDB's `json_extract()` or parse them in Python with `json.loads()`. Frequently-used identifiers (`wikidata_id`, `viaf_id`, `isni`) are also extracted as top-level columns for convenience.
672
+
673
+ ### Data Quality
674
+
675
+ Open Library is a community-edited catalog. Some records have inconsistent formatting, missing fields, or duplicate entries. Dates are free-form strings (e.g. "1899", "March 1980", "c. 1650"). The `redirects` config can help resolve merged/moved records.
676
+
677
+ ### Personal Information
678
+
679
+ Author records contain biographical information (names, birth/death dates, biographies) sourced from public library catalogs. Reading logs and ratings are anonymized — they contain no user identifiers.
680
+
681
+ ## Additional Information
682
+
683
+ ### Licensing
684
+
685
+ Open Library data is released under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) (Public Domain). You are free to use it for any purpose without attribution, though attribution to Open Library and the Internet Archive is appreciated.
686
+
687
+ ### Contact
688
+
689
+ Please open a discussion on the [Community tab](https://huggingface.co/datasets/open-index/open-library/discussions) for questions, feedback, or issues.