Skip to main content

qualia_client_core/wellfair/
qapp_catalog.rs

1//! Studio academic QApp catalogue — seeded into the hypermedia Library **Software** section.
2//!
3//! These entries inventory the early/stub liberal-arts QApps under
4//! `webizen-studio/src/components/*_qapp.rs`. They are **catalogued and categorised**
5//! for faceted browse — not claimed as fully implemented apps.
6
7use super::hypermedia_store::{CommonsVisibility, HypermediaStore, LibraryEntry, LibrarySection};
8use serde::{Deserialize, Serialize};
9
10/// Stable media type for studio-pane QApps in the Software shelf.
11pub const QAPP_MEDIA_TYPE: &str = "application/x-webizen-qapp";
12
13/// One catalogue row (id = module stem without `_qapp`).
14#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
15pub struct QappCatalogEntry {
16    pub id: &'static str,
17    pub title: &'static str,
18    /// Domain category slug (faceted browse).
19    pub category: &'static str,
20}
21
22impl QappCatalogEntry {
23    /// `asset` URI.
24    pub fn asset_uri(self) -> String {
25        format!("qapp://studio/{}", self.id)
26    }
27
28    /// Display title.
29    pub fn display_title(self) -> String {
30        self.title.to_string()
31    }
32}
33
34/// Full inventory of studio academic QApps with domain categories.
35pub const STUDIO_QAPP_CATALOG: &[QappCatalogEntry] = &[
36    QappCatalogEntry {
37        id: "african_american_studies",
38        title: "African American Studies",
39        category: "social-sciences",
40    },
41    QappCatalogEntry {
42        id: "anthropology",
43        title: "Anthropology",
44        category: "social-sciences",
45    },
46    QappCatalogEntry {
47        id: "archaeology",
48        title: "Archaeology",
49        category: "social-sciences",
50    },
51    QappCatalogEntry {
52        id: "area_and_regional_studies",
53        title: "Area And Regional Studies",
54        category: "social-sciences",
55    },
56    QappCatalogEntry {
57        id: "cultural_studies",
58        title: "Cultural Studies",
59        category: "social-sciences",
60    },
61    QappCatalogEntry {
62        id: "economics",
63        title: "Economics",
64        category: "social-sciences",
65    },
66    QappCatalogEntry {
67        id: "gender_and_sexuality_studies",
68        title: "Gender And Sexuality Studies",
69        category: "social-sciences",
70    },
71    QappCatalogEntry {
72        id: "geography_human_geography",
73        title: "Geography Human Geography",
74        category: "social-sciences",
75    },
76    QappCatalogEntry {
77        id: "history",
78        title: "History",
79        category: "social-sciences",
80    },
81    QappCatalogEntry {
82        id: "international_relations",
83        title: "International Relations",
84        category: "social-sciences",
85    },
86    QappCatalogEntry {
87        id: "political_science",
88        title: "Political Science",
89        category: "social-sciences",
90    },
91    QappCatalogEntry {
92        id: "psychology",
93        title: "Psychology",
94        category: "social-sciences",
95    },
96    QappCatalogEntry {
97        id: "sociology",
98        title: "Sociology",
99        category: "social-sciences",
100    },
101    QappCatalogEntry {
102        id: "art_history",
103        title: "Art History",
104        category: "humanities",
105    },
106    QappCatalogEntry {
107        id: "classics",
108        title: "Classics",
109        category: "humanities",
110    },
111    QappCatalogEntry {
112        id: "comparative_literature",
113        title: "Comparative Literature",
114        category: "humanities",
115    },
116    QappCatalogEntry {
117        id: "creative_writing",
118        title: "Creative Writing",
119        category: "humanities",
120    },
121    QappCatalogEntry {
122        id: "dance",
123        title: "Dance",
124        category: "humanities",
125    },
126    QappCatalogEntry {
127        id: "english_language_and_literature",
128        title: "English Language And Literature",
129        category: "humanities",
130    },
131    QappCatalogEntry {
132        id: "ethics",
133        title: "Ethics",
134        category: "humanities",
135    },
136    QappCatalogEntry {
137        id: "film_and_media_studies",
138        title: "Film And Media Studies",
139        category: "humanities",
140    },
141    QappCatalogEntry {
142        id: "foreign_languages_and_literatures",
143        title: "Foreign Languages And Literatures",
144        category: "humanities",
145    },
146    QappCatalogEntry {
147        id: "linguistics",
148        title: "Linguistics",
149        category: "humanities",
150    },
151    QappCatalogEntry {
152        id: "music_history",
153        title: "Music History",
154        category: "humanities",
155    },
156    QappCatalogEntry {
157        id: "music_performance",
158        title: "Music Performance",
159        category: "humanities",
160    },
161    QappCatalogEntry {
162        id: "music_theory",
163        title: "Music Theory",
164        category: "humanities",
165    },
166    QappCatalogEntry {
167        id: "philosophy",
168        title: "Philosophy",
169        category: "humanities",
170    },
171    QappCatalogEntry {
172        id: "religion_and_theology",
173        title: "Religion And Theology",
174        category: "humanities",
175    },
176    QappCatalogEntry {
177        id: "studio_art",
178        title: "Studio Art",
179        category: "humanities",
180    },
181    QappCatalogEntry {
182        id: "theater_and_drama",
183        title: "Theater And Drama",
184        category: "humanities",
185    },
186    QappCatalogEntry {
187        id: "astronomy",
188        title: "Astronomy",
189        category: "natural-sciences",
190    },
191    QappCatalogEntry {
192        id: "astrophysics",
193        title: "Astrophysics",
194        category: "natural-sciences",
195    },
196    QappCatalogEntry {
197        id: "biology",
198        title: "Biology",
199        category: "natural-sciences",
200    },
201    QappCatalogEntry {
202        id: "botany",
203        title: "Botany",
204        category: "natural-sciences",
205    },
206    QappCatalogEntry {
207        id: "chemistry",
208        title: "Chemistry",
209        category: "natural-sciences",
210    },
211    QappCatalogEntry {
212        id: "earth_science",
213        title: "Earth Science",
214        category: "natural-sciences",
215    },
216    QappCatalogEntry {
217        id: "ecology",
218        title: "Ecology",
219        category: "natural-sciences",
220    },
221    QappCatalogEntry {
222        id: "environmental_science",
223        title: "Environmental Science",
224        category: "natural-sciences",
225    },
226    QappCatalogEntry {
227        id: "evolutionary_biology",
228        title: "Evolutionary Biology",
229        category: "natural-sciences",
230    },
231    QappCatalogEntry {
232        id: "geology",
233        title: "Geology",
234        category: "natural-sciences",
235    },
236    QappCatalogEntry {
237        id: "neuroscience",
238        title: "Neuroscience",
239        category: "natural-sciences",
240    },
241    QappCatalogEntry {
242        id: "oceanography",
243        title: "Oceanography",
244        category: "natural-sciences",
245    },
246    QappCatalogEntry {
247        id: "physics",
248        title: "Physics",
249        category: "natural-sciences",
250    },
251    QappCatalogEntry {
252        id: "zoology",
253        title: "Zoology",
254        category: "natural-sciences",
255    },
256    QappCatalogEntry {
257        id: "computer_science",
258        title: "Computer Science",
259        category: "formal-sciences",
260    },
261    QappCatalogEntry {
262        id: "logic",
263        title: "Logic",
264        category: "formal-sciences",
265    },
266    QappCatalogEntry {
267        id: "mathematics",
268        title: "Mathematics",
269        category: "formal-sciences",
270    },
271    QappCatalogEntry {
272        id: "statistics",
273        title: "Statistics",
274        category: "formal-sciences",
275    },
276    QappCatalogEntry {
277        id: "american_studies",
278        title: "American Studies",
279        category: "area-studies",
280    },
281    QappCatalogEntry {
282        id: "asian_studies",
283        title: "Asian Studies",
284        category: "area-studies",
285    },
286    QappCatalogEntry {
287        id: "cognitive_science",
288        title: "Cognitive Science",
289        category: "area-studies",
290    },
291    QappCatalogEntry {
292        id: "communication_studies",
293        title: "Communication Studies",
294        category: "area-studies",
295    },
296    QappCatalogEntry {
297        id: "european_studies",
298        title: "European Studies",
299        category: "area-studies",
300    },
301    QappCatalogEntry {
302        id: "folklore_and_mythology",
303        title: "Folklore And Mythology",
304        category: "area-studies",
305    },
306    QappCatalogEntry {
307        id: "global_studies",
308        title: "Global Studies",
309        category: "area-studies",
310    },
311    QappCatalogEntry {
312        id: "history_of_science_and_medicine",
313        title: "History Of Science And Medicine",
314        category: "area-studies",
315    },
316    QappCatalogEntry {
317        id: "indigenous_and_native_american_studies",
318        title: "Indigenous And Native American Studies",
319        category: "area-studies",
320    },
321    QappCatalogEntry {
322        id: "jewish_studies",
323        title: "Jewish Studies",
324        category: "area-studies",
325    },
326    QappCatalogEntry {
327        id: "latin_american_studies",
328        title: "Latin American Studies",
329        category: "area-studies",
330    },
331    QappCatalogEntry {
332        id: "medieval_and_renaissance_studies",
333        title: "Medieval And Renaissance Studies",
334        category: "area-studies",
335    },
336    QappCatalogEntry {
337        id: "middle_eastern_studies",
338        title: "Middle Eastern Studies",
339        category: "area-studies",
340    },
341    QappCatalogEntry {
342        id: "peace_and_conflict_studies",
343        title: "Peace And Conflict Studies",
344        category: "area-studies",
345    },
346    QappCatalogEntry {
347        id: "rhetoric_and_composition",
348        title: "Rhetoric And Composition",
349        category: "area-studies",
350    },
351    QappCatalogEntry {
352        id: "science_technology_and_society_sts",
353        title: "Science Technology And Society Sts",
354        category: "area-studies",
355    },
356    QappCatalogEntry {
357        id: "urban_studies",
358        title: "Urban Studies",
359        category: "area-studies",
360    },
361    QappCatalogEntry {
362        id: "criminology_and_criminal_justice",
363        title: "Criminology And Criminal Justice",
364        category: "applied-liberal-arts",
365    },
366    QappCatalogEntry {
367        id: "education_studies",
368        title: "Education Studies",
369        category: "applied-liberal-arts",
370    },
371    QappCatalogEntry {
372        id: "journalism",
373        title: "Journalism",
374        category: "applied-liberal-arts",
375    },
376    QappCatalogEntry {
377        id: "library_and_information_science",
378        title: "Library And Information Science",
379        category: "applied-liberal-arts",
380    },
381    QappCatalogEntry {
382        id: "museum_studies",
383        title: "Museum Studies",
384        category: "applied-liberal-arts",
385    },
386    QappCatalogEntry {
387        id: "public_health",
388        title: "Public Health",
389        category: "applied-liberal-arts",
390    },
391    QappCatalogEntry {
392        id: "public_policy",
393        title: "Public Policy",
394        category: "applied-liberal-arts",
395    },
396    QappCatalogEntry {
397        id: "african_studies",
398        title: "African Studies",
399        category: "emerging-interdisciplinary",
400    },
401    QappCatalogEntry {
402        id: "celtic_studies",
403        title: "Celtic Studies",
404        category: "emerging-interdisciplinary",
405    },
406    QappCatalogEntry {
407        id: "chicano_and_latino_studies",
408        title: "Chicano And Latino Studies",
409        category: "emerging-interdisciplinary",
410    },
411    QappCatalogEntry {
412        id: "digital_humanities",
413        title: "Digital Humanities",
414        category: "emerging-interdisciplinary",
415    },
416    QappCatalogEntry {
417        id: "disability_studies",
418        title: "Disability Studies",
419        category: "emerging-interdisciplinary",
420    },
421    QappCatalogEntry {
422        id: "environmental_humanities",
423        title: "Environmental Humanities",
424        category: "emerging-interdisciplinary",
425    },
426    QappCatalogEntry {
427        id: "ethnomusicology",
428        title: "Ethnomusicology",
429        category: "emerging-interdisciplinary",
430    },
431    QappCatalogEntry {
432        id: "food_studies",
433        title: "Food Studies",
434        category: "emerging-interdisciplinary",
435    },
436    QappCatalogEntry {
437        id: "game_studies",
438        title: "Game Studies",
439        category: "emerging-interdisciplinary",
440    },
441    QappCatalogEntry {
442        id: "human_rights_studies",
443        title: "Human Rights Studies",
444        category: "emerging-interdisciplinary",
445    },
446    QappCatalogEntry {
447        id: "medical_humanities",
448        title: "Medical Humanities",
449        category: "emerging-interdisciplinary",
450    },
451    QappCatalogEntry {
452        id: "oceanic_and_pacific_island_studies",
453        title: "Oceanic And Pacific Island Studies",
454        category: "emerging-interdisciplinary",
455    },
456    QappCatalogEntry {
457        id: "postcolonial_studies",
458        title: "Postcolonial Studies",
459        category: "emerging-interdisciplinary",
460    },
461    QappCatalogEntry {
462        id: "poverty_and_inequality_studies",
463        title: "Poverty And Inequality Studies",
464        category: "emerging-interdisciplinary",
465    },
466    QappCatalogEntry {
467        id: "queer_studies",
468        title: "Queer Studies",
469        category: "emerging-interdisciplinary",
470    },
471    QappCatalogEntry {
472        id: "scandinavian_studies",
473        title: "Scandinavian Studies",
474        category: "emerging-interdisciplinary",
475    },
476    QappCatalogEntry {
477        id: "slavic_studies",
478        title: "Slavic Studies",
479        category: "emerging-interdisciplinary",
480    },
481    QappCatalogEntry {
482        id: "sound_studies",
483        title: "Sound Studies",
484        category: "emerging-interdisciplinary",
485    },
486    QappCatalogEntry {
487        id: "sustainability_studies",
488        title: "Sustainability Studies",
489        category: "emerging-interdisciplinary",
490    },
491    QappCatalogEntry {
492        id: "translation_studies",
493        title: "Translation Studies",
494        category: "emerging-interdisciplinary",
495    },
496    QappCatalogEntry {
497        id: "visual_and_critical_studies",
498        title: "Visual And Critical Studies",
499        category: "emerging-interdisciplinary",
500    },
501    QappCatalogEntry {
502        id: "astrobiology",
503        title: "Astrobiology",
504        category: "social-sciences",
505    },
506    QappCatalogEntry {
507        id: "behavioral_economics",
508        title: "Behavioral Economics",
509        category: "social-sciences",
510    },
511    QappCatalogEntry {
512        id: "biomathematics",
513        title: "Biomathematics",
514        category: "social-sciences",
515    },
516    QappCatalogEntry {
517        id: "biophysics",
518        title: "Biophysics",
519        category: "social-sciences",
520    },
521    QappCatalogEntry {
522        id: "demography_and_population_studies",
523        title: "Demography And Population Studies",
524        category: "social-sciences",
525    },
526    QappCatalogEntry {
527        id: "geophysics",
528        title: "Geophysics",
529        category: "social-sciences",
530    },
531    QappCatalogEntry {
532        id: "planetary_science",
533        title: "Planetary Science",
534        category: "social-sciences",
535    },
536    QappCatalogEntry {
537        id: "political_economy",
538        title: "Political Economy",
539        category: "social-sciences",
540    },
541    QappCatalogEntry {
542        id: "social_psychology",
543        title: "Social Psychology",
544        category: "social-sciences",
545    },
546    QappCatalogEntry {
547        id: "art_conservation",
548        title: "Art Conservation",
549        category: "pre-professional",
550    },
551    QappCatalogEntry {
552        id: "arts_management_and_administration",
553        title: "Arts Management And Administration",
554        category: "pre-professional",
555    },
556    QappCatalogEntry {
557        id: "bioethics",
558        title: "Bioethics",
559        category: "pre-professional",
560    },
561    QappCatalogEntry {
562        id: "curatorial_studies",
563        title: "Curatorial Studies",
564        category: "pre-professional",
565    },
566    QappCatalogEntry {
567        id: "leadership_studies",
568        title: "Leadership Studies",
569        category: "pre-professional",
570    },
571    QappCatalogEntry {
572        id: "legal_studies",
573        title: "Legal Studies",
574        category: "pre-professional",
575    },
576    QappCatalogEntry {
577        id: "social_work",
578        title: "Social Work",
579        category: "pre-professional",
580    },
581    QappCatalogEntry {
582        id: "ancient_near_eastern_studies",
583        title: "Ancient Near Eastern Studies",
584        category: "language-regional",
585    },
586    QappCatalogEntry {
587        id: "appalachian_studies",
588        title: "Appalachian Studies",
589        category: "language-regional",
590    },
591    QappCatalogEntry {
592        id: "arctic_studies",
593        title: "Arctic Studies",
594        category: "language-regional",
595    },
596    QappCatalogEntry {
597        id: "balkan_studies",
598        title: "Balkan Studies",
599        category: "language-regional",
600    },
601    QappCatalogEntry {
602        id: "caribbean_studies",
603        title: "Caribbean Studies",
604        category: "language-regional",
605    },
606    QappCatalogEntry {
607        id: "central_asian_studies",
608        title: "Central Asian Studies",
609        category: "language-regional",
610    },
611    QappCatalogEntry {
612        id: "egyptology",
613        title: "Egyptology",
614        category: "language-regional",
615    },
616    QappCatalogEntry {
617        id: "francophone_studies",
618        title: "Francophone Studies",
619        category: "language-regional",
620    },
621    QappCatalogEntry {
622        id: "germanic_languages_and_literatures",
623        title: "Germanic Languages And Literatures",
624        category: "language-regional",
625    },
626    QappCatalogEntry {
627        id: "hispanic_and_luso_brazilian_studies",
628        title: "Hispanic And Luso Brazilian Studies",
629        category: "language-regional",
630    },
631    QappCatalogEntry {
632        id: "philology",
633        title: "Philology",
634        category: "language-regional",
635    },
636    QappCatalogEntry {
637        id: "romance_languages_and_literatures",
638        title: "Romance Languages And Literatures",
639        category: "language-regional",
640    },
641    QappCatalogEntry {
642        id: "south_asian_studies",
643        title: "South Asian Studies",
644        category: "language-regional",
645    },
646    QappCatalogEntry {
647        id: "southeast_asian_studies",
648        title: "Southeast Asian Studies",
649        category: "language-regional",
650    },
651    QappCatalogEntry {
652        id: "animation_and_digital_arts",
653        title: "Animation And Digital Arts",
654        category: "arts-performance",
655    },
656    QappCatalogEntry {
657        id: "book_arts_and_papermaking",
658        title: "Book Arts And Papermaking",
659        category: "arts-performance",
660    },
661    QappCatalogEntry {
662        id: "ceramics",
663        title: "Ceramics",
664        category: "arts-performance",
665    },
666    QappCatalogEntry {
667        id: "cinematography",
668        title: "Cinematography",
669        category: "arts-performance",
670    },
671    QappCatalogEntry {
672        id: "dramaturgy",
673        title: "Dramaturgy",
674        category: "arts-performance",
675    },
676    QappCatalogEntry {
677        id: "musicology",
678        title: "Musicology",
679        category: "arts-performance",
680    },
681    QappCatalogEntry {
682        id: "photography",
683        title: "Photography",
684        category: "arts-performance",
685    },
686    QappCatalogEntry {
687        id: "playwriting",
688        title: "Playwriting",
689        category: "arts-performance",
690    },
691    QappCatalogEntry {
692        id: "printmaking",
693        title: "Printmaking",
694        category: "arts-performance",
695    },
696    QappCatalogEntry {
697        id: "screenwriting",
698        title: "Screenwriting",
699        category: "arts-performance",
700    },
701    QappCatalogEntry {
702        id: "sculpture",
703        title: "Sculpture",
704        category: "arts-performance",
705    },
706    QappCatalogEntry {
707        id: "applied_linguistics",
708        title: "Applied Linguistics",
709        category: "advanced-subdisciplines",
710    },
711    QappCatalogEntry {
712        id: "family_studies",
713        title: "Family Studies",
714        category: "advanced-subdisciplines",
715    },
716    QappCatalogEntry {
717        id: "gerontology",
718        title: "Gerontology",
719        category: "advanced-subdisciplines",
720    },
721    QappCatalogEntry {
722        id: "penology",
723        title: "Penology",
724        category: "advanced-subdisciplines",
725    },
726    QappCatalogEntry {
727        id: "psycholinguistics",
728        title: "Psycholinguistics",
729        category: "advanced-subdisciplines",
730    },
731    QappCatalogEntry {
732        id: "social_and_cultural_analysis",
733        title: "Social And Cultural Analysis",
734        category: "advanced-subdisciplines",
735    },
736    QappCatalogEntry {
737        id: "sociolinguistics",
738        title: "Sociolinguistics",
739        category: "advanced-subdisciplines",
740    },
741    QappCatalogEntry {
742        id: "atmospheric_science",
743        title: "Atmospheric Science",
744        category: "niche-sciences",
745    },
746    QappCatalogEntry {
747        id: "behavioral_ecology",
748        title: "Behavioral Ecology",
749        category: "niche-sciences",
750    },
751    QappCatalogEntry {
752        id: "kinesiology_and_movement_studies",
753        title: "Kinesiology And Movement Studies",
754        category: "niche-sciences",
755    },
756    QappCatalogEntry {
757        id: "marine_biology",
758        title: "Marine Biology",
759        category: "niche-sciences",
760    },
761    QappCatalogEntry {
762        id: "materials_science",
763        title: "Materials Science",
764        category: "niche-sciences",
765    },
766    QappCatalogEntry {
767        id: "meteorology",
768        title: "Meteorology",
769        category: "niche-sciences",
770    },
771    QappCatalogEntry {
772        id: "mycology",
773        title: "Mycology",
774        category: "niche-sciences",
775    },
776    QappCatalogEntry {
777        id: "paleontology",
778        title: "Paleontology",
779        category: "niche-sciences",
780    },
781    QappCatalogEntry {
782        id: "sports_studies",
783        title: "Sports Studies",
784        category: "niche-sciences",
785    },
786    QappCatalogEntry {
787        id: "aesthetics",
788        title: "Aesthetics",
789        category: "philosophy-theory",
790    },
791    QappCatalogEntry {
792        id: "epistemology",
793        title: "Epistemology",
794        category: "philosophy-theory",
795    },
796    QappCatalogEntry {
797        id: "metaphysics",
798        title: "Metaphysics",
799        category: "philosophy-theory",
800    },
801    QappCatalogEntry {
802        id: "phenomenology",
803        title: "Phenomenology",
804        category: "philosophy-theory",
805    },
806    QappCatalogEntry {
807        id: "philosophy_of_mind",
808        title: "Philosophy Of Mind",
809        category: "philosophy-theory",
810    },
811    QappCatalogEntry {
812        id: "philosophy_of_religion",
813        title: "Philosophy Of Religion",
814        category: "philosophy-theory",
815    },
816    QappCatalogEntry {
817        id: "philosophy_of_science",
818        title: "Philosophy Of Science",
819        category: "philosophy-theory",
820    },
821    QappCatalogEntry {
822        id: "social_and_political_philosophy",
823        title: "Social And Political Philosophy",
824        category: "philosophy-theory",
825    },
826    QappCatalogEntry {
827        id: "biblical_studies",
828        title: "Biblical Studies",
829        category: "religious-studies",
830    },
831    QappCatalogEntry {
832        id: "buddhist_studies",
833        title: "Buddhist Studies",
834        category: "religious-studies",
835    },
836    QappCatalogEntry {
837        id: "canon_law",
838        title: "Canon Law",
839        category: "religious-studies",
840    },
841    QappCatalogEntry {
842        id: "hindu_studies",
843        title: "Hindu Studies",
844        category: "religious-studies",
845    },
846    QappCatalogEntry {
847        id: "islamic_studies",
848        title: "Islamic Studies",
849        category: "religious-studies",
850    },
851    QappCatalogEntry {
852        id: "missiology",
853        title: "Missiology",
854        category: "religious-studies",
855    },
856    QappCatalogEntry {
857        id: "patristics",
858        title: "Patristics",
859        category: "religious-studies",
860    },
861    QappCatalogEntry {
862        id: "arthurian_studies",
863        title: "Arthurian Studies",
864        category: "literary-media",
865    },
866    QappCatalogEntry {
867        id: "comics_and_graphic_novel_studies",
868        title: "Comics And Graphic Novel Studies",
869        category: "literary-media",
870    },
871    QappCatalogEntry {
872        id: "fan_studies",
873        title: "Fan Studies",
874        category: "literary-media",
875    },
876    QappCatalogEntry {
877        id: "poetry_and_poetics",
878        title: "Poetry And Poetics",
879        category: "literary-media",
880    },
881    QappCatalogEntry {
882        id: "science_fiction_and_fantasy_studies",
883        title: "Science Fiction And Fantasy Studies",
884        category: "literary-media",
885    },
886    QappCatalogEntry {
887        id: "utopian_studies",
888        title: "Utopian Studies",
889        category: "literary-media",
890    },
891    QappCatalogEntry {
892        id: "historical_linguistics",
893        title: "Historical Linguistics",
894        category: "linguistics-semiotics",
895    },
896    QappCatalogEntry {
897        id: "morphology",
898        title: "Morphology",
899        category: "linguistics-semiotics",
900    },
901    QappCatalogEntry {
902        id: "pragmatics",
903        title: "Pragmatics",
904        category: "linguistics-semiotics",
905    },
906    QappCatalogEntry {
907        id: "semantics",
908        title: "Semantics",
909        category: "linguistics-semiotics",
910    },
911    QappCatalogEntry {
912        id: "semiotics",
913        title: "Semiotics",
914        category: "linguistics-semiotics",
915    },
916    QappCatalogEntry {
917        id: "syntax",
918        title: "Syntax",
919        category: "linguistics-semiotics",
920    },
921    QappCatalogEntry {
922        id: "disaster_studies",
923        title: "Disaster Studies",
924        category: "intersectional-applied",
925    },
926    QappCatalogEntry {
927        id: "futures_studies_and_foresight",
928        title: "Futures Studies And Foresight",
929        category: "intersectional-applied",
930    },
931    QappCatalogEntry {
932        id: "leisure_studies",
933        title: "Leisure Studies",
934        category: "intersectional-applied",
935    },
936    QappCatalogEntry {
937        id: "philanthropy_and_nonprofit_studies",
938        title: "Philanthropy And Nonprofit Studies",
939        category: "intersectional-applied",
940    },
941    QappCatalogEntry {
942        id: "architectural_history",
943        title: "Architectural History",
944        category: "historical-textual",
945    },
946    QappCatalogEntry {
947        id: "childrens_literature",
948        title: "Childrens Literature",
949        category: "historical-textual",
950    },
951    QappCatalogEntry {
952        id: "history_of_art_and_architecture",
953        title: "History Of Art And Architecture",
954        category: "historical-textual",
955    },
956    QappCatalogEntry {
957        id: "intellectual_history",
958        title: "Intellectual History",
959        category: "historical-textual",
960    },
961    QappCatalogEntry {
962        id: "maritime_history",
963        title: "Maritime History",
964        category: "historical-textual",
965    },
966    QappCatalogEntry {
967        id: "military_history",
968        title: "Military History",
969        category: "historical-textual",
970    },
971    QappCatalogEntry {
972        id: "oral_history",
973        title: "Oral History",
974        category: "historical-textual",
975    },
976    QappCatalogEntry {
977        id: "paleography",
978        title: "Paleography",
979        category: "historical-textual",
980    },
981    QappCatalogEntry {
982        id: "public_history",
983        title: "Public History",
984        category: "historical-textual",
985    },
986    QappCatalogEntry {
987        id: "textual_criticism",
988        title: "Textual Criticism",
989        category: "historical-textual",
990    },
991    QappCatalogEntry {
992        id: "animal_studies_human_animal_studies",
993        title: "Animal Studies Human Animal Studies",
994        category: "critical-cultural",
995    },
996    QappCatalogEntry {
997        id: "body_studies",
998        title: "Body Studies",
999        category: "critical-cultural",
1000    },
1001    QappCatalogEntry {
1002        id: "critical_race_and_ethnic_studies",
1003        title: "Critical Race And Ethnic Studies",
1004        category: "critical-cultural",
1005    },
1006    QappCatalogEntry {
1007        id: "critical_theory",
1008        title: "Critical Theory",
1009        category: "critical-cultural",
1010    },
1011    QappCatalogEntry {
1012        id: "deaf_studies",
1013        title: "Deaf Studies",
1014        category: "critical-cultural",
1015    },
1016    QappCatalogEntry {
1017        id: "diaspora_studies",
1018        title: "Diaspora Studies",
1019        category: "critical-cultural",
1020    },
1021    QappCatalogEntry {
1022        id: "fat_studies",
1023        title: "Fat Studies",
1024        category: "critical-cultural",
1025    },
1026    QappCatalogEntry {
1027        id: "indigenous_language_revitalization",
1028        title: "Indigenous Language Revitalization",
1029        category: "critical-cultural",
1030    },
1031    QappCatalogEntry {
1032        id: "material_culture_studies",
1033        title: "Material Culture Studies",
1034        category: "critical-cultural",
1035    },
1036    QappCatalogEntry {
1037        id: "memory_studies",
1038        title: "Memory Studies",
1039        category: "critical-cultural",
1040    },
1041    QappCatalogEntry {
1042        id: "whiteness_studies",
1043        title: "Whiteness Studies",
1044        category: "critical-cultural",
1045    },
1046    QappCatalogEntry {
1047        id: "biogeochemistry",
1048        title: "Biogeochemistry",
1049        category: "interdisciplinary-stem",
1050    },
1051    QappCatalogEntry {
1052        id: "bioinformatics",
1053        title: "Bioinformatics",
1054        category: "interdisciplinary-stem",
1055    },
1056    QappCatalogEntry {
1057        id: "chemical_physics",
1058        title: "Chemical Physics",
1059        category: "interdisciplinary-stem",
1060    },
1061    QappCatalogEntry {
1062        id: "computational_linguistics",
1063        title: "Computational Linguistics",
1064        category: "interdisciplinary-stem",
1065    },
1066    QappCatalogEntry {
1067        id: "cryptography",
1068        title: "Cryptography",
1069        category: "interdisciplinary-stem",
1070    },
1071    QappCatalogEntry {
1072        id: "environmental_chemistry",
1073        title: "Environmental Chemistry",
1074        category: "interdisciplinary-stem",
1075    },
1076    QappCatalogEntry {
1077        id: "geochemistry",
1078        title: "Geochemistry",
1079        category: "interdisciplinary-stem",
1080    },
1081    QappCatalogEntry {
1082        id: "mathematical_biology",
1083        title: "Mathematical Biology",
1084        category: "interdisciplinary-stem",
1085    },
1086    QappCatalogEntry {
1087        id: "mathematical_economics",
1088        title: "Mathematical Economics",
1089        category: "interdisciplinary-stem",
1090    },
1091    QappCatalogEntry {
1092        id: "systems_biology",
1093        title: "Systems Biology",
1094        category: "interdisciplinary-stem",
1095    },
1096    QappCatalogEntry {
1097        id: "architectural_studies",
1098        title: "Architectural Studies",
1099        category: "design-spatial",
1100    },
1101    QappCatalogEntry {
1102        id: "cyberculture_studies",
1103        title: "Cyberculture Studies",
1104        category: "design-spatial",
1105    },
1106    QappCatalogEntry {
1107        id: "environmental_design",
1108        title: "Environmental Design",
1109        category: "design-spatial",
1110    },
1111    QappCatalogEntry {
1112        id: "landscape_studies",
1113        title: "Landscape Studies",
1114        category: "design-spatial",
1115    },
1116    QappCatalogEntry {
1117        id: "media_ecology",
1118        title: "Media Ecology",
1119        category: "design-spatial",
1120    },
1121    QappCatalogEntry {
1122        id: "spatial_data_science",
1123        title: "Spatial Data Science",
1124        category: "design-spatial",
1125    },
1126    QappCatalogEntry {
1127        id: "urban_ecology",
1128        title: "Urban Ecology",
1129        category: "design-spatial",
1130    },
1131    QappCatalogEntry {
1132        id: "urban_planning_and_design",
1133        title: "Urban Planning And Design",
1134        category: "design-spatial",
1135    },
1136    QappCatalogEntry {
1137        id: "affect_theory",
1138        title: "Affect Theory",
1139        category: "critical-theory",
1140    },
1141    QappCatalogEntry {
1142        id: "biopolitics",
1143        title: "Biopolitics",
1144        category: "critical-theory",
1145    },
1146    QappCatalogEntry {
1147        id: "capital_studies",
1148        title: "Capital Studies",
1149        category: "critical-theory",
1150    },
1151    QappCatalogEntry {
1152        id: "critical_disability_studies",
1153        title: "Critical Disability Studies",
1154        category: "critical-theory",
1155    },
1156    QappCatalogEntry {
1157        id: "critical_film_studies",
1158        title: "Critical Film Studies",
1159        category: "critical-theory",
1160    },
1161    QappCatalogEntry {
1162        id: "critical_gentrification_studies",
1163        title: "Critical Gentrification Studies",
1164        category: "critical-theory",
1165    },
1166    QappCatalogEntry {
1167        id: "cultural_ecology",
1168        title: "Cultural Ecology",
1169        category: "critical-theory",
1170    },
1171    QappCatalogEntry {
1172        id: "decolonial_studies",
1173        title: "Decolonial Studies",
1174        category: "critical-theory",
1175    },
1176    QappCatalogEntry {
1177        id: "eco_critical_theory",
1178        title: "Eco Critical Theory",
1179        category: "critical-theory",
1180    },
1181    QappCatalogEntry {
1182        id: "eco_feminism",
1183        title: "Eco Feminism",
1184        category: "critical-theory",
1185    },
1186    QappCatalogEntry {
1187        id: "eco_queer_theory",
1188        title: "Eco Queer Theory",
1189        category: "critical-theory",
1190    },
1191    QappCatalogEntry {
1192        id: "environmental_justice",
1193        title: "Environmental Justice",
1194        category: "critical-theory",
1195    },
1196    QappCatalogEntry {
1197        id: "film_philosophy",
1198        title: "Film Philosophy",
1199        category: "critical-theory",
1200    },
1201    QappCatalogEntry {
1202        id: "gender_studies",
1203        title: "Gender Studies",
1204        category: "critical-theory",
1205    },
1206    QappCatalogEntry {
1207        id: "global_critical_studies",
1208        title: "Global Critical Studies",
1209        category: "critical-theory",
1210    },
1211    QappCatalogEntry {
1212        id: "grassroots_studies",
1213        title: "Grassroots Studies",
1214        category: "critical-theory",
1215    },
1216    QappCatalogEntry {
1217        id: "grief_studies",
1218        title: "Grief Studies",
1219        category: "critical-theory",
1220    },
1221    QappCatalogEntry {
1222        id: "haunted_humanities",
1223        title: "Haunted Humanities",
1224        category: "critical-theory",
1225    },
1226    QappCatalogEntry {
1227        id: "hermeneutics",
1228        title: "Hermeneutics",
1229        category: "critical-theory",
1230    },
1231    QappCatalogEntry {
1232        id: "historiography",
1233        title: "Historiography",
1234        category: "critical-theory",
1235    },
1236    QappCatalogEntry {
1237        id: "ideology_critique",
1238        title: "Ideology Critique",
1239        category: "critical-theory",
1240    },
1241    QappCatalogEntry {
1242        id: "indigenous_feminisms",
1243        title: "Indigenous Feminisms",
1244        category: "critical-theory",
1245    },
1246    QappCatalogEntry {
1247        id: "integral_studies",
1248        title: "Integral Studies",
1249        category: "critical-theory",
1250    },
1251    QappCatalogEntry {
1252        id: "intermedia_studies",
1253        title: "Intermedia Studies",
1254        category: "critical-theory",
1255    },
1256    QappCatalogEntry {
1257        id: "landscape_phenomenology",
1258        title: "Landscape Phenomenology",
1259        category: "critical-theory",
1260    },
1261    QappCatalogEntry {
1262        id: "liberation_studies",
1263        title: "Liberation Studies",
1264        category: "critical-theory",
1265    },
1266    QappCatalogEntry {
1267        id: "literature_and_law",
1268        title: "Literature And Law",
1269        category: "critical-theory",
1270    },
1271    QappCatalogEntry {
1272        id: "materialist_aesthetics",
1273        title: "Materialist Aesthetics",
1274        category: "critical-theory",
1275    },
1276    QappCatalogEntry {
1277        id: "media_theory",
1278        title: "Media Theory",
1279        category: "critical-theory",
1280    },
1281    QappCatalogEntry {
1282        id: "metamodernism",
1283        title: "Metamodernism",
1284        category: "critical-theory",
1285    },
1286    QappCatalogEntry {
1287        id: "post_critical_pedagogy",
1288        title: "Post Critical Pedagogy",
1289        category: "critical-theory",
1290    },
1291    QappCatalogEntry {
1292        id: "posthumanities",
1293        title: "Posthumanities",
1294        category: "critical-theory",
1295    },
1296    QappCatalogEntry {
1297        id: "poststructuralism",
1298        title: "Poststructuralism",
1299        category: "critical-theory",
1300    },
1301    QappCatalogEntry {
1302        id: "psychoanalysis",
1303        title: "Psychoanalysis",
1304        category: "critical-theory",
1305    },
1306    QappCatalogEntry {
1307        id: "queer_cinema_studies",
1308        title: "Queer Cinema Studies",
1309        category: "critical-theory",
1310    },
1311    QappCatalogEntry {
1312        id: "queer_theory",
1313        title: "Queer Theory",
1314        category: "critical-theory",
1315    },
1316    QappCatalogEntry {
1317        id: "race_critical_theory",
1318        title: "Race Critical Theory",
1319        category: "critical-theory",
1320    },
1321    QappCatalogEntry {
1322        id: "race_studies",
1323        title: "Race Studies",
1324        category: "critical-theory",
1325    },
1326    QappCatalogEntry {
1327        id: "race_theory",
1328        title: "Race Theory",
1329        category: "critical-theory",
1330    },
1331    QappCatalogEntry {
1332        id: "radical_media_studies",
1333        title: "Radical Media Studies",
1334        category: "critical-theory",
1335    },
1336    QappCatalogEntry {
1337        id: "regionalism",
1338        title: "Regionalism",
1339        category: "critical-theory",
1340    },
1341    QappCatalogEntry {
1342        id: "revisionist_critical_theory",
1343        title: "Revisionist Critical Theory",
1344        category: "critical-theory",
1345    },
1346    QappCatalogEntry {
1347        id: "rural_studies",
1348        title: "Rural Studies",
1349        category: "critical-theory",
1350    },
1351    QappCatalogEntry {
1352        id: "screen_philosophy",
1353        title: "Screen Philosophy",
1354        category: "critical-theory",
1355    },
1356    QappCatalogEntry {
1357        id: "site_specificity_theory",
1358        title: "Site Specificity Theory",
1359        category: "critical-theory",
1360    },
1361    QappCatalogEntry {
1362        id: "social_activism",
1363        title: "Social Activism",
1364        category: "critical-theory",
1365    },
1366    QappCatalogEntry {
1367        id: "soft_skills_theory",
1368        title: "Soft Skills Theory",
1369        category: "critical-theory",
1370    },
1371    QappCatalogEntry {
1372        id: "spinoza_studies",
1373        title: "Spinoza Studies",
1374        category: "critical-theory",
1375    },
1376    QappCatalogEntry {
1377        id: "structuralism",
1378        title: "Structuralism",
1379        category: "critical-theory",
1380    },
1381    QappCatalogEntry {
1382        id: "trauma_studies",
1383        title: "Trauma Studies",
1384        category: "critical-theory",
1385    },
1386    QappCatalogEntry {
1387        id: "urban_theory",
1388        title: "Urban Theory",
1389        category: "critical-theory",
1390    },
1391    QappCatalogEntry {
1392        id: "visual_studies",
1393        title: "Visual Studies",
1394        category: "critical-theory",
1395    },
1396    QappCatalogEntry {
1397        id: "vital_materialism",
1398        title: "Vital Materialism",
1399        category: "critical-theory",
1400    },
1401    QappCatalogEntry {
1402        id: "white_studies",
1403        title: "White Studies",
1404        category: "critical-theory",
1405    },
1406];
1407
1408/// Unique category slugs present in the catalogue (sorted).
1409pub fn catalogue_categories() -> Vec<&'static str> {
1410    let mut cats: Vec<&str> = STUDIO_QAPP_CATALOG.iter().map(|e| e.category).collect();
1411    cats.sort_unstable();
1412    cats.dedup();
1413    cats
1414}
1415
1416/// Human label for a category slug.
1417pub fn category_label(slug: &str) -> String {
1418    match slug {
1419        "social-sciences" => "Social Sciences".into(),
1420        "humanities" => "Humanities".into(),
1421        "natural-sciences" => "Natural Sciences".into(),
1422        "formal-sciences" => "Formal Sciences".into(),
1423        "area-studies" => "Area Studies".into(),
1424        "applied-liberal-arts" => "Applied Liberal Arts".into(),
1425        "emerging-interdisciplinary" => "Emerging Interdisciplinary".into(),
1426        "specialized-sciences" => "Specialized Sciences".into(),
1427        "pre-professional" => "Pre-Professional".into(),
1428        "language-regional" => "Language & Regional".into(),
1429        "arts-performance" => "Arts & Performance".into(),
1430        "advanced-subdisciplines" => "Advanced Sub-disciplines".into(),
1431        "niche-sciences" => "Niche Sciences".into(),
1432        "philosophy-theory" => "Philosophy & Theory".into(),
1433        "religious-studies" => "Religious Studies".into(),
1434        "literary-media" => "Literary & Media".into(),
1435        "linguistics-semiotics" => "Linguistics & Semiotics".into(),
1436        "intersectional-applied" => "Intersectional & Applied".into(),
1437        "historical-textual" => "Historical & Textual".into(),
1438        "critical-cultural" => "Critical & Cultural".into(),
1439        "interdisciplinary-stem" => "Interdisciplinary STEM".into(),
1440        "design-spatial" => "Design & Spatial".into(),
1441        "critical-theory" => "Critical Theory".into(),
1442        "platform" => "Platform".into(),
1443        "website" => "Websites".into(),
1444        other => other.replace('-', " "),
1445    }
1446}
1447
1448fn primary_subject_for_uri(uri: &str) -> u64 {
1449    // FNV-1a 64 then mask to 60 bits — matches hypermedia join keys without full ingest.
1450    const FNV_OFFSET: u64 = 0xcbf2_9ce4_8422_2325;
1451    const FNV_PRIME: u64 = 0x100_0000_01b3;
1452    let mut h = FNV_OFFSET;
1453    for b in uri.as_bytes() {
1454        h ^= u64::from(*b);
1455        h = h.wrapping_mul(FNV_PRIME);
1456    }
1457    h & 0x0FFF_FFFF_FFFF_FFFF
1458}
1459
1460/// Build a Software-section library entry for one catalogue row.
1461pub fn catalog_entry_to_library(entry: QappCatalogEntry, now: u64) -> LibraryEntry {
1462    let uri = entry.asset_uri();
1463    let mut le = LibraryEntry {
1464        asset_uri: uri.clone(),
1465        primary_subject: primary_subject_for_uri(&uri),
1466        media_type: QAPP_MEDIA_TYPE.into(),
1467        quins: Vec::new(),
1468        topics: vec![
1469            "qapp".into(),
1470            "academic".into(),
1471            entry.category.into(),
1472            entry.id.replace('_', "-"),
1473        ],
1474        projects: vec![format!("category:{}", entry.category)],
1475        purposes: vec!["qapp".into(), "software".into(), "academic".into()],
1476        place: None,
1477        occurred_at: None,
1478        lat: None,
1479        lon: None,
1480        flags: Vec::new(),
1481        ingested_unix: now,
1482        excerpt: format!(
1483            "{} — studio QApp ({}). Early liberal-arts pane; catalogued for Software browse.",
1484            entry.title,
1485            category_label(entry.category)
1486        ),
1487        sensitivity: "public".into(),
1488        section: LibrarySection::Software.as_str().into(),
1489        commons_visibility: CommonsVisibility::None,
1490        cml_signals: Vec::new(),
1491        cml_concept_count: 0,
1492        cml_n3: String::new(),
1493        cof_html: String::new(),
1494        cof_segment_count: 0,
1495        cof_segment_index: 0,
1496        cof_profile: String::new(),
1497    };
1498    le.recompute_section();
1499    le
1500}
1501
1502/// Result of seeding the studio QApp catalogue into the hypermedia store.
1503#[derive(Debug, Clone, Serialize, Deserialize)]
1504pub struct QappSeedReport {
1505    pub total_catalog: usize,
1506    pub added: usize,
1507    pub updated: usize,
1508    pub categories: usize,
1509}
1510
1511/// Idempotently seed all studio QApps into the Library **Software** section.
1512/// Existing `qapp://studio/*` entries are refreshed (category/topics) so re-seed stays consistent.
1513/// Non-qapp library entries are left untouched. Single load + single save (not N round-trips).
1514pub fn seed_studio_qapps_into_library(store: &HypermediaStore) -> std::io::Result<QappSeedReport> {
1515    let now = std::time::SystemTime::now()
1516        .duration_since(std::time::UNIX_EPOCH)
1517        .map(|d| d.as_secs())
1518        .unwrap_or(0);
1519    let mut entries = store.load()?;
1520    let mut by_uri: std::collections::HashMap<String, usize> = entries
1521        .iter()
1522        .enumerate()
1523        .map(|(i, e)| (e.asset_uri.clone(), i))
1524        .collect();
1525    let mut added = 0usize;
1526    let mut updated = 0usize;
1527    for row in STUDIO_QAPP_CATALOG {
1528        let uri = row.asset_uri();
1529        let mut entry = catalog_entry_to_library(*row, now);
1530        if let Some(&idx) = by_uri.get(&uri) {
1531            entry.ingested_unix = entries[idx].ingested_unix;
1532            entries[idx] = entry;
1533            updated += 1;
1534        } else {
1535            by_uri.insert(uri, entries.len());
1536            entries.push(entry);
1537            added += 1;
1538        }
1539    }
1540    store.replace_all(&entries)?;
1541    Ok(QappSeedReport {
1542        total_catalog: STUDIO_QAPP_CATALOG.len(),
1543        added,
1544        updated,
1545        categories: catalogue_categories().len(),
1546    })
1547}
1548
1549#[cfg(test)]
1550mod tests {
1551    use super::*;
1552
1553    #[test]
1554    fn catalog_is_nonempty_and_categorised() {
1555        assert!(STUDIO_QAPP_CATALOG.len() >= 200);
1556        assert!(catalogue_categories().len() >= 10);
1557        for e in STUDIO_QAPP_CATALOG {
1558            assert!(!e.id.is_empty());
1559            assert!(!e.category.is_empty());
1560            assert!(!e.asset_uri().is_empty());
1561        }
1562    }
1563
1564    #[test]
1565    fn seed_is_idempotent_and_software_section() {
1566        let dir = tempfile::tempdir().unwrap();
1567        let store = HypermediaStore::open(dir.path()).unwrap();
1568        let r1 = seed_studio_qapps_into_library(&store).unwrap();
1569        assert_eq!(r1.added, STUDIO_QAPP_CATALOG.len());
1570        assert_eq!(r1.updated, 0);
1571        let soft = store.by_section(LibrarySection::Software).unwrap();
1572        assert_eq!(soft.len(), STUDIO_QAPP_CATALOG.len());
1573        assert!(soft.iter().all(|e| e.media_type == QAPP_MEDIA_TYPE));
1574        let r2 = seed_studio_qapps_into_library(&store).unwrap();
1575        assert_eq!(r2.added, 0);
1576        assert_eq!(r2.updated, STUDIO_QAPP_CATALOG.len());
1577        assert_eq!(
1578            store.by_section(LibrarySection::Software).unwrap().len(),
1579            STUDIO_QAPP_CATALOG.len()
1580        );
1581    }
1582}