Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

history.html 33 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
  3. <meta charset="utf-8">
  4. <meta name="generator" content="quarto-1.3.450">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
  6. <title>Book Data Tools – history</title>
  7. <style>
  8. code{white-space: pre-wrap;}
  9. span.smallcaps{font-variant: small-caps;}
  10. div.columns{display: flex; gap: min(4vw, 1.5em);}
  11. div.column{flex: auto; overflow-x: auto;}
  12. div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
  13. ul.task-list{list-style: none;}
  14. ul.task-list li input[type="checkbox"] {
  15. width: 0.8em;
  16. margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
  17. vertical-align: middle;
  18. }
  19. </style>
  20. <script src="site_libs/quarto-nav/quarto-nav.js"></script>
  21. <script src="site_libs/quarto-nav/headroom.min.js"></script>
  22. <script src="site_libs/clipboard/clipboard.min.js"></script>
  23. <script src="site_libs/quarto-search/autocomplete.umd.js"></script>
  24. <script src="site_libs/quarto-search/fuse.min.js"></script>
  25. <script src="site_libs/quarto-search/quarto-search.js"></script>
  26. <meta name="quarto:offset" content="./">
  27. <script src="site_libs/quarto-html/quarto.js"></script>
  28. <script src="site_libs/quarto-html/popper.min.js"></script>
  29. <script src="site_libs/quarto-html/tippy.umd.min.js"></script>
  30. <script src="site_libs/quarto-html/anchor.min.js"></script>
  31. <link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
  32. <link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-text-highlighting-styles">
  33. <link href="site_libs/quarto-html/quarto-syntax-highlighting-dark.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-text-highlighting-styles">
  34. <script src="site_libs/bootstrap/bootstrap.min.js"></script>
  35. <link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
  36. <link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
  37. <link href="site_libs/bootstrap/bootstrap-dark.min.css" rel="prefetch" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
  38. <script id="quarto-search-options" type="application/json">{
  39. "location": "sidebar",
  40. "copy-button": false,
  41. "collapse-after": 3,
  42. "panel-placement": "start",
  43. "type": "textbox",
  44. "limit": 20,
  45. "language": {
  46. "search-no-results-text": "No results",
  47. "search-matching-documents-text": "matching documents",
  48. "search-copy-link-title": "Copy link to search",
  49. "search-hide-matches-text": "Hide additional matches",
  50. "search-more-match-text": "more match in this document",
  51. "search-more-matches-text": "more matches in this document",
  52. "search-clear-button-title": "Clear",
  53. "search-detached-cancel-button-title": "Cancel",
  54. "search-submit-button-title": "Submit",
  55. "search-label": "Search"
  56. }
  57. }</script>
  58. <link rel="stylesheet" href="tweaks.css">
  59. </head>
  60. <body class="nav-sidebar floating">
  61. <div id="quarto-search-results"></div>
  62. <header id="quarto-header" class="headroom fixed-top">
  63. <nav class="quarto-secondary-nav">
  64. <div class="container-fluid d-flex">
  65. <button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
  66. <i class="bi bi-layout-text-sidebar-reverse"></i>
  67. </button>
  68. <nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./history.html">History</a></li></ol></nav>
  69. <a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
  70. </a>
  71. <button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
  72. <i class="bi bi-search"></i>
  73. </button>
  74. </div>
  75. </nav>
  76. </header>
  77. <!-- content -->
  78. <div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article">
  79. <!-- sidebar -->
  80. <nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation floating overflow-auto">
  81. <div class="pt-lg-2 mt-2 text-left sidebar-header">
  82. <div class="sidebar-title mb-0 py-0">
  83. <a href="./">Book Data Tools</a>
  84. <div class="sidebar-tools-main">
  85. <a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="mt-2 flex-shrink-0 align-items-center">
  90. <div class="sidebar-search">
  91. <div id="quarto-search" class="" title="Search"></div>
  92. </div>
  93. </div>
  94. <div class="sidebar-menu-container">
  95. <ul class="list-unstyled mt-1">
  96. <li class="sidebar-item">
  97. <div class="sidebar-item-container">
  98. <a href="./index.html" class="sidebar-item-text sidebar-link">
  99. <span class="menu-text">Overview</span></a>
  100. </div>
  101. </li>
  102. <li class="sidebar-item sidebar-item-section">
  103. <div class="sidebar-item-container">
  104. <a href="./using/index.html" class="sidebar-item-text sidebar-link">
  105. <span class="menu-text">Importing</span></a>
  106. <a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" aria-expanded="true" aria-label="Toggle section">
  107. <i class="bi bi-chevron-right ms-2"></i>
  108. </a>
  109. </div>
  110. <ul id="quarto-sidebar-section-1" class="collapse list-unstyled sidebar-section depth1 show">
  111. <li class="sidebar-item">
  112. <div class="sidebar-item-container">
  113. <a href="./using/setup.html" class="sidebar-item-text sidebar-link">
  114. <span class="menu-text">Environment Setup</span></a>
  115. </div>
  116. </li>
  117. <li class="sidebar-item">
  118. <div class="sidebar-item-container">
  119. <a href="./using/storage.html" class="sidebar-item-text sidebar-link">
  120. <span class="menu-text">Data Storage</span></a>
  121. </div>
  122. </li>
  123. <li class="sidebar-item">
  124. <div class="sidebar-item-container">
  125. <a href="./using/sources.html" class="sidebar-item-text sidebar-link">
  126. <span class="menu-text">Source Data</span></a>
  127. </div>
  128. </li>
  129. <li class="sidebar-item">
  130. <div class="sidebar-item-container">
  131. <a href="./using/running.html" class="sidebar-item-text sidebar-link">
  132. <span class="menu-text">Running the Tools</span></a>
  133. </div>
  134. </li>
  135. </ul>
  136. </li>
  137. <li class="sidebar-item sidebar-item-section">
  138. <div class="sidebar-item-container">
  139. <a href="./data/index.html" class="sidebar-item-text sidebar-link">
  140. <span class="menu-text">Data Organization</span></a>
  141. <a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-2" aria-expanded="true" aria-label="Toggle section">
  142. <i class="bi bi-chevron-right ms-2"></i>
  143. </a>
  144. </div>
  145. <ul id="quarto-sidebar-section-2" class="collapse list-unstyled sidebar-section depth1 show">
  146. <li class="sidebar-item">
  147. <div class="sidebar-item-container">
  148. <a href="./data/ids.html" class="sidebar-item-text sidebar-link">
  149. <span class="menu-text">Common Identifiers</span></a>
  150. </div>
  151. </li>
  152. <li class="sidebar-item">
  153. <div class="sidebar-item-container">
  154. <a href="./data/loc.html" class="sidebar-item-text sidebar-link">
  155. <span class="menu-text">Library of Congress</span></a>
  156. </div>
  157. </li>
  158. <li class="sidebar-item">
  159. <div class="sidebar-item-container">
  160. <a href="./data/openlib.html" class="sidebar-item-text sidebar-link">
  161. <span class="menu-text">OpenLibrary</span></a>
  162. </div>
  163. </li>
  164. <li class="sidebar-item">
  165. <div class="sidebar-item-container">
  166. <a href="./data/viaf.html" class="sidebar-item-text sidebar-link">
  167. <span class="menu-text">VIAF</span></a>
  168. </div>
  169. </li>
  170. <li class="sidebar-item">
  171. <div class="sidebar-item-container">
  172. <a href="./data/bx.html" class="sidebar-item-text sidebar-link">
  173. <span class="menu-text">BookCrossing</span></a>
  174. </div>
  175. </li>
  176. <li class="sidebar-item">
  177. <div class="sidebar-item-container">
  178. <a href="./data/amazon.html" class="sidebar-item-text sidebar-link">
  179. <span class="menu-text">Amazon Ratings</span></a>
  180. </div>
  181. </li>
  182. <li class="sidebar-item">
  183. <div class="sidebar-item-container">
  184. <a href="./data/goodreads.html" class="sidebar-item-text sidebar-link">
  185. <span class="menu-text">GoodReads</span></a>
  186. </div>
  187. </li>
  188. <li class="sidebar-item">
  189. <div class="sidebar-item-container">
  190. <a href="./data/cluster.html" class="sidebar-item-text sidebar-link">
  191. <span class="menu-text">Book Clusters</span></a>
  192. </div>
  193. </li>
  194. <li class="sidebar-item">
  195. <div class="sidebar-item-container">
  196. <a href="./data/gender.html" class="sidebar-item-text sidebar-link">
  197. <span class="menu-text">Book Author Gender</span></a>
  198. </div>
  199. </li>
  200. </ul>
  201. </li>
  202. <li class="sidebar-item sidebar-item-section">
  203. <div class="sidebar-item-container">
  204. <a href="./implementation/index.html" class="sidebar-item-text sidebar-link">
  205. <span class="menu-text">Implementation</span></a>
  206. <a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-3" aria-expanded="true" aria-label="Toggle section">
  207. <i class="bi bi-chevron-right ms-2"></i>
  208. </a>
  209. </div>
  210. <ul id="quarto-sidebar-section-3" class="collapse list-unstyled sidebar-section depth1 show">
  211. <li class="sidebar-item">
  212. <div class="sidebar-item-container">
  213. <a href="./implementation/pipeline.html" class="sidebar-item-text sidebar-link">
  214. <span class="menu-text">Pipeline Specification</span></a>
  215. </div>
  216. </li>
  217. <li class="sidebar-item">
  218. <div class="sidebar-item-container">
  219. <a href="./implementation/layout.html" class="sidebar-item-text sidebar-link">
  220. <span class="menu-text">Code Layout</span></a>
  221. </div>
  222. </li>
  223. <li class="sidebar-item">
  224. <div class="sidebar-item-container">
  225. <a href="./implementation/dataset.html" class="sidebar-item-text sidebar-link">
  226. <span class="menu-text">Design for Datasets</span></a>
  227. </div>
  228. </li>
  229. </ul>
  230. </li>
  231. <li class="sidebar-item">
  232. <div class="sidebar-item-container">
  233. <a href="./history.html" class="sidebar-item-text sidebar-link active">
  234. <span class="menu-text">History</span></a>
  235. </div>
  236. </li>
  237. <li class="sidebar-item">
  238. <div class="sidebar-item-container">
  239. <a href="./papers.html" class="sidebar-item-text sidebar-link">
  240. <span class="menu-text">Papers Using BookData</span></a>
  241. </div>
  242. </li>
  243. <li class="sidebar-item sidebar-item-section">
  244. <div class="sidebar-item-container">
  245. <a href="./reports/index.html" class="sidebar-item-text sidebar-link">
  246. <span class="menu-text">Reports and Audits</span></a>
  247. <a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-4" aria-expanded="true" aria-label="Toggle section">
  248. <i class="bi bi-chevron-right ms-2"></i>
  249. </a>
  250. </div>
  251. <ul id="quarto-sidebar-section-4" class="collapse list-unstyled sidebar-section depth1 show">
  252. <li class="sidebar-item">
  253. <div class="sidebar-item-container">
  254. <a href="./reports/LinkageStats.html" class="sidebar-item-text sidebar-link">
  255. <span class="menu-text">Book Data Linkage Statistics</span></a>
  256. </div>
  257. </li>
  258. <li class="sidebar-item">
  259. <div class="sidebar-item-container">
  260. <a href="./reports/audit-cluster-stats.html" class="sidebar-item-text sidebar-link">
  261. <span class="menu-text">ISBN Cluster Changes</span></a>
  262. </div>
  263. </li>
  264. <li class="sidebar-item">
  265. <div class="sidebar-item-container">
  266. <a href="./reports/audit-gender-changes.html" class="sidebar-item-text sidebar-link">
  267. <span class="menu-text">Cluster Gender Changes</span></a>
  268. </div>
  269. </li>
  270. </ul>
  271. </li>
  272. <li class="sidebar-item">
  273. <div class="sidebar-item-container">
  274. <a href="./apidocs/bookdata/" class="sidebar-item-text sidebar-link"><i class="bi bi-gear-wide" role="img">
  275. </i>
  276. <span class="menu-text">Rust API docs</span></a>
  277. </div>
  278. </li>
  279. <li class="sidebar-item">
  280. <div class="sidebar-item-container">
  281. <a href="https://github.com/PIReTship/bookdata-tools" class="sidebar-item-text sidebar-link"><i class="bi bi-github" role="img">
  282. </i>
  283. <span class="menu-text">GitHub repository</span></a>
  284. </div>
  285. </li>
  286. </ul>
  287. </div>
  288. </nav>
  289. <div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
  290. <!-- margin-sidebar -->
  291. <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
  292. <nav id="TOC" role="doc-toc" class="toc-active">
  293. <h2 id="toc-title">On this page</h2>
  294. <ul>
  295. <li><a href="#history" id="toc-history" class="nav-link active" data-scroll-target="#history">History</a>
  296. <ul class="collapse">
  297. <li><a href="#book-data-3.0-in-progress" id="toc-book-data-3.0-in-progress" class="nav-link" data-scroll-target="#book-data-3.0-in-progress">Book Data 3.0 (in progress)</a>
  298. <ul class="collapse">
  299. <li><a href="#bugs-fixed" id="toc-bugs-fixed" class="nav-link" data-scroll-target="#bugs-fixed">Bugs Fixed</a></li>
  300. </ul></li>
  301. <li><a href="#book-data-2.1" id="toc-book-data-2.1" class="nav-link" data-scroll-target="#book-data-2.1">Book Data 2.1</a>
  302. <ul class="collapse">
  303. <li><a href="#data-updates" id="toc-data-updates" class="nav-link" data-scroll-target="#data-updates">Data Updates</a></li>
  304. <li><a href="#logic-updates" id="toc-logic-updates" class="nav-link" data-scroll-target="#logic-updates">Logic Updates</a></li>
  305. </ul></li>
  306. <li><a href="#book-data-2.0" id="toc-book-data-2.0" class="nav-link" data-scroll-target="#book-data-2.0">Book Data 2.0</a></li>
  307. <li><a href="#book-data-1.0" id="toc-book-data-1.0" class="nav-link" data-scroll-target="#book-data-1.0">Book Data 1.0</a></li>
  308. </ul></li>
  309. </ul>
  310. <div class="toc-actions"><div><i class="bi bi-github"></i></div><div class="action-links"><p><a href="https://github.com/PIReTship/bookdata-tools/edit/main/docs/history.md" class="toc-action">Edit this page</a></p><p><a href="https://github.com/PIReTship/bookdata-tools/issues/new" class="toc-action">Report an issue</a></p></div></div></nav>
  311. </div>
  312. <!-- main -->
  313. <main class="content" id="quarto-document-content">
  314. <section id="history" class="level1">
  315. <h1>History</h1>
  316. <p>This page documents the release history of the Book Data Tools. Each numbered, released version has a corresponding Git tag (e.g.&nbsp;<code>v2.0</code>).</p>
  317. <p>If you use the Book Data Tools in published research, we ask that you do the following:</p>
  318. <ol type="1">
  319. <li>Cite the <a href="https://md.ekstrandom.net/pubs/bag-extended">UMUAI paper</a>, regardless of which version of the data set you use.</li>
  320. <li>Cite the papers corresponding to the individual ratings, review, or consumption data sets you are using.</li>
  321. <li>Clearly state the version of the data tools you are using in your paper.</li>
  322. <li><a href="./papers.html">Let us know</a> about your work so we can add you to the list.</li>
  323. </ol>
  324. <section id="book-data-3.0-in-progress" class="level2">
  325. <h2 class="anchored" data-anchor-id="book-data-3.0-in-progress">Book Data 3.0 (in progress)</h2>
  326. <ul>
  327. <li>Make the pipeline configurable so individual rating datasets can be disabled.</li>
  328. <li>Only support the full JSON GoodReads interaction data, because it is now publicly available.</li>
  329. <li>Use <a href="./implementation/pipeline.html">jsonnet</a> to generate DVC pipelines, taking configuration settings into account.</li>
  330. <li>Update to newer VIAF and OpenLibrary dumps.</li>
  331. <li>Extract GoodReads author information into <a href="./data/goodreads.html#file:goodreads/gr-author-info.parquet"><code>goodreads/gr-author-info.parquet</code></a>.</li>
  332. <li>Support full-text reviews from the GoodReads and Amazon 2018 data sets (enabled by default).</li>
  333. <li>Disable the <a href="./data/bx.html">BookCrossing</a> data by default since the source website is offline.</li>
  334. <li>Extract 5-cores of interaction files.</li>
  335. <li>Update to OpenLibrary and VIAF dumps from the beginning of 2024 (OpenLibrary 2023-12-31, VIAF 2024-01-01).</li>
  336. </ul>
  337. <section id="bugs-fixed" class="level3">
  338. <h3 class="anchored" data-anchor-id="bugs-fixed">Bugs Fixed</h3>
  339. <ul>
  340. <li>🪲 GoodReads cluster &amp; work rating timestamps were on incorrect scale</li>
  341. </ul>
  342. </section>
  343. </section>
  344. <section id="book-data-2.1" class="level2">
  345. <h2 class="anchored" data-anchor-id="book-data-2.1">Book Data 2.1</h2>
  346. <p>Version 2.1 has a few updates but does not change existing data schemas when run with the full GoodReads interaction files. It does have improved book/author linking that increases coverage due to a revised and corrected name parsing &amp; normalization flow.</p>
  347. <p>The tools now support the GoodReads interaction CSV file, which is available without registration, and uses this by default. See the <a href="./data/goodreads.html">GoodReads data docs</a> for the details. This means that, in their default configuration, the book data integration uses only data that is publicly available without special request.</p>
  348. <section id="data-updates" class="level3">
  349. <h3 class="anchored" data-anchor-id="data-updates">Data Updates</h3>
  350. <ul>
  351. <li>Updated VIAF to May 1, 2022 dump</li>
  352. <li>Updated OpenLibrary to March 29, 2022 dump</li>
  353. <li>Added 2018 version of the Amazon ratings</li>
  354. <li>Added code to extract edition and work subjects</li>
  355. <li>Updated docs for current extraction layout</li>
  356. <li>Added <a href="./data/openlib.html#file:openlibrary/work-clusters.parquet"><code>openlibrary/work-clusters.parquet</code></a> to simplify OpenLibrary integration</li>
  357. </ul>
  358. </section>
  359. <section id="logic-updates" class="level3">
  360. <h3 class="anchored" data-anchor-id="logic-updates">Logic Updates</h3>
  361. <ul>
  362. <li>Switched from DataFusion to <a href="https://www.pola.rs/">Polars</a>, to reduce volatility and improve maintainability. This also involved a switch from Arrow to Arrow2, which seems to have cleaner code (and less custom logic needed for IO).</li>
  363. <li>Rewrote logic that was previously in DataFusion + custom TCL in Rust, so all integration code is in Rust for consistency (and to avoid redundancy in things like logging configuration between Rust and Python). The code is now in 2 languages: Rust integration and Python notebooks to report on integration statistics.</li>
  364. <li>Improved name parsing
  365. <ul>
  366. <li>Replaced <code>nom</code>-based name parser for <a href="./apidocs/bookdata/cleaning/names/fn.name_variants.html"><code>name_variants</code></a> with a new one written in <a href="https://docs.rs/peg"><code>peg</code></a>, that is both easier to read/maintain and more efficient.</li>
  367. <li>Corrected errors in name parser that emitted empty-string names for some authors.</li>
  368. <li>Added <code>clean_name</code> function, used across all name formatting, to normalize whitespace and punctuation in name records from any source.</li>
  369. <li>Added more tests for name parsing and normalization.</li>
  370. </ul></li>
  371. <li>Fixed a bug in GoodReads integration, where we were not extracting ASINs.</li>
  372. <li>Extract book genres and series from GoodReads.</li>
  373. <li>Updated various Rust dependencies, and upgraded from StructOpt to <code>clap</code>’s derive macros.</li>
  374. <li>Better progress reporting for data scans.</li>
  375. </ul>
  376. </section>
  377. </section>
  378. <section id="book-data-2.0" class="level2">
  379. <h2 class="anchored" data-anchor-id="book-data-2.0">Book Data 2.0</h2>
  380. <p>This is the updated release of the Book Data Tools, using the same source data as 1.0 but with DataFusion and Rust-based import logic, instead of PostgreSQL. It is significantly easier to install and use.</p>
  381. </section>
  382. <section id="book-data-1.0" class="level2">
  383. <h2 class="anchored" data-anchor-id="book-data-1.0">Book Data 1.0</h2>
  384. <p>The original release that used PostgreSQL. There were a couple of versions of this for the RecSys and UMUAI papers; the tagged 1.0 release corresponds to the data used for the UMUAI paper.</p>
  385. </section>
  386. </section>
  387. </main> <!-- /main -->
  388. <script id="quarto-html-after-body" type="application/javascript">
  389. window.document.addEventListener("DOMContentLoaded", function (event) {
  390. const toggleBodyColorMode = (bsSheetEl) => {
  391. const mode = bsSheetEl.getAttribute("data-mode");
  392. const bodyEl = window.document.querySelector("body");
  393. if (mode === "dark") {
  394. bodyEl.classList.add("quarto-dark");
  395. bodyEl.classList.remove("quarto-light");
  396. } else {
  397. bodyEl.classList.add("quarto-light");
  398. bodyEl.classList.remove("quarto-dark");
  399. }
  400. }
  401. const toggleBodyColorPrimary = () => {
  402. const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
  403. if (bsSheetEl) {
  404. toggleBodyColorMode(bsSheetEl);
  405. }
  406. }
  407. toggleBodyColorPrimary();
  408. const disableStylesheet = (stylesheets) => {
  409. for (let i=0; i < stylesheets.length; i++) {
  410. const stylesheet = stylesheets[i];
  411. stylesheet.rel = 'prefetch';
  412. }
  413. }
  414. const enableStylesheet = (stylesheets) => {
  415. for (let i=0; i < stylesheets.length; i++) {
  416. const stylesheet = stylesheets[i];
  417. stylesheet.rel = 'stylesheet';
  418. }
  419. }
  420. const manageTransitions = (selector, allowTransitions) => {
  421. const els = window.document.querySelectorAll(selector);
  422. for (let i=0; i < els.length; i++) {
  423. const el = els[i];
  424. if (allowTransitions) {
  425. el.classList.remove('notransition');
  426. } else {
  427. el.classList.add('notransition');
  428. }
  429. }
  430. }
  431. const toggleColorMode = (alternate) => {
  432. // Switch the stylesheets
  433. const alternateStylesheets = window.document.querySelectorAll('link.quarto-color-scheme.quarto-color-alternate');
  434. manageTransitions('#quarto-margin-sidebar .nav-link', false);
  435. if (alternate) {
  436. enableStylesheet(alternateStylesheets);
  437. for (const sheetNode of alternateStylesheets) {
  438. if (sheetNode.id === "quarto-bootstrap") {
  439. toggleBodyColorMode(sheetNode);
  440. }
  441. }
  442. } else {
  443. disableStylesheet(alternateStylesheets);
  444. toggleBodyColorPrimary();
  445. }
  446. manageTransitions('#quarto-margin-sidebar .nav-link', true);
  447. // Switch the toggles
  448. const toggles = window.document.querySelectorAll('.quarto-color-scheme-toggle');
  449. for (let i=0; i < toggles.length; i++) {
  450. const toggle = toggles[i];
  451. if (toggle) {
  452. if (alternate) {
  453. toggle.classList.add("alternate");
  454. } else {
  455. toggle.classList.remove("alternate");
  456. }
  457. }
  458. }
  459. // Hack to workaround the fact that safari doesn't
  460. // properly recolor the scrollbar when toggling (#1455)
  461. if (navigator.userAgent.indexOf('Safari') > 0 && navigator.userAgent.indexOf('Chrome') == -1) {
  462. manageTransitions("body", false);
  463. window.scrollTo(0, 1);
  464. setTimeout(() => {
  465. window.scrollTo(0, 0);
  466. manageTransitions("body", true);
  467. }, 40);
  468. }
  469. }
  470. const isFileUrl = () => {
  471. return window.location.protocol === 'file:';
  472. }
  473. const hasAlternateSentinel = () => {
  474. let styleSentinel = getColorSchemeSentinel();
  475. if (styleSentinel !== null) {
  476. return styleSentinel === "alternate";
  477. } else {
  478. return false;
  479. }
  480. }
  481. const setStyleSentinel = (alternate) => {
  482. const value = alternate ? "alternate" : "default";
  483. if (!isFileUrl()) {
  484. window.localStorage.setItem("quarto-color-scheme", value);
  485. } else {
  486. localAlternateSentinel = value;
  487. }
  488. }
  489. const getColorSchemeSentinel = () => {
  490. if (!isFileUrl()) {
  491. const storageValue = window.localStorage.getItem("quarto-color-scheme");
  492. return storageValue != null ? storageValue : localAlternateSentinel;
  493. } else {
  494. return localAlternateSentinel;
  495. }
  496. }
  497. let localAlternateSentinel = 'default';
  498. // Dark / light mode switch
  499. window.quartoToggleColorScheme = () => {
  500. // Read the current dark / light value
  501. let toAlternate = !hasAlternateSentinel();
  502. toggleColorMode(toAlternate);
  503. setStyleSentinel(toAlternate);
  504. };
  505. // Ensure there is a toggle, if there isn't float one in the top right
  506. if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
  507. const a = window.document.createElement('a');
  508. a.classList.add('top-right');
  509. a.classList.add('quarto-color-scheme-toggle');
  510. a.href = "";
  511. a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
  512. const i = window.document.createElement("i");
  513. i.classList.add('bi');
  514. a.appendChild(i);
  515. window.document.body.appendChild(a);
  516. }
  517. // Switch to dark mode if need be
  518. if (hasAlternateSentinel()) {
  519. toggleColorMode(true);
  520. } else {
  521. toggleColorMode(false);
  522. }
  523. const icon = "";
  524. const anchorJS = new window.AnchorJS();
  525. anchorJS.options = {
  526. placement: 'right',
  527. icon: icon
  528. };
  529. anchorJS.add('.anchored');
  530. const isCodeAnnotation = (el) => {
  531. for (const clz of el.classList) {
  532. if (clz.startsWith('code-annotation-')) {
  533. return true;
  534. }
  535. }
  536. return false;
  537. }
  538. const clipboard = new window.ClipboardJS('.code-copy-button', {
  539. text: function(trigger) {
  540. const codeEl = trigger.previousElementSibling.cloneNode(true);
  541. for (const childEl of codeEl.children) {
  542. if (isCodeAnnotation(childEl)) {
  543. childEl.remove();
  544. }
  545. }
  546. return codeEl.innerText;
  547. }
  548. });
  549. clipboard.on('success', function(e) {
  550. // button target
  551. const button = e.trigger;
  552. // don't keep focus
  553. button.blur();
  554. // flash "checked"
  555. button.classList.add('code-copy-button-checked');
  556. var currentTitle = button.getAttribute("title");
  557. button.setAttribute("title", "Copied!");
  558. let tooltip;
  559. if (window.bootstrap) {
  560. button.setAttribute("data-bs-toggle", "tooltip");
  561. button.setAttribute("data-bs-placement", "left");
  562. button.setAttribute("data-bs-title", "Copied!");
  563. tooltip = new bootstrap.Tooltip(button,
  564. { trigger: "manual",
  565. customClass: "code-copy-button-tooltip",
  566. offset: [0, -8]});
  567. tooltip.show();
  568. }
  569. setTimeout(function() {
  570. if (tooltip) {
  571. tooltip.hide();
  572. button.removeAttribute("data-bs-title");
  573. button.removeAttribute("data-bs-toggle");
  574. button.removeAttribute("data-bs-placement");
  575. }
  576. button.setAttribute("title", currentTitle);
  577. button.classList.remove('code-copy-button-checked');
  578. }, 1000);
  579. // clear code selection
  580. e.clearSelection();
  581. });
  582. function tippyHover(el, contentFn) {
  583. const config = {
  584. allowHTML: true,
  585. content: contentFn,
  586. maxWidth: 500,
  587. delay: 100,
  588. arrow: false,
  589. appendTo: function(el) {
  590. return el.parentElement;
  591. },
  592. interactive: true,
  593. interactiveBorder: 10,
  594. theme: 'quarto',
  595. placement: 'bottom-start'
  596. };
  597. window.tippy(el, config);
  598. }
  599. const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
  600. for (var i=0; i<noterefs.length; i++) {
  601. const ref = noterefs[i];
  602. tippyHover(ref, function() {
  603. // use id or data attribute instead here
  604. let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
  605. try { href = new URL(href).hash; } catch {}
  606. const id = href.replace(/^#\/?/, "");
  607. const note = window.document.getElementById(id);
  608. return note.innerHTML;
  609. });
  610. }
  611. let selectedAnnoteEl;
  612. const selectorForAnnotation = ( cell, annotation) => {
  613. let cellAttr = 'data-code-cell="' + cell + '"';
  614. let lineAttr = 'data-code-annotation="' + annotation + '"';
  615. const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
  616. return selector;
  617. }
  618. const selectCodeLines = (annoteEl) => {
  619. const doc = window.document;
  620. const targetCell = annoteEl.getAttribute("data-target-cell");
  621. const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
  622. const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
  623. const lines = annoteSpan.getAttribute("data-code-lines").split(",");
  624. const lineIds = lines.map((line) => {
  625. return targetCell + "-" + line;
  626. })
  627. let top = null;
  628. let height = null;
  629. let parent = null;
  630. if (lineIds.length > 0) {
  631. //compute the position of the single el (top and bottom and make a div)
  632. const el = window.document.getElementById(lineIds[0]);
  633. top = el.offsetTop;
  634. height = el.offsetHeight;
  635. parent = el.parentElement.parentElement;
  636. if (lineIds.length > 1) {
  637. const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
  638. const bottom = lastEl.offsetTop + lastEl.offsetHeight;
  639. height = bottom - top;
  640. }
  641. if (top !== null && height !== null && parent !== null) {
  642. // cook up a div (if necessary) and position it
  643. let div = window.document.getElementById("code-annotation-line-highlight");
  644. if (div === null) {
  645. div = window.document.createElement("div");
  646. div.setAttribute("id", "code-annotation-line-highlight");
  647. div.style.position = 'absolute';
  648. parent.appendChild(div);
  649. }
  650. div.style.top = top - 2 + "px";
  651. div.style.height = height + 4 + "px";
  652. let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
  653. if (gutterDiv === null) {
  654. gutterDiv = window.document.createElement("div");
  655. gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
  656. gutterDiv.style.position = 'absolute';
  657. const codeCell = window.document.getElementById(targetCell);
  658. const gutter = codeCell.querySelector('.code-annotation-gutter');
  659. gutter.appendChild(gutterDiv);
  660. }
  661. gutterDiv.style.top = top - 2 + "px";
  662. gutterDiv.style.height = height + 4 + "px";
  663. }
  664. selectedAnnoteEl = annoteEl;
  665. }
  666. };
  667. const unselectCodeLines = () => {
  668. const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
  669. elementsIds.forEach((elId) => {
  670. const div = window.document.getElementById(elId);
  671. if (div) {
  672. div.remove();
  673. }
  674. });
  675. selectedAnnoteEl = undefined;
  676. };
  677. // Attach click handler to the DT
  678. const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
  679. for (const annoteDlNode of annoteDls) {
  680. annoteDlNode.addEventListener('click', (event) => {
  681. const clickedEl = event.target;
  682. if (clickedEl !== selectedAnnoteEl) {
  683. unselectCodeLines();
  684. const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
  685. if (activeEl) {
  686. activeEl.classList.remove('code-annotation-active');
  687. }
  688. selectCodeLines(clickedEl);
  689. clickedEl.classList.add('code-annotation-active');
  690. } else {
  691. // Unselect the line
  692. unselectCodeLines();
  693. clickedEl.classList.remove('code-annotation-active');
  694. }
  695. });
  696. }
  697. const findCites = (el) => {
  698. const parentEl = el.parentElement;
  699. if (parentEl) {
  700. const cites = parentEl.dataset.cites;
  701. if (cites) {
  702. return {
  703. el,
  704. cites: cites.split(' ')
  705. };
  706. } else {
  707. return findCites(el.parentElement)
  708. }
  709. } else {
  710. return undefined;
  711. }
  712. };
  713. var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
  714. for (var i=0; i<bibliorefs.length; i++) {
  715. const ref = bibliorefs[i];
  716. const citeInfo = findCites(ref);
  717. if (citeInfo) {
  718. tippyHover(citeInfo.el, function() {
  719. var popup = window.document.createElement('div');
  720. citeInfo.cites.forEach(function(cite) {
  721. var citeDiv = window.document.createElement('div');
  722. citeDiv.classList.add('hanging-indent');
  723. citeDiv.classList.add('csl-entry');
  724. var biblioDiv = window.document.getElementById('ref-' + cite);
  725. if (biblioDiv) {
  726. citeDiv.innerHTML = biblioDiv.innerHTML;
  727. }
  728. popup.appendChild(citeDiv);
  729. });
  730. return popup.innerHTML;
  731. });
  732. }
  733. }
  734. });
  735. </script>
  736. </div> <!-- /content -->
  737. <script data-goatcounter="https://piret-bookdata.goatcounter.com/count" async="" src="//gc.zgo.at/count.js"></script>
  738. </body></html>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...