FragDBnet commited on
Commit
50c3b4d
·
0 Parent(s):

FragDB v5.9 — Fragrance Database (multilingual sample)

Browse files
.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *.csv filter=lfs diff=lfs merge=lfs -text
2
+ news_sample.parquet filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Claude Code / AI tools
2
+ .claude/
3
+ claude.md
4
+ CLAUDE.md
5
+
6
+ # Internal / credentials
7
+ *.local.json
8
+ *.credentials
9
+ *.secret
10
+
11
+ # OS
12
+ .DS_Store
13
+ Thumbs.db
14
+
15
+ # IDE
16
+ .idea/
17
+ .vscode/
18
+ *.swp
19
+ *.swo
20
+ *~
21
+
22
+ # Environment
23
+ .env
24
+ .env.local
25
+ .env.*.local
26
+
27
+ # Logs
28
+ *.log
29
+
30
+ # Temp
31
+ *.tmp
32
+ *.bak
README.md ADDED
@@ -0,0 +1,789 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - feature-extraction
5
+ - text-classification
6
+ language:
7
+ - en
8
+ - de
9
+ - es
10
+ - fr
11
+ - cs
12
+ - it
13
+ - ru
14
+ - pl
15
+ - pt
16
+ - el
17
+ - zh
18
+ - ja
19
+ - nl
20
+ - sr
21
+ - ro
22
+ - ar
23
+ - uk
24
+ - mn
25
+ - ko
26
+ - tr
27
+ - sv
28
+ - he
29
+ - hu
30
+ tags:
31
+ - fragrance
32
+ - perfume
33
+ - cosmetics
34
+ - recommendation-system
35
+ - e-commerce
36
+ - retail
37
+ - fragrantika
38
+ - multilingual
39
+ size_categories:
40
+ - n<1K
41
+ configs:
42
+ - config_name: fragrances
43
+ data_files: fragrances.csv
44
+ default: true
45
+ sep: "|"
46
+ - config_name: brands
47
+ data_files: brands.csv
48
+ sep: "|"
49
+ - config_name: perfumers
50
+ data_files: perfumers.csv
51
+ sep: "|"
52
+ - config_name: notes
53
+ data_files: notes.csv
54
+ sep: "|"
55
+ - config_name: accords
56
+ data_files: accords.csv
57
+ sep: "|"
58
+ - config_name: translations
59
+ data_files: translations.csv
60
+ sep: "|"
61
+ dataset_info:
62
+ - config_name: fragrances
63
+ features:
64
+ - name: pid
65
+ dtype: int64
66
+ - name: url
67
+ dtype: string
68
+ - name: brand
69
+ dtype: string
70
+ - name: name
71
+ dtype: string
72
+ - name: year
73
+ dtype: int64
74
+ - name: gender
75
+ dtype: string
76
+ - name: collection
77
+ dtype: string
78
+ - name: main_photo
79
+ dtype: string
80
+ - name: info_card
81
+ dtype: string
82
+ - name: user_photoes
83
+ dtype: string
84
+ - name: video_url
85
+ dtype: string
86
+ - name: accords
87
+ dtype: string
88
+ - name: notes_pyramid
89
+ dtype: string
90
+ - name: perfumers
91
+ dtype: string
92
+ - name: description
93
+ dtype: string
94
+ - name: rating
95
+ dtype: string
96
+ - name: reviews_count
97
+ dtype: int64
98
+ - name: appreciation
99
+ dtype: string
100
+ - name: price_value
101
+ dtype: string
102
+ - name: gender_votes
103
+ dtype: string
104
+ - name: longevity
105
+ dtype: string
106
+ - name: sillage
107
+ dtype: string
108
+ - name: season
109
+ dtype: string
110
+ - name: time_of_day
111
+ dtype: string
112
+ - name: pros_cons
113
+ dtype: string
114
+ - name: by_designer
115
+ dtype: string
116
+ - name: in_collection
117
+ dtype: string
118
+ - name: reminds_of
119
+ dtype: string
120
+ - name: also_like
121
+ dtype: string
122
+ - name: news_ids
123
+ dtype: string
124
+ - config_name: brands
125
+ features:
126
+ - name: id
127
+ dtype: string
128
+ - name: name
129
+ dtype: string
130
+ - name: url
131
+ dtype: string
132
+ - name: logo_url
133
+ dtype: string
134
+ - name: country
135
+ dtype: string
136
+ - name: main_activity
137
+ dtype: string
138
+ - name: website
139
+ dtype: string
140
+ - name: parent_company
141
+ dtype: string
142
+ - name: description
143
+ dtype: string
144
+ - name: brand_count
145
+ dtype: int64
146
+ - name: country_de
147
+ dtype: string
148
+ - name: country_es
149
+ dtype: string
150
+ - name: country_fr
151
+ dtype: string
152
+ - name: country_cs
153
+ dtype: string
154
+ - name: country_it
155
+ dtype: string
156
+ - name: country_ru
157
+ dtype: string
158
+ - name: country_pl
159
+ dtype: string
160
+ - name: country_pt
161
+ dtype: string
162
+ - name: country_el
163
+ dtype: string
164
+ - name: country_zh
165
+ dtype: string
166
+ - name: country_ja
167
+ dtype: string
168
+ - name: country_nl
169
+ dtype: string
170
+ - name: country_sr
171
+ dtype: string
172
+ - name: country_ro
173
+ dtype: string
174
+ - name: country_ar
175
+ dtype: string
176
+ - name: country_uk
177
+ dtype: string
178
+ - name: country_mn
179
+ dtype: string
180
+ - name: country_ko
181
+ dtype: string
182
+ - name: country_tr
183
+ dtype: string
184
+ - name: country_sv
185
+ dtype: string
186
+ - name: country_he
187
+ dtype: string
188
+ - name: country_hu
189
+ dtype: string
190
+ - name: main_activity_de
191
+ dtype: string
192
+ - name: main_activity_es
193
+ dtype: string
194
+ - name: main_activity_fr
195
+ dtype: string
196
+ - name: main_activity_cs
197
+ dtype: string
198
+ - name: main_activity_it
199
+ dtype: string
200
+ - name: main_activity_ru
201
+ dtype: string
202
+ - name: main_activity_pl
203
+ dtype: string
204
+ - name: main_activity_pt
205
+ dtype: string
206
+ - name: main_activity_el
207
+ dtype: string
208
+ - name: main_activity_zh
209
+ dtype: string
210
+ - name: main_activity_ja
211
+ dtype: string
212
+ - name: main_activity_nl
213
+ dtype: string
214
+ - name: main_activity_sr
215
+ dtype: string
216
+ - name: main_activity_ro
217
+ dtype: string
218
+ - name: main_activity_ar
219
+ dtype: string
220
+ - name: main_activity_uk
221
+ dtype: string
222
+ - name: main_activity_mn
223
+ dtype: string
224
+ - name: main_activity_ko
225
+ dtype: string
226
+ - name: main_activity_tr
227
+ dtype: string
228
+ - name: main_activity_sv
229
+ dtype: string
230
+ - name: main_activity_he
231
+ dtype: string
232
+ - name: main_activity_hu
233
+ dtype: string
234
+ - config_name: perfumers
235
+ features:
236
+ - name: id
237
+ dtype: string
238
+ - name: name
239
+ dtype: string
240
+ - name: url
241
+ dtype: string
242
+ - name: photo_url
243
+ dtype: string
244
+ - name: status
245
+ dtype: string
246
+ - name: company
247
+ dtype: string
248
+ - name: also_worked
249
+ dtype: string
250
+ - name: education
251
+ dtype: string
252
+ - name: web
253
+ dtype: string
254
+ - name: perfumes_count
255
+ dtype: int64
256
+ - name: biography
257
+ dtype: string
258
+ - name: status_de
259
+ dtype: string
260
+ - name: status_es
261
+ dtype: string
262
+ - name: status_fr
263
+ dtype: string
264
+ - name: status_cs
265
+ dtype: string
266
+ - name: status_it
267
+ dtype: string
268
+ - name: status_ru
269
+ dtype: string
270
+ - name: status_pl
271
+ dtype: string
272
+ - name: status_pt
273
+ dtype: string
274
+ - name: status_el
275
+ dtype: string
276
+ - name: status_zh
277
+ dtype: string
278
+ - name: status_ja
279
+ dtype: string
280
+ - name: status_nl
281
+ dtype: string
282
+ - name: status_sr
283
+ dtype: string
284
+ - name: status_ro
285
+ dtype: string
286
+ - name: status_ar
287
+ dtype: string
288
+ - name: status_uk
289
+ dtype: string
290
+ - name: status_mn
291
+ dtype: string
292
+ - name: status_ko
293
+ dtype: string
294
+ - name: status_tr
295
+ dtype: string
296
+ - name: status_sv
297
+ dtype: string
298
+ - name: status_he
299
+ dtype: string
300
+ - name: status_hu
301
+ dtype: string
302
+ - name: perfumer_name_ru
303
+ dtype: string
304
+ - name: perfumer_name_uk
305
+ dtype: string
306
+ - name: perfumer_name_ja
307
+ dtype: string
308
+ - name: perfumer_name_zh
309
+ dtype: string
310
+ - name: perfumer_name_ko
311
+ dtype: string
312
+ - name: perfumer_name_ar
313
+ dtype: string
314
+ - config_name: notes
315
+ features:
316
+ - name: id
317
+ dtype: string
318
+ - name: name
319
+ dtype: string
320
+ - name: url
321
+ dtype: string
322
+ - name: latin_name
323
+ dtype: string
324
+ - name: other_names
325
+ dtype: string
326
+ - name: group
327
+ dtype: string
328
+ - name: odor_profile
329
+ dtype: string
330
+ - name: main_icon
331
+ dtype: string
332
+ - name: alt_icons
333
+ dtype: string
334
+ - name: background
335
+ dtype: string
336
+ - name: fragrance_count
337
+ dtype: int64
338
+ - name: note_name_de
339
+ dtype: string
340
+ - name: note_name_es
341
+ dtype: string
342
+ - name: note_name_fr
343
+ dtype: string
344
+ - name: note_name_cs
345
+ dtype: string
346
+ - name: note_name_it
347
+ dtype: string
348
+ - name: note_name_ru
349
+ dtype: string
350
+ - name: note_name_pl
351
+ dtype: string
352
+ - name: note_name_pt
353
+ dtype: string
354
+ - name: note_name_el
355
+ dtype: string
356
+ - name: note_name_zh
357
+ dtype: string
358
+ - name: note_name_ja
359
+ dtype: string
360
+ - name: note_name_nl
361
+ dtype: string
362
+ - name: note_name_sr
363
+ dtype: string
364
+ - name: note_name_ro
365
+ dtype: string
366
+ - name: note_name_ar
367
+ dtype: string
368
+ - name: note_name_uk
369
+ dtype: string
370
+ - name: note_name_mn
371
+ dtype: string
372
+ - name: note_name_ko
373
+ dtype: string
374
+ - name: note_name_tr
375
+ dtype: string
376
+ - name: note_name_sv
377
+ dtype: string
378
+ - name: note_name_he
379
+ dtype: string
380
+ - name: note_name_hu
381
+ dtype: string
382
+ - name: note_group_de
383
+ dtype: string
384
+ - name: note_group_es
385
+ dtype: string
386
+ - name: note_group_fr
387
+ dtype: string
388
+ - name: note_group_cs
389
+ dtype: string
390
+ - name: note_group_it
391
+ dtype: string
392
+ - name: note_group_ru
393
+ dtype: string
394
+ - name: note_group_pl
395
+ dtype: string
396
+ - name: note_group_pt
397
+ dtype: string
398
+ - name: note_group_el
399
+ dtype: string
400
+ - name: note_group_zh
401
+ dtype: string
402
+ - name: note_group_ja
403
+ dtype: string
404
+ - name: note_group_nl
405
+ dtype: string
406
+ - name: note_group_sr
407
+ dtype: string
408
+ - name: note_group_ro
409
+ dtype: string
410
+ - name: note_group_ar
411
+ dtype: string
412
+ - name: note_group_uk
413
+ dtype: string
414
+ - name: note_group_mn
415
+ dtype: string
416
+ - name: note_group_ko
417
+ dtype: string
418
+ - name: note_group_tr
419
+ dtype: string
420
+ - name: note_group_sv
421
+ dtype: string
422
+ - name: note_group_he
423
+ dtype: string
424
+ - name: note_group_hu
425
+ dtype: string
426
+ - config_name: accords
427
+ features:
428
+ - name: id
429
+ dtype: string
430
+ - name: name
431
+ dtype: string
432
+ - name: bar_color
433
+ dtype: string
434
+ - name: font_color
435
+ dtype: string
436
+ - name: fragrance_count
437
+ dtype: int64
438
+ - name: name_de
439
+ dtype: string
440
+ - name: name_es
441
+ dtype: string
442
+ - name: name_fr
443
+ dtype: string
444
+ - name: name_cs
445
+ dtype: string
446
+ - name: name_it
447
+ dtype: string
448
+ - name: name_ru
449
+ dtype: string
450
+ - name: name_pl
451
+ dtype: string
452
+ - name: name_pt
453
+ dtype: string
454
+ - name: name_el
455
+ dtype: string
456
+ - name: name_zh
457
+ dtype: string
458
+ - name: name_ja
459
+ dtype: string
460
+ - name: name_nl
461
+ dtype: string
462
+ - name: name_sr
463
+ dtype: string
464
+ - name: name_ro
465
+ dtype: string
466
+ - name: name_ar
467
+ dtype: string
468
+ - name: name_uk
469
+ dtype: string
470
+ - name: name_mn
471
+ dtype: string
472
+ - name: name_ko
473
+ dtype: string
474
+ - name: name_tr
475
+ dtype: string
476
+ - name: name_sv
477
+ dtype: string
478
+ - name: name_he
479
+ dtype: string
480
+ - name: name_hu
481
+ dtype: string
482
+ - config_name: translations
483
+ features:
484
+ - name: id
485
+ dtype: string
486
+ - name: section
487
+ dtype: string
488
+ - name: en
489
+ dtype: string
490
+ - name: de
491
+ dtype: string
492
+ - name: es
493
+ dtype: string
494
+ - name: fr
495
+ dtype: string
496
+ - name: cs
497
+ dtype: string
498
+ - name: it
499
+ dtype: string
500
+ - name: ru
501
+ dtype: string
502
+ - name: pl
503
+ dtype: string
504
+ - name: pt
505
+ dtype: string
506
+ - name: el
507
+ dtype: string
508
+ - name: zh
509
+ dtype: string
510
+ - name: ja
511
+ dtype: string
512
+ - name: nl
513
+ dtype: string
514
+ - name: sr
515
+ dtype: string
516
+ - name: ro
517
+ dtype: string
518
+ - name: ar
519
+ dtype: string
520
+ - name: uk
521
+ dtype: string
522
+ - name: mn
523
+ dtype: string
524
+ - name: ko
525
+ dtype: string
526
+ - name: tr
527
+ dtype: string
528
+ - name: sv
529
+ dtype: string
530
+ - name: he
531
+ dtype: string
532
+ - name: hu
533
+ dtype: string
534
+ ---
535
+
536
+ # FragDB v5.9 — Fragrance Database (Multilingual Sample)
537
+
538
+ The most comprehensive structured fragrance database available. This is a **free sample** of FragDB: **134,577 perfumes, 23 languages** — 10-row CSV samples at root.
539
+
540
+ Full dataset: [fragdb.net](https://fragdb.net).
541
+
542
+ ## What's New in v5.9
543
+
544
+ - **Data updated** from v5.8 → v5.9 (parser run 260710):
545
+ - Fragrances: 134,022 → **134,577** (+555)
546
+ - Brands: 8,000 → **8,036** (+36) — **154 brand names canonicalized** (restored `Fragrance(s)` suffix; IDs stable)
547
+ - Perfumers: 3,035 → **3,046** (+11)
548
+ - Notes: 2,562 → **2,567** (+5)
549
+ - URL hygiene: pyramid anchors single-domain, photo cache-busters stripped
550
+ - **Free sample refreshed** — 10-record CSV samples rebuilt from v5.9 data
551
+
552
+ ## What's New in v5.8
553
+
554
+ - **Data updated** from v5.7 → v5.8 (parser run 260701):
555
+ - Fragrances: 133,392 → **134,022** (+630)
556
+ - Brands: 7,953 → **8,000** (+47)
557
+ - Perfumers: 3,020 → **3,035** (+15)
558
+ - Notes: 2,559 → **2,562** (+3)
559
+
560
+ ## What's New in v5.7
561
+
562
+ - **Data updated** from v5.6 → v5.7 (parser run 260619):
563
+ - Fragrances: 132,858 → **133,392** (+534)
564
+ - Brands: 7,927 → **7,953** (+26)
565
+ - Perfumers: 3,005 → **3,020** (+15)
566
+ - Notes: 2,550 → **2,559** (+9)
567
+
568
+ ## What's New in v5.6
569
+
570
+ - **Data updated** from v5.5 → v5.6 (parser run 260609):
571
+ - Fragrances: 132,124 → **132,858** (+734)
572
+ - Brands: 7,881 → **7,927** (+46)
573
+ - Perfumers: 2,988 → **3,005** (+17)
574
+ - Notes: 2,533 → **2,550** (+17)
575
+ - **Notes multilingual 100% coverage** (was 99.8%) — 6 previously gap-filled notes now complete across all 22 languages
576
+ - **Photo URL stability** — source cache-buster query params stripped, eliminating phantom diffs across releases
577
+ - Schema unchanged from v5.5 — existing loaders work without modification
578
+ - Free sample files unchanged (10-record structure preserved)
579
+
580
+ ## What's New in v5.5
581
+
582
+ - **Data updated** from v5.4 → v5.5 (parser run 260601):
583
+ - Fragrances: 130,949 → 132,124 (+1,175)
584
+ - Brands: 7,815 → 7,881 (+66)
585
+ - Perfumers: 2,968 → 2,988 (+20)
586
+ - Notes: 2,522 → 2,533 (+11)
587
+
588
+ ### Schema unchanged from v5.4
589
+
590
+ All F column counts identical (30/54/42/55/27/25) — existing scripts work without modification.
591
+
592
+ ### From v5.4 (unchanged in v5.5)
593
+ - **23 languages** — all labels, note names, accords, countries, statuses translated
594
+ - **9 non-Latin scripts** for perfumer name transliteration
595
+ - **translations.csv** — vocabulary file (34 entries) for gender and voting labels
596
+ - **Compact notes pyramid** — `note_id,opacity,weight` (name/icon via notes.csv JOIN)
597
+ - Each note name variant has its own ID with translations
598
+ - **Gender & voting fields** use translation IDs for multilingual support
599
+
600
+ ## Snapshot freshness
601
+
602
+ - **Data refreshed**: 2026-07-10 (v5.9)
603
+
604
+ ## Dataset Description
605
+
606
+ | File | Records | Fields | Description |
607
+ |------|---------|--------|-------------|
608
+ | `fragrances.csv` | 10 | 30 | Iconic fragrances (v5.9) |
609
+ | `brands.csv` | 10 | 54 | Brand profiles + 22 lang translations |
610
+ | `perfumers.csv` | 10 | 42 | Perfumer profiles + 22 lang + 9 name translit |
611
+ | `notes.csv` | 10 | 55 | Fragrance notes + 22 lang translations |
612
+ | `accords.csv` | 10 | 27 | Accords + 22 lang translations |
613
+ | `translations.csv` | 34 | 25 | Gender & voting vocabulary (full) |
614
+ | `comments_sample.parquet` | 25 | 8 | User reviews preview (parquet) |
615
+ | `news_sample.parquet` | 20 | 16 | Editorial articles preview (parquet) |
616
+ | `news_comments_sample.parquet` | 20 | 9 | News comments preview (parquet) |
617
+ | `SPEC.md` | — | — | Parquet schema documentation |
618
+
619
+ ### Loading the data
620
+
621
+ ```python
622
+ from datasets import load_dataset
623
+
624
+ f = load_dataset("FragDBnet/fragrance-database") # fragrances (default)
625
+ brands = load_dataset("FragDBnet/fragrance-database", "brands")
626
+ notes = load_dataset("FragDBnet/fragrance-database", "notes")
627
+ ```
628
+
629
+ ## Companion Parquet Datasets — User Reviews, News, and Community Comments
630
+
631
+ FragDB ships with **three Apache Parquet datasets** containing **4.9 million rows** of user-generated content and editorial coverage — the largest publicly-organized corpus of fragrance reviews and perfumery journalism. Use them for NLP, sentiment analysis, recommendation systems, market research, or training language models on fragrance-specific text.
632
+
633
+ **Keywords:** fragrance reviews · perfume reviews · multilingual UGC corpus · NLP training data · fragrance sentiment · perfumery journalism · perfume recommendation · scent recommendation · review classification · entity linking · knowledge graph · fragrance industry news · perfume articles
634
+
635
+ ### `comments.parquet` — 4.6 Million User Reviews in 23 Languages
636
+
637
+ The world's largest collection of structured fragrance reviews. Every entry includes the perfume ID (joinable with `fragrances.csv`), author username, posting date, full review text, avatar URL, and language code.
638
+
639
+ - **4,643,851 user reviews** covering every major perfume in the database
640
+ - **23 languages** — English (1.69M), Russian, Portuguese, Spanish, Korean, Turkish, Japanese, Polish, Italian, Hungarian, Serbian, Swedish, German, Hebrew, Ukrainian, French, Arabic, Greek, Czech, Chinese, Romanian, Mongolian, Dutch
641
+ - **Coverage:** 70.6% of all fragrances have at least one review (93,305 of 132,160 PIDs)
642
+ - **Deterministic global primary key** — stable comment IDs survive re-scrapes
643
+ - **Zero duplicate rows**, **zero foreign key orphans** against `fragrances.csv.pid`
644
+ - **Independent UGC per language** — genuine localized content, not machine translation
645
+ - **8 fields:** `pid`, `lang`, `comment_id`, `author`, `date`, `text`, `avatar_url`, `gradient_class`
646
+ - **PyArrow large_string format** — combined corpus exceeds 32-bit string offset limit
647
+
648
+ **Use cases:** sentiment analysis · review classification · recommendation systems · perfume similarity from text · language detection benchmark · multilingual NLP training corpus · fragrance market research · author network analysis · trend detection by language
649
+
650
+ ### `news.parquet` — 24,440 Editorial Articles (2008–2026)
651
+
652
+ Two decades of professional fragrance journalism. Every article includes title, author, full text (plain + HTML), category, related perfumes/brands/perfumers, publication date, and main image.
653
+
654
+ - **24,440 editorial articles** from 2008 to 2026 — complete public archive
655
+ - **30+ categories** — New Fragrances (34.9%), Fragrance Reviews (22.8%), Niche Perfumery (10.4%), Designer Brands, Interviews, History, Industry News
656
+ - **Bilingual storage** — `text` (plain) for NLP, `text_html` (markup preserved) for rich display
657
+ - **Linked entities** — `related_pids[]`, `related_brands[]`, `related_perfumers[]` as JSON arrays
658
+ - **0% orphans** over 119,662 PID references
659
+ - **63.1% archived legacy, 36.9% modern** fully-dated articles
660
+ - **16 fields:** `nid`, `title`, `category`, `author`, `url`, `is_archived`, `date_unix`, `description`, `text`, `text_html`, `main_image`, `article_images`, `related_pids`, `related_brands`, `related_perfumers`, `comments_count`
661
+
662
+ **Use cases:** content recommendation · article search engine · perfume knowledge graph · trend analysis · author influence study · entity linking · timeline analysis · industry research · niche perfumery research
663
+
664
+ ### `news_comments.parquet` — 263,798 Threaded Community Comments
665
+
666
+ Community discussions attached to editorial articles, with threading support for replies. Joinable with `news.parquet` via `nid`.
667
+
668
+ - **263,798 threaded comments** across **21,820 articles** (89.3% of news articles have ≥1 comment)
669
+ - **4.9% reply rate** — threaded conversations with reply detection
670
+ - **100% populated timestamps**
671
+ - **9 fields:** `nid`, `comment_id`, `is_reply`, `author`, `date`, `date_unix`, `text`, `avatar_url`, `gradient`
672
+
673
+ **Use cases:** community engagement analysis · threaded discussion mining · reply network construction · comment sentiment · author activity profiles
674
+
675
+ ### Tier Availability
676
+
677
+ The parquet datasets ship with **all paid tiers except the $200 Core**:
678
+
679
+ | Tier | CSV Core | Parquet Datasets |
680
+ |------|----------|------------------|
681
+ | **$200 One-Time Core** | ✅ | ❌ |
682
+ | **$400 One-Time Full Database** | ✅ | ✅ |
683
+ | **Annual Subscription** | ✅ | ✅ (always latest) |
684
+ | **Lifetime Access** | ✅ | ✅ (always latest) |
685
+
686
+ See https://fragdb.net/#pricing for complete tier comparison.
687
+
688
+ ### Quick Start — Parquet
689
+
690
+ ```python
691
+ import pyarrow.parquet as pq
692
+ import pandas as pd
693
+ import json
694
+
695
+ reviews = pq.read_table('comments.parquet').to_pandas()
696
+ fragrances = pd.read_csv('fragrances.csv', sep='|')
697
+ reviews_with_meta = reviews.merge(fragrances, on='pid', how='left')
698
+
699
+ news = pq.read_table('news.parquet').to_pandas()
700
+ news['related_pids_list'] = news['related_pids'].apply(json.loads)
701
+
702
+ news_comments = pq.read_table('news_comments.parquet').to_pandas()
703
+ ```
704
+
705
+ Full schema in [`SPEC.md`](SPEC.md).
706
+
707
+ ### Use Cases
708
+
709
+ **CSV Core (all tiers):**
710
+ - **E-commerce** — Enrich product listings with detailed fragrance data, notes, accords
711
+ - **Mobile Apps** — Build fragrance collection managers, scent discovery apps, perfume catalog apps
712
+ - **Data Analysis** — Analyze fragrance industry trends by brand, country, perfumer, year
713
+ - **Recommendations** — Content-based or collaborative filtering systems using accord/note vectors
714
+ - **Multilingual UIs** — Localized perfume catalogs in 23 languages out of the box
715
+ - **Knowledge Graphs** — Brand → Perfumer → Fragrance → Notes → Accords graph construction
716
+ - **Market Research** — Country-of-origin analysis, parent company portfolios, perfumer productivity stats
717
+
718
+ **Parquet Datasets ($400+ tiers):**
719
+ - **NLP & Sentiment Analysis** — Train models on 4.6M multilingual fragrance reviews
720
+ - **Recommender Systems** — Hybrid models combining CSV structure with review text similarity
721
+ - **Language Models** — Domain-specific corpus for fragrance/perfumery LLM fine-tuning
722
+ - **Review Classification** — Identify positive/negative reviews, fake review detection
723
+ - **Trend Detection** — News article timeline analysis, emerging fragrance trends
724
+ - **Author Networks** — Identify influential reviewers, perfumery journalists, community leaders
725
+ - **Content-Based Discovery** — "Articles about this perfume" — JOIN news.related_pids with fragrances.pid
726
+ - **Community Analytics** — Reply networks, engagement metrics on editorial content
727
+ - **Cross-Language Studies** — Compare review sentiment across 23 languages for the same fragrance
728
+ - **Search Engines** — Full-text search across reviews, articles, and structured metadata
729
+ - **Knowledge Extraction** — Mine 24K editorial articles for perfume facts, launch dates, perfumer interviews
730
+
731
+ ### Full Database
732
+
733
+ | | Sample | Full Database |
734
+ |---|--------|---------------|
735
+ | Fragrances | 10 | **134,577** |
736
+ | Brands | 10 | **8,036** |
737
+ | Perfumers | 10 | **3,046** |
738
+ | Notes | 10 | **2,567** |
739
+ | Accords | 10 | **92** |
740
+ | Translations | 34 | **34** |
741
+ | Languages | 23 | **23** |
742
+ | **Total Records** | ~84 | **148,352** |
743
+
744
+ ## Quick Start
745
+
746
+ ```python
747
+ import pandas as pd
748
+
749
+ fragrances = pd.read_csv('fragrances.csv', sep='|')
750
+ brands = pd.read_csv('brands.csv', sep='|')
751
+ notes = pd.read_csv('notes.csv', sep='|')
752
+ translations = pd.read_csv('translations.csv', sep='|')
753
+
754
+ # Join and translate
755
+ fragrances['brand_id'] = fragrances['brand'].str.split(';').str[1]
756
+ df = fragrances.merge(brands, left_on='brand_id', right_on='id', suffixes=('', '_brand'))
757
+ trans = translations.set_index('id')
758
+ df['gender_ru'] = df['gender'].map(lambda x: trans.loc[x, 'ru'] if x in trans.index else x)
759
+ print(df[['name', 'name_brand', 'country_ru', 'gender_ru']])
760
+ ```
761
+
762
+ ## File Format
763
+
764
+ - **Format**: CSV (pipe `|` delimited)
765
+ - **Encoding**: UTF-8
766
+ - **Quote Character**: `"` (double quote)
767
+
768
+ ## Links
769
+
770
+ - **Full Database**: [fragdb.net](https://fragdb.net)
771
+ - **GitHub**: [github.com/FragDB/fragrance-database](https://github.com/FragDB/fragrance-database)
772
+ - **Kaggle**: [kaggle.com/datasets/eriklindqvist/fragdb-fragrance-database](https://www.kaggle.com/datasets/eriklindqvist/fragdb-fragrance-database)
773
+
774
+ ## License
775
+
776
+ This sample is released under the **CC BY-NC 4.0 License**. Free for non-commercial use with attribution.
777
+
778
+ ## Citation
779
+
780
+ ```bibtex
781
+ @dataset{fragdb2026,
782
+ title={FragDB Fragrance Database},
783
+ author={FragDB},
784
+ year={2026},
785
+ version={5.9},
786
+ url={https://fragdb.net},
787
+ note={Multilingual dataset with 6 files, 23 languages}
788
+ }
789
+ ```
SPEC.md ADDED
@@ -0,0 +1,635 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fragrantika News & Comments Datasets — Technical Specification
2
+
3
+ **Snapshot date:** 2026-05-05
4
+ **Source:** `fragrantica.com` and 22 localized domains (`fragrantica.de`, `fragrantica.ru`, etc.)
5
+ **Format:** Apache Parquet (Zstandard compression)
6
+ **Total combined size:** ~1.36 GB on disk
7
+
8
+ This document specifies three datasets that complement the existing
9
+ Fragrantika perfume database (`merged_database`, `brands_database_v2`,
10
+ `perfumers_database_v2`, `notes_database_v2` — already documented and sold
11
+ separately):
12
+
13
+ 1. **`comments.parquet`** — user reviews on individual perfumes
14
+ 2. **`news.parquet`** — editorial articles published on Fragrantika
15
+ 3. **`news_comments.parquet`** — user comments under those articles
16
+
17
+ The cross-dataset relationships in §5 explain how to join these with the
18
+ existing perfume/brand/perfumer DBs via primary keys.
19
+
20
+ ---
21
+
22
+ ## 1. Overview
23
+
24
+ | Dataset | Rows | Compressed Size | Distinct entities |
25
+ |---|---:|---:|---:|
26
+ | `comments.parquet` | 4,643,851 | 1.23 GB | 93,305 perfumes, 23 languages |
27
+ | `news.parquet` | 24,440 articles | 101 MB | NID 1..25000 |
28
+ | `news_comments.parquet` | 263,798 | 33 MB | 21,820 articles with comments |
29
+
30
+ All three datasets share the same identifier conventions used by the
31
+ existing perfume/brand/perfumer databases:
32
+
33
+ - **PID** (`int32`) — unique perfume identifier; matches `merged_database.PID`.
34
+ - **NID** (`int32`) — unique news article identifier (1..25000 range).
35
+ - **lang** (`string`) — ISO 639-1 language code identifying which Fragrantika
36
+ domain the content was sourced from. Each domain hosts independent
37
+ user-generated content (reviews are not translations of one another).
38
+
39
+ ---
40
+
41
+ ## 2. Dataset 1: `comments.parquet`
42
+
43
+ User-written reviews of individual perfumes, scraped across 23 localized
44
+ Fragrantika domains. Each comment is a unique user review, not a translation
45
+ or syndication.
46
+
47
+ ### 2.1 Schema (8 fields)
48
+
49
+ | # | Field | Type | NULL? | Description |
50
+ |---:|---|---|---|---|
51
+ | 1 | `pid` | `int32` | NO | Foreign key → `merged_database.PID`. Identifies the perfume being reviewed. |
52
+ | 2 | `lang` | `string` | NO | Domain language (`en`, `ru`, `de`, …). 23 distinct values. |
53
+ | 3 | `comment_id` | `string` | NO | Globally unique deterministic ID, format `{pid}_{lang}_{12hex}` where `12hex` is the first 12 hexadecimal characters of `sha1(author + "|" + date + "|" + text)`. Stable across re-scrapes. |
54
+ | 4 | `author` | `string` | NO | Username as displayed on Fragrantika. May contain Unicode (e.g. `Сергей`, `José`). |
55
+ | 5 | `date` | `string` | NO | Date published as it appears on the page. Most rows: `MM/DD/YY HH:MM` (e.g., `04/11/26 10:05`). Always present. |
56
+ | 6 | `text` | `large_string` (64-bit offsets) | NO | Review body. UTF-8, no HTML tags, paragraph breaks via `\n`. May contain emoji. Length range observed: 1 char (emoji-only) to ~120 KB. |
57
+ | 7 | `avatar_url` | `string` | NO | Full URL to the user's avatar image hosted on Fragrantika's CDN. Verified ~100% reachable. |
58
+ | 8 | `gradient_class` | `string` | NO | Fragrantika's CSS class for the user's color badge (e.g., `tw-gradient-rose`). 7 distinct values observed (`tw-gradient-amber`/`emerald`/`orange`/`rose`/`sky`/`teal`/`violet`). Useful for UI consistency if displaying. |
59
+
60
+ ### 2.2 Volumetrics
61
+
62
+ - **Total rows:** 4,643,851
63
+ - **Distinct PIDs covered:** 93,305 (70.6% of the 132,160 perfumes in `merged_database`; remaining 38,855 perfumes have zero reviews — verified against Fragrantika's `reviews_count` field)
64
+ - **PID range:** 1 — 130,121
65
+ - **Languages:** 23 (full list in §2.3)
66
+
67
+ ### 2.3 Language distribution
68
+
69
+ | Lang | Code | Comments | Distinct PIDs |
70
+ |---|---|---:|---:|
71
+ | English | `en` | 1,690,055 | 78,715 (60% of perfumes) |
72
+ | Russian | `ru` | 889,893 | 52,650 |
73
+ | Portuguese (Brazilian) | `pt` | 247,511 | 21,258 |
74
+ | Spanish | `es` | 226,451 | 26,586 |
75
+ | Korean | `ko` | 214,674 | 11,696 |
76
+ | Turkish | `tr` | 191,945 | 11,722 |
77
+ | Japanese | `ja` | 186,836 | 10,767 |
78
+ | Polish | `pl` | 141,242 | 25,350 |
79
+ | Italian | `it` | 115,972 | 22,100 |
80
+ | Hungarian | `hu` | 109,204 | 11,565 |
81
+ | Serbian | `sr` | 108,945 | 15,048 |
82
+ | Swedish | `sv` | 107,666 | 11,155 |
83
+ | German | `de` | 100,218 | 15,505 |
84
+ | Hebrew | `he` | 81,981 | 10,165 |
85
+ | Ukrainian | `uk` | 50,203 | 15,917 |
86
+ | French | `fr` | 42,256 | 13,379 |
87
+ | Arabic | `ar` | 33,077 | 9,071 |
88
+ | Greek | `el` | 28,208 | 8,512 |
89
+ | Czech | `cs` | 24,269 | 3,424 |
90
+ | Chinese (Simplified) | `zh` | 15,843 | 4,466 |
91
+ | Romanian | `ro` | 13,906 | 6,451 |
92
+ | Mongolian | `mn` | 12,100 | 2,056 |
93
+ | Dutch | `nl` | 11,396 | 5,045 |
94
+
95
+ Each `lang` represents an independent set of user reviews from the
96
+ corresponding national Fragrantika domain. A user reviewing the same
97
+ perfume on `fragrantica.com` (en) and `fragrantica.ru` (ru) would write
98
+ two distinct reviews; both are included.
99
+
100
+ ### 2.4 ID generation
101
+
102
+ `comment_id` is content-derived (sha1-based), giving three properties:
103
+ - **Globally unique** across all 4.6M rows (verified post-rewrite, 0 collisions).
104
+ - **Stable across re-scrapes**: re-fetching the same comment yields the same
105
+ ID. Useful for incremental updates and joining with downstream tables.
106
+ - **Idempotent dedup key**: `(nid, comment_id)` and `comment_id` alone are
107
+ both safe primary keys.
108
+
109
+ ---
110
+
111
+ ## 3. Dataset 2: `news.parquet`
112
+
113
+ Editorial articles from `fragrantica.com/news/` (English-only). Covers the
114
+ entire archive 2008-2026 (NID 1..25000), including both archived legacy
115
+ articles and modern editorial content.
116
+
117
+ ### 3.1 Schema (16 fields)
118
+
119
+ | # | Field | Type | NULL? | Description |
120
+ |---:|---|---|---|---|
121
+ | 1 | `nid` | `int32` | NO | News article ID. Range 1..25000. |
122
+ | 2 | `title` | `string` | NO | Article title. Plain text, HTML entities decoded. |
123
+ | 3 | `category` | `string` | NO | Editorial category (e.g., `New Fragrances`, `Fragrance Reviews`, `Interviews`). 30+ distinct values. Top 10 in §3.4. |
124
+ | 4 | `author` | `string` | YES | Comma-separated list of author names (multi-author articles common). |
125
+ | 5 | `description` | `string` | YES | Short summary from `<meta property="og:description">`. Plain text. |
126
+ | 6 | `text` | `string` | NO | Full article body. Plain text, paragraph breaks via `\n`. Footer/byline blocks stripped. UTF-8. |
127
+ | 7 | `text_html` | `string` | NO | Article body **with original HTML preserved** — `<p>`, `<a>`, `<img>`, embedded videos. Useful for rendering or DOM-aware downstream processing. |
128
+ | 8 | `main_image` | `string` | YES | URL to the article's primary image (Fragrantika CDN). Verified reachable. |
129
+ | 9 | `article_images` | `string` | NO | **JSON-encoded array** of all image URLs in the article body. Use `json.loads(field)` → `list[str]`. Empty array `'[]'` if none. |
130
+ | 10 | `url` | `string` | NO | Canonical article URL (e.g., `https://www.fragrantica.com/news/x-12345.html`). |
131
+ | 11 | `is_archived` | `bool` | NO | `True` if article is in Fragrantika's legacy/archived corpus (older HTML template, often missing publication date — see §3.5). |
132
+ | 12 | `related_pids` | `string` | NO | **JSON-encoded array** of PIDs (as decimal strings) referenced in the article. Foreign key → `merged_database.PID`. 0% orphan rate (FK-validated). |
133
+ | 13 | `related_brands` | `string` | NO | **JSON-encoded array** of brand names. Informational metadata; see §5.4 for canonical resolution. |
134
+ | 14 | `related_perfumers` | `string` | NO | **JSON-encoded array** of perfumer names with diacritics preserved (e.g., `François Demachy`, `Carlos Benaïm`). Informational; see §5.5. |
135
+ | 15 | `comments_count` | `int32` | NO | Count of comments in `news_comments.parquet` matching this NID. |
136
+ | 16 | `date_unix` | `int64` | NO | Publication time as Unix timestamp (seconds since epoch). `0` indicates the date is not extractable from the source HTML — see §3.5. |
137
+
138
+ ### 3.2 Volumetrics
139
+
140
+ - **Total rows:** 24,440 articles
141
+ - **NID range:** 1 — 25,000 (560 NIDs missing — Fragrantika returns HTTP 301 redirect for these — represents truly deleted articles)
142
+ - **Archived:** 15,427 / 24,440 (63.1%)
143
+ - **Non-archived:** 9,013 / 24,440 (36.9%)
144
+ - **With publication date (`date_unix > 0`):** 13,687 (56.0%)
145
+
146
+ ### 3.3 List-fields format note
147
+
148
+ Four fields hold lists: `article_images`, `related_pids`, `related_brands`,
149
+ `related_perfumers`. **All four are stored as JSON-encoded strings** for
150
+ consistency. Use:
151
+
152
+ ```python
153
+ import json
154
+ images = json.loads(row['article_images']) # → list[str]
155
+ ```
156
+
157
+ `related_pids` contains PID values as decimal strings (e.g., `'704'`, not
158
+ the int `704`). Cast as needed when joining.
159
+
160
+ ### 3.4 Top categories
161
+
162
+ | Category | Articles | % |
163
+ |---|---:|---:|
164
+ | New Fragrances | 8,534 | 34.9% |
165
+ | Fragrance Reviews | 5,583 | 22.8% |
166
+ | Niche Perfumery | 2,537 | 10.4% |
167
+ | Art Books Events | 1,570 | 6.4% |
168
+ | Columns | 1,346 | 5.5% |
169
+ | Fragrant Horoscope | 851 | 3.5% |
170
+ | Fragrance News | 760 | 3.1% |
171
+ | Interviews | 682 | 2.8% |
172
+ | Vintages | 437 | 1.8% |
173
+ | Raw Materials | 384 | 1.6% |
174
+
175
+ Remaining 1,756 articles span 33 smaller categories.
176
+
177
+ ### 3.5 Date coverage
178
+
179
+ `date_unix == 0` for 10,753 articles (44%). Distribution by NID range:
180
+
181
+ | NID range | Articles | with date | % | archived % |
182
+ |---|---:|---:|---:|---:|
183
+ | 1 — 5,000 | 4,888 | 2 | 0.0% | 100% |
184
+ | 5,001 — 10,000 | 4,799 | 0 | 0.0% | 100% |
185
+ | 10,001 — 15,000 | 4,890 | 3,822 | 78.2% | 100% |
186
+ | 15,001 — 20,000 | 4,900 | 4,900 | 100% | 17.3% |
187
+ | 20,001 — 25,000 | 4,963 | 4,963 | 100% | 0% |
188
+
189
+ The 10,753 articles without date come entirely from the archived legacy
190
+ template: 9,685 in NIDs 1–10,000 (effectively all of them) and 1,068 in
191
+ NIDs 10,001–15,000 (the remaining 22% of that range — the other 78% have
192
+ recoverable visible-text dates). Fragrantika's old archived HTML does not
193
+ embed any date marker (no `<time>`, no `<meta>`, no visible date string)
194
+ for these. This is an upstream HTML limitation, not a parser issue.
195
+ **For all non-archived articles (9,013 of them), `date_unix` is 100%
196
+ populated.**
197
+
198
+ ---
199
+
200
+ ## 4. Dataset 3: `news_comments.parquet`
201
+
202
+ User comments under news articles. Pure UGC; same comment-card schema
203
+ Fragrantika uses on perfume pages.
204
+
205
+ ### 4.1 Schema (9 fields)
206
+
207
+ | # | Field | Type | NULL? | Description |
208
+ |---:|---|---|---|---|
209
+ | 1 | `nid` | `int32` | NO | Foreign key → `news.parquet.nid` (0% orphan rate). |
210
+ | 2 | `comment_id` | `string` | NO | Comment ID as Fragrantika assigns it (page-anchor format). Globally unique within parquet. |
211
+ | 3 | `author` | `string` | NO | Commenter username. |
212
+ | 4 | `date` | `string` | NO | Date as displayed on page (e.g., `04/11/26 10:05`). |
213
+ | 5 | `date_unix` | `int64` | NO | Parsed Unix timestamp. **100% populated** (all rows have `date_unix > 0`). |
214
+ | 6 | `text` | `string` | NO | Comment body, plain text. |
215
+ | 7 | `avatar_url` | `string` | NO | Full URL to author avatar (Fragrantika CDN). |
216
+ | 8 | `gradient` | `string` | NO | CSS class for color badge (same scheme as `comments.parquet.gradient_class`). |
217
+ | 9 | `is_reply` | `bool` | NO | `True` if this comment is a reply to another comment (threaded discussion); `False` for root comments. 4.9% of rows are replies (12,898 / 263,798). |
218
+
219
+ ### 4.2 Volumetrics
220
+
221
+ - **Total rows:** 263,798
222
+ - **Distinct NIDs:** 21,820 (89.3% of articles have at least one comment)
223
+ - **Replies:** 12,898 (4.9%)
224
+ - **Average comments per article (in articles with comments):** 12.1
225
+
226
+ ---
227
+
228
+ ## 5. Cross-dataset relationships
229
+
230
+ This section is the load-bearing piece for buyers integrating with the
231
+ existing perfume/brand/perfumer DBs.
232
+
233
+ ### 5.1 Diagram
234
+
235
+ ```
236
+ ┌────────────────────────────────────────────────────────┐
237
+ │ merged_database.csv (existing, 132,160 perfumes) │
238
+ │ ───────────────────── │
239
+ │ PID ←──────────────────────┐ │
240
+ │ Brand │ │
241
+ │ Name │ │
242
+ │ noses_f (perfumers) │ │
243
+ │ ...30 fields total │ │
244
+ └────────────────────────────────┼───────────────────────┘
245
+ │
246
+ ┌────────────────┴───────────────┐
247
+ │ │
248
+ ▼ ▼
249
+ ┌──────────────────────┐ ┌──────────────────────┐
250
+ │ comments.parquet │ │ news.parquet │
251
+ │ ──────────────────── │ │ ──────────────────── │
252
+ │ pid ─────────────►│ │ related_pids ───────►│
253
+ │ lang (23 langs) │ │ related_brands │
254
+ │ comment_id (sha1) │ │ related_perfumers │
255
+ │ author/date/text │ │ nid ◄────┐ │
256
+ │ +avatar/gradient │ │ ...16 fields total │
257
+ └──────────────────────┘ └──────────┼───────────┘
258
+ │
259
+ │
260
+ ┌──────────┴───────────┐
261
+ │ news_comments.parquet│
262
+ │ ──────────────────── │
263
+ │ nid ─────────────────│ FK → news.nid
264
+ │ comment_id │
265
+ │ author/date/text │
266
+ │ is_reply │
267
+ └──────────────────────┘
268
+ ```
269
+
270
+ ### 5.2 Linking comments to perfumes (PID)
271
+
272
+ Foreign key: **`comments.pid → merged_database.PID`** — verified 0% orphan rate.
273
+
274
+ ```sql
275
+ -- All English reviews for the perfume "Mugler Angel" (PID 704):
276
+ SELECT c.author, c.date, c.text
277
+ FROM read_parquet('comments.parquet') c
278
+ JOIN read_csv('merged_database.csv', delim='⏸') m ON c.pid = m.PID
279
+ WHERE m.Brand = 'Mugler' AND m.Name = 'Angel' AND c.lang = 'en'
280
+ ORDER BY c.date DESC LIMIT 100;
281
+ ```
282
+
283
+ ```python
284
+ import pyarrow.parquet as pq
285
+ import pyarrow.compute as pc
286
+
287
+ c = pq.read_table('comments.parquet')
288
+ angel_reviews = c.filter(pc.and_(pc.equal(c['pid'], 704),
289
+ pc.equal(c['lang'], 'en')))
290
+ ```
291
+
292
+ ### 5.3 Linking news to perfumes (related_pids)
293
+
294
+ Foreign key: **`news.related_pids → merged_database.PID`** — JSON-array
295
+ field, 0% orphan rate over 119,662 references.
296
+
297
+ ```sql
298
+ -- All news mentioning Aventus (PID 9828):
299
+ SELECT nid, title, category, date_unix
300
+ FROM read_parquet('news.parquet')
301
+ WHERE list_contains(json_extract(related_pids, '$'), '9828');
302
+ ```
303
+
304
+ ```python
305
+ import json
306
+ n = pq.read_table('news.parquet')
307
+ mentions_aventus = []
308
+ for i, rp in enumerate(n.column('related_pids').to_pylist()):
309
+ if rp and '9828' in json.loads(rp):
310
+ mentions_aventus.append(i)
311
+ ```
312
+
313
+ ### 5.4 Linking news to brands
314
+
315
+ `news.related_brands` is a **JSON array of brand-name strings** (informational).
316
+
317
+ **Authoritative brand resolution** for any news article uses the PID:
318
+ ```
319
+ news.related_pids → merged_database.PID → merged_database.Brand
320
+ ```
321
+
322
+ The `related_brands` field is provided as supplementary metadata. Approx.
323
+ 12% of strings in `related_brands` will not match `brands_database_v2.name`
324
+ exactly because Fragrantika has renamed some brands over time
325
+ (e.g., `Christian Dior` → `Dior`, `Annick Goutal` → `Goutal`,
326
+ `Paco Rabanne` → `Rabanne`). The original captured name is preserved.
327
+
328
+ For canonical brand lookup, always join via `related_pids`:
329
+
330
+ ```sql
331
+ SELECT DISTINCT m.Brand
332
+ FROM read_parquet('news.parquet') n
333
+ JOIN read_csv('merged_database.csv', delim='⏸') m
334
+ ON list_contains(json_extract(n.related_pids, '$'), CAST(m.PID AS VARCHAR))
335
+ WHERE n.nid = 17644;
336
+ ```
337
+
338
+ ### 5.5 Linking news to perfumers
339
+
340
+ Same pattern as brands. `news.related_perfumers` is a **JSON array of perfumer-name
341
+ strings** with diacritics preserved (e.g., `François Demachy`, `Carlos Benaïm`,
342
+ `Cécile Zarokian` — verified canonical post-fix).
343
+
344
+ **Authoritative perfumer resolution** uses PID:
345
+ ```
346
+ news.related_pids → merged_database.PID → merged_database.noses_f
347
+ ```
348
+
349
+ `merged_database.noses_f` contains the full list of perfumers per perfume in
350
+ the project's standard format. Approximately 11% of `related_perfumers`
351
+ strings will not exactly match `perfumers_database_v2.name` due to the
352
+ upstream perfumer DB not yet covering all names mentioned in news (e.g.,
353
+ `Jean Claude Ellena` ×191 mentions). Use the PID-join for guaranteed
354
+ matches.
355
+
356
+ ### 5.6 Linking news_comments to articles (NID)
357
+
358
+ Foreign key: **`news_comments.nid → news.nid`** — 0% orphan rate.
359
+
360
+ ```sql
361
+ -- All comments under article NID 17644:
362
+ SELECT author, date, text, is_reply
363
+ FROM read_parquet('news_comments.parquet')
364
+ WHERE nid = 17644
365
+ ORDER BY date_unix ASC;
366
+ ```
367
+
368
+ ### 5.7 Combined query examples
369
+
370
+ **Q1.** All news articles + their root comments mentioning Creed Aventus
371
+ (PID 9828) in 2024:
372
+
373
+ ```sql
374
+ SELECT n.nid, n.title, n.date_unix, nc.author, nc.text
375
+ FROM read_parquet('news.parquet') n
376
+ LEFT JOIN read_parquet('news_comments.parquet') nc ON n.nid = nc.nid
377
+ WHERE list_contains(json_extract(n.related_pids, '$'), '9828')
378
+ AND n.date_unix BETWEEN 1704067200 AND 1735689599 -- 2024
379
+ AND nc.is_reply = false
380
+ ORDER BY n.date_unix DESC, nc.date_unix ASC;
381
+ ```
382
+
383
+ **Q2.** Top-10 most-reviewed perfumes by language:
384
+
385
+ ```sql
386
+ SELECT lang, pid, COUNT(*) AS review_count
387
+ FROM read_parquet('comments.parquet')
388
+ GROUP BY lang, pid
389
+ QUALIFY ROW_NUMBER() OVER (PARTITION BY lang ORDER BY COUNT(*) DESC) <= 10;
390
+ ```
391
+
392
+ **Q3.** Sentiment correlation between news articles and reviews — pairs of
393
+ (news article, perfume reviewed in same time window):
394
+
395
+ ```sql
396
+ SELECT n.nid, n.title, m.Brand, m.Name, COUNT(c.comment_id) AS reviews_in_30d
397
+ FROM read_parquet('news.parquet') n
398
+ JOIN read_csv('merged_database.csv', delim='⏸') m
399
+ ON list_contains(json_extract(n.related_pids, '$'), CAST(m.PID AS VARCHAR))
400
+ JOIN read_parquet('comments.parquet') c
401
+ ON c.pid = m.PID
402
+ WHERE n.date_unix > 0
403
+ AND c.date_unix BETWEEN n.date_unix AND n.date_unix + 2592000 -- 30 days
404
+ GROUP BY n.nid, n.title, m.Brand, m.Name;
405
+ ```
406
+
407
+ ---
408
+
409
+ ## 6. Format specification
410
+
411
+ ### 6.1 Storage
412
+
413
+ - **Container:** Apache Parquet 2.x
414
+ - **Compression:** Zstandard (`zstd`)
415
+ - **Row groups:**
416
+ - `comments.parquet` — 5 row groups
417
+ - `news.parquet` — 1 row group
418
+ - `news_comments.parquet` — 1 row group
419
+
420
+ ### 6.2 String types
421
+
422
+ PyArrow uses two string types:
423
+ - `string` — backed by 32-bit offsets (per-array limit ~2 GB total).
424
+ - `large_string` — backed by 64-bit offsets (no practical size limit).
425
+
426
+ `comments.parquet` uses `large_string` for the `text` column (because the
427
+ combined corpus of 4.6M reviews exceeds the 32-bit offset limit). All
428
+ other string columns in all three datasets use `string`. Pandas
429
+ automatically converts both to its native `object` dtype on load — buyers
430
+ generally do not need to distinguish between the two types unless writing
431
+ custom Arrow code.
432
+
433
+ Exact field-level types are listed in the schema tables of §2.1, §3.1, §4.1.
434
+
435
+ ### 6.3 Encoding
436
+
437
+ - **Character encoding:** UTF-8 throughout.
438
+ - **Normalization:** NFC where applicable; original Unicode codepoints
439
+ preserved (including emoji).
440
+ - **Newlines:** `\n` only (Unix-style). No `\r`.
441
+ - **HTML entities:** decoded (no `&amp;`, `&lt;`, etc. in text fields).
442
+ - **Replacement chars (U+FFFD):** zero — rare upstream-broken bytes were
443
+ stripped, with the surrounding text preserved.
444
+
445
+ ### 6.4 List fields (news.parquet)
446
+
447
+ Four columns store JSON-encoded arrays-as-strings:
448
+ - `article_images`: `list[str]` of image URLs
449
+ - `related_pids`: `list[str]` of decimal-string PIDs
450
+ - `related_brands`: `list[str]` of brand names
451
+ - `related_perfumers`: `list[str]` of perfumer names
452
+
453
+ Empty list is stored as the literal string `'[]'` (not NULL, not empty
454
+ string). This makes parsing branchless:
455
+
456
+ ```python
457
+ items = json.loads(row[field]) # always returns a list
458
+ ```
459
+
460
+ ---
461
+
462
+ ## 7. Data quality
463
+
464
+ The datasets passed a multi-track validation audit (full report:
465
+ `reports/data_quality/POST_FIX_VALIDATION.md`). Summary:
466
+
467
+ | Check | Result |
468
+ |---|:---:|
469
+ | Duplicate rows by primary key (all 3 datasets) | 0 |
470
+ | FK integrity (`comments.pid → PID`) | 0 orphans |
471
+ | FK integrity (`news.related_pids → PID`) | 0 orphans (over 119,662 refs) |
472
+ | FK integrity (`news_comments.nid → nid`) | 0 orphans |
473
+ | `comment_id` global uniqueness (`comments.parquet`) | 0 collisions over 4.6M rows |
474
+ | HTML/CSS pollution in text fields | 0 |
475
+ | Cloudflare challenge pages in data | 0 |
476
+ | Mojibake / replacement char (U+FFFD) | 0 |
477
+ | Language attribution accuracy (langdetect on sample) | >95% per language |
478
+ | `news_comments.date_unix > 0` populated | 100% |
479
+ | `news.date_unix > 0` populated (non-archived) | 100% |
480
+
481
+ ### 7.1 Provenance
482
+
483
+ Data scraped via headless browser fingerprinting (chrome120 impersonation
484
+ through curl_cffi) over a residential proxy network. Each page was
485
+ individually fetched, parsed by a custom HTML parser, and post-processed
486
+ through a content sanitization pipeline. Re-scrapes are idempotent thanks
487
+ to deterministic comment IDs (§2.4).
488
+
489
+ ---
490
+
491
+ ## 8. Known limitations (transparent disclosure)
492
+
493
+ 1. **Archived news articles without dates (10,753 / 24,440 = 44%).**
494
+ Fragrantika's archived HTML template does not embed any date marker
495
+ (`<time>`, meta tag, or visible string). For these articles, `date_unix`
496
+ is `0`. The no-date subset is concentrated in NIDs 1–15,000: 9,685 of
497
+ 9,687 archived articles in NIDs 1–10,000 and 1,068 of 4,890 in NIDs
498
+ 10,001–15,000. (850 archived articles in NIDs 15,001–20,000 do have
499
+ dates.) **All non-archived articles (9,013 of them) have 100% date
500
+ coverage.**
501
+
502
+ 2. **`related_brands` matching gap (~12%).** Fragrantika has renamed
503
+ ~50 brands over the years (e.g., `Christian Dior → Dior`); the captured
504
+ name in news may be the older form, while `brands_database_v2.csv`
505
+ carries only the canonical (post-rename) name. Use `related_pids` for
506
+ authoritative brand resolution (§5.4).
507
+
508
+ 3. **`related_perfumers` matching gap (~11%).** Some perfumer names
509
+ referenced in news (e.g., `Jean Claude Ellena` ×191) are not yet in the
510
+ companion `perfumers_database_v2.csv`. The names in news are
511
+ diacritic-correct; the gap is in the reference DB coverage. Use
512
+ `related_pids → merged_database.noses_f` for authoritative resolution
513
+ (§5.5).
514
+
515
+ 4. **Cross-language mirrored short comments (~0.014%).** Approximately
516
+ 650 short, identical-text comments appear in multiple languages
517
+ (e.g., a "5/10" rating posted by the same author on multiple subdomains).
518
+ These are real (Fragrantika's display behavior), not parser duplicates.
519
+
520
+ 5. **Comments PID coverage gap.** 38,855 perfumes (29%) have zero comments
521
+ in any language. Verified against Fragrantika's `reviews_count` field:
522
+ 99.8% of these perfumes truly have zero reviews on the platform. A
523
+ targeted re-collection of the 73 PIDs flagged as `reviews_count > 0`
524
+ yet missing comments recovered 68 of them (305 new comments added);
525
+ the remaining 5 PIDs have `reviews_count > 0` in Fragrantika's metadata
526
+ but the page returns no review HTML — treated as upstream
527
+ metadata/page mismatch.
528
+
529
+ ---
530
+
531
+ ## 9. Loading examples
532
+
533
+ ### 9.1 Python (PyArrow + Pandas)
534
+
535
+ ```python
536
+ import pyarrow.parquet as pq
537
+ import json
538
+
539
+ # Comments
540
+ comments = pq.read_table('comments.parquet')
541
+ df = comments.to_pandas()
542
+ print(df.head())
543
+
544
+ # News list-field unpack
545
+ news = pq.read_table('news.parquet').to_pandas()
546
+ news['related_pids'] = news['related_pids'].apply(json.loads)
547
+ news['related_brands'] = news['related_brands'].apply(json.loads)
548
+ ```
549
+
550
+ ### 9.2 DuckDB (zero-copy SQL on Parquet)
551
+
552
+ ```sql
553
+ -- Direct query, no import needed
554
+ SELECT lang, COUNT(*) FROM 'comments.parquet' GROUP BY lang ORDER BY 2 DESC;
555
+
556
+ -- Multi-file join
557
+ SELECT n.title, COUNT(nc.comment_id) AS replies
558
+ FROM 'news.parquet' n
559
+ LEFT JOIN 'news_comments.parquet' nc ON n.nid = nc.nid AND nc.is_reply = true
560
+ GROUP BY n.nid, n.title HAVING replies > 10;
561
+ ```
562
+
563
+ ### 9.3 Polars
564
+
565
+ ```python
566
+ import polars as pl
567
+ df = pl.read_parquet('comments.parquet')
568
+ df.filter(pl.col('lang') == 'en').head()
569
+ ```
570
+
571
+ ---
572
+
573
+ ## 10. Sample files
574
+
575
+ The `samples/` directory contains three small Parquet files that
576
+ demonstrate the cross-dataset relationships using real production data:
577
+
578
+ | File | Rows | Content |
579
+ |---|---:|---|
580
+ | `comments_sample.parquet` | 25 | Reviews of 5 popular perfumes (Mugler Angel, Guerlain Shalimar, Creed Aventus, JPG Le Male, Dior Poison), each in 5 languages (en/ru/de/es/fr). |
581
+ | `news_sample.parquet` | 20 | News articles that reference these 5 perfumes via `related_pids`. Diverse categories and archived/recent mix. |
582
+ | `news_comments_sample.parquet` | 20 | Comments from 7 of the news articles in `news_sample.parquet`, mix of root and replies. |
583
+
584
+ The samples are produced by `scripts/build_sales_samples.py` and use the
585
+ **identical Parquet schema and Zstandard compression as the production
586
+ files** — buyers can verify their loading code against the samples before
587
+ committing to the full datasets.
588
+
589
+ ### 10.1 Cross-link verification (using the samples)
590
+
591
+ ```python
592
+ import pyarrow.parquet as pq
593
+ import json
594
+
595
+ c = pq.read_table('samples/comments_sample.parquet')
596
+ n = pq.read_table('samples/news_sample.parquet')
597
+ nc = pq.read_table('samples/news_comments_sample.parquet')
598
+
599
+ sample_pids = set(c.column('pid').to_pylist())
600
+ print(f"Comment-sample PIDs: {sorted(sample_pids)}")
601
+ # {53, 218, 430, 704, 9828}
602
+
603
+ # Find news rows that reference these PIDs:
604
+ for i, rp in enumerate(n.column('related_pids').to_pylist()):
605
+ pids = set(int(p) for p in json.loads(rp) if p.isdigit())
606
+ if pids & sample_pids:
607
+ nid = n.column('nid').to_pylist()[i]
608
+ title = n.column('title').to_pylist()[i]
609
+ print(f" NID {nid} ({title[:60]}...) references PIDs {pids & sample_pids}")
610
+
611
+ # All news_comments NIDs are subset of news_sample NIDs:
612
+ sample_nids = set(n.column('nid').to_pylist())
613
+ nc_nids = set(nc.column('nid').to_pylist())
614
+ assert nc_nids <= sample_nids, "FK integrity holds in samples"
615
+ print(f"\nAll news_comments_sample NIDs link back to news_sample: {nc_nids <= sample_nids}")
616
+ ```
617
+
618
+ Running this script on the supplied samples will print a verification
619
+ trace and confirm relational integrity.
620
+
621
+ ---
622
+
623
+ ## 11. Versioning and updates
624
+
625
+ | Field | Value |
626
+ |---|---|
627
+ | Snapshot date | 2026-05-05 |
628
+ | Comments PID range | 1 — 130,121 |
629
+ | News NID range | 1 — 25,000 |
630
+ | Schema version | v1 (8 / 16 / 9 fields respectively) |
631
+ | Compression | zstd |
632
+ | Format | Parquet 2.x |
633
+
634
+ Updates to these datasets are produced as full snapshots; incremental
635
+ diffs (per-PID / per-NID delta exports) are available on request.
accords.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a3991b11c3f0c226f37701f69634c1a7eb137feb531282610db4936c01728d9
3
+ size 3307
brands.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b62069ad3fa04f7d74851b3cc36d00947b9b3751bef76dcd89d9122fd42a953f
3
+ size 33955
comments_sample.parquet ADDED
Binary file (15.5 kB). View file
 
fragrances.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddca201eb42afb1915706356dabcb68a8072a63dfafa7487ee904a3d754b6bfc
3
+ size 67536
news_comments_sample.parquet ADDED
Binary file (6.06 kB). View file
 
news_sample.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b845c176dcf4ca75e23041661f0443d4134308eee7f4ed463d62c1847418d5af
3
+ size 124859
notes.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1a70ba110c929c9eb189d2209dd54cc9dabdc8c05ba7821be7745a15d1514f4
3
+ size 12565
perfumers.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2789476c73b6a30cb506871288023b1a1478a4200133ca38b4d986b271479d8e
3
+ size 30431
translations.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00529c19e4b6042589fab28039c8a930f7d624aae693ed274201e8d63f4a930e
3
+ size 10195