diff --git a/openalex_ude_hr_sample.csv b/openalex_ude_hr_sample.csv new file mode 100644 index 00000000..807b8407 --- /dev/null +++ b/openalex_ude_hr_sample.csv @@ -0,0 +1,1360 @@ +openalex_author_id,openalex_source_id,display_name,orcid,works_count,cited_by_count,institution_scope,matching_institution,company_count,roles,statuses,common_name_warning,warning_de +A5040796987,https://openalex.org/A5040796987,Ahmet Karkar,https://orcid.org/0000-0003-3338-5202,3,30,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5119657791,https://openalex.org/A5119657791,Aleksandar Milosevic,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5114121778,https://openalex.org/A5114121778,Alexander Eitner,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5038673553,https://openalex.org/A5038673553,Alexander Hoppe,https://orcid.org/0000-0001-6710-788X,29,142,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5048333515,https://openalex.org/A5048333515,Alexander Porsch,,4,27,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5086212982,https://openalex.org/A5086212982,Alexander Possberg,https://orcid.org/0000-0002-9149-1938,11,33,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5042180141,https://openalex.org/A5042180141,Alexander Weitz,,7,234,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015160914,https://openalex.org/A5015160914,Alexandra Beckmann,,1,87,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5006118048,https://openalex.org/A5006118048,Alexandra Heinrich,,4,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5102559736,https://openalex.org/A5102559736,Alina Becker,,1,5,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5095550948,https://openalex.org/A5095550948,Andrea Budde,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5041659654,https://openalex.org/A5041659654,Andrea Kiesewetter,https://orcid.org/0000-0002-7805-9294,1,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5094255071,https://openalex.org/A5094255071,Andrea van Wasen,,1,13,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5082709720,https://openalex.org/A5082709720,Andreas Clément,,9,0,child_of_ude,Institut für Energie- und Umwelttechnik,1,Prokurist:1,removed:1,no, +A5123856046,https://openalex.org/A5123856046,Andreas Metzger,,2,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5124394183,https://openalex.org/A5124394183,Andreas Metzger,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5102482202,https://openalex.org/A5102482202,Andreas Mueller,,2,78,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5111642526,https://openalex.org/A5111642526,Andreas Mueller,,2,17,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5055408774,https://openalex.org/A5055408774,Andreas Ranft,https://orcid.org/0000-0003-4424-7569,151,3148,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121527342,https://openalex.org/A5121527342,Andreas Ranft,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040303703,https://openalex.org/A5040303703,Andreas Scharff,,22,435,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045510897,https://openalex.org/A5045510897,Andreas Smolka,,1,24,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,removed:1,no, +A5000133541,https://openalex.org/A5000133541,Andreas Tacke,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050109106,https://openalex.org/A5050109106,Andreas Unterberger,https://orcid.org/0000-0002-5216-1514,22,279,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Prokurist:2,currently registered:1,no, +A5070284444,https://openalex.org/A5070284444,Andreas Wohlleben,,1,52,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5043288842,https://openalex.org/A5043288842,Andrey Krekhov,https://orcid.org/0000-0003-0637-6263,33,335,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5045504111,https://openalex.org/A5045504111,Anette Reinders,,1,52,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5024125758,https://openalex.org/A5024125758,Angelika Pietsch,,17,1452,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5128214934,https://openalex.org/A5128214934,Anh Duc Vu,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5052830111,https://openalex.org/A5052830111,Anita Winter,,48,550,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5021812220,https://openalex.org/A5021812220,Anja Stecker,,1,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078754334,https://openalex.org/A5078754334,Anja Stein,https://orcid.org/0000-0002-0497-4609,125,1780,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5000474957,https://openalex.org/A5000474957,Anke Kramer,,2,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5029441982,https://openalex.org/A5029441982,Anna Michel,https://orcid.org/0000-0003-1420-5878,40,1684,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5111354878,https://openalex.org/A5111354878,Anna Volz,https://orcid.org/0000-0003-0444-1893,30,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023261750,https://openalex.org/A5023261750,Anna Zeller,,1,27,direct_ude,University of Duisburg-Essen,1,Inhaber:2,currently registered:1,no, +A5106082671,https://openalex.org/A5106082671,Anne Pfeiffer,,1,29,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5110587738,https://openalex.org/A5110587738,Annette Förster,,50,76,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5076856973,https://openalex.org/A5076856973,Annika Becker,https://orcid.org/0000-0003-2374-6502,4,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5055641653,https://openalex.org/A5055641653,Annika Lenkeit,https://orcid.org/0000-0002-9698-4723,13,95,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5113291297,https://openalex.org/A5113291297,Anto Filipovic,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078752887,https://openalex.org/A5078752887,Arne Sönnichsen,https://orcid.org/0000-0002-4921-3758,13,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5103427814,https://openalex.org/A5103427814,Barbara Vogt,,1,3,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5123684310,https://openalex.org/A5123684310,Bastian Wegner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5003893010,https://openalex.org/A5003893010,Beate Römer,,3,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5007119880,https://openalex.org/A5007119880,Benedikt Frank,https://orcid.org/0000-0001-8837-9489,123,1863,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020852620,https://openalex.org/A5020852620,Benjamin Kersten,,2,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5048760511,https://openalex.org/A5048760511,Benjamin Scheller,,3,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5128122987,https://openalex.org/A5128122987,Bernd Ringel,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5040027495,https://openalex.org/A5040027495,Bernd Schultze,,26,107,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5047506887,https://openalex.org/A5047506887,Bettina Binder,,3,101,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5099050002,https://openalex.org/A5099050002,Bianca Nowak,https://orcid.org/0000-0001-5858-6735,6,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5008086801,https://openalex.org/A5008086801,Bianca Reitberger,,1,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5042450540,https://openalex.org/A5042450540,Birgit Kremer,,7,9,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5058122544,https://openalex.org/A5058122544,Birgit Maranca-Hüwel,,1,7,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5094640509,https://openalex.org/A5094640509,Brigitte Mai,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5062262517,https://openalex.org/A5062262517,Brunhilde Krüger,,4,77,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5090497666,https://openalex.org/A5090497666,Bruno Albrecht,,13,309,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5109563230,https://openalex.org/A5109563230,Bruno Schramm,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040325392,https://openalex.org/A5040325392,Carina Büttner,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5117488673,https://openalex.org/A5117488673,Carl Barthel,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5038023543,https://openalex.org/A5038023543,Carsten Hohendorf,,3,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5079004093,https://openalex.org/A5079004093,Carsten Seeger,,2,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5077645687,https://openalex.org/A5077645687,Cemal Öztürk,https://orcid.org/0000-0003-3607-1356,52,340,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5127327286,https://openalex.org/A5127327286,Cemal Öztürk,,5,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5061307187,https://openalex.org/A5061307187,Charlotte Rudolph,https://orcid.org/0000-0001-9060-8850,18,141,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,removed:1,no, +A5049180230,https://openalex.org/A5049180230,Christian Fehring,,2,112,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5087346407,https://openalex.org/A5087346407,Christian Heid,https://orcid.org/0000-0003-3344-6909,16,402,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020001154,https://openalex.org/A5020001154,Christian Högel,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009387190,https://openalex.org/A5009387190,Christian Jenne,,4,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5119533775,https://openalex.org/A5119533775,Christian Mütze,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5084543947,https://openalex.org/A5084543947,Christian Stienen,,20,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121031569,https://openalex.org/A5121031569,Christian Taube,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5017500482,https://openalex.org/A5017500482,Christian Wiethoff,,7,105,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5012023718,https://openalex.org/A5012023718,Christiane Jürgens,,5,7,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5080114872,https://openalex.org/A5080114872,Christiane Lübke,,31,288,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058580008,https://openalex.org/A5058580008,Christine Heil,https://orcid.org/0009-0000-5232-6924,7,2,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5122756265,https://openalex.org/A5122756265,Christof Schulz,,3,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5113697261,https://openalex.org/A5113697261,Christoph Hassel,,5,138,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5012658572,https://openalex.org/A5012658572,Christoph Katzer,,3,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056018215,https://openalex.org/A5056018215,Christoph Warnecke,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071643310,https://openalex.org/A5071643310,Christoph Wotzlaw,,23,1531,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5029514013,https://openalex.org/A5029514013,Christoph Wölper,,1126,4801,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5047171248,https://openalex.org/A5047171248,Christopher Eckert,,14,152,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5091701081,https://openalex.org/A5091701081,Christopher Kruse,https://orcid.org/0000-0001-8490-8363,9,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056320023,https://openalex.org/A5056320023,Christopher Schroeder,https://orcid.org/0000-0002-9283-3012,105,2301,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5108151622,https://openalex.org/A5108151622,Christopher Schroeder,,3,226,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5126942232,https://openalex.org/A5126942232,Claudia Graser,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5046218941,https://openalex.org/A5046218941,Claudia Lenzen,,4,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062074938,https://openalex.org/A5062074938,Claudia Padberg,https://orcid.org/0000-0002-2475-1525,6,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043039034,https://openalex.org/A5043039034,Claudia Pieper,https://orcid.org/0000-0001-5986-9788,35,371,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5017886365,https://openalex.org/A5017886365,Claudia Veltkamp,,2,33,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5068914203,https://openalex.org/A5068914203,Claudia Veltkamp,,25,2419,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5085149735,https://openalex.org/A5085149735,Daniel Brandenburger,,8,35,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058208716,https://openalex.org/A5058208716,Daniel Kilimann,,3,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050883082,https://openalex.org/A5050883082,Daniel Sacher,,21,222,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043673838,https://openalex.org/A5043673838,Daniel Sager,,4,154,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5065290634,https://openalex.org/A5065290634,Daniela Freyer,,2,66,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5101998061,https://openalex.org/A5101998061,David Schuster,https://orcid.org/0000-0003-4868-7107,82,212,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5016239306,https://openalex.org/A5016239306,Dennis Dreyer,,1,92,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5024576582,https://openalex.org/A5024576582,Diana Lindner,https://orcid.org/0000-0001-5477-769X,117,4555,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113506669,https://openalex.org/A5113506669,Dieter Hoffmeister,,1,27,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5057831135,https://openalex.org/A5057831135,Dietmar Knop,,17,563,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5069955866,https://openalex.org/A5069955866,Dietmar Lohmann,https://orcid.org/0000-0002-2624-9889,313,11546,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5045510904,https://openalex.org/A5045510904,Dirk Straub,,3,3,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5070772777,https://openalex.org/A5070772777,Dominic Winter,https://orcid.org/0000-0001-6788-6641,105,3612,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5008449217,https://openalex.org/A5008449217,Dominik Raab,https://orcid.org/0000-0003-4514-1053,25,38,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020803751,https://openalex.org/A5020803751,Dominik Reiner,https://orcid.org/0000-0002-9255-3686,4,67,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5107653304,https://openalex.org/A5107653304,Doris Brandt,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5101478947,https://openalex.org/A5101478947,Ekaterina Morozova,https://orcid.org/0009-0001-1024-512X,35,193,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,removed:1,no, +A5114144035,https://openalex.org/A5114144035,Elisabeth Funk,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5026676335,https://openalex.org/A5026676335,Enno Lohmann,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5038704518,https://openalex.org/A5038704518,Erik Lange,,3,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5045815179,https://openalex.org/A5045815179,Erwin Amann,https://orcid.org/0000-0001-6396-2061,79,464,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5117255976,https://openalex.org/A5117255976,Erwin Amann,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5117255984,https://openalex.org/A5117255984,Erwin Amann,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005872032,https://openalex.org/A5005872032,Eva Koch,,4,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050141868,https://openalex.org/A5050141868,Eva Overfeld,,1,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5039035463,https://openalex.org/A5039035463,Eva Ziegler,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5000766657,https://openalex.org/A5000766657,Fabian Hübner,,2,5,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,removed:1,no, +A5004725011,https://openalex.org/A5004725011,Fabian Lutz,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5000166770,https://openalex.org/A5000166770,Fawad Sheikh,https://orcid.org/0000-0003-4112-5988,66,577,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062848747,https://openalex.org/A5062848747,Felix Meurer,,5,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5101894409,https://openalex.org/A5101894409,Feng Zheng,https://orcid.org/0000-0002-9031-5043,83,837,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045333748,https://openalex.org/A5045333748,Florian Blum,https://orcid.org/0000-0002-2307-2387,16,151,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089485313,https://openalex.org/A5089485313,Florian Stehling,https://orcid.org/0000-0002-2417-2048,157,2194,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5037918949,https://openalex.org/A5037918949,Frank Bonin,,8,1213,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5059162112,https://openalex.org/A5059162112,Frank Kensy,,33,1425,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5041417063,https://openalex.org/A5041417063,Frank Liepold,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5073457797,https://openalex.org/A5073457797,Frank Saßmannshausen,,1,11,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5090814925,https://openalex.org/A5090814925,Frank Schreier,,6,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5011988694,https://openalex.org/A5011988694,Frank Stock,,3,177,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5085471055,https://openalex.org/A5085471055,Franz-Josef Schumacher,,12,162,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5104724077,https://openalex.org/A5104724077,Frederik Hamm,https://orcid.org/0009-0002-2482-9916,7,56,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112848045,https://openalex.org/A5112848045,Friederike Schmidt,,84,877,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5077223798,https://openalex.org/A5077223798,Friedrich Waag,,22,1043,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5004249555,https://openalex.org/A5004249555,Gabriel Gomez,https://orcid.org/0000-0003-1917-8768,33,260,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040165911,https://openalex.org/A5040165911,Gabriele Gauß,,15,116,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5027843014,https://openalex.org/A5027843014,Gaby Herrmann,,14,213,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5070896019,https://openalex.org/A5070896019,Georg Hennecke,,2,12,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:2,currently registered:1,no, +A5105675784,https://openalex.org/A5105675784,Gerhard Bösch,https://orcid.org/0000-0002-7629-985X,421,3209,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5002241289,https://openalex.org/A5002241289,Gerhard Rapp,,4,10,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5060415016,https://openalex.org/A5060415016,Günther Hilger,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5076616002,https://openalex.org/A5076616002,Halil-Ibrahim Karadag,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5111945828,https://openalex.org/A5111945828,Hans Dieter Sitz,,2,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017865330,https://openalex.org/A5017865330,Hans Rupp,,33,277,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036866194,https://openalex.org/A5036866194,Hans-Christian Schnack,,2,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5090778840,https://openalex.org/A5090778840,Hans-Jörg Köhler,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081070872,https://openalex.org/A5081070872,Harald Sanders,,3,28,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5030236051,https://openalex.org/A5030236051,Harpreet Kaur,https://orcid.org/0009-0006-3209-0890,164,1545,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5087755476,https://openalex.org/A5087755476,Hauke Springer,https://orcid.org/0000-0002-4288-6431,161,6647,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5080797073,https://openalex.org/A5080797073,Heidi Meyer,,7,5,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:2,currently registered:1,no, +A5080795837,https://openalex.org/A5080795837,Heike Hesse,https://orcid.org/0000-0002-8398-2518,26,143,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5076442919,https://openalex.org/A5076442919,Heike Heuer,https://orcid.org/0000-0001-7094-6959,186,5774,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5064670118,https://openalex.org/A5064670118,Heinz Kaminski,,88,2400,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5067868124,https://openalex.org/A5067868124,Helmut Breier,,2,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5109552942,https://openalex.org/A5109552942,Hendrik Schäfer,,5,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5020103124,https://openalex.org/A5020103124,Henrik Hanke,,7,9,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118899748,https://openalex.org/A5118899748,Henrik Schneider,https://orcid.org/0009-0002-5072-5758,389,68,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5061706562,https://openalex.org/A5061706562,Herbert Marschall,,10,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093728336,https://openalex.org/A5093728336,Horst Tonn,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5047671213,https://openalex.org/A5047671213,Hubertus von Stein,,2,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017272004,https://openalex.org/A5017272004,Ina Schumann,,1,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5088398932,https://openalex.org/A5088398932,Irmgard Winkels,,4,16,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5061578974,https://openalex.org/A5061578974,Isabelle Kraft,,3,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071231662,https://openalex.org/A5071231662,Israa Al-Qaysi,,4,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066538226,https://openalex.org/A5066538226,Ivan Radev,https://orcid.org/0000-0002-3895-6871,60,799,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5128575435,https://openalex.org/A5128575435,Ivan Radev,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5128676335,https://openalex.org/A5128676335,Ivan Radev,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5068780119,https://openalex.org/A5068780119,Ivana Radulovic,https://orcid.org/0000-0003-4949-6011,3,30,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5057279620,https://openalex.org/A5057279620,Jacqueline Hassel,,6,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5004726913,https://openalex.org/A5004726913,Jan Gehrmann,,1,30,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5110748857,https://openalex.org/A5110748857,Jan Martini,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5114492513,https://openalex.org/A5114492513,Jan Siefert,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5118574914,https://openalex.org/A5118574914,Jan Siefert,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5108666196,https://openalex.org/A5108666196,Janine Biermann,,37,536,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5008876995,https://openalex.org/A5008876995,Jelka Müller,,1,55,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036054187,https://openalex.org/A5036054187,Jennifer Klatt,,13,299,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5072503343,https://openalex.org/A5072503343,Jennifer Schäfer,,6,51,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005916878,https://openalex.org/A5005916878,Jens Leber,https://orcid.org/0009-0004-3369-9310,8,7,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,removed:1,no, +A5070743643,https://openalex.org/A5070743643,Jens Leister,,1,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5019237165,https://openalex.org/A5019237165,Jens Voskuhl,https://orcid.org/0000-0002-9612-2306,191,2824,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5039380118,https://openalex.org/A5039380118,Jessica Wagner,,34,1379,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5065950441,https://openalex.org/A5065950441,Joachim Felix,,2,64,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093010306,https://openalex.org/A5093010306,Jochen Laub,,1,2,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Geschäftsführer:2; Liquidator:1,currently registered:1,no, +A5052002212,https://openalex.org/A5052002212,Jochen Schiemann,,8,123,child_of_ude,Institut für Energie- und Umwelttechnik,1,Liquidator:1,removed:1,no, +A5039240740,https://openalex.org/A5039240740,Jochen Welker,,1,6,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5070209669,https://openalex.org/A5070209669,Johanna Christina Czeschik,https://orcid.org/0000-0002-9254-0084,29,1692,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5048923333,https://openalex.org/A5048923333,Johannes Fuß,https://orcid.org/0000-0003-0445-5021,143,3507,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5120144706,https://openalex.org/A5120144706,Johannes Fuß,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5129542229,https://openalex.org/A5129542229,Johannes Fuß,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112955990,https://openalex.org/A5112955990,Johannes Kubacki,,1,4,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5092455758,https://openalex.org/A5092455758,Johannes Morzeck,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5032636758,https://openalex.org/A5032636758,Johannes Tiemer,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062591501,https://openalex.org/A5062591501,Jonas Dorlöchter,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5049096789,https://openalex.org/A5049096789,Jonas Schäfer,,4,75,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013982747,https://openalex.org/A5013982747,Julia Kotte,,3,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5104300770,https://openalex.org/A5104300770,Julia Specht,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5037354453,https://openalex.org/A5037354453,Julia Wiedmann,,4,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5010618332,https://openalex.org/A5010618332,Julian Börner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5048272221,https://openalex.org/A5048272221,Julian Friedrich,https://orcid.org/0000-0003-1364-4596,17,222,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5071196344,https://openalex.org/A5071196344,Julian Klein,https://orcid.org/0000-0003-2349-6953,14,555,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5049967267,https://openalex.org/A5049967267,Juliane Hauschild,,2,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030302430,https://openalex.org/A5030302430,Jutta Langer,,1,26,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5038720735,https://openalex.org/A5038720735,Jörg Uhlemann,https://orcid.org/0000-0001-9542-7055,57,420,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5056682397,https://openalex.org/A5056682397,Jörg Wissler,https://orcid.org/0000-0002-2099-2444,15,59,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5024741328,https://openalex.org/A5024741328,Jürgen Turek,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071760917,https://openalex.org/A5071760917,Karin Kress,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5013765314,https://openalex.org/A5013765314,Katharina Nebel,,25,690,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5050045690,https://openalex.org/A5050045690,Kathrin Bischof,,2,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5073438747,https://openalex.org/A5073438747,Katrin Moses,,7,914,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027732212,https://openalex.org/A5027732212,Kerstin Heise,,11,428,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5016450244,https://openalex.org/A5016450244,Kerstin Linke,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5020366724,https://openalex.org/A5020366724,Kerstin Schiffer,,2,2,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5016337319,https://openalex.org/A5016337319,Kira Schmidt,https://orcid.org/0000-0002-2308-509X,20,144,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5036108521,https://openalex.org/A5036108521,Konrad Mueller,,14,493,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071311431,https://openalex.org/A5071311431,Kurt Retter,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5013704112,https://openalex.org/A5013704112,Lars Großmann,,15,549,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093724216,https://openalex.org/A5093724216,Lars Mohren,,2,6,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5094240143,https://openalex.org/A5094240143,Lars Mohren,https://orcid.org/0009-0002-8990-7487,3,32,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5060428160,https://openalex.org/A5060428160,Lars Pape,https://orcid.org/0000-0002-3635-6418,396,8930,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5114129179,https://openalex.org/A5114129179,Lars Pape,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5014404906,https://openalex.org/A5014404906,Laura Beutel,,4,4,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5065808255,https://openalex.org/A5065808255,Lena Zimmer,,1,26,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066702983,https://openalex.org/A5066702983,Leoni Bussmann,,3,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121364042,https://openalex.org/A5121364042,Li Song,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056185884,https://openalex.org/A5056185884,Lina Philipp,,1,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009329425,https://openalex.org/A5009329425,Linda Sauter,,3,653,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5108670181,https://openalex.org/A5108670181,Lisa Kroll,,2,200,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5024649380,https://openalex.org/A5024649380,Lisa Richter,,14,124,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5103009677,https://openalex.org/A5103009677,Lisa Walter,https://orcid.org/0000-0003-3453-1304,11,169,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118565942,https://openalex.org/A5118565942,Lisa Walter,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064923908,https://openalex.org/A5064923908,Lisa Zimmer,https://orcid.org/0000-0002-3680-3521,376,20577,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5126334393,https://openalex.org/A5126334393,Lisa Zimmer,,17,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066213830,https://openalex.org/A5066213830,Lothar Wefers,,3,20,child_of_ude,Deutsches Textilforschungszentrum Nord-West,1,Geschäftsführer:1,currently registered:1,no, +A5093091778,https://openalex.org/A5093091778,Lucas Schulz,,2,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5098906756,https://openalex.org/A5098906756,Lukas Höptner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064434141,https://openalex.org/A5064434141,Maic Masuch,https://orcid.org/0000-0002-7965-6269,135,2233,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5126271856,https://openalex.org/A5126271856,Maic Masuch,,5,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5114071897,https://openalex.org/A5114071897,Maik Arnold,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078750152,https://openalex.org/A5078750152,Maik Dreyer,https://orcid.org/0000-0001-8158-3946,17,241,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5036867308,https://openalex.org/A5036867308,Maike Reinders,,3,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5053746965,https://openalex.org/A5053746965,Maike Uhlig,,1,35,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5057673751,https://openalex.org/A5057673751,Mandy Sander,https://orcid.org/0000-0003-3335-6217,15,195,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113171169,https://openalex.org/A5113171169,Manfred Jensen,,49,1236,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5068530955,https://openalex.org/A5068530955,Manja Jonas,,8,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5047587792,https://openalex.org/A5047587792,Marc Bosse,,5,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5054058904,https://openalex.org/A5054058904,Marc Hitzke,,2,49,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113907885,https://openalex.org/A5113907885,Marcel Rohde,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5005068080,https://openalex.org/A5005068080,Marcel Wöllbrink,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5019879976,https://openalex.org/A5019879976,Marcin Krawczyk,https://orcid.org/0000-0002-0113-0777,574,7435,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5049534528,https://openalex.org/A5049534528,Marco Russ,,5,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5007170803,https://openalex.org/A5007170803,Marcus Handte,https://orcid.org/0000-0003-4054-1306,107,843,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5079117291,https://openalex.org/A5079117291,Maren Schulze,https://orcid.org/0000-0002-4577-6473,58,1306,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033725849,https://openalex.org/A5033725849,Marion Gallus,,4,88,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5079458733,https://openalex.org/A5079458733,Marion Lindner,https://orcid.org/0000-0002-4689-8659,28,274,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5024781039,https://openalex.org/A5024781039,Marius Reinders,,2,113,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:2,currently registered:1,no, +A5110087827,https://openalex.org/A5110087827,Mark Bormann,,1,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058616263,https://openalex.org/A5058616263,Markus Feurstein,,72,1273,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5073381146,https://openalex.org/A5073381146,Markus Großweischede,,9,10,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5008210663,https://openalex.org/A5008210663,Markus Kuepper,,7,75,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5001509958,https://openalex.org/A5001509958,Marten Clausen,,35,492,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5049699371,https://openalex.org/A5049699371,Martin Braunersreuther,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5001167896,https://openalex.org/A5001167896,Martin Glas,https://orcid.org/0000-0003-3167-3403,450,6081,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5013459956,https://openalex.org/A5013459956,Martin Goeke,https://orcid.org/0000-0003-1026-8716,21,55,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5057981860,https://openalex.org/A5057981860,Martin Heisler,,8,133,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078670601,https://openalex.org/A5078670601,Martin Kowalski,,5,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5050989539,https://openalex.org/A5050989539,Martin Mackowiak,,2,120,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5110936047,https://openalex.org/A5110936047,Martin Pelzer,,2,53,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5074197647,https://openalex.org/A5074197647,Martin Rosenkranz,,5,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5100167482,https://openalex.org/A5100167482,Martin Schlosser,,1,0,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Prokurist:1,currently registered:1,no, +A5106679393,https://openalex.org/A5106679393,Martina Velten,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5067906488,https://openalex.org/A5067906488,Matthias Czerwonka,,3,16,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078302132,https://openalex.org/A5078302132,Matthias Stüwe,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5006138482,https://openalex.org/A5006138482,Max Frei,https://orcid.org/0000-0001-8992-7205,17,207,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5055234849,https://openalex.org/A5055234849,Maximilian Petri,https://orcid.org/0000-0002-1424-2815,27,1510,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081973623,https://openalex.org/A5081973623,Mehmet Sanlialp,https://orcid.org/0000-0003-1159-1427,16,754,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5104045857,https://openalex.org/A5104045857,Melanie Baumann,,21,286,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5087645890,https://openalex.org/A5087645890,Melanie Kaufmann,,1,5,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5062241567,https://openalex.org/A5062241567,Michael Beißwenger,https://orcid.org/0000-0001-9442-5402,101,807,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5105097515,https://openalex.org/A5105097515,Michael Beißwenger,,7,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5080063285,https://openalex.org/A5080063285,Michael Ehrmann,https://orcid.org/0000-0002-1927-260X,354,20372,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5108960748,https://openalex.org/A5108960748,Michael Ehrmann,,3,1,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5034866368,https://openalex.org/A5034866368,Michael Eisinger,,16,252,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5057021245,https://openalex.org/A5057021245,Michael Lorke,https://orcid.org/0000-0002-9716-855X,121,2558,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5128167886,https://openalex.org/A5128167886,Michael Lorke,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5006409004,https://openalex.org/A5006409004,Michael Michalski,,2,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015834718,https://openalex.org/A5015834718,Michael Neurath,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013942006,https://openalex.org/A5013942006,Michael Noweski,https://orcid.org/0000-0002-7113-9320,29,58,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5011767928,https://openalex.org/A5011767928,Michael Pingen,,4,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015241303,https://openalex.org/A5015241303,Michael Siebers,https://orcid.org/0000-0003-1891-3572,54,463,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5120585934,https://openalex.org/A5120585934,Michael Siebers,https://orcid.org/0000-0002-1400-2176,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5041200016,https://openalex.org/A5041200016,Michael Wagenknecht,,5,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5054232482,https://openalex.org/A5054232482,Michael Wohlgemuth,,4,101,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5088820865,https://openalex.org/A5088820865,Michelle Kulbatzki,,1,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064463286,https://openalex.org/A5064463286,Ming Sun,https://orcid.org/0000-0002-6416-312X,87,1147,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5047402970,https://openalex.org/A5047402970,Mirco Kaponig,,2,66,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5107202957,https://openalex.org/A5107202957,Miriam Schilling,,4,1,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5115559958,https://openalex.org/A5115559958,Mohamed Hassoun,,2,5,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5090678919,https://openalex.org/A5090678919,Mohammed Youssef,,1,16,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034793612,https://openalex.org/A5034793612,Monika Hardt,,7,61,direct_ude,University of Duisburg-Essen,1,Inhaber:2,removed:1,no, +A5044829228,https://openalex.org/A5044829228,Monika Rogge,,7,81,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5069356501,https://openalex.org/A5069356501,Muhammad Asif,https://orcid.org/0000-0002-6944-5214,6,60,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5037609071,https://openalex.org/A5037609071,Nadine Coym,,1,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5103228465,https://openalex.org/A5103228465,Nadine Schroeder,https://orcid.org/0000-0003-0909-9572,2,25,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5110970122,https://openalex.org/A5110970122,Nadine Schroeder,,4,47,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5053960816,https://openalex.org/A5053960816,Natalie Wolff,,8,106,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005921146,https://openalex.org/A5005921146,Nico Koch,,3,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5127359118,https://openalex.org/A5127359118,Nico Schreiber,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5126212355,https://openalex.org/A5126212355,Nico Schwarz,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5079749161,https://openalex.org/A5079749161,Nicole Hülsmann,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015620831,https://openalex.org/A5015620831,Nicole Lewandowski,,16,930,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5013799951,https://openalex.org/A5013799951,Nikolai Fischer,,1,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5112613860,https://openalex.org/A5112613860,Nils Dieckmann,,5,18,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5068650603,https://openalex.org/A5068650603,Nils Hartmann,https://orcid.org/0000-0001-6804-514X,93,1333,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5048433515,https://openalex.org/A5048433515,Nina Winkler,,2,32,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062473614,https://openalex.org/A5062473614,Nora Meyer,,2,4,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017423020,https://openalex.org/A5017423020,Norbert Fröhler,,40,50,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5012071823,https://openalex.org/A5012071823,Norbert Runge,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009985094,https://openalex.org/A5009985094,Norbert Schwab,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5014326133,https://openalex.org/A5014326133,Olaf Wiesner,,71,2681,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5108364487,https://openalex.org/A5108364487,Oliver Woll,,1,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5107158979,https://openalex.org/A5107158979,Onur Keskin,,1,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5017974502,https://openalex.org/A5017974502,Patrick Clasen,https://orcid.org/0000-0002-5804-2057,3,9,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5102793926,https://openalex.org/A5102793926,Patrick Urban,https://orcid.org/0000-0003-1051-5086,2,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5039495249,https://openalex.org/A5039495249,Paul Mauer,,11,5,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5036166423,https://openalex.org/A5036166423,Peter Czerner,,6,121,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062834348,https://openalex.org/A5062834348,Peter Englisch,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5061591858,https://openalex.org/A5061591858,Peter Faupel,,8,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050784184,https://openalex.org/A5050784184,Peter Hüsken,,4,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034367329,https://openalex.org/A5034367329,Peter Sutter,,2,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5016091481,https://openalex.org/A5016091481,Petra Mersmann,,8,727,child_of_ude,Deutsches Textilforschungszentrum Nord-West,1,Geschäftsführer:1,currently registered:1,no, +A5083616686,https://openalex.org/A5083616686,Petra Wyrowski,,1,55,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5108471127,https://openalex.org/A5108471127,Philip Vogel,,10,120,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5127716714,https://openalex.org/A5127716714,Philipp Jansen,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5101606624,https://openalex.org/A5101606624,Ping Zhou,https://orcid.org/0000-0003-3837-8458,338,7011,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5123782002,https://openalex.org/A5123782002,Ping Zhou,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089821209,https://openalex.org/A5089821209,Ralf Flassenberg,,1,24,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007200360,https://openalex.org/A5007200360,Ralf Maibaum,,1,372,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Prokurist:2,currently registered:1,no, +A5028172633,https://openalex.org/A5028172633,Ralf Reißmann,,5,12,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5112890667,https://openalex.org/A5112890667,Regina König,,3,2,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5053507266,https://openalex.org/A5053507266,Regina Schleicher,,18,1,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5029651565,https://openalex.org/A5029651565,Robert Marks,https://orcid.org/0000-0002-8196-8114,15,203,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5109458583,https://openalex.org/A5109458583,Robert Potthoff,,5,118,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5025407978,https://openalex.org/A5025407978,Robin Sprenger,,11,4,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5065126328,https://openalex.org/A5065126328,Roland Broll,https://orcid.org/0000-0002-9223-8141,3,47,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5011282396,https://openalex.org/A5011282396,Rolf Moeller,,3,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064030128,https://openalex.org/A5064030128,Sabine Erkens,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5060940363,https://openalex.org/A5060940363,Sabine Schramm,,27,864,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5102793521,https://openalex.org/A5102793521,Sarah Hofmann,,7,24,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5101692938,https://openalex.org/A5101692938,Sarah Schmid,https://orcid.org/0000-0002-2392-7234,27,632,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,currently registered:1,no, +A5012945966,https://openalex.org/A5012945966,Sarah Tillmann,,2,52,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5018830497,https://openalex.org/A5018830497,Sascha Lang,https://orcid.org/0000-0001-6850-0464,7,126,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5103336903,https://openalex.org/A5103336903,Sascha Lang,,1,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062425859,https://openalex.org/A5062425859,Sascha Nolte,,1,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5039669109,https://openalex.org/A5039669109,Saskia Schmidt,https://orcid.org/0000-0001-8043-7912,4,29,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5030054874,https://openalex.org/A5030054874,Sebastian Bartling,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050737096,https://openalex.org/A5050737096,Sebastian Bartling,,3,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5035946845,https://openalex.org/A5035946845,Sebastian Blume,https://orcid.org/0000-0001-6504-0343,28,217,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5029172573,https://openalex.org/A5029172573,Sebastian Hofmeister,,3,19,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5112675659,https://openalex.org/A5112675659,Sebastian Hofmeister,,5,119,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5013243118,https://openalex.org/A5013243118,Sebastian Jeschke,,39,155,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5054728144,https://openalex.org/A5054728144,Sebastian Krull,,6,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5090567165,https://openalex.org/A5090567165,Sebastian Putz,,2,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5010475697,https://openalex.org/A5010475697,Sebastian Tewes,,7,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5053166425,https://openalex.org/A5053166425,Sebastian Tewes,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033560201,https://openalex.org/A5033560201,Siegfried Frey,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5020497154,https://openalex.org/A5020497154,Siegfried Jahnke,https://orcid.org/0000-0002-4086-2567,120,3004,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5112745971,https://openalex.org/A5112745971,Silke Dittmer,,9,205,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5094406658,https://openalex.org/A5094406658,Simon Heide,,1,0,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5058898852,https://openalex.org/A5058898852,Simon Thies,https://orcid.org/0000-0002-7041-145X,6,63,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5022438334,https://openalex.org/A5022438334,Solveig Hofmann,,4,61,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5063699777,https://openalex.org/A5063699777,Songül Özdemir,,1,13,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5110829775,https://openalex.org/A5110829775,Sonja Krebs,,1,3,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5080839320,https://openalex.org/A5080839320,Sonja Schmittmann,https://orcid.org/0000-0003-3886-3453,6,29,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007861447,https://openalex.org/A5007861447,Stefan Kasper,https://orcid.org/0000-0002-5947-8733,294,13092,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5069191084,https://openalex.org/A5069191084,Stefan Kirschner,,3,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5051936861,https://openalex.org/A5051936861,Stefan Löbbecke,,46,524,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062839956,https://openalex.org/A5062839956,Stefan Schmiedel,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5026810932,https://openalex.org/A5026810932,Stefan Sell,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045604426,https://openalex.org/A5045604426,Stefan Zillmann,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5057341721,https://openalex.org/A5057341721,Stefan Zöllner,,43,1274,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056027753,https://openalex.org/A5056027753,Stefanie Beckmann,,2,134,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:2,currently registered:1,no, +A5091298186,https://openalex.org/A5091298186,Stefanie Köhler,https://orcid.org/0000-0002-7176-1240,5,73,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5112814108,https://openalex.org/A5112814108,Steffen Bender,,12,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5016825386,https://openalex.org/A5016825386,Stephan Brauckmann,,6,124,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5051908628,https://openalex.org/A5051908628,Stephan Durst,,3,309,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033015229,https://openalex.org/A5033015229,Stephan Schweig,https://orcid.org/0000-0001-9869-2479,19,58,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5053376953,https://openalex.org/A5053376953,Stephan Tiedemann,,2,263,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5069502596,https://openalex.org/A5069502596,Susanne Fiedler,,8,432,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034766781,https://openalex.org/A5034766781,Susanne Gäde,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5059835114,https://openalex.org/A5059835114,Susanne Löhr,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5091297759,https://openalex.org/A5091297759,Sven Sachse,https://orcid.org/0009-0006-7742-4743,4,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089516451,https://openalex.org/A5089516451,Swen Hesse,https://orcid.org/0000-0002-2055-2764,274,5314,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5061378179,https://openalex.org/A5061378179,Sylvia Hartmann,https://orcid.org/0000-0003-3424-1091,262,9391,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5101314779,https://openalex.org/A5101314779,Sören Köhler,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118718256,https://openalex.org/A5118718256,Tanja Ulrich,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5106922500,https://openalex.org/A5106922500,Thomas Beckers,,8,358,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5115787598,https://openalex.org/A5115787598,Thomas Homm,,1,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023405815,https://openalex.org/A5023405815,Thomas Johanndeiter,,2,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5030597886,https://openalex.org/A5030597886,Thomas Rampp,,119,1687,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5124530922,https://openalex.org/A5124530922,Thomas Rampp,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5084945725,https://openalex.org/A5084945725,Thomas Retzmann,,45,147,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081741992,https://openalex.org/A5081741992,Thomas Sawitowski,,31,1263,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5009457064,https://openalex.org/A5009457064,Thomas Scholten,,2,31,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5015351093,https://openalex.org/A5015351093,Thomas Schweer,,2,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5060560919,https://openalex.org/A5060560919,Thomas Schweer,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027775756,https://openalex.org/A5027775756,Thomas Spitzley,,47,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5022478353,https://openalex.org/A5022478353,Thomas Theiselmann,,1,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030354170,https://openalex.org/A5030354170,Thorsten Brenner,https://orcid.org/0000-0002-4570-877X,351,8344,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5125191411,https://openalex.org/A5125191411,Thorsten Brenner,,6,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5126942268,https://openalex.org/A5126942268,Thorsten Brenner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5087080432,https://openalex.org/A5087080432,Tim Brand,https://orcid.org/0000-0002-3375-3178,21,206,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5083757409,https://openalex.org/A5083757409,Timo Bartel,,3,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112755428,https://openalex.org/A5112755428,Timo Bartel,,22,129,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043034757,https://openalex.org/A5043034757,Tobias Hagemeier,,2,22,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5102457222,https://openalex.org/A5102457222,Tobias Kollmann,,45,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5021881029,https://openalex.org/A5021881029,Torsten Binder,https://orcid.org/0000-0001-6578-8992,7,77,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013171104,https://openalex.org/A5013171104,Torsten Endres,https://orcid.org/0000-0001-8100-3921,55,433,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5123411133,https://openalex.org/A5123411133,Torsten Endres,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5111443707,https://openalex.org/A5111443707,Torsten Heine,,3,126,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015797087,https://openalex.org/A5015797087,Ulrich Dierkes,https://orcid.org/0000-0002-6938-6912,72,834,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036657126,https://openalex.org/A5036657126,Ulrich Kilian,,4,1,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5095550945,https://openalex.org/A5095550945,Ulrike Berger,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5074941150,https://openalex.org/A5074941150,Ute Pascher,,10,18,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5095550961,https://openalex.org/A5095550961,Ute Reusch,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5036671939,https://openalex.org/A5036671939,Uwe Knierim,,2,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5000119283,https://openalex.org/A5000119283,Uwe Pflaum,,1,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5052599699,https://openalex.org/A5052599699,Verena Beck,,15,1013,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027154134,https://openalex.org/A5027154134,Werner Gaulke,,22,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071766547,https://openalex.org/A5071766547,Wilfried Eberhardt,https://orcid.org/0000-0003-4284-3586,496,38376,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5019228221,https://openalex.org/A5019228221,Wilhelm Koop,,14,88,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5095335388,https://openalex.org/A5095335388,Willi Eßer,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5063395947,https://openalex.org/A5063395947,Wojciech Kowalczyk,https://orcid.org/0000-0002-7390-2836,87,718,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5097337259,https://openalex.org/A5097337259,Wolfgang Kleem,,2,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5062554171,https://openalex.org/A5062554171,Xiaoxiao Zhou,,104,1760,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007716502,https://openalex.org/A5007716502,Xiaxiao Zhou,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5055394334,https://openalex.org/A5055394334,Yan Qi,,3,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5065806273,https://openalex.org/A5065806273,Yan Qi,https://orcid.org/0009-0007-4565-7232,19,63,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023904510,https://openalex.org/A5023904510,Yingying Wang,https://orcid.org/0000-0002-9437-8447,4,29,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5101477617,https://openalex.org/A5101477617,Yuqing Wu,https://orcid.org/0009-0002-7623-5677,34,1185,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030044886,https://openalex.org/A5030044886,Alexander Berges,,1,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5028232392,https://openalex.org/A5028232392,Alexander Bäuerle,,15,27,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5083878535,https://openalex.org/A5083878535,Alexander Bäuerle,https://orcid.org/0000-0003-1488-8592,138,2805,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124212331,https://openalex.org/A5124212331,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125542871,https://openalex.org/A5125542871,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125724201,https://openalex.org/A5125724201,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126543706,https://openalex.org/A5126543706,Alexander Bäuerle,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126964584,https://openalex.org/A5126964584,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5120154138,https://openalex.org/A5120154138,Alexander Kuß,https://orcid.org/0000-0002-9304-8403,1,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5074256634,https://openalex.org/A5074256634,Alexander Neuhaus,https://orcid.org/0000-0003-0477-3281,26,621,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5102914099,https://openalex.org/A5102914099,Alexander Neuhaus,https://orcid.org/0009-0001-6844-1924,4,34,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5124241431,https://openalex.org/A5124241431,Alexander Neuhaus,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5036432950,https://openalex.org/A5036432950,Alexandra Frey,https://orcid.org/0000-0001-5502-581X,50,293,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5012900736,https://openalex.org/A5012900736,Amir Ahmadi,https://orcid.org/0000-0002-5747-7112,103,3534,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5023371876,https://openalex.org/A5023371876,Andreas Jaekel,,7,109,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Liquidator:1,removed:2,no, +A5038964333,https://openalex.org/A5038964333,André Heuer,,16,96,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5056731063,https://openalex.org/A5056731063,André Niemann,https://orcid.org/0009-0001-6428-9427,37,193,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5061572098,https://openalex.org/A5061572098,Angelika Eßer,,16,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Liquidator:2,currently registered:1; removed:1,no, +A5040988642,https://openalex.org/A5040988642,Anja Mayer,,3,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5072170197,https://openalex.org/A5072170197,Anna Caspari,,4,27,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5113404409,https://openalex.org/A5113404409,Anna Knorr,https://orcid.org/0009-0004-6377-4529,5,8,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5039446944,https://openalex.org/A5039446944,Annette Kaiser,https://orcid.org/0000-0001-7873-3958,58,1211,direct_ude,University of Duisburg-Essen,2,Inhaber:2; Prokurist:1,currently registered:2,no, +A5085521861,https://openalex.org/A5085521861,Arne Grundmann,,1,2,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,removed:2,no, +A5103103785,https://openalex.org/A5103103785,Barbara König,https://orcid.org/0000-0002-4193-2889,229,2070,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5122594045,https://openalex.org/A5122594045,Barbara König,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5086434486,https://openalex.org/A5086434486,Beate Lux,,10,510,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5117522592,https://openalex.org/A5117522592,Benedikt Roth,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5051561955,https://openalex.org/A5051561955,Benedikt Sommer,,4,85,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:2,no, +A5047053024,https://openalex.org/A5047053024,Benjamin Hildebrandt,https://orcid.org/0000-0002-0011-3801,3,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5022511826,https://openalex.org/A5022511826,Bernhard Neuhaus,,5,294,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5037766479,https://openalex.org/A5037766479,Bernhard Schütz,https://orcid.org/0000-0002-9449-5088,53,562,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5004181272,https://openalex.org/A5004181272,Birgit Meier,,2,30,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5100614119,https://openalex.org/A5100614119,Bo Yu,https://orcid.org/0000-0002-0910-2228,13,380,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5091592150,https://openalex.org/A5091592150,Britta Ervens,https://orcid.org/0000-0001-9534-9616,1,2,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5035407848,https://openalex.org/A5035407848,Burkhard Stüve,,11,124,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5109274767,https://openalex.org/A5109274767,Carmen Nickel,,24,1871,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:2,no, +A5113286606,https://openalex.org/A5113286606,Carsten Schroeder,,6,22,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047582798,https://openalex.org/A5047582798,Chris Schönherr,,1,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Liquidator:1,currently registered:1; removed:1,no, +A5058870391,https://openalex.org/A5058870391,Christian Schweiger,,2,456,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5113313442,https://openalex.org/A5113313442,Christian Temme,,1,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5065413632,https://openalex.org/A5065413632,Christina Alt,,9,1836,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:2,no, +A5031278214,https://openalex.org/A5031278214,Christine Kube,,19,106,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:2,no, +A5076386821,https://openalex.org/A5076386821,Christoph Leonhardt,,24,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5100905519,https://openalex.org/A5100905519,Christoph Mueller,,5,7,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5113921527,https://openalex.org/A5113921527,Christoph Mueller,,2,92,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5074697803,https://openalex.org/A5074697803,Christoph Oster,https://orcid.org/0000-0002-0683-0430,62,224,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5096227567,https://openalex.org/A5096227567,Christoph Oster,,1,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5111926807,https://openalex.org/A5111926807,Claudia Voigt,,13,269,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5104165371,https://openalex.org/A5104165371,Dana Hofmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5087006281,https://openalex.org/A5087006281,Daniel Preuß,,3,14,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5057327561,https://openalex.org/A5057327561,Daniel Reimann,https://orcid.org/0000-0002-9083-4396,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5058315719,https://openalex.org/A5058315719,Dennis Michels,https://orcid.org/0000-0002-7530-9104,23,78,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5113426808,https://openalex.org/A5113426808,Dennis Nagel,https://orcid.org/0009-0004-2911-9301,6,16,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5003692129,https://openalex.org/A5003692129,Diana Klein,https://orcid.org/0000-0002-1770-443X,137,3054,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5061726728,https://openalex.org/A5061726728,Dieter Loos,,5,18,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047514819,https://openalex.org/A5047514819,Dirk Blasius,,5,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:2,no, +A5027161261,https://openalex.org/A5027161261,Dobromir Dobrev,https://orcid.org/0000-0002-4612-117X,640,61209,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126402560,https://openalex.org/A5126402560,Dobromir Dobrev,,3,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5127444535,https://openalex.org/A5127444535,Dobromir Dobrev,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130073673,https://openalex.org/A5130073673,Dobromir Dobrev,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5016661814,https://openalex.org/A5016661814,Dominik Esser,,16,754,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5116347062,https://openalex.org/A5116347062,Dorothee Nitsch,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5009897292,https://openalex.org/A5009897292,Elisabeth Maurer,,2,33,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5061252774,https://openalex.org/A5061252774,Elke Wessel,,7,185,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5011988398,https://openalex.org/A5011988398,Fatih Özcan,https://orcid.org/0000-0002-2584-7000,43,269,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5086528994,https://openalex.org/A5086528994,Fatih Özcan,https://orcid.org/0000-0002-3922-7902,51,500,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5123512479,https://openalex.org/A5123512479,Fatih Özcan,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5125278989,https://openalex.org/A5125278989,Fatih Özcan,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5065356264,https://openalex.org/A5065356264,Felix Bergmann,https://orcid.org/0000-0002-1224-9036,369,5442,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5103117681,https://openalex.org/A5103117681,Felix Bergmann,https://orcid.org/0009-0005-5621-6972,52,521,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5121086538,https://openalex.org/A5121086538,Felix Bergmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5024294120,https://openalex.org/A5024294120,Felix Kraus,,2,18,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5111920811,https://openalex.org/A5111920811,Felix Wiegand,,33,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5111023305,https://openalex.org/A5111023305,Ferdinand Beckmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5060063811,https://openalex.org/A5060063811,Florian Buchner,https://orcid.org/0000-0001-9440-1566,25,602,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5071929694,https://openalex.org/A5071929694,Frank Heidtmann,,3,16,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:2,currently registered:1; removed:1,no, +A5058553419,https://openalex.org/A5058553419,Franz-Josef Glandorf,,5,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5081067232,https://openalex.org/A5081067232,Georg von Oepen,,2,0,child_of_ude,Rhein-Ruhr Institut für Sozialforschung und Politikberatung,2,Prokurist:5,currently registered:1; removed:1,no, +A5087443584,https://openalex.org/A5087443584,Gerhard Lackner,,10,266,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5074872047,https://openalex.org/A5074872047,Hans Josef Dohmen,https://orcid.org/0000-0003-0828-2324,102,1346,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5071612550,https://openalex.org/A5071612550,Hansjobst Hirschfelder,,2,1,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5055774787,https://openalex.org/A5055774787,Heike Averbeck,,4,104,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5080287017,https://openalex.org/A5080287017,Heike Mauer,https://orcid.org/0000-0002-5597-2283,122,120,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5087252344,https://openalex.org/A5087252344,Heike Siegert,,2,14,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5116888667,https://openalex.org/A5116888667,Heinrich Stork,,1,2,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5034936069,https://openalex.org/A5034936069,Hendrik Kramer,,12,124,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5059829997,https://openalex.org/A5059829997,Herbert Sanders,,4,36,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5009182476,https://openalex.org/A5009182476,Hermann Nienhaus,https://orcid.org/0000-0002-6549-6188,143,2979,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5087499823,https://openalex.org/A5087499823,Holger Hilmer,,4,15,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5017579702,https://openalex.org/A5017579702,Holger Hirsch,,104,368,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5106329054,https://openalex.org/A5106329054,Hülya Yildirim,,2,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5116866984,https://openalex.org/A5116866984,Hülya Yildirim,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5083388613,https://openalex.org/A5083388613,Jakob Penner,,12,41,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5017110462,https://openalex.org/A5017110462,Jan Berends,https://orcid.org/0000-0003-4224-5455,3,58,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:1; removed:1,no, +A5044443427,https://openalex.org/A5044443427,Jens Hämmerling,,6,20,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5005124395,https://openalex.org/A5005124395,Johannes Köster,https://orcid.org/0000-0001-9818-9320,137,11545,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5022044556,https://openalex.org/A5022044556,Johannes Köster,,12,611,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5120888419,https://openalex.org/A5120888419,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5121626672,https://openalex.org/A5121626672,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5122765175,https://openalex.org/A5122765175,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123007760,https://openalex.org/A5123007760,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123186606,https://openalex.org/A5123186606,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123260579,https://openalex.org/A5123260579,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123387479,https://openalex.org/A5123387479,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123477225,https://openalex.org/A5123477225,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124078048,https://openalex.org/A5124078048,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124781563,https://openalex.org/A5124781563,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125090843,https://openalex.org/A5125090843,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125141745,https://openalex.org/A5125141745,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125388610,https://openalex.org/A5125388610,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126295394,https://openalex.org/A5126295394,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126796725,https://openalex.org/A5126796725,Johannes Köster,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5128643085,https://openalex.org/A5128643085,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5129873775,https://openalex.org/A5129873775,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130620706,https://openalex.org/A5130620706,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130740025,https://openalex.org/A5130740025,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5089418966,https://openalex.org/A5089418966,Johannes Wiebe,,3,15,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5103436086,https://openalex.org/A5103436086,Jonathan Herrmann,,2,220,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5054049165,https://openalex.org/A5054049165,Judith Schröder,https://orcid.org/0000-0002-9916-8334,7,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5111911281,https://openalex.org/A5111911281,Judith Wagner,,58,401,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5068324427,https://openalex.org/A5068324427,Jutta Walter,,2,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5017014003,https://openalex.org/A5017014003,Jörg Niemeyer,,5,14,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2,no, +A5093067464,https://openalex.org/A5093067464,Kai Schröer,,7,23,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5103019792,https://openalex.org/A5103019792,Khanh Do,https://orcid.org/0000-0001-7834-3781,87,1267,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5050451281,https://openalex.org/A5050451281,Kristina Kirsch,,1,49,direct_ude,University of Duisburg-Essen,2,Prokurist:4,currently registered:2,no, +A5053330077,https://openalex.org/A5053330077,Lars Breuer,https://orcid.org/0000-0002-7797-9662,61,416,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5123426135,https://openalex.org/A5123426135,Lars Breuer,,3,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047592898,https://openalex.org/A5047592898,Liane John,,3,75,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5006651872,https://openalex.org/A5006651872,Ludmilla Schumacher,,14,182,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:1; removed:1,no, +A5104440681,https://openalex.org/A5104440681,Manfred Baer,,17,480,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5017950910,https://openalex.org/A5017950910,Manfred Mai,,117,398,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5056975067,https://openalex.org/A5056975067,Marc Eulerich,https://orcid.org/0000-0002-9965-7584,275,2429,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5113933991,https://openalex.org/A5113933991,Marc Eulerich,,5,92,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5123580203,https://openalex.org/A5123580203,Marc Eulerich,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5128493173,https://openalex.org/A5128493173,Marc Eulerich,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5010126702,https://openalex.org/A5010126702,Marcus Urbani,,2,32,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:2,currently registered:2,no, +A5111666539,https://openalex.org/A5111666539,Margit Schröder,,2,56,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5112074473,https://openalex.org/A5112074473,Maria Schröder,,14,312,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5091405189,https://openalex.org/A5091405189,Marina Braun,,2,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5019356146,https://openalex.org/A5019356146,Markus Deckert,,6,63,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5112653053,https://openalex.org/A5112653053,Markus Taube,https://orcid.org/0000-0003-1202-2023,100,1353,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5032578309,https://openalex.org/A5032578309,Martin Hermes,,2,47,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,removed:2,no, +A5044199100,https://openalex.org/A5044199100,Martin Mittendorff,https://orcid.org/0000-0003-3998-2518,120,2075,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5110287782,https://openalex.org/A5110287782,Martin Panitz,,1,40,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5047010496,https://openalex.org/A5047010496,Matthias Jeschke,https://orcid.org/0000-0001-5110-2080,13,130,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5123364852,https://openalex.org/A5123364852,Matthias Jeschke,,1,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5047692972,https://openalex.org/A5047692972,Matthias Matthes,,1,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5053309957,https://openalex.org/A5053309957,Melanie Hirt,https://orcid.org/0000-0003-2085-6124,1,17,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5051242665,https://openalex.org/A5051242665,Michael Klocke,,2,3,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5081701545,https://openalex.org/A5081701545,Michael Leineweber,,2,135,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5071583742,https://openalex.org/A5071583742,Michael Ruwe,,1,29,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5110739861,https://openalex.org/A5110739861,Michael Westermann,,2,71,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5026680251,https://openalex.org/A5026680251,Michaela Wirtz,,20,382,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5121300831,https://openalex.org/A5121300831,Michaela Wirtz,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5012499865,https://openalex.org/A5012499865,Muhammad Aslam,https://orcid.org/0000-0002-8529-4217,120,1455,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5083269491,https://openalex.org/A5083269491,Nico Hahn,https://orcid.org/0000-0003-0554-0076,12,22,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5029227325,https://openalex.org/A5029227325,Nicole Unger,https://orcid.org/0000-0002-5161-8711,114,1781,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5049371415,https://openalex.org/A5049371415,Nina Bauer,https://orcid.org/0009-0003-6137-1585,33,529,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5011621994,https://openalex.org/A5011621994,Nina Schulze,,36,1034,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5058184980,https://openalex.org/A5058184980,Nina Völkel,,3,22,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Inhaber:1,currently registered:2,no, +A5082158679,https://openalex.org/A5082158679,Olga Just,,1,26,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5077536077,https://openalex.org/A5077536077,Oliver Ehret,,11,201,child_of_ude,The Hydrogen and Fuel Cell Center,2,Geschäftsführer:2,currently registered:2,no, +A5035410961,https://openalex.org/A5035410961,Oliver Kamp,https://orcid.org/0000-0001-7593-4471,38,762,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5010051651,https://openalex.org/A5010051651,Pascal Krahmer,,1,17,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,removed:2,no, +A5101791113,https://openalex.org/A5101791113,Patrick May,https://orcid.org/0000-0003-1311-6267,4,81,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5025829015,https://openalex.org/A5025829015,Patrick Thiel,https://orcid.org/0000-0001-5838-4658,6,9,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,removed:2,no, +A5089882657,https://openalex.org/A5089882657,Paul Graf,,4,25,direct_ude,University of Duisburg-Essen,2,Prokurist:3,currently registered:2,no, +A5020390680,https://openalex.org/A5020390680,Peter Pfänder,,3,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5094782607,https://openalex.org/A5094782607,Peter Schroth,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Inhaber:1,currently registered:2,no, +A5082288318,https://openalex.org/A5082288318,Peter Waldmann,,3,17,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:1; Vorstand:1,currently registered:2,no, +A5050553334,https://openalex.org/A5050553334,Philipp Jahn,https://orcid.org/0000-0003-2062-1421,4,51,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,removed:2,no, +A5100405791,https://openalex.org/A5100405791,Ping Zhang,https://orcid.org/0000-0002-0647-0375,31,67,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5046113011,https://openalex.org/A5046113011,Renate Petersen,,15,37,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5020998418,https://openalex.org/A5020998418,Robert Haensel,,1,24,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5047093707,https://openalex.org/A5047093707,Robert Schaefer,https://orcid.org/0000-0002-1669-2086,223,4378,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5038123873,https://openalex.org/A5038123873,Roland Schwarzer,https://orcid.org/0000-0002-7497-5180,59,736,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5001845440,https://openalex.org/A5001845440,Rouven Malecki,,1,9,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5019419369,https://openalex.org/A5019419369,Rudi Schäfer,https://orcid.org/0000-0002-8987-7313,63,962,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5070249489,https://openalex.org/A5070249489,Sascha Maassen,https://orcid.org/0000-0002-1022-0563,11,106,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5064200928,https://openalex.org/A5064200928,Sebastian Eck,https://orcid.org/0000-0002-1931-1023,4,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5128723742,https://openalex.org/A5128723742,Sebastian Eck,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5034621075,https://openalex.org/A5034621075,Sebastian Just,,7,165,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5083681670,https://openalex.org/A5083681670,Sebastian Urban,,4,64,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5021113981,https://openalex.org/A5021113981,Sebastian Willen,,8,143,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,removed:2,no, +A5107669141,https://openalex.org/A5107669141,Sebastian Willen,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,removed:2,no, +A5076891196,https://openalex.org/A5076891196,Silvia Ernst,,4,59,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5108495045,https://openalex.org/A5108495045,Simone Schmid,,1,5,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Prokurist:1,currently registered:1; removed:1,no, +A5077785097,https://openalex.org/A5077785097,Stefan Eßer,https://orcid.org/0000-0002-3625-9650,234,5993,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:1; removed:1,no, +A5084459124,https://openalex.org/A5084459124,Stefan Felder,https://orcid.org/0000-0002-5029-7274,241,3781,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5024987770,https://openalex.org/A5024987770,Stefan Konermann,,2,44,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Prokurist:1,currently registered:2,no, +A5061640496,https://openalex.org/A5061640496,Stefan Westermann,https://orcid.org/0000-0001-6921-9113,88,4333,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5006353407,https://openalex.org/A5006353407,Stefanie Hanke,https://orcid.org/0000-0002-9952-1919,87,1215,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5054932604,https://openalex.org/A5054932604,Steffen Köcher,,6,137,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5089406272,https://openalex.org/A5089406272,Stephan Faust,,4,111,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5060126568,https://openalex.org/A5060126568,Stephan Grimm,,2,6,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5003700004,https://openalex.org/A5003700004,Sven Brandau,https://orcid.org/0000-0002-2702-4163,288,14467,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5125629313,https://openalex.org/A5125629313,Sven Brandau,,1,0,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5128284510,https://openalex.org/A5128284510,Sven Brandau,,1,0,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5002483227,https://openalex.org/A5002483227,Sven Frost,,13,143,direct_ude,University of Duisburg-Essen,2,Inhaber:2,currently registered:2,no, +A5040840923,https://openalex.org/A5040840923,Sven Manske,https://orcid.org/0000-0002-5098-1682,53,332,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5094303760,https://openalex.org/A5094303760,Thomas Droll,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5026909134,https://openalex.org/A5026909134,Thomas Lodzinski,,1,4,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5009253164,https://openalex.org/A5009253164,Thomas Mühlmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5012875198,https://openalex.org/A5012875198,Thorsten Schultze,,10,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5078030262,https://openalex.org/A5078030262,Thorsten Schultze,https://orcid.org/0009-0007-3690-8714,64,398,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5069586127,https://openalex.org/A5069586127,Tobias Altmann,https://orcid.org/0000-0001-7294-7808,71,373,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5130207347,https://openalex.org/A5130207347,Tobias Hackel,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5034475438,https://openalex.org/A5034475438,Tobias Hesse,,15,82,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5027780655,https://openalex.org/A5027780655,Tobias Rasche,,3,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5012619076,https://openalex.org/A5012619076,Torsten Ulmer,,4,5,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5079685335,https://openalex.org/A5079685335,Ulrich Görtz,https://orcid.org/0000-0001-5584-0558,86,1096,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5055349387,https://openalex.org/A5055349387,Ulrich Schroeder,,6,106,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5091133675,https://openalex.org/A5091133675,Ulrike Behrens,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5039550945,https://openalex.org/A5039550945,Umut Kaya,,6,20,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5038671684,https://openalex.org/A5038671684,Ursula Renner,,4,1,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5053345209,https://openalex.org/A5053345209,Ursula Renner,,2,1,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5059841395,https://openalex.org/A5059841395,Valerie Lemke,,8,19,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5062324759,https://openalex.org/A5062324759,Verena Schröder,,7,61,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5094421324,https://openalex.org/A5094421324,Volker Schanz,,1,0,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:1; removed:1,no, +A5101821492,https://openalex.org/A5101821492,Wei Cheng,https://orcid.org/0000-0003-4369-6530,27,100,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4; Liquidator:1,removed:2,no, +A5055278591,https://openalex.org/A5055278591,Wiebke Hansen,https://orcid.org/0000-0002-6020-0886,137,4810,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5053083092,https://openalex.org/A5053083092,Wolfgang Burghardt,,59,845,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5026378357,https://openalex.org/A5026378357,Wolfgang Löhr,,12,154,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Prokurist:1,currently registered:1; removed:1,no, +A5071475574,https://openalex.org/A5071475574,Wu Chen,https://orcid.org/0000-0002-1835-7564,426,8138,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5092103086,https://openalex.org/A5092103086,Xiaoyu Zhang,https://orcid.org/0000-0002-0565-6370,4,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5033912226,https://openalex.org/A5033912226,Yao Li,https://orcid.org/0000-0002-1151-7369,2,19,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5130026761,https://openalex.org/A5130026761,Yao Wang,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5015043554,https://openalex.org/A5015043554,Yvonne Krause,,7,232,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5082223886,https://openalex.org/A5082223886,Achim Koch,https://orcid.org/0000-0002-1616-4873,134,1632,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5041164084,https://openalex.org/A5041164084,Alexander Diel,https://orcid.org/0000-0002-4362-8856,32,281,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5082773640,https://openalex.org/A5082773640,Alexander Heinemann,,3,16,direct_ude,University of Duisburg-Essen,3,Liquidator:3; Geschäftsführer:2,removed:3,no, +A5077174863,https://openalex.org/A5077174863,Alexander Oldenburger,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:1,no, +A5041217146,https://openalex.org/A5041217146,Alexander Ries,,6,87,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:3,no, +A5017791085,https://openalex.org/A5017791085,Andreas Büchter,https://orcid.org/0000-0001-8411-1004,103,303,direct_ude,University of Duisburg-Essen,3,Persönlich haftender Gesellschafter:2; Geschäftsführer:1,currently registered:3,no, +A5030807249,https://openalex.org/A5030807249,Andreas Kunzmann,,34,802,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:2,currently registered:2; removed:1,no, +A5080262061,https://openalex.org/A5080262061,Andreas Stang,https://orcid.org/0000-0001-6363-9061,630,38057,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5102144950,https://openalex.org/A5102144950,Andreas Stang,,8,51,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5032121745,https://openalex.org/A5032121745,Andrej Klassen,,4,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,removed:2; currently registered:1,no, +A5063166257,https://openalex.org/A5063166257,Anja Steinbach,https://orcid.org/0000-0002-3642-2374,106,1564,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5102461913,https://openalex.org/A5102461913,Anja Steinbach,,6,1,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5064009668,https://openalex.org/A5064009668,Barbara Jeschke,,12,332,direct_ude,University of Duisburg-Essen,3,Inhaber:3; Geschäftsführer:1,currently registered:2; removed:1,no, +A5015901810,https://openalex.org/A5015901810,Benjamin Köhler,,5,81,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5116789043,https://openalex.org/A5116789043,Benjamin Schröer,,4,2,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5053327457,https://openalex.org/A5053327457,Bernd Schweiger,https://orcid.org/0000-0002-8037-2159,97,1240,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:3,no, +A5123200218,https://openalex.org/A5123200218,Bernd Schweiger,,3,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:3,no, +A5103078784,https://openalex.org/A5103078784,Bernd Weiß,https://orcid.org/0000-0002-1176-8408,92,738,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5123007937,https://openalex.org/A5123007937,Bernd Weiß,,7,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5030980984,https://openalex.org/A5030980984,Carsten Reinhardt,https://orcid.org/0000-0003-2905-1920,160,5068,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5037448733,https://openalex.org/A5037448733,Christian Marschner,,5,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5103899403,https://openalex.org/A5103899403,Christian Mette,,19,252,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5103255017,https://openalex.org/A5103255017,Christian Preuss,https://orcid.org/0009-0003-9837-0746,25,141,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5109008810,https://openalex.org/A5109008810,Christine Ritter,,1,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5032774881,https://openalex.org/A5032774881,Christopher Reimann,,3,4,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5109152416,https://openalex.org/A5109152416,Claudia Frank,,24,586,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5000724228,https://openalex.org/A5000724228,Claudia Freimuth,,2,7,direct_ude,University of Duisburg-Essen,3,Prokurist:3,currently registered:3,no, +A5015122896,https://openalex.org/A5015122896,Cornelius Grimm,,6,27,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5035540236,https://openalex.org/A5035540236,Daniel Erni,https://orcid.org/0000-0002-1467-6373,398,5023,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5031147249,https://openalex.org/A5031147249,Daniel Hering,https://orcid.org/0000-0002-5436-4753,326,18868,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:3,no, +A5101579321,https://openalex.org/A5101579321,Daniel Wendt,https://orcid.org/0000-0001-7257-444X,246,5268,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5104534944,https://openalex.org/A5104534944,Daniel Wendt,,1,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5041645777,https://openalex.org/A5041645777,Dennis Meier,https://orcid.org/0000-0002-8623-6705,205,5614,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:3,no, +A5072771601,https://openalex.org/A5072771601,Dietrich Koch,,3,129,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:3,no, +A5123869890,https://openalex.org/A5123869890,Dirk Hermann,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1,removed:2; currently registered:1,no, +A5110137004,https://openalex.org/A5110137004,Erika König,,2,28,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Prokurist:1,removed:2; currently registered:1,no, +A5029058702,https://openalex.org/A5029058702,Eva Berndt,,3,70,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5114036991,https://openalex.org/A5114036991,Florian Kühne,,9,50,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:1,no, +A5041694590,https://openalex.org/A5041694590,Frank Kleemann,https://orcid.org/0000-0002-3588-7022,106,1097,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:2; removed:1,no, +A5114433523,https://openalex.org/A5114433523,Frank Kleemann,,7,2,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:2; removed:1,no, +A5023299755,https://openalex.org/A5023299755,Friedrich Jaeger,,4,1,child_of_ude,Institute for Advanced Study in the Humanities Essen,3,Geschäftsführer:4,removed:3,no, +A5111518819,https://openalex.org/A5111518819,Fritz Götz,,18,627,direct_ude,University of Duisburg-Essen,3,Prokurist:3,currently registered:3,no, +A5110262484,https://openalex.org/A5110262484,Fritz Sörgel,,247,7546,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5058950547,https://openalex.org/A5058950547,Georg Hein,,59,192,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1,removed:2; currently registered:1,no, +A5086068040,https://openalex.org/A5086068040,Gerhard Bäcker,,138,973,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5066679330,https://openalex.org/A5066679330,Gerhard Starke,https://orcid.org/0000-0001-5985-173X,85,1619,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5015113224,https://openalex.org/A5015113224,Gertrud Schmitz,https://orcid.org/0000-0002-3373-7901,74,270,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:3,no, +A5037573739,https://openalex.org/A5037573739,Grit Hoffmann,,6,50,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5065313412,https://openalex.org/A5065313412,Guido Sieber,https://orcid.org/0000-0002-7966-5368,15,152,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5; Prokurist:2,currently registered:3,no, +A5090395061,https://openalex.org/A5090395061,Heiko Jacobs,https://orcid.org/0000-0003-1261-6593,36,1342,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Prokurist:1,removed:2; currently registered:1,no, +A5025346693,https://openalex.org/A5025346693,Hendrik Schröder,,119,684,direct_ude,University of Duisburg-Essen,3,Inhaber:2; Geschäftsführer:1,currently registered:3,no, +A5007315178,https://openalex.org/A5007315178,Holger Kraus,,2,68,child_of_ude,The Hydrogen and Fuel Cell Center,3,Prokurist:2; Geschäftsführer:1; Inhaber:1,currently registered:3,no, +A5033169519,https://openalex.org/A5033169519,Hubert Kuhn,https://orcid.org/0000-0001-5122-2189,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:2; removed:1,no, +A5111939993,https://openalex.org/A5111939993,Jan Busch,,30,712,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5075848932,https://openalex.org/A5075848932,Jan Dinter,,12,38,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5087145453,https://openalex.org/A5087145453,Joachim Prinz,,55,847,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,removed:2; currently registered:1,no, +A5031265819,https://openalex.org/A5031265819,Jochen Heß,https://orcid.org/0000-0002-9902-5368,89,871,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,removed:2; currently registered:1,no, +A5123334300,https://openalex.org/A5123334300,Jochen Heß,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,removed:2; currently registered:1,no, +A5001673346,https://openalex.org/A5001673346,Jochen Türk,,24,208,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5128463492,https://openalex.org/A5128463492,Johannes Breuer,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5129911625,https://openalex.org/A5129911625,Johannes Breuer,,4,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5111266639,https://openalex.org/A5111266639,Johannes Jäger,https://orcid.org/0009-0003-3697-0973,14,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5031838990,https://openalex.org/A5031838990,Johannes Oertel,https://orcid.org/0000-0003-2621-8422,8,111,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,currently registered:3,no, +A5042511428,https://openalex.org/A5042511428,Johannes Specht,,9,239,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5091734620,https://openalex.org/A5091734620,Jürgen Kampf,https://orcid.org/0000-0001-8370-6882,31,117,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5046205825,https://openalex.org/A5046205825,Katharina König,,2,4,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:2,currently registered:2; removed:1,no, +A5020102768,https://openalex.org/A5020102768,Katja Bergmann,,3,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:1,no, +A5045432311,https://openalex.org/A5045432311,Kerstin Köhler,,3,61,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:2,currently registered:2; removed:1,no, +A5020367700,https://openalex.org/A5020367700,Kerstin Schmitz,,2,71,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5029238621,https://openalex.org/A5029238621,Kristina Wagner,,2,207,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:1,currently registered:3,no, +A5112896037,https://openalex.org/A5112896037,Lina Weber,,2,5,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5113914021,https://openalex.org/A5113914021,Marc Stevens,,63,1318,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:1,currently registered:2; removed:1,no, +A5050357599,https://openalex.org/A5050357599,Marcel Walter,,6,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,removed:2; currently registered:1,no, +A5049325057,https://openalex.org/A5049325057,Markus May,https://orcid.org/0000-0003-3869-9681,25,109,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5093034515,https://openalex.org/A5093034515,Martin Kurka,,1,1,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5113019777,https://openalex.org/A5113019777,Martin Kurka,,2,0,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5095550954,https://openalex.org/A5095550954,Martin Lücke,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:3,no, +A5074594733,https://openalex.org/A5074594733,Martin Schild,,7,189,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5; Liquidator:1,removed:2; currently registered:1,no, +A5061363376,https://openalex.org/A5061363376,Martin Teufel,https://orcid.org/0000-0003-2120-1840,431,9270,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5063762172,https://openalex.org/A5063762172,Martina Sauer,https://orcid.org/0000-0002-4787-3189,120,239,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5123363823,https://openalex.org/A5123363823,Martina Schmid,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5103929943,https://openalex.org/A5103929943,Mathias Kamp,,3,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5049457314,https://openalex.org/A5049457314,Maximilian Krug,https://orcid.org/0000-0002-8979-3099,27,143,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5031978837,https://openalex.org/A5031978837,Maximilian Pohl,,16,5,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5045722123,https://openalex.org/A5045722123,Maximilian Pohl,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5004156626,https://openalex.org/A5004156626,Melanie Fiedler,,2,9,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5042895787,https://openalex.org/A5042895787,Melanie Fiedler,,82,1691,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5124761678,https://openalex.org/A5124761678,Melanie Fiedler,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5024170181,https://openalex.org/A5024170181,Melanie Geisler,,1,569,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5109228350,https://openalex.org/A5109228350,Michael Küper,,25,1095,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Liquidator:1,currently registered:2; removed:1,no, +A5113345650,https://openalex.org/A5113345650,Michael Pfitzner,,25,53,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5120461949,https://openalex.org/A5120461949,Michael Staiger,https://orcid.org/0009-0002-0975-6392,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4; Prokurist:1,currently registered:2; removed:1,no, +A5086049958,https://openalex.org/A5086049958,Michael Thome,https://orcid.org/0009-0002-0525-7289,7,18,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5009526667,https://openalex.org/A5009526667,Michael Wittlinger,,16,534,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5045457334,https://openalex.org/A5045457334,Mohammad Sharif,https://orcid.org/0000-0002-1241-007X,55,712,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5117379408,https://openalex.org/A5117379408,Mohammad Sharif,,2,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5082612844,https://openalex.org/A5082612844,Nadine Schröder,https://orcid.org/0000-0001-6650-4656,10,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5077392508,https://openalex.org/A5077392508,Oliver Blatt,,1,16,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5006686937,https://openalex.org/A5006686937,Oliver Gries,,130,587,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5016035673,https://openalex.org/A5016035673,Peter Roch,,15,25,direct_ude,University of Duisburg-Essen,3,Prokurist:6; Geschäftsführer:1,removed:2; currently registered:1,no, +A5091927263,https://openalex.org/A5091927263,Petra Denk,,1,0,child_of_ude,Institut für Energie- und Umwelttechnik,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5110542142,https://openalex.org/A5110542142,Phillip Becker,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:2; currently registered:1,no, +A5002710564,https://openalex.org/A5002710564,Pia Buck,,2,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,removed:2; currently registered:1,no, +A5034120685,https://openalex.org/A5034120685,Reinhard Lechner,,14,21,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5102665422,https://openalex.org/A5102665422,Sandy Müller,,3,17,direct_ude,University of Duisburg-Essen,3,Inhaber:2; Geschäftsführer:1,currently registered:3,no, +A5103951416,https://openalex.org/A5103951416,Sebastian Otten,,11,150,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5028042436,https://openalex.org/A5028042436,Sebastian Pfeifer,,4,12,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5042525920,https://openalex.org/A5042525920,Sebastian Schröer,,32,118,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5055485518,https://openalex.org/A5055485518,Simone Schwarz,,33,335,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Inhaber:1,removed:3,no, +A5024212155,https://openalex.org/A5024212155,Stefan Hermes,https://orcid.org/0000-0001-7487-3945,33,145,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5114514120,https://openalex.org/A5114514120,Stefan Hermes,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5049577078,https://openalex.org/A5049577078,Stefan Kleine,,9,349,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5032635842,https://openalex.org/A5032635842,Stefan Reining,https://orcid.org/0000-0002-5295-8101,18,140,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:2,currently registered:3,no, +A5060348004,https://openalex.org/A5060348004,Stefan Thür,,1,9,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:2,currently registered:3,no, +A5091427277,https://openalex.org/A5091427277,Steffen Jost,,11,1048,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:3,no, +A5022354254,https://openalex.org/A5022354254,Steffen Spitzner,,17,5,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:6,currently registered:3,no, +A5009094490,https://openalex.org/A5009094490,Thomas Mönnig,,7,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:2,currently registered:2; removed:1,no, +A5054911713,https://openalex.org/A5054911713,Thomas Pfeil,,3,0,child_of_ude,Institut für Energie- und Umwelttechnik,3,Geschäftsführer:3; Inhaber:2,currently registered:3,no, +A5017921085,https://openalex.org/A5017921085,Thomas Zadow,,1,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,removed:3,no, +A5085076144,https://openalex.org/A5085076144,Tim Schulte,,6,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5009664226,https://openalex.org/A5009664226,Ulrich Hecker,,4,140,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5034434556,https://openalex.org/A5034434556,Ulrich Westphal,,270,6262,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:1,no, +A5075663980,https://openalex.org/A5075663980,Ursula Neumann,https://orcid.org/0000-0001-8578-5641,4,6,direct_ude,University of Duisburg-Essen,3,Persönlich haftender Gesellschafter:2; Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:2; removed:1,no, +A5019626840,https://openalex.org/A5019626840,Vanessa Fischer,https://orcid.org/0000-0002-2601-3825,8,28,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5035200670,https://openalex.org/A5035200670,Viktor Fuchs,,3,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5100357649,https://openalex.org/A5100357649,Xiaoyu Wu,https://orcid.org/0000-0003-2985-0917,101,442,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5108120374,https://openalex.org/A5108120374,Xiaoyu Wu,https://orcid.org/0009-0002-5426-5373,38,688,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5014094111,https://openalex.org/A5014094111,Alexandra König,https://orcid.org/0000-0003-1439-1156,161,1148,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076816539,https://openalex.org/A5076816539,Andrea Wasmuth,,1,25,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013535629,https://openalex.org/A5013535629,Andreas Hölzer,,19,1224,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Liquidator:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017514329,https://openalex.org/A5017514329,André Busch,https://orcid.org/0000-0002-7440-9015,64,911,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007643000,https://openalex.org/A5007643000,Anke Walendzik,,4,3,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012054701,https://openalex.org/A5012054701,Anke Walendzik,https://orcid.org/0000-0001-9687-7525,93,199,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037434171,https://openalex.org/A5037434171,Aylin Yildirim,,2,203,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062438505,https://openalex.org/A5062438505,Bettina Kunz,,1,72,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086977297,https://openalex.org/A5086977297,Björn Sossong,,2,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5067354713,https://openalex.org/A5067354713,Carmen Wolf,https://orcid.org/0000-0001-9362-942X,3,43,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:6,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110744314,https://openalex.org/A5110744314,Carmen Wolf,,28,189,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:6,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102928755,https://openalex.org/A5102928755,Christian Büscher,https://orcid.org/0000-0002-3447-6854,21,77,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039677720,https://openalex.org/A5039677720,Christian Köster,,10,409,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:1; Inhaber:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112440783,https://openalex.org/A5112440783,Christian Lösch,,23,1181,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5081119418,https://openalex.org/A5081119418,Christian Pohlmann,,17,4,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5075679674,https://openalex.org/A5075679674,Christina Schröder,,143,862,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045337336,https://openalex.org/A5045337336,Christoph Schlee,,3,42,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082105394,https://openalex.org/A5082105394,Christoph Schlee,,6,24,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5064594118,https://openalex.org/A5064594118,Christoph Wieland,https://orcid.org/0000-0002-7020-5568,11,241,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128881947,https://openalex.org/A5128881947,Christoph Wieland,,1,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007180322,https://openalex.org/A5007180322,David Huber,,3,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037283509,https://openalex.org/A5037283509,Dirk Bruns,,5,6,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Inhaber:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5084473679,https://openalex.org/A5084473679,Falk Hoppe,,1,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022373299,https://openalex.org/A5022373299,Florian Schmitz,https://orcid.org/0000-0001-6368-628X,79,3610,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091546460,https://openalex.org/A5091546460,Frank Hölscher,,7,63,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003188843,https://openalex.org/A5003188843,Gerd Witt,,152,2279,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5094372701,https://openalex.org/A5094372701,Gerhard Igl,,10,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5023292691,https://openalex.org/A5023292691,Harald Stephan,,40,2848,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5059941495,https://openalex.org/A5059941495,Helmut Bendig,,1,2,child_of_ude,Institut für Energie- und Umwelttechnik,4,Prokurist:8,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5072230284,https://openalex.org/A5072230284,Horst Wegner,,9,34,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,removed:3; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5066093773,https://openalex.org/A5066093773,Jens Neugebauer,https://orcid.org/0000-0003-2549-8354,38,260,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5061411374,https://openalex.org/A5061411374,Jochen Seitz,https://orcid.org/0000-0002-0110-7980,156,9308,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108765608,https://openalex.org/A5108765608,Jochen Seitz,,4,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110518795,https://openalex.org/A5110518795,Jochen Seitz,,7,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5090731199,https://openalex.org/A5090731199,Jochen Vöge,,4,191,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5005493564,https://openalex.org/A5005493564,Johannes Deckers,,6,61,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013058102,https://openalex.org/A5013058102,Johannes Kunkel,https://orcid.org/0000-0002-4265-8498,24,489,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017017370,https://openalex.org/A5017017370,Julia Schröder,https://orcid.org/0000-0002-7185-9280,4,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:7,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045562580,https://openalex.org/A5045562580,Jörg Miller,,2,10,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5029505640,https://openalex.org/A5029505640,Kai Werner,,10,34,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024005570,https://openalex.org/A5024005570,Klaus Küppers,,13,154,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5015992672,https://openalex.org/A5015992672,Lars Schulz,,2,33,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:1; Inhaber:1; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110937581,https://openalex.org/A5110937581,Lena Weber,,1,0,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111126900,https://openalex.org/A5111126900,Leon Müller,https://orcid.org/0009-0000-8974-3537,8,2,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057966782,https://openalex.org/A5057966782,Lokman Coban,,1,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035281768,https://openalex.org/A5035281768,Lukas Schmidt,,5,10,child_of_ude,The Hydrogen and Fuel Cell Center,4,Geschäftsführer:7; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5009817478,https://openalex.org/A5009817478,Manuel Gruber,https://orcid.org/0000-0002-8353-4651,102,2255,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111377943,https://openalex.org/A5111377943,Marcel Blum,,2,61,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039476363,https://openalex.org/A5039476363,Marcel Jung,https://orcid.org/0000-0002-8277-3052,5,18,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5083133917,https://openalex.org/A5083133917,Marion Meier,,1,6,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5050705095,https://openalex.org/A5050705095,Marion Richter,,7,442,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012138747,https://openalex.org/A5012138747,Martin Dickmann,,3,31,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Liquidator:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5107484510,https://openalex.org/A5107484510,Mathias Baumann,,1,92,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5005757538,https://openalex.org/A5005757538,Mathis Richter,https://orcid.org/0000-0002-3110-6137,26,211,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045407269,https://openalex.org/A5045407269,Mirko Krüger,https://orcid.org/0000-0002-4739-7151,17,125,direct_ude,University of Duisburg-Essen,4,Inhaber:5; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041244680,https://openalex.org/A5041244680,Nadia Schneider,,2,22,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5040325001,https://openalex.org/A5040325001,Nicolas Witte,,4,6,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Prokurist:2,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003921169,https://openalex.org/A5003921169,Norbert Knoche,,21,119,direct_ude,University of Duisburg-Essen,4,Prokurist:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069883065,https://openalex.org/A5069883065,Oliver Westphal,https://orcid.org/0000-0001-8947-0348,6,10,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5071329147,https://openalex.org/A5071329147,Peter Seydel,,9,187,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108210549,https://openalex.org/A5108210549,Ping Liu,,1,35,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113645671,https://openalex.org/A5113645671,Rudolph Meyer,,17,375,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5118598124,https://openalex.org/A5118598124,Rudolph Meyer,,6,2,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088354669,https://openalex.org/A5088354669,Simon Schumacher,https://orcid.org/0000-0001-5807-0878,7,184,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102108148,https://openalex.org/A5102108148,Simon Schumacher,,2,160,child_of_ude,Deutsches Textilforschungszentrum Nord-West,4,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5009757205,https://openalex.org/A5009757205,Thomas Dreier,,3,33,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028487967,https://openalex.org/A5028487967,Thomas Dreier,https://orcid.org/0000-0001-8313-4992,338,3764,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5089311554,https://openalex.org/A5089311554,Thomas Rinke,,2,3,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5104619148,https://openalex.org/A5104619148,Tim Richter,https://orcid.org/0009-0003-8310-6803,1,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108850477,https://openalex.org/A5108850477,Tim Richter,,2,4,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5109529212,https://openalex.org/A5109529212,Ulrich Stephan,,25,178,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Inhaber:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113843371,https://openalex.org/A5113843371,Wilhelm Kuttler,https://orcid.org/0000-0002-7789-8280,83,2332,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035165383,https://openalex.org/A5035165383,Adrian Engel,,17,29,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5121332174,https://openalex.org/A5121332174,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127667725,https://openalex.org/A5127667725,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128742521,https://openalex.org/A5128742521,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082525618,https://openalex.org/A5082525618,Alexander Beer,,17,212,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5109845912,https://openalex.org/A5109845912,Alexander Korn,https://orcid.org/0009-0002-6258-6791,2,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5032835186,https://openalex.org/A5032835186,Andreas Sprengel,,5,238,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036222998,https://openalex.org/A5036222998,Andreas de Vries,https://orcid.org/0000-0001-5754-2749,27,297,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5016563483,https://openalex.org/A5016563483,Angelika Sommer,,2,8,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5064827445,https://openalex.org/A5064827445,Anja Weiß,https://orcid.org/0000-0002-9676-8326,94,977,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073916434,https://openalex.org/A5073916434,Astrid Müller,https://orcid.org/0000-0001-6176-2947,347,10183,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069214188,https://openalex.org/A5069214188,Carolin Schneider,https://orcid.org/0000-0001-7923-0965,7,25,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100337531,https://openalex.org/A5100337531,Chen Wang,https://orcid.org/0000-0002-0213-9642,91,2510,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012757803,https://openalex.org/A5012757803,Christine Ludwig,,31,563,direct_ude,University of Duisburg-Essen,5,Prokurist:2; Geschäftsführer:1; Inhaber:1; Liquidator:1; Persönlich haftender Gesellschafter:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5072032162,https://openalex.org/A5072032162,Christoph Abraham,https://orcid.org/0000-0003-3536-6507,19,122,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5052392832,https://openalex.org/A5052392832,Christoph Jansen,https://orcid.org/0009-0008-1823-8283,36,290,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103022752,https://openalex.org/A5103022752,Christoph Jansen,https://orcid.org/0000-0001-7473-4160,90,207,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5053198971,https://openalex.org/A5053198971,Daniel Jokisch,,28,1245,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021967698,https://openalex.org/A5021967698,Daniel Pieper,,2,4,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5081487814,https://openalex.org/A5081487814,Daniela Richter,,3,14,direct_ude,University of Duisburg-Essen,5,Prokurist:4; Geschäftsführer:3; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021650598,https://openalex.org/A5021650598,Dieter Schramm,https://orcid.org/0000-0002-7945-1853,442,2524,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5105506256,https://openalex.org/A5105506256,Dieter Schramm,,4,9,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076502958,https://openalex.org/A5076502958,Dirk Reinhardt,https://orcid.org/0000-0002-7027-4483,1032,22797,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110565330,https://openalex.org/A5110565330,Dominik Schröder,,7,153,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:3,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002410327,https://openalex.org/A5002410327,Gerd Stein,,2,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,5,Prokurist:4; Geschäftsführer:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024573522,https://openalex.org/A5024573522,Harald Heim,,19,1,child_of_ude,Deutsches Textilforschungszentrum Nord-West,5,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086342121,https://openalex.org/A5086342121,Hartmut Finger,,4,103,child_of_ude,Institut für Energie- und Umwelttechnik,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5058549966,https://openalex.org/A5058549966,Hubert Beyer,,1,21,child_of_ude,The Hydrogen and Fuel Cell Center,5,Geschäftsführer:6; Persönlich haftender Gesellschafter:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102174490,https://openalex.org/A5102174490,Jens Kuhn,,2,7,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088818714,https://openalex.org/A5088818714,Julia Hartmann,https://orcid.org/0000-0002-8873-1419,1,4,direct_ude,University of Duisburg-Essen,5,Prokurist:6; Geschäftsführer:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5004185689,https://openalex.org/A5004185689,Karsten Klemm,,3,26,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:9; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5014302673,https://openalex.org/A5014302673,Klaus Hagedorn,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110055012,https://openalex.org/A5110055012,Klaus Klemm,,142,1646,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:9,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5117494989,https://openalex.org/A5117494989,Lukas Becker,,2,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006359291,https://openalex.org/A5006359291,Magdalena Wagner,,1,4,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021645988,https://openalex.org/A5021645988,Martin Wagener,https://orcid.org/0000-0001-9180-268X,11,282,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103485046,https://openalex.org/A5103485046,Matthias Schramm,,19,896,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5083099474,https://openalex.org/A5083099474,Michael Bätz,,5,120,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007586290,https://openalex.org/A5007586290,Michael Lehner,,5,1,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062924220,https://openalex.org/A5062924220,Michael Lehner,,2,1,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102435026,https://openalex.org/A5102435026,Niklas Müller,https://orcid.org/0009-0005-7904-3525,17,6,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5071569590,https://openalex.org/A5071569590,Nils Beckmann,https://orcid.org/0000-0001-6415-0217,11,94,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088798409,https://openalex.org/A5088798409,Peter Brockhaus,,3,31,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5070887199,https://openalex.org/A5070887199,Peter Hopp,,3,106,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5049104171,https://openalex.org/A5049104171,Philip Kahl,https://orcid.org/0000-0003-2362-8645,14,742,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037780525,https://openalex.org/A5037780525,Philipp Richter,,2,2,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5101450663,https://openalex.org/A5101450663,Philipp Richter,https://orcid.org/0000-0002-8891-3861,21,165,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088027497,https://openalex.org/A5088027497,Sascha Neumann,,4,121,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036698793,https://openalex.org/A5036698793,Sebastian Grimm,https://orcid.org/0000-0002-7378-3224,10,117,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079723288,https://openalex.org/A5079723288,Sebastian Voigt,https://orcid.org/0000-0003-1544-9903,231,5623,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5020707312,https://openalex.org/A5020707312,Stefan Stoll,https://orcid.org/0000-0002-3656-417X,114,4901,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030899511,https://openalex.org/A5030899511,Sven Behnke,,4,77,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125290627,https://openalex.org/A5125290627,Sven Lang,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5042329879,https://openalex.org/A5042329879,Tanja Becker,,69,907,direct_ude,University of Duisburg-Essen,5,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041130965,https://openalex.org/A5041130965,Tanja Werner,,62,1319,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028122232,https://openalex.org/A5028122232,Thomas Bogenschütz,,7,166,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108367853,https://openalex.org/A5108367853,Tim Schmitz,,4,78,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5060917094,https://openalex.org/A5060917094,Torsten Franz,https://orcid.org/0000-0002-8879-0814,15,217,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074048659,https://openalex.org/A5074048659,Ulrich Hagemann,https://orcid.org/0000-0002-1880-6550,170,2550,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062127160,https://openalex.org/A5062127160,Ulrich Martin,,3,5,child_of_ude,Institut für Energie- und Umwelttechnik,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5047969867,https://openalex.org/A5047969867,Ulrich Pickartz,,2,5,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5001987856,https://openalex.org/A5001987856,Viktor Grünwald,https://orcid.org/0000-0003-2083-7687,637,19737,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130826226,https://openalex.org/A5130826226,Viktor Grünwald,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012503494,https://openalex.org/A5012503494,Volker Hans,,39,303,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054284319,https://openalex.org/A5054284319,Wolfgang Trautmann,,4,11,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108949396,https://openalex.org/A5108949396,Ali Ahmad,,2,17,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111293900,https://openalex.org/A5111293900,Ali Ahmad,,8,35,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130533550,https://openalex.org/A5130533550,Ali Ahmad,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130685520,https://openalex.org/A5130685520,Ali Ahmad,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022652001,https://openalex.org/A5022652001,Andrea Herrmann,https://orcid.org/0000-0002-7850-8344,214,2110,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Prokurist:2; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069736561,https://openalex.org/A5069736561,Andreas Junker,https://orcid.org/0000-0002-8063-9765,67,2524,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022998651,https://openalex.org/A5022998651,Andreas Vogelsang,https://orcid.org/0000-0003-1041-0815,225,1477,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127045878,https://openalex.org/A5127045878,Andreas Vogelsang,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5026173847,https://openalex.org/A5026173847,André Giese,https://orcid.org/0000-0002-8987-8009,1,33,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:2; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5070250060,https://openalex.org/A5070250060,Anja Neumann,https://orcid.org/0000-0002-0921-1360,200,2152,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100857275,https://openalex.org/A5100857275,Anja Neumann,,1,41,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123255867,https://openalex.org/A5123255867,Anja Neumann,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100813838,https://openalex.org/A5100813838,Anja Schwarz,,3,1,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Prokurist:2; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5032007353,https://openalex.org/A5032007353,Bernhard Ganter,https://orcid.org/0000-0003-0767-1379,111,10305,child_of_ude,The Hydrogen and Fuel Cell Center,6,Geschäftsführer:4; Liquidator:3,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013556611,https://openalex.org/A5013556611,Carsten Ullrich,https://orcid.org/0000-0003-2826-9821,212,2884,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5114883287,https://openalex.org/A5114883287,Christian Scheller,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:7; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002582354,https://openalex.org/A5002582354,Christoph Blume,,6,43,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:8,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002857697,https://openalex.org/A5002857697,Felix Weber,https://orcid.org/0000-0002-5910-7182,26,223,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111523838,https://openalex.org/A5111523838,Fritz Beck,,17,32,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5093811094,https://openalex.org/A5093811094,Gerhard Stahl,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:3,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111350063,https://openalex.org/A5111350063,Jasmin Schmidt,,2,1,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036037677,https://openalex.org/A5036037677,Jens Kohlmann,,5,38,direct_ude,University of Duisburg-Essen,6,Prokurist:5; Geschäftsführer:3,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082298383,https://openalex.org/A5082298383,Jessica Schneider,,4,42,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:2; Liquidator:2; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046233775,https://openalex.org/A5046233775,Joachim Schuler,,17,103,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103409660,https://openalex.org/A5103409660,Jochen Peters,,7,242,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024590692,https://openalex.org/A5024590692,Johanna Müller,https://orcid.org/0000-0001-5699-7047,9,71,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5010069325,https://openalex.org/A5010069325,Katharina Klein,,3,25,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:1; Vorstand:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039487332,https://openalex.org/A5039487332,Malte Weber,https://orcid.org/0009-0006-3074-4205,14,68,direct_ude,University of Duisburg-Essen,6,Prokurist:3; Geschäftsführer:1; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108620165,https://openalex.org/A5108620165,Mario Werner,https://orcid.org/0000-0003-3432-5471,98,1176,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:3; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046094206,https://openalex.org/A5046094206,Martin Blüggel,,48,1831,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:4,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108951191,https://openalex.org/A5108951191,Martin Schuler,,5,11,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123864478,https://openalex.org/A5123864478,Martin Schuler,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127353107,https://openalex.org/A5127353107,Martin Schuler,,22,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5129089154,https://openalex.org/A5129089154,Martin Schuler,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102185738,https://openalex.org/A5102185738,Maximilian Wolf,,7,41,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103891301,https://openalex.org/A5103891301,Maximilian Wolf,,32,138,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123135447,https://openalex.org/A5123135447,Maximilian Wolf,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5058513513,https://openalex.org/A5058513513,Mike Wenzel,,272,2227,child_of_ude,Institut für Energie- und Umwelttechnik,6,Geschäftsführer:3; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113888013,https://openalex.org/A5113888013,Mike Wenzel,,6,210,child_of_ude,Institut für Energie- und Umwelttechnik,6,Geschäftsführer:3; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103078695,https://openalex.org/A5103078695,Nicole Krämer,https://orcid.org/0000-0002-4224-0059,22,395,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030114850,https://openalex.org/A5030114850,Oliver Martens,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088381140,https://openalex.org/A5088381140,Peter Kratzer,https://orcid.org/0000-0001-5947-1366,258,6049,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:4,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003116527,https://openalex.org/A5003116527,Qi Zhang,https://orcid.org/0009-0004-3982-1217,6,14,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100641189,https://openalex.org/A5100641189,Qi Zhang,https://orcid.org/0000-0003-3359-2172,16,101,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074280631,https://openalex.org/A5074280631,Ralf Kuhlmann,,3,13,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017131649,https://openalex.org/A5017131649,Robert Seifert,https://orcid.org/0000-0001-5985-7701,197,3380,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127119058,https://openalex.org/A5127119058,Robert Seifert,,3,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021741090,https://openalex.org/A5021741090,Rüdiger Schultz,,134,3581,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079342266,https://openalex.org/A5079342266,Sebastian Schuster,https://orcid.org/0000-0002-2055-1163,72,741,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054081254,https://openalex.org/A5054081254,Simone Weiß,,14,504,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Inhaber:2; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022241592,https://openalex.org/A5022241592,Tobias Stein,https://orcid.org/0000-0001-5145-3630,30,71,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5089753284,https://openalex.org/A5089753284,Andreas Hellmann,https://orcid.org/0000-0002-3573-5344,151,1720,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5066213817,https://openalex.org/A5066213817,Andreas Hüttner,,1,7,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5056706108,https://openalex.org/A5056706108,Andreas Roos,https://orcid.org/0000-0003-2833-0928,264,3999,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091715739,https://openalex.org/A5091715739,Andreas Roos,,28,479,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108819622,https://openalex.org/A5108819622,Andreas Roos,,24,123,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113291047,https://openalex.org/A5113291047,Andreas Roos,,7,20,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123688451,https://openalex.org/A5123688451,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125129945,https://openalex.org/A5125129945,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125749206,https://openalex.org/A5125749206,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126021790,https://openalex.org/A5126021790,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126630247,https://openalex.org/A5126630247,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128123846,https://openalex.org/A5128123846,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5129683483,https://openalex.org/A5129683483,Andreas Roos,,1,1,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041211483,https://openalex.org/A5041211483,Anja Lange,,25,650,direct_ude,University of Duisburg-Essen,7,Prokurist:5; Geschäftsführer:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028653294,https://openalex.org/A5028653294,Axel Klein,https://orcid.org/0000-0002-4203-2938,86,282,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5101697057,https://openalex.org/A5101697057,Axel Klein,https://orcid.org/0000-0002-1762-0201,41,189,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5008201488,https://openalex.org/A5008201488,Daniel Diekmann,https://orcid.org/0000-0002-0941-4096,27,177,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5040913972,https://openalex.org/A5040913972,Dennis Schneider,,12,19,direct_ude,University of Duisburg-Essen,7,Prokurist:6; Geschäftsführer:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086202332,https://openalex.org/A5086202332,Dirk Broska,,4,30,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:9; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108458907,https://openalex.org/A5108458907,Günter Zimmer,,17,144,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100396981,https://openalex.org/A5100396981,Hao Zhang,https://orcid.org/0000-0002-9447-1019,176,1380,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5008052136,https://openalex.org/A5008052136,Jörg Schaller,https://orcid.org/0000-0003-0477-5877,139,2479,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125152883,https://openalex.org/A5125152883,Jörg Schaller,,3,0,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112788772,https://openalex.org/A5112788772,Jürgen Bruckner,,26,424,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100612485,https://openalex.org/A5100612485,Katharina Schmidt,https://orcid.org/0000-0001-9397-5285,52,557,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103840064,https://openalex.org/A5103840064,Katharina Schmidt,,17,454,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069715592,https://openalex.org/A5069715592,Klaus Barth,,2,1,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091584361,https://openalex.org/A5091584361,Klaus Barth,,2,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5052755853,https://openalex.org/A5052755853,Marina Schmidt,,2,26,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102080356,https://openalex.org/A5102080356,Max Weber,,8,25,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057316063,https://openalex.org/A5057316063,Michael Kloster,https://orcid.org/0000-0001-9244-4925,68,510,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085192643,https://openalex.org/A5085192643,Olaf Liedtke,,3,11,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5033748664,https://openalex.org/A5033748664,Pascal Schneider,,6,11,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111726893,https://openalex.org/A5111726893,Peter Rath,,25,424,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022560140,https://openalex.org/A5022560140,Rainer Schnell,https://orcid.org/0000-0001-7843-4974,359,3923,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Inhaber:1; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073162924,https://openalex.org/A5073162924,Simon Ritter,,2,24,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076980201,https://openalex.org/A5076980201,Stefan Friese,,4,10,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5034732630,https://openalex.org/A5034732630,Thorsten Sander,https://orcid.org/0000-0002-0880-8843,26,226,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123978064,https://openalex.org/A5123978064,Thorsten Sander,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5000662140,https://openalex.org/A5000662140,Tim Krüger,,2,5,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5080716370,https://openalex.org/A5080716370,Volker Clausen,,52,268,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076575576,https://openalex.org/A5076575576,Walter Reinhardt,https://orcid.org/0000-0002-8713-5279,68,1134,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Liquidator:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5014001330,https://openalex.org/A5014001330,Wolfgang Gruber,https://orcid.org/0000-0003-2186-9269,191,4152,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5115595123,https://openalex.org/A5115595123,Andreas Albert,,1,1,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5115603880,https://openalex.org/A5115603880,Andreas Albert,https://orcid.org/0000-0002-0582-2674,133,4162,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5063056312,https://openalex.org/A5063056312,André Haase,https://orcid.org/0000-0002-4529-1396,12,72,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5095550956,https://openalex.org/A5095550956,Birgit Meyer,,1,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069912429,https://openalex.org/A5069912429,Christian Knobloch,https://orcid.org/0000-0001-5131-039X,7,7,direct_ude,University of Duisburg-Essen,8,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5029326684,https://openalex.org/A5029326684,Christoph Horn,https://orcid.org/0000-0002-2762-6463,6,39,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102865092,https://openalex.org/A5102865092,Christopher Schröder,https://orcid.org/0000-0002-4483-8951,134,1823,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062096123,https://openalex.org/A5062096123,Dirk Schlüter,,5,7,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5019895745,https://openalex.org/A5019895745,Franz-Josef Meyer,,2,53,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069914957,https://openalex.org/A5069914957,Henning Kuhlmann,,5,22,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076247663,https://openalex.org/A5076247663,Jing Zhang,https://orcid.org/0000-0002-3750-374X,548,27348,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045144525,https://openalex.org/A5045144525,Jochen Vogt,,2,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039736409,https://openalex.org/A5039736409,Manuel Weber,https://orcid.org/0000-0002-8649-5977,239,4548,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046636790,https://openalex.org/A5046636790,Martina Richter,,40,287,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100869399,https://openalex.org/A5100869399,Martina Richter,,36,62,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5068775949,https://openalex.org/A5068775949,Matthias Benz,https://orcid.org/0000-0002-7577-9691,178,7014,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036362880,https://openalex.org/A5036362880,Patrick Bohn,https://orcid.org/0000-0002-8515-2067,39,626,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085357328,https://openalex.org/A5085357328,Peter Rettig,,1,1,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100667510,https://openalex.org/A5100667510,Qi Liu,https://orcid.org/0000-0003-0110-7750,181,2253,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5018713421,https://openalex.org/A5018713421,Sascha Hagemann,,16,532,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036922099,https://openalex.org/A5036922099,Thomas Bartz,,13,64,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103078122,https://openalex.org/A5103078122,Thomas Kiefer,https://orcid.org/0000-0002-7283-4990,120,2701,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:2; Inhaber:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5023162593,https://openalex.org/A5023162593,Tobias Braun,,2,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102983474,https://openalex.org/A5102983474,Tobias Braun,https://orcid.org/0000-0001-9336-9306,1,28,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110556007,https://openalex.org/A5110556007,Tobias Thiele,,43,501,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5015016155,https://openalex.org/A5015016155,Albert Beer,,2,12,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054828466,https://openalex.org/A5054828466,Albert Beer,,6,0,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5087345789,https://openalex.org/A5087345789,Alexander Brüning,,2,18,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006251667,https://openalex.org/A5006251667,Andreas Thieme,,6,7,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073100876,https://openalex.org/A5073100876,Andreas Thieme,https://orcid.org/0000-0001-6221-8601,65,585,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125618394,https://openalex.org/A5125618394,Andreas Thieme,,1,0,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102797453,https://openalex.org/A5102797453,Christoph Marx,https://orcid.org/0009-0000-7620-8017,100,231,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5067642493,https://openalex.org/A5067642493,Frank Pfeifer,,48,1981,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:3; Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057804983,https://openalex.org/A5057804983,Klaus Bartl,,3,59,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5056334688,https://openalex.org/A5056334688,Manuel Fiedler,,22,25,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125542216,https://openalex.org/A5125542216,Marcus Roth,,1,0,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036507802,https://openalex.org/A5036507802,Martin Schüler,https://orcid.org/0000-0002-2166-3394,996,44791,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5000482421,https://openalex.org/A5000482421,Michael Meltzer,,17,418,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5121940305,https://openalex.org/A5121940305,Peter Hoyer,,1,0,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110586432,https://openalex.org/A5110586432,Stefanie Becker,,2,11,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006447283,https://openalex.org/A5006447283,Thomas Küpper,,22,1,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5011345883,https://openalex.org/A5011345883,Tobias Hübner,,2,3,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103027229,https://openalex.org/A5103027229,Tobias Kuhn,https://orcid.org/0000-0002-6725-3470,2,10,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100380339,https://openalex.org/A5100380339,Yan Li,https://orcid.org/0000-0002-3906-9481,200,3860,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103876626,https://openalex.org/A5103876626,Yan Li,https://orcid.org/0000-0002-3450-6806,14,38,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103881897,https://openalex.org/A5103881897,Andrea Schmitz,,44,673,direct_ude,University of Duisburg-Essen,10,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5047071096,https://openalex.org/A5047071096,Andrea Schäfer,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091806917,https://openalex.org/A5091806917,Andreas Behr,https://orcid.org/0000-0002-6818-1878,107,1172,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5001746184,https://openalex.org/A5001746184,Andreas Kempf,,227,6307,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128774002,https://openalex.org/A5128774002,Andreas Kempf,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5065059084,https://openalex.org/A5065059084,Andreas Kopf,https://orcid.org/0000-0002-0111-4638,2,15,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Prokurist:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046865796,https://openalex.org/A5046865796,Andreas Stöhr,https://orcid.org/0000-0003-1036-2120,291,5084,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126618638,https://openalex.org/A5126618638,Anja Niemann,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5026130647,https://openalex.org/A5026130647,Carsten Krause,,20,172,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112174027,https://openalex.org/A5112174027,Dieter Reinhardt,,4,5,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074831805,https://openalex.org/A5074831805,Guido Wolf,,23,46,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006001806,https://openalex.org/A5006001806,Jan Siebert,https://orcid.org/0000-0001-7378-3876,6,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103234025,https://openalex.org/A5103234025,Jens Schumacher,https://orcid.org/0000-0003-4884-7764,10,124,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035003250,https://openalex.org/A5035003250,Klaus Pohl,,6,30,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074036780,https://openalex.org/A5074036780,Klaus Pohl,https://orcid.org/0000-0003-2199-5257,306,12954,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039283594,https://openalex.org/A5039283594,Marco Meier,https://orcid.org/0000-0002-6080-8904,1,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086007116,https://openalex.org/A5086007116,Matthias Linke,https://orcid.org/0000-0002-8814-6316,9,100,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5044176437,https://openalex.org/A5044176437,Michael Erkelenz,https://orcid.org/0000-0003-3485-0380,30,868,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5105098228,https://openalex.org/A5105098228,Michael Erkelenz,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085748095,https://openalex.org/A5085748095,Michael Fleischer,https://orcid.org/0000-0002-5720-8393,39,827,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079734558,https://openalex.org/A5079734558,Michael Stratmann,,3,63,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062809846,https://openalex.org/A5062809846,Peter Berndt,,2,19,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5090934184,https://openalex.org/A5090934184,Petra Stein,,60,651,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:2; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035669105,https://openalex.org/A5035669105,Rolf Küpper,,1,11,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5011673386,https://openalex.org/A5011673386,Simone Lange,,11,1539,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:3,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5053775098,https://openalex.org/A5053775098,Stefan Hölscher,,2,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030649192,https://openalex.org/A5030649192,Stephan Lang,https://orcid.org/0009-0000-4420-9664,873,16973,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5122822060,https://openalex.org/A5122822060,Stephan Lang,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125675957,https://openalex.org/A5125675957,Stephan Lang,,6,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125682548,https://openalex.org/A5125682548,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126583281,https://openalex.org/A5126583281,Stephan Lang,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126658578,https://openalex.org/A5126658578,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130106768,https://openalex.org/A5130106768,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100383092,https://openalex.org/A5100383092,Ying Chen,https://orcid.org/0000-0002-8894-0085,15,285,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123572043,https://openalex.org/A5123572043,Ying Chen,,8,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5120052452,https://openalex.org/A5120052452,Alex Hoppe,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5020656602,https://openalex.org/A5020656602,Alexander Hahn,https://orcid.org/0000-0002-9305-1768,1,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015660909,https://openalex.org/A5015660909,Alexander Hoffmann,https://orcid.org/0000-0002-8360-6862,129,2699,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5068899403,https://openalex.org/A5068899403,Alexander Huber,,18,181,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5124753921,https://openalex.org/A5124753921,Alexander Huber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108639570,https://openalex.org/A5108639570,Alexander Jahn,,10,171,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025003490,https://openalex.org/A5025003490,Alexander Neumann,https://orcid.org/0000-0003-1457-354X,64,1058,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:4,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013496413,https://openalex.org/A5013496413,Alexander Schmitz,https://orcid.org/0000-0002-1018-7054,16,259,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5019137844,https://openalex.org/A5019137844,Alexander Schramm,https://orcid.org/0000-0001-7670-7529,571,16274,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027254219,https://openalex.org/A5027254219,Alexander Schwarz,https://orcid.org/0000-0003-2276-5947,70,449,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5048818593,https://openalex.org/A5048818593,Alexander Thomas,https://orcid.org/0000-0003-4013-8963,15,90,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102020873,https://openalex.org/A5102020873,Alexander Thomas,https://orcid.org/0000-0001-8185-6828,176,2011,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103267686,https://openalex.org/A5103267686,Alexander Wagner,https://orcid.org/0000-0002-6162-4875,22,1199,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039847128,https://openalex.org/A5039847128,Andreas Bayer,,5,44,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126946569,https://openalex.org/A5126946569,Andreas Giese,,1,0,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082807445,https://openalex.org/A5082807445,Andreas Göbel,,7,66,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082867129,https://openalex.org/A5082867129,Andreas Hüttmann,https://orcid.org/0000-0003-2230-3873,192,8323,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114186435,https://openalex.org/A5114186435,Andreas Hüttmann,,1,95,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125397163,https://openalex.org/A5125397163,Andreas Hüttmann,,1,0,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5030957194,https://openalex.org/A5030957194,Andreas Jansen,,15,59,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5088483719,https://openalex.org/A5088483719,Andreas Kraus,,25,581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5014874075,https://openalex.org/A5014874075,Andreas Köhler,https://orcid.org/0000-0001-8904-0380,16,50,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086206513,https://openalex.org/A5086206513,Andreas Müller,,17,17,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5087818310,https://openalex.org/A5087818310,Andreas Müller,https://orcid.org/0000-0002-7447-700X,132,3425,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126339947,https://openalex.org/A5126339947,Andreas Müller,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128888404,https://openalex.org/A5128888404,Andreas Müller,,2,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5084350670,https://openalex.org/A5084350670,Andreas Nickel,https://orcid.org/0000-0001-6847-6011,50,268,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066427300,https://openalex.org/A5066427300,Andreas Peters,https://orcid.org/0000-0002-3868-7552,152,1212,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Prokurist:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066751418,https://openalex.org/A5066751418,Andreas Pieper,https://orcid.org/0000-0002-9054-7274,34,216,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5058513288,https://openalex.org/A5058513288,Andreas Schönfeld,,35,238,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5004942312,https://openalex.org/A5004942312,Andreas Schütte,https://orcid.org/0000-0002-9915-0601,48,956,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Persönlich haftender Gesellschafter:1,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034195386,https://openalex.org/A5034195386,André Lorenz,,12,63,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5037792167,https://openalex.org/A5037792167,André Müller,https://orcid.org/0000-0002-7804-8640,68,409,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078993317,https://openalex.org/A5078993317,Benjamin Otto,,7,10,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090083006,https://openalex.org/A5090083006,Bernd Menzel,,2,20,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049751836,https://openalex.org/A5049751836,Bernd Wagner,https://orcid.org/0000-0003-0877-6906,29,581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090572749,https://openalex.org/A5090572749,Bernhard Müller,https://orcid.org/0000-0002-9573-1417,284,6315,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3; Inhaber:1; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110010176,https://openalex.org/A5110010176,Christian Baier,,1,39,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108402711,https://openalex.org/A5108402711,Christian Berg,,14,478,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086730050,https://openalex.org/A5086730050,Christian Hoffmann,https://orcid.org/0000-0002-5776-439X,16,79,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5038994918,https://openalex.org/A5038994918,Christian Johannes,,69,3119,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5022286426,https://openalex.org/A5022286426,Christian Mayer,https://orcid.org/0000-0003-1681-0553,242,5370,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5075343853,https://openalex.org/A5075343853,Christian Müller,https://orcid.org/0000-0002-2950-446X,75,630,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120610207,https://openalex.org/A5120610207,Christian Scholz,https://orcid.org/0009-0003-2601-2202,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101815496,https://openalex.org/A5101815496,Christian Thiel,https://orcid.org/0000-0002-2290-8242,33,267,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5081725415,https://openalex.org/A5081725415,Christian Vogel,,7,23,direct_ude,University of Duisburg-Essen,>=11,Inhaber:2; Prokurist:2; Geschäftsführer:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100603203,https://openalex.org/A5100603203,Christian Weber,https://orcid.org/0000-0003-4610-8714,1837,99587,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103691262,https://openalex.org/A5103691262,Christian Witt,,32,526,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101676729,https://openalex.org/A5101676729,Christoph Müller,https://orcid.org/0009-0006-0910-9135,11,12,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013924170,https://openalex.org/A5013924170,Christoph Schramm,https://orcid.org/0000-0001-6752-0690,93,740,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5065790260,https://openalex.org/A5065790260,Christoph Weber,https://orcid.org/0000-0003-0197-7991,545,5820,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121605940,https://openalex.org/A5121605940,Christoph Weber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123271660,https://openalex.org/A5123271660,Christoph Weber,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129104343,https://openalex.org/A5129104343,Christoph Weber,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034523099,https://openalex.org/A5034523099,Claus Günther,,2,25,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5074555350,https://openalex.org/A5074555350,Daniel Hoffmann,https://orcid.org/0000-0003-2973-7869,332,7243,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100660461,https://openalex.org/A5100660461,Daniel Huber,,7,161,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104102189,https://openalex.org/A5104102189,Daniel Schäfer,,24,303,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5124708205,https://openalex.org/A5124708205,Daniel Schäfer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049860860,https://openalex.org/A5049860860,Daniel Steiner,https://orcid.org/0000-0002-1061-9064,34,189,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5105122933,https://openalex.org/A5105122933,Daniel Steiner,,3,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125298692,https://openalex.org/A5125298692,Daniel Steiner,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007177481,https://openalex.org/A5007177481,Daniel Ziegler,,4,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114803792,https://openalex.org/A5114803792,David Fuchs,https://orcid.org/0009-0008-1483-0714,15,946,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013220191,https://openalex.org/A5013220191,David Meyer,,12,37,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024490563,https://openalex.org/A5024490563,Dieter Wolters,,1,13,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086437544,https://openalex.org/A5086437544,Florian Kunz,https://orcid.org/0000-0002-6640-1814,2,23,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5098818654,https://openalex.org/A5098818654,Frank Becker,,6,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102274030,https://openalex.org/A5102274030,Frank Becker,,2,5,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5107174442,https://openalex.org/A5107174442,Frank Becker,,5,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5016436943,https://openalex.org/A5016436943,Frank Kirchner,https://orcid.org/0000-0002-1713-9784,463,6924,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111842190,https://openalex.org/A5111842190,Frank Schmidt,,159,4718,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5026728906,https://openalex.org/A5026728906,Frank Schneider,,3,65,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032121594,https://openalex.org/A5032121594,Frank Weber,https://orcid.org/0000-0002-0995-667X,244,5651,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5062189732,https://openalex.org/A5062189732,Frank Weber,https://orcid.org/0000-0001-8285-5544,394,9324,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123207204,https://openalex.org/A5123207204,Frank Weber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5010957617,https://openalex.org/A5010957617,Georg Jansen,https://orcid.org/0000-0002-0724-3895,191,7215,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090280161,https://openalex.org/A5090280161,Gregor Braun,,4,5,direct_ude,University of Duisburg-Essen,11,Liquidator:4; Geschäftsführer:3,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5095407533,https://openalex.org/A5095407533,Hans Bach,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Prokurist:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5035617524,https://openalex.org/A5035617524,Hartmut Engler,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015932441,https://openalex.org/A5015932441,Hartmut Schmidt,https://orcid.org/0000-0002-2402-7764,1031,21471,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5064646832,https://openalex.org/A5064646832,Hartmut Schmidt,,60,371,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110660963,https://openalex.org/A5110660963,Heiko Schmidt,,1,38,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5017152518,https://openalex.org/A5017152518,Heiko Schulz,,4,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5026150065,https://openalex.org/A5026150065,Helmut Schneider,,9,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5038040583,https://openalex.org/A5038040583,Hubert Müller,,51,817,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2; Inhaber:1; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108956560,https://openalex.org/A5108956560,Hui Wang,,5,30,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032210373,https://openalex.org/A5032210373,Jan Müller,,6,30,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5068488252,https://openalex.org/A5068488252,Jan Weber,https://orcid.org/0000-0002-2799-7352,190,4567,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5059941086,https://openalex.org/A5059941086,Jens Bauer,,20,268,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5087449583,https://openalex.org/A5087449583,Jens Krüger,https://orcid.org/0000-0002-9197-0613,67,1176,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5036965906,https://openalex.org/A5036965906,Jens Meyer,https://orcid.org/0000-0001-7265-1628,8,143,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082133427,https://openalex.org/A5082133427,Jens Zimmermann,,2,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112145711,https://openalex.org/A5112145711,Jochen Schmitz,,72,7028,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108419254,https://openalex.org/A5108419254,Johannes Koch,,43,1006,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113022614,https://openalex.org/A5113022614,Johannes Koch,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5008300748,https://openalex.org/A5008300748,Johannes Wendt,,10,152,direct_ude,University of Duisburg-Essen,11,Prokurist:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034230486,https://openalex.org/A5034230486,Jörg Meyer,,9,388,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101542746,https://openalex.org/A5101542746,Jörg Schröder,https://orcid.org/0000-0001-7167-6022,102,277,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101542747,https://openalex.org/A5101542747,Jörg Schröder,https://orcid.org/0000-0001-7960-9553,550,6814,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5106830254,https://openalex.org/A5106830254,Jörg Schröder,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120984621,https://openalex.org/A5120984621,Jörg Schröder,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5019933867,https://openalex.org/A5019933867,Jörg Simon,,3,209,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5109281644,https://openalex.org/A5109281644,Jürgen Berger,,5,1705,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005751493,https://openalex.org/A5005751493,Jürgen Herzog,https://orcid.org/0000-0002-2971-2859,351,8302,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072189999,https://openalex.org/A5072189999,Jürgen Herzog,,18,268,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110555184,https://openalex.org/A5110555184,Jürgen Herzog,,10,6,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127161804,https://openalex.org/A5127161804,Jürgen Jung,,14,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032714872,https://openalex.org/A5032714872,Jürgen König,https://orcid.org/0000-0003-3836-4611,255,8464,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5040353606,https://openalex.org/A5040353606,Jürgen Ziegler,https://orcid.org/0000-0001-9603-5272,359,3119,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114019148,https://openalex.org/A5114019148,Jürgen Ziegler,,16,3,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127157117,https://openalex.org/A5127157117,Jürgen Ziegler,,8,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104427325,https://openalex.org/A5104427325,Karina Kruse,,1,16,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045780650,https://openalex.org/A5045780650,Karsten Schmidt,https://orcid.org/0000-0001-8373-9406,153,2581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104361385,https://openalex.org/A5104361385,Klaus Jacobs,,2,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108971031,https://openalex.org/A5108971031,Konrad Müller,,36,1258,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005130277,https://openalex.org/A5005130277,Lars Becker,https://orcid.org/0000-0001-7876-2580,88,500,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:3; Geschäftsführer:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123109097,https://openalex.org/A5123109097,Lars Becker,,1,0,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:3; Geschäftsführer:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015192554,https://openalex.org/A5015192554,Lars Geiger,,16,402,direct_ude,University of Duisburg-Essen,>=11,Prokurist:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025015463,https://openalex.org/A5025015463,Lars Johannsen,,38,1177,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5109197029,https://openalex.org/A5109197029,Lars Meyer,,103,1275,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128958719,https://openalex.org/A5128958719,Lars Möller,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Vorstand:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083295173,https://openalex.org/A5083295173,Lars Schmidt,,6,45,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5105774195,https://openalex.org/A5105774195,Lars Schmidt,,10,3,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027311573,https://openalex.org/A5027311573,Maike Müller,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045955262,https://openalex.org/A5045955262,Manfred Lange,,17,228,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083105835,https://openalex.org/A5083105835,Marc Birkner,,2,79,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5017148486,https://openalex.org/A5017148486,Marcel Kremer,https://orcid.org/0000-0001-9130-7670,14,121,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5018246741,https://openalex.org/A5018246741,Marcel Noack,,18,57,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003062229,https://openalex.org/A5003062229,Marcus Brinkmann,https://orcid.org/0000-0001-6370-5380,28,761,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:4,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127193245,https://openalex.org/A5127193245,Marcus Schmitt,,9,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027482134,https://openalex.org/A5027482134,Marion Weber,,4,12,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024191146,https://openalex.org/A5024191146,Markus Kaiser,https://orcid.org/0000-0002-6540-8520,359,8863,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028999855,https://openalex.org/A5028999855,Martin Beck,https://orcid.org/0000-0002-7397-1321,252,18495,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049649829,https://openalex.org/A5049649829,Martin Busch,,4,191,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5002958357,https://openalex.org/A5002958357,Martin Friedrich,,2,19,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045477517,https://openalex.org/A5045477517,Martin Lang,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072066931,https://openalex.org/A5072066931,Martin Lemke,,4,44,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125936671,https://openalex.org/A5125936671,Martin May,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Liquidator:1; Prokurist:1,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007762483,https://openalex.org/A5007762483,Martin Schäfer,https://orcid.org/0000-0002-4580-6337,100,2270,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Persönlich haftender Gesellschafter:2; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5016786021,https://openalex.org/A5016786021,Martin Steinmetz,https://orcid.org/0000-0002-9109-0720,2,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5047106177,https://openalex.org/A5047106177,Matthias Brand,https://orcid.org/0000-0001-7194-7697,80,1420,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121446709,https://openalex.org/A5121446709,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123730804,https://openalex.org/A5123730804,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125038989,https://openalex.org/A5125038989,Matthias Brand,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129971313,https://openalex.org/A5129971313,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130612736,https://openalex.org/A5130612736,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5018982548,https://openalex.org/A5018982548,Matthias Bähr,https://orcid.org/0000-0003-2598-1442,27,146,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:5,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083966487,https://openalex.org/A5083966487,Matthias Kramer,https://orcid.org/0000-0002-4865-7023,12,4,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003105833,https://openalex.org/A5003105833,Michael Berger,https://orcid.org/0000-0002-3469-0076,185,6927,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5085864136,https://openalex.org/A5085864136,Michael Berger,,10,55,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102099848,https://openalex.org/A5102099848,Michael Berger,,41,3027,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125930652,https://openalex.org/A5125930652,Michael Berger,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045643257,https://openalex.org/A5045643257,Michael Braun,https://orcid.org/0000-0002-3961-6211,33,608,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103428777,https://openalex.org/A5103428777,Michael Braun,,15,117,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104591730,https://openalex.org/A5104591730,Michael Faust,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039072748,https://openalex.org/A5039072748,Michael Giese,https://orcid.org/0000-0001-6355-536X,239,3476,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073979306,https://openalex.org/A5073979306,Michael Jahn,https://orcid.org/0000-0002-7493-205X,72,1278,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5080777994,https://openalex.org/A5080777994,Michael Kamp,https://orcid.org/0000-0001-6231-0694,71,1138,child_of_ude,Institute for Advanced Study in the Humanities Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5067507616,https://openalex.org/A5067507616,Michael Klein,https://orcid.org/0000-0002-1448-9535,83,908,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5060412934,https://openalex.org/A5060412934,Michael Korn,,3,36,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073107581,https://openalex.org/A5073107581,Michael Philipp,,202,3070,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5061602677,https://openalex.org/A5061602677,Michael Pies,,5,24,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5117265306,https://openalex.org/A5117265306,Michael Schmitz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025836402,https://openalex.org/A5025836402,Michael Steffen,,42,379,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:3; Prokurist:3; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101742920,https://openalex.org/A5101742920,Michael Wurm,https://orcid.org/0000-0002-3419-2202,7,50,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034259217,https://openalex.org/A5034259217,Norbert Schwarz,https://orcid.org/0000-0002-8868-7067,764,91389,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007001298,https://openalex.org/A5007001298,Oliver Schwarz,https://orcid.org/0000-0003-3434-5640,209,1803,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5118729889,https://openalex.org/A5118729889,Oliver Schwarz,https://orcid.org/0000-0003-0930-9752,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5069695058,https://openalex.org/A5069695058,Peter Bayer,https://orcid.org/0000-0003-0435-7202,163,4001,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122335477,https://openalex.org/A5122335477,Peter Haase,,4,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126565073,https://openalex.org/A5126565073,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128761798,https://openalex.org/A5128761798,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128789493,https://openalex.org/A5128789493,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5044056577,https://openalex.org/A5044056577,Peter Hinz,,2,35,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015245862,https://openalex.org/A5015245862,Peter Jung,https://orcid.org/0000-0001-7679-9697,894,22945,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101501818,https://openalex.org/A5101501818,Peter Jung,https://orcid.org/0000-0001-7002-8840,62,70,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130157755,https://openalex.org/A5130157755,Peter Jung,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130524017,https://openalex.org/A5130524017,Peter Jung,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5095512590,https://openalex.org/A5095512590,Peter Klein,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Liquidator:2; Inhaber:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073786564,https://openalex.org/A5073786564,Peter Kramer,,4,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005284699,https://openalex.org/A5005284699,Peter Vogel,,1,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078736126,https://openalex.org/A5078736126,Peter Vogel,,2,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073677785,https://openalex.org/A5073677785,Philipp Heim,,40,677,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5000527934,https://openalex.org/A5000527934,Ralf Herrmann,,99,3438,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5091333429,https://openalex.org/A5091333429,Ralf Küppers,https://orcid.org/0000-0002-6691-7191,510,44299,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103187419,https://openalex.org/A5103187419,Ralf Müller,,200,4724,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5077021691,https://openalex.org/A5077021691,Ralf Sauer,,3,32,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5014597935,https://openalex.org/A5014597935,Reinhard Schulz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101832860,https://openalex.org/A5101832860,Robert Huber,https://orcid.org/0000-0002-0133-5334,746,81882,direct_ude,University of Duisburg-Essen,>=11,Prokurist:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113600462,https://openalex.org/A5113600462,Robert Huber,,7,794,direct_ude,University of Duisburg-Essen,>=11,Prokurist:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078738600,https://openalex.org/A5078738600,Rolf Braun,,4,11,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129673745,https://openalex.org/A5129673745,Rudolf Walter,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122103793,https://openalex.org/A5122103793,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127808287,https://openalex.org/A5127808287,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130591899,https://openalex.org/A5130591899,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104110302,https://openalex.org/A5104110302,Sebastian Klein,,123,992,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078421413,https://openalex.org/A5078421413,Sebastian Seidel,,6,72,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028574608,https://openalex.org/A5028574608,Stefan Behrendt,,2,31,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:3; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5058806029,https://openalex.org/A5058806029,Stefan Blum,,4,56,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072469617,https://openalex.org/A5072469617,Stefan Esser,,19,574,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125494958,https://openalex.org/A5125494958,Stefan Esser,,2,0,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111761334,https://openalex.org/A5111761334,Stefan Franke,,1,14,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5079997249,https://openalex.org/A5079997249,Stefan Heimann,,40,469,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Prokurist:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5029839616,https://openalex.org/A5029839616,Stefan Klein,,4,29,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090938768,https://openalex.org/A5090938768,Stefan Wagner,https://orcid.org/0000-0001-9737-2246,123,1396,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5062639221,https://openalex.org/A5062639221,Steffen Schulze,,2,1,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5004351252,https://openalex.org/A5004351252,Stephan Schulz,https://orcid.org/0000-0003-2896-4488,991,10298,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5081179735,https://openalex.org/A5081179735,Stephan Schulz,https://orcid.org/0000-0002-3271-0897,10,20,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128899158,https://openalex.org/A5128899158,Stephan Schulz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114232030,https://openalex.org/A5114232030,Sven Kaiser,,2,12,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:6; Liquidator:2,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5080964269,https://openalex.org/A5080964269,Sven Schulz,https://orcid.org/0000-0002-2663-5157,76,438,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039812689,https://openalex.org/A5039812689,Sven Simon,https://orcid.org/0000-0002-6204-5437,229,2665,direct_ude,University of Duisburg-Essen,>=11,Prokurist:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003438467,https://openalex.org/A5003438467,Thilo Krämer,https://orcid.org/0000-0001-8806-8138,2,26,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126851559,https://openalex.org/A5126851559,Thomas Brock,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,11,Geschäftsführer:3; Liquidator:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5107844819,https://openalex.org/A5107844819,Thomas Ernst,,93,8229,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128656245,https://openalex.org/A5128656245,Thomas Günther,,2,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104272425,https://openalex.org/A5104272425,Thomas Herold,,135,2512,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5071644998,https://openalex.org/A5071644998,Thomas Kaiser,https://orcid.org/0000-0001-9679-5968,542,5080,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111380960,https://openalex.org/A5111380960,Thomas Kaiser,,2,43,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112411494,https://openalex.org/A5112411494,Thomas Kaiser,,36,182,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121025589,https://openalex.org/A5121025589,Thomas Kaiser,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122994949,https://openalex.org/A5122994949,Thomas Kaiser,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128141811,https://openalex.org/A5128141811,Thomas Kaiser,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5043600020,https://openalex.org/A5043600020,Thomas Keller,https://orcid.org/0000-0002-0126-4206,11,56,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5001102432,https://openalex.org/A5001102432,Thomas Klaus,,7,73,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100733589,https://openalex.org/A5100733589,Thomas Schmidt,https://orcid.org/0000-0003-0026-6450,431,2352,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111432183,https://openalex.org/A5111432183,Thomas Schrader,,5,188,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2; Inhaber:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101881137,https:/A5101881137/openalex.org/,Thomas Wagner,https://orcid.org/0000-0002-6853-0572,81,2335,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Prokurist:2; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082063437,https://openalex.org/A5082063437,Thomas Weber,https://orcid.org/0000-0002-3758-4279,42,154,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5089915448,https://openalex.org/A5089915448,Thomas Wilke,,2,6,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5001069608,https://openalex.org/A5001069608,Tim Becker,https://orcid.org/0009-0005-2072-4801,10,27,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102492004,https://openalex.org/A5102492004,Tim Becker,,6,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123126640,https://openalex.org/A5123126640,Tobias Koch,,2,0,child_of_ude,Institut für Energie- und Umwelttechnik,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5036606635,https://openalex.org/A5036606635,Tobias Lerchner,https://orcid.org/0000-0003-1120-4087,15,59,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114473811,https://openalex.org/A5114473811,Tobias Schwarz,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013486947,https://openalex.org/A5013486947,Ulrich Frank,https://orcid.org/0000-0002-8057-1836,281,5408,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113980542,https://openalex.org/A5113980542,Ulrich Frank,,2,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028558427,https://openalex.org/A5028558427,Ulrich Schmitz,https://orcid.org/0000-0002-9975-9716,185,985,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112081965,https://openalex.org/A5112081965,Ulrich Schneider,,9,4,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5010002069,https://openalex.org/A5010002069,Ulrich Schreiber,https://orcid.org/0000-0002-3775-5058,649,6664,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102336075,https://openalex.org/A5102336075,Ulrich Schreiber,,6,13,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120714179,https://openalex.org/A5120714179,Ulrich Schreiber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5088909041,https://openalex.org/A5088909041,Uwe Martens,,3,9,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028270597,https://openalex.org/A5028270597,Verena Schmitt,https://orcid.org/0000-0002-6951-6406,42,638,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5009676373,https://openalex.org/A5009676373,Wolfgang Franke,,4,28,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024948331,https://openalex.org/A5024948331,Wolfgang Funk,,1,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102399620,https://openalex.org/A5102399620,Wolfgang Günther,,5,8,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5085834772,https://openalex.org/A5085834772,Wolfgang Schmidt,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5070205178,https://openalex.org/A5070205178,Wolfgang Stein,,3,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:5; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125267612,https://openalex.org/A5125267612,Xin Wang,,4,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066622183,https://openalex.org/A5066622183,Yu Zhang,https://orcid.org/0000-0003-3579-4675,1,23,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. diff --git a/service/Dockerfile.base b/service/Dockerfile.base index 77926c9a..b278044a 100644 --- a/service/Dockerfile.base +++ b/service/Dockerfile.base @@ -7,4 +7,4 @@ RUN mkdir /test && \ pip install --root-user-action=ignore --no-cache-dir "sentence-transformers~=5.5.1" ENV SENTENCE_TRANSFORMERS_HOME=/models -RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('paraphrase-multilingual-mpnet-base-v2')" +RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('intfloat/multilingual-e5-base')" diff --git a/service/build.gradle b/service/build.gradle index 40510af3..066a7af3 100644 --- a/service/build.gradle +++ b/service/build.gradle @@ -49,7 +49,7 @@ task exportOpenApiSpec(type: Exec) { commandLine 'docker', 'run', '--rm', '--platform', "${targetPlatform}", '-w', '/home', - '-v', "${projectDir}/src/main:/home", + //'-v', "${projectDir}/src/main:/home", the source code is already baked into the image at build time '-v', "${openApiDir}:/mnt/openapi", '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '--name', "${imageName}-service-openapi", diff --git a/service/sentence_transformer/index_topics.py b/service/sentence_transformer/index_topics.py index 7b506427..12f29a9d 100644 --- a/service/sentence_transformer/index_topics.py +++ b/service/sentence_transformer/index_topics.py @@ -1,17 +1,13 @@ #!/usr/bin/env python3 """ -One-time script to fetch all topics from 'openalex-topics', -vectorize display names and chunked descriptions using the sentence-transformers model, -and push them to the 'topicvectors' index with multi-vector hybrid mapping. +Script to fetch all topics from 'openalex-topics', +vectorize display names, full descriptions, and individual keywords using the sentence-transformers model, +and push them to the 'topicvectors' index with multi-vector mapping. """ -import os import sys import json -import base64 -import re from pathlib import Path import httpx -import numpy as np from dotenv import load_dotenv # Add service/src/main to python path to load settings @@ -24,8 +20,10 @@ sys.path.append(str(project_root / "service" / "src" / "main")) from inse.config import settings ELASTIC_URL = settings.elasticsearch_url +if ELASTIC_URL and not ELASTIC_URL.endswith("/"): + ELASTIC_URL += "/" API_KEY = settings.elasticsearch_api_key -MODEL_NAME = "paraphrase-multilingual-mpnet-base-v2" +MODEL_NAME = settings.sentence_transformers_model_name # Import sentence-transformers from sentence_transformers import SentenceTransformer @@ -35,20 +33,12 @@ headers = { "Content-Type": "application/json" } -def split_into_sentences(text): - if not text: - return [] - # Split on period, exclamation, or question mark followed by whitespace - sentences = re.split(r'(?<=[.!?])\s+', text.strip()) - # Filter out empty or extremely short sentences - return [s for s in sentences if len(s.strip()) > 3] - def fetch_all_topics(): print("Fetching topics from 'openalex-topics'...") topics = [] size = 1000 offset = 0 - + with httpx.Client(timeout=60.0) as client: while True: payload = { @@ -71,42 +61,90 @@ def fetch_all_topics(): print(f"Fetched {len(topics)} topics so far...") if len(hits) < size: break - + print(f"Total topics fetched: {len(topics)}") return topics -def bulk_index_topics(topics, display_name_vectors, nested_description_vectors): +def update_mappings(): + print("Checking/updating mappings for 'topicvectors'...") + mapping_payload = { + "properties": { + "display_name_vector": { + "type": "dense_vector", + "dims": 768, + "index": True, + "similarity": "cosine", + "index_options": { + "type": "int8_hnsw", + "m": 16, + "ef_construction": 100 + } + }, + "keyword_vectors": { + "type": "nested", + "properties": { + "vector": { + "type": "dense_vector", + "dims": 768, + "index": True, + "similarity": "cosine", + "index_options": { + "type": "int8_hnsw", + "m": 16, + "ef_construction": 100 + } + } + } + } + } + } + with httpx.Client(timeout=30.0) as client: + # Check if index exists + check_resp = client.get(f"{ELASTIC_URL}topicvectors", headers=headers) + if check_resp.status_code == 404: + print("Index 'topicvectors' does not exist. Creating it...") + create_payload = { + "mappings": mapping_payload + } + resp = client.put(f"{ELASTIC_URL}topicvectors", json=create_payload, headers=headers) + resp.raise_for_status() + else: + print("Index 'topicvectors' exists. Updating mappings...") + resp = client.put(f"{ELASTIC_URL}topicvectors/_mapping", json=mapping_payload, headers=headers) + resp.raise_for_status() + print("Mappings update process completed.") + +def bulk_index_topics(topics, display_name_vectors, keyword_vectors_list): print("Bulk indexing vectorized topics into 'topicvectors'...") batch_size = 500 - + with httpx.Client(timeout=60.0) as client: for i in range(0, len(topics), batch_size): batch_topics = topics[i:i+batch_size] batch_name_vecs = display_name_vectors[i:i+batch_size] - batch_desc_vecs_list = nested_description_vectors[i:i+batch_size] - + batch_kw_vecs_list = keyword_vectors_list[i:i+batch_size] + bulk_lines = [] - for t, name_vec, desc_vecs in zip(batch_topics, batch_name_vecs, batch_desc_vecs_list): + for t, name_vec, kw_vecs in zip(batch_topics, batch_name_vecs, batch_kw_vecs_list): source = t["_source"] - - # Remove deprecated single vector if present - if "vector" in source: - del source["vector"] - + + source.pop("siblings", None) # drop siblings field when making the copy + source.pop("description", None) # drop description field entirely + # Assign name vector as a standard float list source["display_name_vector"] = name_vec.tolist() - - # Assign nested description vectors as standard float lists - source["description_vectors"] = [ - {"vector": vec.tolist()} for vec in desc_vecs + + # Assign nested keyword vectors + source["keyword_vectors"] = [ + {"vector": vec.tolist()} for vec in kw_vecs ] - + # Meta line meta = {"index": {"_index": "topicvectors", "_id": t["_id"]}} bulk_lines.append(json.dumps(meta)) # Document line bulk_lines.append(json.dumps(source)) - + payload = "\n".join(bulk_lines) + "\n" resp = client.post( f"{ELASTIC_URL}_bulk", @@ -124,53 +162,54 @@ def bulk_index_topics(topics, display_name_vectors, nested_description_vectors): print(f"Indexed batch {i} to {i + len(batch_topics)}") def main(): + update_mappings() + topics = fetch_all_topics() if not topics: print("No topics found. Exiting.") return - + print(f"Initializing SentenceTransformer model '{MODEL_NAME}'...") model = SentenceTransformer(MODEL_NAME) - + # 1. Gather all texts to embed - display_names = [] - description_sentences_by_topic = [] + keywords_by_topic = [] all_texts_to_embed = [] - + for t in topics: source = t["_source"] + name = source.get("display_name") or "" - display_names.append(name) all_texts_to_embed.append(name) - - desc = source.get("description") or "" - sentences = split_into_sentences(desc) - description_sentences_by_topic.append(sentences) - all_texts_to_embed.extend(sentences) - - print(f"Embedding {len(all_texts_to_embed)} texts (display names and description passages)...") + + kws = source.get("keywords") or [] + if not isinstance(kws, list): + kws = [kws] if kws else [] + keywords_by_topic.append(kws) + all_texts_to_embed.extend(kws) + + print(f"Embedding {len(all_texts_to_embed)} texts (display names and keywords)...") all_vectors = model.encode(all_texts_to_embed, show_progress_bar=True, batch_size=32) - + # 2. Map embeddings back to topics display_name_vectors = [] - nested_description_vectors = [] - + keyword_vectors_list = [] + vector_idx = 0 for idx, t in enumerate(topics): - # First vector is the display name - display_name_vectors.append(all_vectors[vector_idx]) - vector_idx += 1 - - # Next N vectors are the description chunks - sentences = description_sentences_by_topic[idx] - topic_desc_vecs = [] - for _ in range(len(sentences)): - topic_desc_vecs.append(all_vectors[vector_idx]) - vector_idx += 1 - nested_description_vectors.append(topic_desc_vecs) - + + display_name_vectors.append(all_vectors[vector_idx]) + vector_idx += 1 + + kws = keywords_by_topic[idx] + topic_kw_vecs = [] + for _ in range(len(kws)): + topic_kw_vecs.append(all_vectors[vector_idx]) + vector_idx += 1 + keyword_vectors_list.append(topic_kw_vecs) + # Bulk index - bulk_index_topics(topics, display_name_vectors, nested_description_vectors) + bulk_index_topics(topics, display_name_vectors, keyword_vectors_list) print("Done!") if __name__ == "__main__": diff --git a/service/src/data/search_scores.json b/service/src/data/search_scores.json deleted file mode 100644 index 3f7d4e0b..00000000 --- a/service/src/data/search_scores.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "query": "Robotics", - "max_score": 22.734766, - "results": [ - { - "topic_name": "Soft Robotics and Applications", - "score": 22.734766 - }, - { - "topic_name": "Robotics and Automated Systems", - "score": 21.997686 - }, - { - "topic_name": "Educational Robotics and Engineering", - "score": 21.919401 - }, - { - "topic_name": "Prosthetics and Rehabilitation Robotics", - "score": 21.846806 - }, - { - "topic_name": "Micro and Nano Robotics", - "score": 21.820261 - }, - { - "topic_name": "Reinforcement Learning in Robotics", - "score": 21.757397 - }, - { - "topic_name": "Robotics and Sensor-Based Localization", - "score": 19.993645 - }, - { - "topic_name": "Social Robot Interaction and HRI", - "score": 13.187252 - }, - { - "topic_name": "Robotic Locomotion and Control", - "score": 12.283064 - }, - { - "topic_name": "Power Line Inspection Robots", - "score": 11.873396 - }, - { - "topic_name": "Mechatronics Education and Applications", - "score": 11.171629 - }, - { - "topic_name": "Educational Technology and Optimization", - "score": 10.924184 - }, - { - "topic_name": "Mechanical and Thermal Properties Analysis", - "score": 10.924184 - }, - { - "topic_name": "Psychiatry, Mental Health, Neuroscience", - "score": 10.687462 - }, - { - "topic_name": "Advanced Materials and Mechanics", - "score": 10.460782 - }, - { - "topic_name": "Wetland Management and Conservation", - "score": 10.460782 - }, - { - "topic_name": "Artificial Intelligence Applications", - "score": 10.243518 - }, - { - "topic_name": "Digitalization, Law, and Regulation", - "score": 10.243518 - }, - { - "topic_name": "Engineering and Technology Innovations", - "score": 10.243518 - }, - { - "topic_name": "Advanced Algorithms and Applications", - "score": 10.035095 - }, - { - "topic_name": "Teaching and Learning Programming", - "score": 10.035095 - }, - { - "topic_name": "Distributed Control Multi-Agent Systems", - "score": 10.035095 - }, - { - "topic_name": "Advanced Scientific and Engineering Studies", - "score": 9.834986 - }, - { - "topic_name": "Space Satellite Systems and Control", - "score": 9.6427 - }, - { - "topic_name": "Smart Agriculture and AI", - "score": 9.279837 - }, - { - "topic_name": "Underwater Vehicles and Communication Systems", - "score": 9.279837 - }, - { - "topic_name": "Modular Robots and Swarm Intelligence", - "score": 7.7584143 - }, - { - "topic_name": "Diverse Perspectives in Modern Studies", - "score": 5.6107 - }, - { - "topic_name": "Teleoperation and Haptic Systems", - "score": 5.2510495 - }, - { - "topic_name": "Optimization and Search Problems", - "score": 5.1682277 - }, - { - "topic_name": "Adaptive Dynamic Programming Control", - "score": 4.8615155 - }, - { - "topic_name": "Robotic Mechanisms and Dynamics", - "score": 2.6450925 - }, - { - "topic_name": "Control and Dynamics of Mobile Robots", - "score": 2.5917463 - }, - { - "topic_name": "Robot Manipulation and Learning", - "score": 2.5859585 - }, - { - "topic_name": "Robotic Process Automation Applications", - "score": 1.7370787 - }, - { - "topic_name": "Robotic Path Planning Algorithms", - "score": 1.6302633 - } - ] -} diff --git a/service/src/data/users.json b/service/src/data/users.json index f7311478..450db22c 100644 --- a/service/src/data/users.json +++ b/service/src/data/users.json @@ -1,22 +1,22 @@ { - "users": [ - { - "username": "superadmin", - "password": "superadmin", - "email": "some_email@uni-due.de", - "account": 0, - "organization": 0, - "organization_name": "University of Duisburg-Essen", - "superadmin": true - }, - { - "username": "user", - "password": "user", - "email": "user_email@uni-due.de", - "account": 1, - "organization": 1, - "organization_name": "University of Duisburg-Essen", - "superadmin": false - } - ] -} \ No newline at end of file + "users": [ + { + "username": "superadmin", + "password": "superadmin", + "email": "some_email@uni-due.de", + "account": 0, + "organization": 0, + "organization_name": "University of Duisburg-Essen", + "superadmin": true + }, + { + "username": "user", + "password": "user", + "email": "user_email@uni-due.de", + "account": 1, + "organization": 1, + "organization_name": "University of Duisburg-Essen", + "superadmin": false + } + ] +} diff --git a/service/src/main/inse/.env b/service/src/main/inse/.env index b5adb53d..05a15cad 100644 --- a/service/src/main/inse/.env +++ b/service/src/main/inse/.env @@ -1,12 +1,22 @@ ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic/ ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ -ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic/ +LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/ +LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212 +LLM_MODEL=gemma4-e4b + +# Patent search (EPO + USPTO) +PATENT_ELASTICSEARCH_URL=https://inse.nes.uni-due.de/elastic +PATENT_ELASTICSEARCH_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic +ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ + +ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic ELASTICSEARCH_INSE_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/ LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212 LLM_MODEL=gemma4-e4b -ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic -ELASTICSEARCH_INSE_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== \ No newline at end of file +# Sentence Transformers Configuration +SENTENCE_TRANSFORMERS_MODEL_NAME=intfloat/multilingual-e5-base diff --git a/service/src/main/inse/company_connections/__init__.py b/service/src/main/inse/company_connections/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/service/src/main/inse/company_connections/logic.py b/service/src/main/inse/company_connections/logic.py new file mode 100644 index 00000000..1ffea295 --- /dev/null +++ b/service/src/main/inse/company_connections/logic.py @@ -0,0 +1,298 @@ +import logging +from typing import Any + +import httpx +from fastapi import HTTPException +from starlette.status import HTTP_502_BAD_GATEWAY, HTTP_503_SERVICE_UNAVAILABLE + +from . import model +from .search_client import CompanyConnectionsSearchClient, MissingApiKeyError + +logger = logging.getLogger(__name__) + +UDE_OPENALEX_ID = "https://openalex.org/I62318514" +UDE_ROR = "https://ror.org/04mz5ra38" +UDE_DISPLAY_NAME = "University of Duisburg-Essen" + +MATCHING_METHOD = "exact_openalex_display_name_to_handelsregister_officer_name" + + +async def get_company_connections_by_author_id( + author_id: str, + client: CompanyConnectionsSearchClient | None = None, +) -> model.CompanyConnectionsResponse: + search_client = client or CompanyConnectionsSearchClient() + + try: + author_hit = await search_client.get_openalex_author(author_id) + except MissingApiKeyError as exc: + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Elasticsearch is not configured.", + ) from exc + except httpx.HTTPError as exc: + logger.exception("OpenAlex author lookup failed for %s.", author_id) + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="OpenAlex author lookup failed.", + ) from exc + + if author_hit is None: + raise HTTPException(status_code=404, detail=f"Author {author_id} not found.") + + source = author_hit.get("_source", {}) + display_name = _clean(source.get("display_name")) + institution_scope, matching_institutions = _get_ude_institution_scope(source) + is_ude_author = institution_scope is not None + + if not is_ude_author or not display_name: + return model.CompanyConnectionsResponse( + author_id=author_id, + display_name=display_name or None, + is_ude_author=is_ude_author, + institution_scope=institution_scope, + matching_institutions=matching_institutions, + matching_method=None, + company_count=0, + has_more_results=False, + common_name_warning=False, + connections=[], + ) + + try: + hr_response = await search_client.search_handelsregister_by_officer_name( + display_name + ) + except MissingApiKeyError as exc: + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Elasticsearch is not configured.", + ) from exc + except httpx.HTTPError as exc: + logger.exception("Handelsregister lookup failed for %s.", display_name) + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Handelsregister lookup failed.", + ) from exc + + company_count, company_count_relation = _parse_total(hr_response) + connections = _parse_company_connections( + response=hr_response, + matched_person_name=display_name, + ) + + has_more_results = company_count_relation == "gte" or company_count > len( + connections + ) + common_name_warning = has_more_results or company_count > 3 + + return model.CompanyConnectionsResponse( + author_id=author_id, + display_name=display_name, + is_ude_author=True, + institution_scope=institution_scope, + matching_institutions=matching_institutions, + matching_method=MATCHING_METHOD, + company_count=company_count, + has_more_results=has_more_results, + common_name_warning=common_name_warning, + connections=connections, + ) + + +def _get_ude_institution_scope(source: dict[str, Any]) -> tuple[str | None, list[str]]: + institutions = source.get("last_known_institutions") or [] + + direct_matches: list[str] = [] + child_matches: list[str] = [] + + for institution in institutions: + if not isinstance(institution, dict): + continue + + institution_id = _clean(institution.get("id")) + ror = _clean(institution.get("ror")) + name = _clean(institution.get("display_name")) + lineage = institution.get("lineage") or [] + + label = name or institution_id or ror + + is_direct = ( + institution_id == UDE_OPENALEX_ID + or ror == UDE_ROR + or name == UDE_DISPLAY_NAME + ) + is_child = UDE_OPENALEX_ID in lineage and not is_direct + + if is_direct: + direct_matches.append(label) + elif is_child: + child_matches.append(label) + + if direct_matches: + return "direct_ude", sorted(set(direct_matches)) + + if child_matches: + return "child_of_ude", sorted(set(child_matches)) + + return None, [] + + +def _parse_total(response: dict[str, Any]) -> tuple[int, str]: + total = response.get("hits", {}).get("total", 0) + + if isinstance(total, dict): + return int(total.get("value") or 0), total.get("relation") or "eq" + + return int(total or 0), "eq" + + +def _parse_company_connections( + response: dict[str, Any], + matched_person_name: str, +) -> list[model.CompanyConnection]: + connections: list[model.CompanyConnection] = [] + + hits = response.get("hits", {}).get("hits", []) + + for hit in hits: + source = hit.get("_source", {}) + + matched_officers = _parse_inner_hit_officers(hit) + officers = _parse_source_officers( + source=source, + matched_person_name=matched_person_name, + ) + + connections.append( + model.CompanyConnection( + company_number=source.get("company_number"), + company_name=source.get("name"), + company_status=source.get("current_status"), + register_art=source.get("register_art"), + register_nummer=source.get("register_nummer"), + native_company_number=source.get("native_company_number"), + registrar=source.get("registrar"), + registered_office=source.get("registered_office"), + registered_address=source.get("registered_address"), + retrieved_at=source.get("retrieved_at"), + matched_officers=matched_officers, + officers=officers, + ) + ) + + return connections + + +def _parse_inner_hit_officers(hit: dict[str, Any]) -> list[model.MatchedOfficer]: + inner_hits = ( + hit.get("inner_hits", {}).get("officers", {}).get("hits", {}).get("hits", []) + ) + + officers: list[model.MatchedOfficer] = [] + + for inner_hit in inner_hits: + source = inner_hit.get("_source", {}) + officer_source = _normalize_officer_source(source) + + officers.append( + _to_officer( + officer_source, + is_matched_person=True, + ) + ) + + return _deduplicate_officers(officers) + + +def _parse_source_officers( + source: dict[str, Any], + matched_person_name: str, +) -> list[model.MatchedOfficer]: + raw_officers = source.get("officers") or [] + + if not isinstance(raw_officers, list): + return [] + + officers: list[model.MatchedOfficer] = [] + + for raw_officer in raw_officers: + if not isinstance(raw_officer, dict): + continue + + if _clean(raw_officer.get("type")) != "person": + continue + + officer_name = _clean(raw_officer.get("name")) + is_matched_person = officer_name == matched_person_name + + officers.append( + _to_officer( + raw_officer, + is_matched_person=is_matched_person, + ) + ) + + return _deduplicate_officers(officers) + + +def _to_officer( + source: dict[str, Any], + is_matched_person: bool, +) -> model.MatchedOfficer: + return model.MatchedOfficer( + name=_clean_or_none(source.get("name")), + firstname=_clean_or_none(source.get("firstname")), + lastname=_clean_or_none(source.get("lastname")), + city=_clean_or_none(source.get("city")), + position=_clean_or_none(source.get("position")), + start_date=_clean_or_none(source.get("start_date")), + type=_clean_or_none(source.get("type")), + flag=_clean_or_none(source.get("flag")), + is_matched_person=is_matched_person, + ) + + +def _deduplicate_officers( + officers: list[model.MatchedOfficer], +) -> list[model.MatchedOfficer]: + seen: set[tuple[str, str, str, str]] = set() + deduplicated: list[model.MatchedOfficer] = [] + + for officer in officers: + key = ( + officer.name or "", + officer.position or "", + officer.city or "", + officer.start_date or "", + ) + + if key in seen: + continue + + seen.add(key) + deduplicated.append(officer) + + return deduplicated + + +def _normalize_officer_source(source: dict[str, Any]) -> dict[str, Any]: + officers = source.get("officers") + + if isinstance(officers, dict): + return officers + + return source + + +def _clean_or_none(value: Any) -> str | None: + cleaned = _clean(value) + + return cleaned or None + + +def _clean(value: Any) -> str: + if value is None: + return "" + + return str(value).strip() diff --git a/service/src/main/inse/company_connections/model.py b/service/src/main/inse/company_connections/model.py new file mode 100644 index 00000000..dd7d28c0 --- /dev/null +++ b/service/src/main/inse/company_connections/model.py @@ -0,0 +1,44 @@ +from pydantic import BaseModel, Field + + +class MatchedOfficer(BaseModel): + name: str | None = None + firstname: str | None = None + lastname: str | None = None + city: str | None = None + position: str | None = None + start_date: str | None = None + type: str | None = None + flag: str | None = None + is_matched_person: bool = False + + +class CompanyConnection(BaseModel): + company_number: str | None = None + company_name: str | None = None + company_status: str | None = None + register_art: str | None = None + register_nummer: str | None = None + native_company_number: str | None = None + registrar: str | None = None + registered_office: str | None = None + registered_address: str | None = None + retrieved_at: str | None = None + matched_officers: list[MatchedOfficer] = Field(default_factory=list) + officers: list[MatchedOfficer] = Field(default_factory=list) + + +class CompanyConnectionsResponse(BaseModel): + author_id: str + display_name: str | None = None + is_ude_author: bool + institution_scope: str | None = None + matching_institutions: list[str] = Field(default_factory=list) + + matching_method: str | None = None + + company_count: int + has_more_results: bool + common_name_warning: bool + + connections: list[CompanyConnection] = Field(default_factory=list) diff --git a/service/src/main/inse/company_connections/search_client.py b/service/src/main/inse/company_connections/search_client.py new file mode 100644 index 00000000..4516f4f7 --- /dev/null +++ b/service/src/main/inse/company_connections/search_client.py @@ -0,0 +1,140 @@ +from typing import Any + +import httpx + +from .. import config + + +class MissingApiKeyError(Exception): + pass + + +class CompanyConnectionsSearchClient: + def __init__( + self, + base_url: str | None = None, + api_key: str | None = None, + openalex_index: str = "openalex-authors", + handelsregister_index: str = "handelsregister", + timeout: float = 30.0, + transport: httpx.AsyncBaseTransport | None = None, + ): + self.base_url = ( + base_url + or config.settings.elasticsearch_url + or "" + ).rstrip("/") + self.api_key = ( + api_key + if api_key is not None + else config.settings.elasticsearch_api_key +) + self.openalex_index = openalex_index + self.handelsregister_index = handelsregister_index + self.timeout = timeout + self.transport = transport + + @staticmethod + def openalex_doc_id(author_id: str) -> str: + return author_id.strip().removeprefix("https://openalex.org/") + + async def get_openalex_author(self, author_id: str) -> dict[str, Any] | None: + if not self.api_key: + raise MissingApiKeyError("Elasticsearch API key is not configured.") + + doc_id = self.openalex_doc_id(author_id) + + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.get( + f"/{self.openalex_index}/_doc/{doc_id}", + headers={"Authorization": f"ApiKey {self.api_key}"}, + ) + + if response.status_code == 404: + return None + + response.raise_for_status() + return response.json() + + async def search_handelsregister_by_officer_name( + self, + officer_name: str, + size: int = 10000, + track_total_hits: bool = True, + ) -> dict[str, Any]: + if not self.api_key: + raise MissingApiKeyError("Elasticsearch API key is not configured.") + + payload = self.handelsregister_officer_name_query( + officer_name=officer_name, + size=size, + track_total_hits=track_total_hits, + ) + + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.post( + f"/{self.handelsregister_index}/_search", + headers={"Authorization": f"ApiKey {self.api_key}"}, + json=payload, + ) + response.raise_for_status() + return response.json() + + @staticmethod + def handelsregister_officer_name_query( + officer_name: str, + size: int, + track_total_hits: bool, + ) -> dict[str, Any]: + return { + "track_total_hits": track_total_hits, + "size": size, + "_source": [ + "company_number", + "name", + "current_status", + "registered_address", + "registered_office", + "registrar", + "register_art", + "register_nummer", + "native_company_number", + "retrieved_at", + "officers", + ], + "query": { + "nested": { + "path": "officers", + "query": { + "bool": { + "filter": [ + {"term": {"officers.type": "person"}}, + {"term": {"officers.name.keyword": officer_name}}, + ] + } + }, + "inner_hits": { + "size": 10, + "_source": [ + "officers.name", + "officers.firstname", + "officers.lastname", + "officers.city", + "officers.position", + "officers.start_date", + "officers.type", + "officers.flag", + ], + }, + } + }, + "sort": [{"company_number": {"order": "asc"}}], + } diff --git a/service/src/main/inse/company_connections/service.py b/service/src/main/inse/company_connections/service.py new file mode 100644 index 00000000..a739aa1c --- /dev/null +++ b/service/src/main/inse/company_connections/service.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +REST API for possible company connections of OpenAlex authors. +""" + +from fastapi import APIRouter + +from . import logic, model + +router = APIRouter( + prefix="/api/inse-service/authors", + tags=["Company Connections"], +) + + +@router.get( + "/{author_id}/company-connections", + operation_id="getCompanyConnectionsByAuthor", + response_model=model.CompanyConnectionsResponse, + response_model_exclude_none=True, + summary="Get possible company connections by OpenAlex author ID.", +) +async def get_company_connections_by_author(author_id: str): + return await logic.get_company_connections_by_author_id(author_id) diff --git a/service/src/main/inse/config.py b/service/src/main/inse/config.py index c72e5db4..cdb123a1 100644 --- a/service/src/main/inse/config.py +++ b/service/src/main/inse/config.py @@ -26,26 +26,30 @@ class Settings(BaseSettings): auth_disabled: bool = False auth_standalone: bool = True auth_secret: str = "change-me-to-a-secure-secret-key" - # OpenAlex works search config - openalex_works_search_base_url: str = "https://project.nes.uni-due.de/elastic" # IMPORTANT: wildcard * needed to query all work indices openalex_works_search_index: str = "openalex-works*" - openalex_works_api_key: str = ( - "am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==" - ) openalex_works_search_timeout_seconds: float = 30.0 # OpenAlex public API config openalex_api_base_url: str = "https://api.openalex.org" openalex_api_key: Optional[str] = None openalex_api_timeout_seconds: float = 30.0 + + # Patent Elasticsearch config + patent_elasticsearch_url: str = "https://inse.nes.uni-due.de/elastic" + patent_elasticsearch_api_key: Optional[str] = None + + # LLM config llm_api_url: Optional[str] = None llm_api_key: Optional[str] = None llm_model: Optional[str] = None - # elasticsearch config - elasticsearch_url: Optional[str] = None + # Sentence Transformers config + sentence_transformers_model_name: str = "paraphrase-multilingual-mpnet-base-v2" + + # Elasticsearch config + elasticsearch_url: str = "https://project.nes.uni-due.de/elastic" elasticsearch_api_key: Optional[str] = None elasticsearch_inse_url: Optional[str] = None elasticsearch_inse_api_key: Optional[str] = None @@ -58,9 +62,6 @@ class Settings(BaseSettings): {"url": "http://localhost:8000", "description": "Local development server"}, ] - elasticsearch_inse_url: Optional[str] = None - elasticsearch_inse_api_key: Optional[str] = None - logging_level: str = "DEBUG" diff --git a/service/src/main/inse/funders/elastic_search_client.py b/service/src/main/inse/funders/elastic_search_client.py index 126fa319..a411cb0a 100644 --- a/service/src/main/inse/funders/elastic_search_client.py +++ b/service/src/main/inse/funders/elastic_search_client.py @@ -23,9 +23,9 @@ class FundedPublicationsSearchClient: timeout: float | None = None, transport: httpx.AsyncBaseTransport | None = None, ): - self.base_url = (base_url or config.settings.openalex_works_search_base_url).rstrip("/") + self.base_url = (base_url or config.settings.elasticsearch_url or "").rstrip("/") self.index = index or config.settings.openalex_works_search_index - self.api_key = api_key if api_key is not None else config.settings.openalex_works_api_key + self.api_key = api_key if api_key is not None else config.settings.elasticsearch_api_key self.timeout = timeout if timeout is not None else config.settings.openalex_works_search_timeout_seconds self.transport = transport diff --git a/service/src/main/inse/institutions/institutions_search_client.py b/service/src/main/inse/institutions/institutions_search_client.py index dd895930..0e86c8de 100644 --- a/service/src/main/inse/institutions/institutions_search_client.py +++ b/service/src/main/inse/institutions/institutions_search_client.py @@ -1,9 +1,12 @@ import logging from typing import List, Set +from typing import Any, Dict, Literal, Optional + from inse.models.openalex.institution import Institution from inse.exceptions import NotFoundException from inse.integrations import elasticsearch +from inse.institutions.model import InstitutionPage logger = logging.getLogger(__name__) @@ -12,41 +15,151 @@ logger = logging.getLogger(__name__) class InstitutionsSearchClient: def __init__(self): """ - Initializes the client. Credentials and URLs are handled by the + Initializes the client. Credentials and URLs are handled by the centralized elasticsearch integration. """ pass - async def get_institution_by_id(self, raw_institution_id: str) -> Institution: - """ - Retrieves a single institution by its OpenAlex ID from the local Elasticsearch cluster. + def get_institution_by_id(self, raw_oa_institution_id: str) -> Institution: + """Retrieves an institution by its raw OpenAlex institution ID. + + Args: + raw_oa_institution_id (str): The raw OpenAlex institution ID to search for. + + Raises: + NotFoundException: If no institution is found with the given ID or if the institution data cannot be parsed. + + Returns: + Institution: The institution corresponding to the given raw OpenAlex institution ID. """ query = { "match": { - "id": f"https://openalex.org/{raw_institution_id.upper()}", + "id": f"https://openalex.org/{raw_oa_institution_id.upper()}", } } - - res = elasticsearch.search( - index="openalex-institutions", - query=query, - size=1 - ) - + + res = elasticsearch.search(index="openalex-institutions", query=query, size=1) + hits = res.get("hits", {}).get("hits", []) if not hits: - raise NotFoundException(f"Institution with ID '{raw_institution_id}' not found.") + raise NotFoundException( + f"Institution with ID '{raw_oa_institution_id}' not found." + ) + + institution = self._convert_hit_to_institution(hits[0]) + if not institution: + raise NotFoundException( + f"Institution with ID '{raw_oa_institution_id}' could not be parsed." + ) + + return institution + + async def get_eu_organisation_id_by_oa_institution_id( + self, raw_institution_id: str + ) -> Optional[str]: + """Retrieves the corresponding EU organisation ID for a given OpenAlex institution ID, if available. + + Args: + raw_institution_id (str): The raw OpenAlex institution ID for which to retrieve the EU organisation ID. + + Returns: + Optional[str]: The corresponding EU organisation ID, or None if not found. + """ + raw_institution_id = raw_institution_id.upper() + cache = { + "I62318514": "999843312", + } + # TODO: Implement actual retrieval of RCN from Elasticsearch or another source instead of using a hardcoded cache. + return cache.get(raw_institution_id) + + def get_institutions_by_name( + self, + name: str, + page: int = 0, + size: int = 10, + sort_by: Literal[ + "relevance", "name", "works_count", "citations_count" + ] = "relevance", + sorting_direction: Literal["asc", "desc"] = "asc", + ) -> InstitutionPage: + sort_config: list = [] + + if sort_by == "relevance": + sort_config.append( + { + "_score": { + "order": sorting_direction if sorting_direction else "desc" + } + } + ) + elif sort_by == "works_count": + sort_config.append({"works_count": {"order": sorting_direction}}) + elif sort_by == "citations_count": + sort_config.append({"cited_by_count": {"order": sorting_direction}}) + else: + sort_config.append({"display_name.keyword": {"order": sorting_direction}}) + + query: Dict[str, Any] = {"match_all": {}} + + if len(name) > 0: + query = { + "match_phrase_prefix": { + "display_name": { + "query": name, + "max_expansions": 50, + } + } + } + elif sort_by == "relevance": + sort_config = [{"display_name.keyword": {"order": sorting_direction}}] - authors = await self.get_authors_by_institution_id(raw_institution_id) logger.debug( - "Retrieved authors for institution_id=%s: %s", raw_institution_id, authors + "Searching institutions with name='%s', page=%d, size=%d, sorting_direction='%s', query: %s", + name, + page, + size, + sorting_direction, + query, + ) + try: + response = elasticsearch.search( + index="openalex-institutions", + offset=page * size, + size=size, + sort=sort_config, + query=query, + ) + except Exception as e: + logger.exception("Error while searching for institutions: %s", e) + raise + + return self.response_to_institution_page(response, page, size) + + def response_to_institution_page( + self, response: Dict[str, Any], page: int, size: int + ) -> InstitutionPage: + hits = response.get("hits", {}).get("hits", []) + + institutions = [] + for hit in hits: + institution = self._convert_hit_to_institution(hit) + if institution: + institutions.append(institution) + + total = response.get("hits", {}).get("total", {}).get("value", 0) + logger.debug( + "Parsed institution page: page=%d, size=%d, total=%d", page, size, total + ) + return InstitutionPage( + elements=institutions, + page=page, + size=size, + total=total, ) - - return Institution.from_dict(hits[0]["_source"]) async def get_authors_by_institution_id(self, raw_institution_id: str) -> List[str]: """ - Fetches authors associated with an institution. + Fetches authors associated with an institution. Note: This query is specifically looking for current affiliations (2026). """ query = { @@ -75,14 +188,19 @@ class InstitutionsSearchClient: raw_institution_id, query, ) - + res = elasticsearch.search(index="openalex-authors", query=query) hits = res.get("hits", {}).get("hits", []) - + # Extracting display_name directly from the author document source - authors = {hit["_source"].get("display_name") for hit in hits if hit["_source"].get("display_name")} + authors = { + hit["_source"].get("display_name") + for hit in hits + if hit["_source"].get("display_name") + } return list(authors) - async def search_institutions( + + def search_institutions( self, query_text: str, country_code: str | None = None, @@ -98,50 +216,39 @@ class InstitutionsSearchClient: if query_text: stripped = query_text.strip() - must.append({ - "bool": { - "should": [ - # Fast prefix matching via search_as_you_type shingles - { - "multi_match": { - "query": stripped, - "type": "bool_prefix", - "fields": [ - "display_name.search", - "display_name.search._2gram", - "display_name.search._3gram", - "display_name_alternatives.search", - "display_name_alternatives.search._2gram", - ], - "boost": 2, - } - }, - # Exact acronym match — high confidence signal - { - "term": { - "display_name_acronyms.keyword": { - "value": stripped.upper(), - "boost": 10, - } - } - }, - # Fuzzy fallback for typos (only worth it for longer input) - *( - [{ - "match": { - "display_name": { - "query": stripped, - "fuzziness": "AUTO", - "boost": 1, + must.append( + { + "bool": { + "should": [ + { + "wildcard": { + "display_name.keyword": { + "value": f"*{stripped}*", + "boost": 2, } } - }] - if len(stripped) >= 4 else [] - ), - ], - "minimum_should_match": 1, + }, + { + "wildcard": { + "display_name_alternatives.keyword": { + "value": f"*{stripped}*", + "boost": 2, + } + } + }, + { + "wildcard": { + "display_name_acronyms.keyword": { + "value": f"*{stripped.upper()}*", + "boost": 10, + } + } + }, + ], + "minimum_should_match": 1, + } } - }) + ) filter_queries = [] @@ -166,42 +273,56 @@ class InstitutionsSearchClient: sort=[ {"works_count": {"order": "desc"}}, ], - source=["id", "display_name", "country_code", "type", "works_count", "cited_by_count", "geo"], + source=[ + "id", + "display_name", + "country_code", + "type", + "works_count", + "cited_by_count", + "geo", + ], ) hits = res.get("hits", {}).get("hits", []) return [Institution.from_dict(hit["_source"]) for hit in hits] - async def get_institution_aliases_by_id(self, raw_institution_id: str) -> List[str]: + def get_institution_aliases_by_oa_institution_id( + self, raw_oa_institution_id: str + ) -> List[str]: """Get a list of institution aliases for a given institution ID, including both display name alternatives and predefined aliases. Args: - raw_institution_id (str): The raw institution ID for which to retrieve aliases. + raw_oa_institution_id (str): The raw OpenAlex institution ID for which to retrieve aliases. Returns: List[str]: A list of aliases for the given institution ID. """ - institution = await self.get_institution_by_id(raw_institution_id) + institution = self.get_institution_by_id(raw_oa_institution_id) aliases = list( self.augment_aliases(set(institution.display_name_alternatives or [])) - | self.get_predefined_institution_aliases(raw_institution_id) + | self.get_predefined_institution_aliases(raw_oa_institution_id) ) logger.debug( - "Retrieved aliases for institution_id=%s: %s", raw_institution_id, aliases + "Retrieved aliases for institution_id=%s: %s", + raw_oa_institution_id, + aliases, ) return aliases - def get_predefined_institution_aliases(self, raw_institution_id: str) -> Set[str]: + def get_predefined_institution_aliases( + self, raw_oa_institution_id: str + ) -> Set[str]: """Get predefined aliases for a given institution ID. Args: - raw_institution_id (str): The raw institution ID for which to retrieve predefined aliases. + raw_oa_institution_id (str): The raw OpenAlex institution ID for which to retrieve predefined aliases. Returns: Set[str]: A set of predefined aliases for the given institution ID. """ - raw_institution_id = raw_institution_id.upper() + raw_oa_institution_id = raw_oa_institution_id.upper() predefined_aliases = { "I62318514": [ "universität duisburg-essen", @@ -212,7 +333,9 @@ class InstitutionsSearchClient: ], } - return self.augment_aliases(set(predefined_aliases.get(raw_institution_id, []))) + return self.augment_aliases( + set(predefined_aliases.get(raw_oa_institution_id, [])) + ) def augment_aliases(self, aliases: Set[str]) -> Set[str]: """Augment a set of aliases by applying the augment_alias function to each alias. @@ -259,3 +382,123 @@ class InstitutionsSearchClient: ) aliases.append(alias.replace("-", " ")) return aliases + + def _convert_hit_to_institution(self, hit: Dict[str, Any]) -> Optional[Institution]: + """Convert an Elasticsearch hit to an Institution object, applying necessary data cleaning and validation. + + Args: + hit (Dict[str, Any]): The Elasticsearch hit to convert. + + Returns: + Optional[Institution]: The converted Institution object or None if conversion fails. + """ + source = hit.get("_source") + if not source: + return None + + ALLOWED_TYPES = { + "education", + "healthcare", + "company", + "archive", + "nonprofit", + "government", + "facility", + "other", + } + + cleaned_source = {} + for key, value in source.items(): + if isinstance(value, str) and "T" in value: + cleaned_source[key] = value.split("T")[0] + + elif key == "type" and value not in ALLOWED_TYPES: + cleaned_source[key] = "other" + + else: + cleaned_source[key] = value + + try: + return Institution.model_validate(cleaned_source) + except Exception as e: + logger.exception( + "Failed to validate institution hit ID %s: %s", hit.get("_id"), e + ) + return None + + def get_cordis_eu_organisation_ids_by_oa_institution_id( + self, raw_oa_institution_id: str + ) -> Optional[List[str]]: + """Retrieves the corresponding EU organisation IDs for a given OpenAlex institution ID by searching for institution aliases and matching them against the Cordis EU organisations indices. + + Args: + raw_oa_institution_id (str): The raw OpenAlex institution ID for which to retrieve the corresponding EU organisation IDs. + + Returns: + Optional[List[str]]: A list of corresponding EU organisation IDs or None if the search fails. + """ + + institution_aliases = set( + self.get_institution_aliases_by_oa_institution_id( + raw_oa_institution_id=raw_oa_institution_id + ) + ) + + body = { + "size": 0, + "query": { + "bool": { + "filter": [ + { + "terms": { + "name.keyword": [ + institution_alias.upper() + for institution_alias in institution_aliases + ] + } + } + ] + } + }, + "aggs": { + "organisation_ids": { + "terms": {"field": "organisationID", "size": 10000} + } + }, + } + + logger.debug( + "Searching for EU organisation IDs for raw_oa_institution_id=%s with aliases=%s and query: %s", + raw_oa_institution_id, + institution_aliases, + body, + ) + + try: + # IMPORTANT: The indices are named organizations and not organisations. + 15 Minutes debugging why the search returns 0 results + response = elasticsearch.search( + index="cordis_eu_*_organizations", body=body, cluster="inse" + ) + except Exception as e: + logger.exception("Error while searching for EU organisation IDs: %s", e) + return None + + logger.debug( + "Received response for EU organisation ID search for raw_oa_institution_id=%s: %s", + raw_oa_institution_id, + response, + ) + + aggregations = response.get("aggregations", {}) + organisation_ids_buckets = aggregations.get("organisation_ids", {}).get( + "buckets", [] + ) + organisation_ids = [bucket.get("key") for bucket in organisation_ids_buckets] + + logger.debug( + "Extracted EU organisation IDs for raw_oa_institution_id=%s: %s", + raw_oa_institution_id, + organisation_ids, + ) + + return organisation_ids diff --git a/service/src/main/inse/institutions/logic.py b/service/src/main/inse/institutions/logic.py index 7562672e..10f53cc6 100644 --- a/service/src/main/inse/institutions/logic.py +++ b/service/src/main/inse/institutions/logic.py @@ -41,7 +41,7 @@ _VALID_INSTITUTION_TYPES = { async def get_institution_by_id( raw_institution_id: str, client: InstitutionsSearchClient ) -> Institution: - return await client.get_institution_by_id(raw_institution_id) + return client.get_institution_by_id(raw_institution_id) async def list_institutions( @@ -117,10 +117,10 @@ async def autocomplete_institutions( client: InstitutionsSearchClient, ) -> AutocompleteResponse: """ - Returns institution options for autocomplete inputs using the local + Returns institution options for autocomplete inputs using the local Elasticsearch cluster via the provided client. """ - institutions = await client.search_institutions( + institutions = client.search_institutions( query_text=query, country_code=country_code, institution_type=institution_type, diff --git a/service/src/main/inse/institutions/model.py b/service/src/main/inse/institutions/model.py new file mode 100644 index 00000000..0eaf3c61 --- /dev/null +++ b/service/src/main/inse/institutions/model.py @@ -0,0 +1,17 @@ +from typing import List + +from pydantic import BaseModel, Field + +from inse.models.openalex.institution import Institution + + +class InstitutionPage(BaseModel): + elements: List[Institution] = Field( + default_factory=list, description="List of institutions in the current page." + ) + page: int = Field(default=0, description="Current page number. (0-indexed)") + size: int = Field(default=10, description="Number of institutions per page.") + total: int = Field( + default=0, + description="Total number of institutions matching the search criteria.", + ) diff --git a/service/src/main/inse/institutions/service.py b/service/src/main/inse/institutions/router.py similarity index 69% rename from service/src/main/inse/institutions/service.py rename to service/src/main/inse/institutions/router.py index 5c08bbdf..423281c0 100644 --- a/service/src/main/inse/institutions/service.py +++ b/service/src/main/inse/institutions/router.py @@ -5,15 +5,15 @@ REST API for OpenAlex institutions. """ from functools import lru_cache -from typing import Annotated +from typing import Annotated, Literal from fastapi import APIRouter, Depends, status, Query from inse.models.openalex.autocomplete_response import AutocompleteResponse from inse.models.openalex.institutions_list_response import InstitutionsListResponse from inse.tags import Tags -from inse.config import get_settings from inse.models.openalex.institution import Institution +from inse.institutions.model import InstitutionPage from . import logic from inse.institutions.institutions_search_client import InstitutionsSearchClient @@ -25,6 +25,62 @@ router = APIRouter(prefix="/api/inse-service/institutions", tags=[Tags.INSTITUTI def get_institutions_search_client() -> InstitutionsSearchClient: return InstitutionsSearchClient() + +@router.get( + "/search", + summary="Searches for institutions by name.", + description="Searches for institutions by name with pagination.", + operation_id="searchInstitutionsByName", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": InstitutionPage, + }, + }, + response_model_exclude_none=True, +) +async def search_institutions_by_name( + client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], + name: Annotated[ + str, + Query( + description="Institution name to search for, for example 'University of Duisburg Essen'.", + ), + ] = "", + page: Annotated[ + int, + Query(description="Page number (0-indexed).", ge=0), + ] = 0, + size: Annotated[ + int, + Query(description="Number of institutions per page.", ge=1, le=100), + ] = 10, + sort_by: Annotated[ + Literal["relevance", "name", "works_count", "citations_count"], + Query( + description="Field to sort by, either 'relevance', 'name', 'works_count', or 'citations_count'.", + regex="^(relevance|name|works_count|citations_count)$", + ), + ] = "name", + sorting_direction: Annotated[ + Literal["asc", "desc"], + Query( + description="Sorting direction, either 'asc' or 'desc'.", + regex="^(asc|desc)$", + ), + ] = "asc", +) -> InstitutionPage: + return client.get_institutions_by_name( + name=name, + page=page, + size=size, + sort_by=sort_by, + sorting_direction=sorting_direction, + ) + + @router.get( "/autocomplete", operation_id="autocompleteInstitutions", @@ -52,7 +108,9 @@ async def autocomplete_institutions( int, Query(description="Maximum number of autocomplete options.", ge=1, le=25), ] = 10, - client: Annotated[InstitutionsSearchClient, Depends(get_institutions_search_client)] = None, + client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ] = None, ): return await logic.autocomplete_institutions( query=query, @@ -62,6 +120,28 @@ async def autocomplete_institutions( client=client, ) +@router.get( + "/{id}", + summary="Returns a single institution by ID.", + description="Returns a single institution by its OpenAlex ID.", + operation_id="getInstitutionById", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": Institution, + }, + status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, + }, +) +async def get_institution( + id: str, + client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], +) -> Institution: + return await logic.get_institution_by_id(raw_institution_id=id, client=client) + + @router.get( "", @@ -125,25 +205,3 @@ async def list_institutions( sample=sample, select=select, ) - - -@router.get( - "/{id}", - summary="Returns a single institution by ID.", - description="Returns a single institution by its OpenAlex ID.", - operation_id="getInstitutionById", - responses={ - status.HTTP_200_OK: { - "description": "Successful Response", - "model": Institution, - }, - status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, - }, -) -async def get_institution( - id: str, - client: Annotated[ - InstitutionsSearchClient, Depends(get_institutions_search_client) - ], -) -> Institution: - return await logic.get_institution_by_id(raw_institution_id=id, client=client) diff --git a/service/src/main/inse/integrations/elasticsearch.py b/service/src/main/inse/integrations/elasticsearch.py index 870d833f..6c6164be 100644 --- a/service/src/main/inse/integrations/elasticsearch.py +++ b/service/src/main/inse/integrations/elasticsearch.py @@ -1,43 +1,143 @@ -from typing import Any, Optional +import json +import logging +from typing import Any, Dict, List, Optional, Tuple import httpx + +from inse.model import ESCluster, ESIndex from .. import config +logger = logging.getLogger(__name__) -def _cluster_credentials(cluster: str) -> tuple[str, str]: - if cluster == "nes": +def _cluster_credentials(cluster: ESCluster) -> Tuple[str, str]: + """Retrieves the Elasticsearch URL and API key for the specified cluster from the configuration. + + Args: + cluster (ElasticsearchCluster): The cluster for which to retrieve credentials. Allowed values are "nes" and "inse". + + Raises: + ValueError: If the cluster is unknown or the credentials are not set in the configuration. + + Returns: + Tuple[str, str]: The Elasticsearch URL and API key for the specified cluster. + """ + + if cluster == ESCluster.NES: + if ( + not config.settings.elasticsearch_url + or not config.settings.elasticsearch_api_key + ): + raise ValueError( + "Elasticsearch URL and API key must be set in the configuration for cluster 'nes'" + ) return config.settings.elasticsearch_url, config.settings.elasticsearch_api_key - elif cluster == "inse": - return config.settings.elasticsearch_inse_url, config.settings.elasticsearch_inse_api_key + elif cluster == ESCluster.INSE: + if ( + not config.settings.elasticsearch_inse_url + or not config.settings.elasticsearch_inse_api_key + ): + raise ValueError( + "Elasticsearch INSE URL and API key must be set in the configuration for cluster 'inse'" + ) + + return ( + config.settings.elasticsearch_inse_url, + config.settings.elasticsearch_inse_api_key, + ) else: - raise ValueError(f"Unbekannter Cluster: {cluster!r} (erlaubt: 'nes', 'inse')") + raise ValueError(f"Unknown cluster: {cluster!r} (allowed: 'nes', 'inse')") + + +def _index_to_cluster(index: ESIndex) -> Optional[ESCluster]: + """Determines the Elasticsearch cluster to use based on the specified index. + + Args: + index (ESIndex): The Elasticsearch index for which to determine the cluster. Allowed values are defined in the ESIndex enum. + + Raises: + ValueError: If the index is unknown. + + Returns: + ESCluster: The Elasticsearch cluster to use for the specified index. + """ + + if index in { + ESIndex.OPENALEX_WORKS, + ESIndex.OPENALEX_AUTHORS, + ESIndex.OPENALEX_INSTITUTIONS, + ESIndex.OPENALEX_PUBLICATIONS, + }: + return ESCluster.NES + elif index in { + ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD, + ESIndex.CORDIS_EU_PROJECTS_WILDCARD, + ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD, + ESIndex.PROJECTS_BUND_V1, + ESIndex.PROJECTS_DFG_ALL, + }: + return ESCluster.INSE + else: + return None def search( - index: str, - query_field: str = None, - query_value: str = None, - query: dict = None, - source = None, - size: int = None, - offset:int = None, - sort: list = None, - body: dict = None, - track_total_hits = False, - cluster: str = "nes", -) -> dict[str, Any]: + index: ESIndex | List[ESIndex], + query: Optional[Dict] = None, + source: Optional[List] = None, + size: Optional[int] = None, + offset: Optional[int] = None, + sort: Optional[List] = None, + body: Optional[Dict] = None, + track_total_hits=False, + highlight: Optional[Dict] = None, + cluster: ESCluster = ESCluster.NES, +) -> Dict[str, Any]: + """Searches the specified Elasticsearch index using either a simple query string or a full query body. + + Args: + index (ElasticsearchIndex): The Elasticsearch index to search. + query (Optional[Dict], optional): The full query body. Defaults to None. + source (Optional[List], optional): The fields to include in the response. Defaults to None. + size (Optional[int], optional): The maximum number of results to return. Defaults to None. + offset (Optional[int], optional): The number of results to skip. Defaults to None. + sort (Optional[List], optional): The fields to sort by. Defaults to None. + body (Optional[Dict], optional): The full query body. Defaults to None. + track_total_hits (bool, optional): Whether to track the total number of hits. Defaults to False. + cluster (ElasticsearchCluster, optional): The Elasticsearch cluster to search. Defaults to ElasticsearchCluster.NES. + + Returns: + Dict[str, Any]: The search results. + """ + + clusters = set() + if isinstance(index, list): + for idx in index: + cluster_for_index = _index_to_cluster(idx) + if cluster_for_index is not None: + clusters.add(cluster_for_index) + else: + cluster_for_index = _index_to_cluster(index) + if cluster_for_index is not None: + clusters.add(cluster_for_index) + + if len(clusters) > 1: + raise ValueError( + f"All indices in the search request must belong to the same cluster, but found clusters: {clusters}" + ) + elif len(clusters) == 1: + cluster = clusters.pop() elasticsearch_url, api_key = _cluster_credentials(cluster) - headers = { - "Authorization": f"ApiKey {api_key}", - "Content-Type": "application/json" - } + headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"} + + payload: Dict[str, Any] = {} if body is not None: payload = body - elif query is not None: - payload = {"query": query} + else: + if query is not None: + payload["query"] = query if source is not None: payload["_source"] = source if size is not None: @@ -48,39 +148,40 @@ def search( payload["sort"] = sort if track_total_hits: payload["track_total_hits"] = True - else: - payload = { - "query": { - "query_string": { - "default_field": query_field, - "query": query_value - } - } - } + if highlight is not None: + payload["highlight"] = highlight + + if len(payload) == 0: + raise ValueError( + "At least one of 'query', 'body', 'source', 'size', 'offset', 'sort' must be provided" + ) with httpx.Client(timeout=httpx.Timeout(30.0)) as client: + logger.debug( + f"Sending search request to Elasticsearch cluster '{cluster}' at {elasticsearch_url} for {index} with payload: {json.dumps(payload)}" + ) + if isinstance(index, list): + index_str = ",".join(index) + else: + index_str = index + response = client.post( - f"{elasticsearch_url}/{index}/_search", - json=payload, - headers=headers + f"{elasticsearch_url}/{index_str}/_search", json=payload, headers=headers ) response.raise_for_status() return response.json() def get( - index: str, + index: ESIndex, doc_id: str, - source: list = None, - cluster: str = "nes", + source: Optional[list] = None, + cluster: ESCluster = ESCluster.NES, ) -> dict[str, Any]: elasticsearch_url, api_key = _cluster_credentials(cluster) - headers = { - "Authorization": f"ApiKey {api_key}", - "Content-Type": "application/json" - } + headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"} params = {} if source is not None: @@ -88,9 +189,7 @@ def get( with httpx.Client() as client: response = client.get( - f"{elasticsearch_url}/{index}/_doc/{doc_id}", - params=params, - headers=headers + f"{elasticsearch_url}/{index}/_doc/{doc_id}", params=params, headers=headers ) response.raise_for_status() return response.json() diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py index 450a4dd9..24c763de 100644 --- a/service/src/main/inse/main.py +++ b/service/src/main/inse/main.py @@ -7,23 +7,33 @@ webapp. """ import logging + from fastapi import FastAPI, Request -from fastapi.responses import JSONResponse, RedirectResponse from fastapi.middleware.cors import CORSMiddleware +from fastapi.responses import JSONResponse, RedirectResponse + from inse.collaboration_network.router import router as collaboration_network_router -from inse.institutions.service import router as institutions_service_router +from inse.company_connections.service import router as company_connections_router +from inse.exceptions import NotFoundException +from inse.funders.service import router as funders_service_router +from inse.projects.router import router as projects_router +from inse.university_ranking.router import router as university_ranking_router +# caching +from inse.middleware.etag_cache import ETagCacheMiddleware +from inse.persons.service import router as persons_service_router +from inse.projects.router import router as projects_router from inse.topics.service import router as topics_service_router from inse.works.service import router as works_service_router from inse.persons.service import router as persons_service_router from inse.funders.service import router as funders_service_router +from inse.news.service import router as news_service_router from inse.projects.router import router as projects_router +from inse.patents.service import router as patents_service_router -# caching -from inse.middleware.etag_cache import ETagCacheMiddleware -from inse.exceptions import NotFoundException +from inse.institutions.router import router as institutions_router from . import config -from .service import router as service_router from .account.service import router as account_router +from .service import router as service_router logger = logging.getLogger(__name__) @@ -39,14 +49,17 @@ app = FastAPI( servers=settings.servers, ) app.include_router(collaboration_network_router) -app.include_router(institutions_service_router) +app.include_router(institutions_router) app.include_router(topics_service_router) app.include_router(works_service_router) app.include_router(persons_service_router) app.include_router(funders_service_router) +app.include_router(news_service_router) +app.include_router(company_connections_router) app.include_router(service_router) app.include_router(account_router) - +app.include_router(patents_service_router) +app.include_router(university_ranking_router) app.include_router(projects_router) app.add_middleware( diff --git a/service/src/main/inse/model.py b/service/src/main/inse/model.py index 669f049f..98aaf28c 100644 --- a/service/src/main/inse/model.py +++ b/service/src/main/inse/model.py @@ -1,9 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """ - This module defines the model classes returned from - our api using pydantic. +This module defines the model classes returned from +our api using pydantic. """ + +from enum import StrEnum + from pydantic import BaseModel from pydantic import ConfigDict from pydantic import Field @@ -13,28 +16,49 @@ from typing import Generic from typing import Optional -T = TypeVar('T', bound=BaseModel) +T = TypeVar("T", bound=BaseModel) + class Entity(BaseModel): id: int = Field(description="The id of the entity.") + class Item(Entity): model_config = ConfigDict(from_attributes=True) name: str = Field(description="The name of the item.") description: str = Field(description="The description of the item.") + class ItemCreate(BaseModel): name: str = Field(description="The name of the item.") description: str = Field(description="The description of the item.") + class Page(BaseModel, Generic[T]): elements: List[T] = Field(default=[], description="The elements of the page.") offset: int = Field(default=0, description="The page offset in elements.") total: int = Field(default=0, description="The total number of elements.") size: int = Field(default=20, description="The page size in elements.") + class ItemPage(Page[Item]): pass +class ESCluster(StrEnum): + NES = "nes" + INSE = "inse" + +class ESIndex(StrEnum): + OPENALEX_WORKS = "openalex-works" + OPENALEX_AUTHORS = "openalex-authors" + OPENALEX_INSTITUTIONS = "openalex-institutions" + OPENALEX_PUBLICATIONS = "openalex-publications" + + CORDIS_EU_ORGANIZATIONS_WILDCARD = "cordis_eu_*_organizations" + CORDIS_EU_PROJECTS_WILDCARD = "cordis_eu_*_projects" + CORDIS_EU_PUBLICATIONS_WILDCARD = "cordis_eu_*_publications" + + PROJECTS_BUND_V1 = "projects_bund_v1" + PROJECTS_DFG_ALL = "projects_dfg_all" \ No newline at end of file diff --git a/service/src/main/inse/models/bund_project_details.py b/service/src/main/inse/models/bund_project_details.py new file mode 100644 index 00000000..d7c4baf1 --- /dev/null +++ b/service/src/main/inse/models/bund_project_details.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + Bund Project Clean Model + + Summary model that consolidates scattered fields from the raw projects_bund index + into clean, semantic field names with proper native Python types. +""" + +from datetime import date, datetime +from typing import Optional, List, Set, Any + +from pydantic import BaseModel, ConfigDict, Field, field_validator + + +class BundProjectDetails(BaseModel): + """ + Clean summary model for a Bund (federal) project, consolidating all fields + into semantic English names with proper native types. + """ + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + ) + + # Core identifiers + id: str = Field(description="The ID of the Bund project") + funding_reference: Optional[str] = Field( + default=None, + + description="The funding reference number (Förderkennzeichen)", + ) + + # Project metadata + title: Optional[str] = Field( + default=None, + + description="The project topic/title", + ) + description: Optional[str] = Field( + default=None, + + description="Plain text description of the performance plan classification", + ) + joint_project: Optional[str] = Field( + default=None, + + description="Parent joint project if this is a sub-project", + ) + + # Funding information + funding_type: Optional[str] = Field( + default=None, + + description="Type of funding (Förderart)", + ) + funding_profile: Optional[str] = Field( + default=None, + + description="Funding profile (Förderprofil)", + ) + funding_amount: Optional[float] = Field( + default=None, + + description="Funding amount in EUR", + ) + funding_start_date: Optional[date] = Field( + default=None, + description="Funding start date", + ) + funding_end_date: Optional[date] = Field( + default=None, + description="Funding end date", + ) + duration: Optional[str] = Field( + default=None, + + description="Project duration (Laufzeit)", + ) + + # Classification + performance_plan_code: Optional[str] = Field( + default=None, + + description="Performance plan classification code", + ) + performance_plan_fullname: Optional[str] = Field( + default=None, + + description="Full name of the performance plan classification", + ) + + # Organizational + executing_agency: Optional[str] = Field( + default=None, + + description="Executing agency", + ) + funding_recipient: Optional[str] = Field( + default=None, + + description="Funding recipient", + ) + project_agency: Optional[str] = Field( + default=None, + + description="Project management agency", + ) + project_agency_fullname: Optional[str] = Field( + default=None, + + description="Full name of the project management agency", + ) + + # Government hierarchy + department: Optional[str] = Field( + default=None, + + description="Government department code", + ) + department_fullname: Optional[str] = Field( + default=None, + + description="Full name of the government department", + ) + division: Optional[str] = Field( + default=None, + + description="Division/unit reference", + ) + + # Location + location: Optional[str] = Field( + default=None, + + description="Location/city", + ) + municipality: Optional[str] = Field( + default=None, + + description="City/Municipality", + ) + state: Optional[str] = Field( + default=None, + + description="Federal state", + ) + country: Optional[str] = Field( + default=None, + + description="Country", + ) + municipality_code: Optional[str] = Field( + default=None, + + description="Municipality code", + ) + + # Publication + publication_date: Optional[str] = Field( + default=None, + + description="Publication date", + ) + + # Additional + is_new: Optional[bool] = Field( + default=None, + + description="Flag indicating if the project is new", + ) + record_date: Optional[str] = Field( + default=None, + + description="Record date", + ) + unix_timestamp: Optional[int] = Field( + default=None, + description="Unix timestamp of the record", + ) + + # Unified lists for aggregation + associated_persons: List[str] = Field( + default_factory=list, + description="All persons associated with the Bund project (from nested Arb object)", + ) + institutions: List[str] = Field( + default_factory=list, + description="All institutions associated with the Bund project", + ) + + # --- Validators for type coercion --- + + @field_validator("funding_amount", mode="before") + @classmethod + def parse_funding_amount(cls, v: Any) -> Optional[float]: + """Parse funding amount from string or number.""" + if v is None: + return None + if isinstance(v, (int, float)): + return float(v) + if isinstance(v, str): + # Remove thousands separators and trim + cleaned = v.replace(".", "").replace(",", ".").strip() + try: + return float(cleaned) + except ValueError: + return None + return None + + @field_validator("funding_start_date", "funding_end_date", mode="before") + @classmethod + def parse_german_date(cls, v: Any) -> Optional[date]: + """Parse date from German format (dd.MM.yyyy) or date/datetime object.""" + if v is None: + return None + if isinstance(v, datetime): + return v.date() + if isinstance(v, date): + return v + if isinstance(v, str): + v = v.strip() + # Try German format first: dd.MM.yyyy + try: + return datetime.strptime(v, "%d.%m.%Y").date() + except ValueError: + pass + # Try ISO format: yyyy-MM-dd + try: + return datetime.strptime(v, "%Y-%m-%d").date() + except ValueError: + pass + # Try with time component + try: + return datetime.fromisoformat(v).date() + except ValueError: + pass + return None + + @field_validator("is_new", mode="before") + @classmethod + def parse_is_new(cls, v: Any) -> Optional[bool]: + """Parse is_new from bool or string.""" + if v is None: + return None + if isinstance(v, bool): + return v + if isinstance(v, str): + return v.lower() in ("true", "1", "yes", "ja") + if isinstance(v, (int, float)): + return bool(v) + return None + + @field_validator("unix_timestamp", mode="before") + @classmethod + def parse_unix_timestamp(cls, v: Any) -> Optional[int]: + """Parse unix timestamp from int, float, or string.""" + if v is None: + return None + if isinstance(v, (int, float)): + return int(v) + if isinstance(v, str): + try: + return int(v) + except ValueError: + return None + return None + + @classmethod + def from_elastic_hit(cls, hit: dict) -> "BundProject": + """ + Create a BundProject from an Elasticsearch hit, consolidating all fields. + """ + source = hit.get("_source", {}) + + # --- Extract persons from nested Arb object --- + persons: Set[str] = set() + arb = source.get("Arb") + if arb and isinstance(arb, dict): + for key, value in arb.items(): + if isinstance(value, str) and value.strip(): + for person in value.split(";"): + person = person.strip() + if person: + persons.add(person) + + # --- Extract institutions --- + institutions: Set[str] = set() + inst_fields = [ + "Ausführende Stelle", + "Zuwendungsempfänger", + "Projektträger", + ] + for field in inst_fields: + if field in source and source[field]: + for inst in source[field].split(";"): + inst = inst.strip() + if inst: + institutions.add(inst) + + if source.get("PT_fullname"): + institutions.add(source["PT_fullname"].strip()) + + return cls( + id=hit["_id"], + funding_reference=source.get("Förderkennzeichen"), + title=source.get("Thema"), + description=source.get("Klartext Leistungsplansystematik"), + joint_project=source.get("Verbundprojekt"), + funding_type=source.get("Förderart"), + funding_profile=source.get("Förderprofil"), + funding_amount=source.get("Fördersumme"), + funding_start_date=source.get("funding_start"), + funding_end_date=source.get("funding_end"), + duration=source.get("Laufzeit"), + performance_plan_code=source.get("Leistungsplansystematik"), + performance_plan_fullname=source.get("Leistungsplansystematik_fullname"), + executing_agency=source.get("Ausführende Stelle"), + funding_recipient=source.get("Zuwendungsempfänger"), + project_agency=source.get("Projektträger"), + project_agency_fullname=source.get("PT_fullname"), + department=source.get("Ressort"), + department_fullname=source.get("Ressort_fullname"), + division=source.get("Referat"), + location=source.get("Ort"), + municipality=source.get("Stadt/Gemeinde"), + state=source.get("Bundesland"), + country=source.get("Staat"), + municipality_code=source.get("Gemeindekennziffer"), + publication_date=source.get("Publikationsdatum"), + is_new=source.get("new"), + record_date=source.get("datum"), + unix_timestamp=source.get("unix_timestamp"), + associated_persons=sorted(persons), + institutions=sorted(institutions), + ) \ No newline at end of file diff --git a/service/src/main/inse/models/cordis_eu_project.py b/service/src/main/inse/models/cordis_eu_project.py new file mode 100644 index 00000000..557dfd57 --- /dev/null +++ b/service/src/main/inse/models/cordis_eu_project.py @@ -0,0 +1,62 @@ +from datetime import datetime +from typing import Optional, List, Union +from pydantic import BaseModel, Field + + +class CordisEuProject(BaseModel): + id: str = Field( + description="Unique identifier for the project, typically the CORDIS ID" + ) + rcn: Optional[str] = Field( + None, description="Research and Innovation project number (CORDIS RCN)" + ) + acronym: Optional[str] = Field(None, description="Acronym for the project") + title: Optional[str] = Field(None, description="Title of the project") + objective: Optional[str] = Field(None, description="Objective of the project") + + frameworkProgramme: Optional[str] = Field( + None, description="Framework Programme under which the project was funded" + ) + fundingScheme: Optional[str] = Field( + None, description="Funding scheme of the project" + ) + legalBasis: Optional[str] = Field( + None, description="Legal basis for the project funding" + ) + masterCall: Optional[str] = Field( + None, description="Master call identifier if applicable" + ) + subCall: Optional[str] = Field( + None, description="Sub call identifier if applicable" + ) + topics: Optional[Union[str, List[str]]] = ( + None # Elastic keyword can map to a single string or list of strings + ) + nature: Optional[str] = Field(None, description="Nature of the project") + status: Optional[str] = Field(None, description="Status of the project") + + ecMaxContribution: Optional[float] = Field( + None, description="Maximum European Commission contribution" + ) + totalCost: Optional[float] = Field(None, description="Total cost of the project") + + startDate: Optional[datetime] = Field(None, description="Start date of the project") + endDate: Optional[datetime] = Field(None, description="End date of the project") + ecSignatureDate: Optional[datetime] = Field( + None, description="Date of the European Commission signature" + ) + contentUpdateDate: Optional[datetime] = Field( + None, description="Date when the project content was last updated" + ) + + grantDoi: Optional[str] = Field(None, description="DOI for the project grant") + humanValidated: Optional[bool] = Field( + None, + description="Indicates if the project information has been human validated", + ) + keywords: Optional[Union[str, List[str]]] = Field( + None, description="Keywords associated with the project" + ) + + class Config: + populate_by_name = True diff --git a/service/src/main/inse/models/dfg_project_details.py b/service/src/main/inse/models/dfg_project_details.py new file mode 100644 index 00000000..96ee5dc9 --- /dev/null +++ b/service/src/main/inse/models/dfg_project_details.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + DFG Project Clean Model + + Summary model that consolidates all scattered person and institution fields + from the raw projects_dfg_all index into clean, unified lists. +""" + +from typing import Optional, List, Set + +from pydantic import BaseModel, ConfigDict, Field + + +class DfgProjectDetails(BaseModel): + """ + Clean summary model for a DFG project, consolidating all person roles + and institution references into unified lists. + """ + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + ) + + id: str = Field(description="The ID of the DFG project") + link: Optional[str] = Field(default=None, description="The link to the DFG project") + title: Optional[str] = Field( + default=None, description="The title of the DFG project" + ) + description: Optional[str] = Field( + default=None, description="The description of the DFG project" + ) + + project_identifier: Optional[str] = Field( + default=None, + description="The project identifier of the DFG project", + ) + + funding_start_date: Optional[str] = Field( + default=None, description="The funding start date of the DFG project" + ) + funding_end_date: Optional[str] = Field( + default=None, description="The funding end date of the DFG project" + ) + + dfg_procedure: Optional[str] = Field( + default=None, description="The DFG procedure" + ) + subject_area: Optional[str] = Field( + default=None, + description="The subject area classification", + ) + funding_type: Optional[str] = Field( + default=None, description="The type of funding" + ) + international_reference: Optional[str] = Field( + default=None, + + description="International reference", + ) + + website: Optional[str] = Field( + default=None, description="The project website" + ) + + # Unified person list: all person names from any role + associated_persons: List[str] = Field( + default_factory=list, + description="All persons associated with the DFG project (any role)", + ) + + # Unified institution list: all institutions involved + institutions: List[str] = Field( + default_factory=list, + description="All institutions associated with the DFG project", + ) + + # Sub-project reference + subproject_of: Optional[str] = Field( + default=None, + description="Parent project this is a sub-project of", + ) + + @classmethod + def from_elastic_hit(cls, hit: dict) -> "DfgProjectDetails": + """ + Create a DfgProject from an Elasticsearch hit, consolidating all + person and institution fields into unified lists. + """ + + source = hit.get("_source", {}) + + associated_persons: Set[str] = set() + institutions: Set[str] = set() + + # --- Collect all persons from every person-related field --- + + # Applicant fields + _add_persons(source, associated_persons, "Antragsteller") # semicolon-separated + _add_person(source, associated_persons, "Antragstellerin") + _add_persons( + source, associated_persons, "Antragstellerinnen" + ) # semicolon-separated + _add_persons( + source, associated_persons, "Antragstellerinnen / Antragsteller" + ) # semicolon-separated + + # Co-applicant fields + _add_persons(source, associated_persons, "Mitantragsteller") + _add_person(source, associated_persons, "Mitantragstellerin") + _add_persons(source, associated_persons, "Mitantragstellerinnen") + _add_persons( + source, associated_persons, "Mitantragstellerinnen / Mitantragsteller" + ) + + # Former applicant fields + _add_persons(source, associated_persons, "Ehemalige Antragsteller") + _add_person(source, associated_persons, "Ehemalige Antragstellerin") + _add_persons(source, associated_persons, "Ehemalige Antragstellerinnen") + _add_persons( + source, + associated_persons, + "Ehemalige Antragstellerinnen / Ehemalige Antragsteller", + ) + _add_person(source, associated_persons, "Ehemaliger Antragsteller") + + # Speaker / coordinator fields + _add_person(source, associated_persons, "Sprecher") + _add_person(source, associated_persons, "Sprecherin") + _add_persons(source, associated_persons, "Sprecherinnen") + _add_persons(source, associated_persons, "Sprecherinnen / Sprecher") + _add_person(source, associated_persons, "Co-Sprecher") + _add_persons(source, associated_persons, "Co-Sprecherinnen / Co-Sprecher") + + # IGK partner speaker fields + _add_person(source, associated_persons, "Sprecher (IGK-Partner)") + _add_person(source, associated_persons, "Sprecherin (IGK-Partner)") + _add_persons( + source, + associated_persons, + "Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)", + ) + + # Leader fields + _add_person(source, associated_persons, "Leiter") + _add_person(source, associated_persons, "Leiterin") + _add_persons(source, associated_persons, "Leiterinnen") + _add_persons(source, associated_persons, "Leiterinnen / Leiter") + + # Sub-project leader fields + _add_persons(source, associated_persons, "Teilprojektleiter") + _add_person(source, associated_persons, "Teilprojektleiterin") + _add_persons(source, associated_persons, "Teilprojektleiterinnen") + _add_persons( + source, associated_persons, "Teilprojektleiterinnen / Teilprojektleiter" + ) + + # Participating scientist fields + _add_persons(source, associated_persons, "beteiligte Wissenschaftler") + _add_person(source, associated_persons, "beteiligte Wissenschaftlerin") + _add_persons(source, associated_persons, "beteiligte Wissenschaftlerinnen") + _add_persons( + source, + associated_persons, + "beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler", + ) + _add_person(source, associated_persons, "beteiligter Wissenschaftler") + + # Participating person fields + _add_person(source, associated_persons, "Beteiligte Person") + _add_persons(source, associated_persons, "Beteiligte Personen") + + # Host fields (for guest researchers) + _add_person(source, associated_persons, "Gastgeber") + _add_person(source, associated_persons, "Gastgeberin") + _add_persons(source, associated_persons, "Gastgeberinnen") + _add_persons(source, associated_persons, "Gastgeberinnen / Gastgeber") + + # Cooperation partner fields + _add_person(source, associated_persons, "Kooperationspartner") + _add_person(source, associated_persons, "Kooperationspartnerin") + _add_persons(source, associated_persons, "Kooperationspartnerinnen") + _add_persons( + source, associated_persons, "Kooperationspartnerinnen / Kooperationspartner" + ) + + # Co-responsible fields + _add_person(source, associated_persons, "Mitverantwortlich") + _add_person(source, associated_persons, "Mitverantwortlich(e)") + _add_persons(source, associated_persons, "Mitverantwortliche") + + # Application partner + _add_person(source, associated_persons, "Anwendungspartner") + + # Foreign co-applicant fields + _add_persons(source, associated_persons, "ausländische Mitantragsteller") + _add_person(source, associated_persons, "ausländischer Mitantragsteller") + + # Person creator (from nested fields) + if "person_creater_name" in source and source["person_creater_name"]: + associated_persons.add(source["person_creater_name"].strip()) + + # Deputy (stellvertr) - nested object + stellvertr = source.get("stellvertr") + if stellvertr and isinstance(stellvertr, dict): + for field in ["stellvertreter", "stellvertreterin"]: + if field in stellvertr and stellvertr[field]: + associated_persons.add(stellvertr[field].strip()) + + # --- Collect all institutions --- + + _add_institution(source, institutions, "Antragstellende Institution") + _add_institution(source, institutions, "Mitantragstellende Institution") + _add_institution(source, institutions, "Beteiligte Einrichtung") + _add_institution(source, institutions, "Beteiligte Hochschule") + _add_institution(source, institutions, "Beteiligte Institution") + _add_institution(source, institutions, "IGK-Partnerinstitution") + _add_institution(source, institutions, "Partnerorganisation") + _add_institution(source, institutions, "Unternehmen") + + # Foreign institution (nested object) + auslaend = source.get("ausländ") + if auslaend and isinstance(auslaend, dict): + for field in [ + "auslaendischeInstitution", + "auslaendischeInstitution2", + "auslaendischesUnternehmen", + "auslaendischesUnternehmen2", + ]: + if field in auslaend and auslaend[field]: + institutions.add(auslaend[field].strip()) + return cls( + id=hit["_id"], + link=source.get("link"), + title=source.get("title"), + description=source.get("description"), + project_identifier=source.get("Projektkennung"), + funding_start_date=source.get("funding_start"), + funding_end_date=source.get("funding_end"), + dfg_procedure=source.get("DFG-Verfahren"), + subject_area=source.get("Fachliche Zuordnung"), + funding_type=source.get("Förderung"), + international_reference=source.get("Internationaler Bezug"), + website=source.get("Webseite"), + associated_persons=sorted(associated_persons), # sorted for consistency + institutions=sorted(institutions), + subproject_of=source.get("Teilprojekt zu"), + ) + + +# --- Helper functions for parsing source fields --- + +def _add_person(source: dict, persons: Set[str], field: str) -> None: + """Add a single person value from a field.""" + if field in source and source[field]: + value = source[field].strip() + if value: + persons.add(value) + + +def _add_persons(source: dict, persons: Set[str], field: str) -> None: + """Add persons from a semicolon-separated field.""" + if field in source and source[field]: + for person in source[field].split(";"): + cleaned = person.strip() + if cleaned: + persons.add(cleaned) + + +def _add_institution(source: dict, institutions: Set[str], field: str) -> None: + """Add a single institution value from a field.""" + if field in source and source[field]: + value = source[field].strip() + if value: + institutions.add(value) \ No newline at end of file diff --git a/service/src/main/inse/models/openalex/institution.py b/service/src/main/inse/models/openalex/institution.py index 6121af94..1d1062b5 100644 --- a/service/src/main/inse/models/openalex/institution.py +++ b/service/src/main/inse/models/openalex/institution.py @@ -33,7 +33,7 @@ class Institution(BaseModel): """ A university, research organization, or other affiliation """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this institution.") + id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this institution.", json_schema_extra={"examples": ["https://openalex.org/I27837315"]}) ror: Optional[StrictStr] = Field(default=None, description="The ROR ID for this institution. This is the Canonical External ID for institutions.") display_name: Optional[StrictStr] = Field(default=None, description="The primary name of the institution.") country_code: Optional[StrictStr] = Field(default=None, description="ISO two-letter country code where this institution is located.") @@ -55,20 +55,13 @@ class Institution(BaseModel): updated_date: Optional[datetime] = Field(default=None, description="When this institution was last updated (ISO 8601 datetime).") __properties: ClassVar[List[str]] = ["id", "ror", "display_name", "country_code", "type", "homepage_url", "image_url", "image_thumbnail_url", "display_name_acronyms", "display_name_alternatives", "works_count", "cited_by_count", "summary_stats", "geo", "lineage", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"] - @field_validator('created_date', mode='before') - @classmethod - def normalize_created_date(cls, v: Any) -> Any: - if isinstance(v, str) and len(v) > 10: - return v[:10] - return v - @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: return value - if value not in set(['education','funder', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other']): + if value not in set(['education', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other']): raise ValueError("must be one of enum values ('education', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other')") return value @@ -161,3 +154,5 @@ class Institution(BaseModel): "updated_date": obj.get("updated_date") }) return _obj + + diff --git a/service/src/main/inse/models/openalex/topic_count.py b/service/src/main/inse/models/openalex/topic_count.py index 445ef480..8d6be897 100644 --- a/service/src/main/inse/models/openalex/topic_count.py +++ b/service/src/main/inse/models/openalex/topic_count.py @@ -8,3 +8,39 @@ class TopicCount(BaseModel): name: str = Field(description="The topic display name.") count: int = Field(default=0, description="The number of occurrences.") description: Optional[str] = Field(default=None, description="The topic description.") + subfield_id: Optional[str] = Field( + default=None, + description="The topic subfield id.", + ) + subfield_name: Optional[str] = Field( + default=None, + description="The topic subfield display name.", + ) + subfield_description: Optional[str] = Field( + default=None, + description="The topic subfield description.", + ) + field_id: Optional[str] = Field( + default=None, + description="The topic field id.", + ) + field_name: Optional[str] = Field( + default=None, + description="The topic field display name.", + ) + field_description: Optional[str] = Field( + default=None, + description="The topic field description.", + ) + domain_id: Optional[str] = Field( + default=None, + description="The topic domain id.", + ) + domain_name: Optional[str] = Field( + default=None, + description="The topic domain display name.", + ) + domain_description: Optional[str] = Field( + default=None, + description="The topic domain description.", + ) diff --git a/service/src/main/inse/news/__init__.py b/service/src/main/inse/news/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/service/src/main/inse/news/logic.py b/service/src/main/inse/news/logic.py new file mode 100644 index 00000000..b02aafd2 --- /dev/null +++ b/service/src/main/inse/news/logic.py @@ -0,0 +1,274 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +Business logic for the "aktuell" news index on the INSE cluster. +""" + +import logging + +from fastapi import HTTPException +from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR + +from ..integrations import elasticsearch +from ..persons.logic import find_ude_author_by_name, get_author_name_by_id +from .model import MentionedPerson, NewsArticle, NewsArticleDetail, NewsPage + +logger = logging.getLogger(__name__) + + +def get_news_page(page: int, page_size: int, sort_order: str = "desc") -> NewsPage: + offset = (page - 1) * page_size + + response = _run_search( + query={"match_all": {}}, + source=["date", "maintitle", "author", "url"], + size=page_size, + offset=offset, + sort=[{"date_full": sort_order}], + ) + + return _build_page(response, page, page_size) + + +def search_news(query_text: str, page: int, page_size: int) -> NewsPage: + offset = (page - 1) * page_size + + highlight = { + "fields": {"full_content": {"fragment_size": 200, "number_of_fragments": 1}}, + "pre_tags": [""], + "post_tags": [""], + "encoder": "html", + } + + response = _run_search( + query={"match": {"full_content": query_text}}, + source=["date", "maintitle", "author", "url"], + size=page_size, + offset=offset, + sort=None, + highlight=highlight, + ) + + return _build_page(response, page, page_size) + +def get_news_by_author( + author_id: str, + page: int = 1, + page_size: int = 10, + sort_order: str = "desc", + query_text: str | None = None, +) -> NewsPage: + + author_name = get_author_name_by_id(author_id) + if not author_name: + return _empty_page(page, page_size) + + news_ids = _find_news_ids_for_author(author_name) + if not news_ids: + return _empty_page(page, page_size) + + es_query = {"bool": {"filter": [{"ids": {"values": news_ids}}]}} + if query_text: + es_query["bool"]["must"] = [ + {"multi_match": {"query": query_text, "fields": ["maintitle", "author"]}} + ] + + offset = (page - 1) * page_size + response = _run_search( + query=es_query, + source=["date", "maintitle", "author", "url"], + size=page_size, + offset=offset, + sort=[{"date_full": sort_order}], + ) + + return _build_page(response, page, page_size) + + +def _find_news_ids_for_author(author_name: str) -> list: + + try: + response = elasticsearch.search( + index="aktuell_postproc", + query={"term": {"authors.keyword": author_name}}, + source=["news_id"], + size=1000, + cluster="inse", + ) + except Exception: + logger.exception(f"Postproc-search: Finding news IDs for author '{author_name}' failed.") + return [] + + news_ids = [] + for hit in response.get("hits", {}).get("hits", []): + news_id = hit.get("_source", {}).get("news_id") + if news_id: + news_ids.append(news_id) + + return news_ids + + +def _empty_page(page: int = 1, page_size: int = 0) -> NewsPage: + return NewsPage(total=0, page=page, page_size=page_size, results=[]) + + +def get_news_by_id(news_id: str) -> NewsArticleDetail: + try: + response = elasticsearch.get( + index="aktuell", + doc_id=news_id, + source=["date", "maintitle", "author", "url", "full_content"], + cluster="inse", + ) + except Exception as exc: + logger.exception("Abruf des News-Artikels fehlgeschlagen.") + raise HTTPException( + status_code=HTTP_500_INTERNAL_SERVER_ERROR, + detail="Etwas ist schiefgelaufen.", + ) from exc + + source = response.get("_source", {}) + + relevant, authors = _get_postproc_labels(news_id) + + return NewsArticleDetail( + id=response.get("_id"), + date=source.get("date"), + maintitle=source.get("maintitle"), + author=source.get("author"), + url=source.get("url"), + full_content=source.get("full_content"), + relevant=relevant, + authors=_build_mentioned_persons(authors), + ) + + +def _build_mentioned_persons(author_names: list) -> list: + + ude_persons = [] + other_persons = [] + + for name in author_names: + match = find_ude_author_by_name(name) + if match: + ude_persons.append( + MentionedPerson(name=name, is_ude=True, person_id=match["id"]) + ) + else: + other_persons.append(MentionedPerson(name=name)) + + return ude_persons + other_persons + + +def _get_postproc_labels(news_id: str) -> tuple[bool | None, list]: + try: + response = elasticsearch.search( + index="aktuell_postproc", + query={"term": {"news_id.keyword": news_id}}, + source=["relevant", "authors"], + size=1, + cluster="inse", + ) + except Exception: + logger.exception(f"Postproc-Lookup for {news_id} failed.") + return None, [] + + hits = response.get("hits", {}).get("hits", []) + if not hits: + return None, [] + + postproc_source = hits[0].get("_source", {}) + relevant = bool(postproc_source.get("relevant", 0)) + authors = postproc_source.get("authors") or [] + + return relevant, authors + + +def _run_search(query: dict, source: list, size: int, offset: int, sort, highlight: dict = None) -> dict: + try: + return elasticsearch.search( + index="aktuell", + query=query, + source=source, + size=size, + offset=offset, + sort=sort, + track_total_hits=True, + highlight=highlight, + cluster="inse", + ) + except Exception as exc: + logger.exception("Elasticsearch-Anfrage an Index 'aktuell' fehlgeschlagen.") + raise HTTPException( + status_code=HTTP_500_INTERNAL_SERVER_ERROR, + detail="Etwas ist schiefgelaufen.", + ) from exc + + +def _build_page(response: dict, page: int, page_size: int) -> NewsPage: + hits_section = response.get("hits", {}) + total = hits_section.get("total", {}).get("value", 0) + hits = hits_section.get("hits", []) + + news_ids = [] + for hit in hits: + news_id = hit.get("_id") + if news_id: + news_ids.append(news_id) + + relevance_map = _get_relevance_map(news_ids) + + articles = [] + for hit in hits: + article = _parse_hit(hit) + article.relevant = relevance_map.get(article.id) + articles.append(article) + + return NewsPage( + total=total, + page=page, + page_size=page_size, + results=articles, + ) + + +def _get_relevance_map(news_ids: list) -> dict: + if not news_ids: + return {} + + try: + response = elasticsearch.search( + index="aktuell_postproc", + query={"terms": {"news_id.keyword": news_ids}}, + source=["news_id", "relevant"], + size=len(news_ids), + cluster="inse", + ) + except Exception: + logger.exception("Postproc-Relevanz-Lookup fehlgeschlagen.") + return {} + + relevance_map = {} + for hit in response.get("hits", {}).get("hits", []): + postproc_source = hit.get("_source", {}) + news_id = postproc_source.get("news_id") + if news_id is not None: + relevance_map[news_id] = bool(postproc_source.get("relevant", 0)) + + return relevance_map + + +def _parse_hit(hit: dict) -> NewsArticle: + source = hit.get("_source", {}) + + fragments = hit.get("highlight", {}).get("full_content") + snippet = fragments[0] if fragments else None + + return NewsArticle( + id=hit.get("_id"), + date=source.get("date"), + maintitle=source.get("maintitle"), + author=source.get("author"), + url=source.get("url"), + snippet=snippet, + ) diff --git a/service/src/main/inse/news/model.py b/service/src/main/inse/news/model.py new file mode 100644 index 00000000..723e9b49 --- /dev/null +++ b/service/src/main/inse/news/model.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from typing import List, Optional + +from pydantic import BaseModel + + +class NewsArticle(BaseModel): + id: str + date: Optional[str] = None + maintitle: Optional[str] = None + author: Optional[str] = None + url: Optional[str] = None + relevant: Optional[bool] = None + snippet: Optional[str] = None + + +class MentionedPerson(BaseModel): + name: str + is_ude: bool = False + person_id: Optional[str] = None + + +class NewsArticleDetail(NewsArticle): + full_content: Optional[str] = None + relevant: Optional[bool] = None + authors: List[MentionedPerson] = [] + + +class NewsPage(BaseModel): + total: int + page: int + page_size: int + results: List[NewsArticle] diff --git a/service/src/main/inse/news/service.py b/service/src/main/inse/news/service.py new file mode 100644 index 00000000..5bb5dc03 --- /dev/null +++ b/service/src/main/inse/news/service.py @@ -0,0 +1,105 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +REST API for the "aktuell" news index. +""" + +from typing import Annotated + +from fastapi import APIRouter +from fastapi import Path +from fastapi import Query + +from inse.tags import Tags +from . import logic +from .model import NewsArticleDetail, NewsPage + +router = APIRouter(prefix="/api/news", tags=[Tags.NEWS]) + + +@router.get( + "", + operation_id="listNews", + response_model=NewsPage, + response_model_exclude_none=True, + summary="Returns a page of news articles, newest first.", + tags=[Tags.NEWS], +) +def list_news( + page: Annotated[ + int, Query(description="Page number (1-based).", ge=1) + ] = 1, + page_size: Annotated[ + int, Query(alias="pageSize", description="Articles per page.", ge=1, le=100) + ] = 10, + sort_order: Annotated[ + str, Query(alias="sortOrder", description="Sort order: 'desc' (newest first) or 'asc' (oldest first).", pattern="^(asc|desc)$") + ] = "desc", +): + return logic.get_news_page(page, page_size, sort_order) + + +@router.get( + "/search", + operation_id="searchNews", + response_model=NewsPage, + response_model_exclude_none=True, + summary="Searches news articles by full text (full_content).", + tags=[Tags.NEWS], +) +def search_news( + query: Annotated[ + str, Query(description="Search term, matched against the full text (full_content).", min_length=1) + ], + page: Annotated[ + int, Query(description="Page number (1-based).", ge=1) + ] = 1, + page_size: Annotated[ + int, Query(alias="pageSize", description="Articles per page.", ge=1, le=100) + ] = 10, +): + return logic.search_news(query, page, page_size) + + +@router.get( + "/by-author", + operation_id="getNewsByAuthor", + response_model=NewsPage, + response_model_exclude_none=True, + summary="Returns news articles in which the given person is mentioned.", + tags=[Tags.NEWS], +) +def get_news_by_author( + author_id: Annotated[ + str, Query(alias="authorId", description="OpenAlex author id, e.g. A5034365278.") + ], + page: Annotated[ + int, Query(description="Page number (1-based).", ge=1) + ] = 1, + page_size: Annotated[ + int, Query(alias="pageSize", description="Articles per page.", ge=1, le=100) + ] = 10, + sort_order: Annotated[ + str, Query(alias="sortOrder", description="Sort order: 'desc' (newest first) or 'asc' (oldest first).", pattern="^(asc|desc)$") + ] = "desc", + query: Annotated[ + str | None, Query(description="Optional search term, matched against title/author.") + ] = None, +): + return logic.get_news_by_author(author_id, page, page_size, sort_order, query) + + +@router.get( + "/{news_id}", + operation_id="getNewsById", + response_model=NewsArticleDetail, + response_model_exclude_none=True, + summary="Returns a single news article including its full content.", + tags=[Tags.NEWS], +) +def get_news_by_id( + news_id: Annotated[ + str, Path(description="The unique id of the news article (Elasticsearch _id).") + ], +): + return logic.get_news_by_id(news_id) diff --git a/service/src/main/inse/patents/__init__.py b/service/src/main/inse/patents/__init__.py new file mode 100644 index 00000000..d10d63ca --- /dev/null +++ b/service/src/main/inse/patents/__init__.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Patents domain package. +""" diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py new file mode 100644 index 00000000..64d5865e --- /dev/null +++ b/service/src/main/inse/patents/elastic_search_client.py @@ -0,0 +1,182 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + HTTP client for patent searches in EPO and USPTO Elasticsearch indices. +""" +from typing import Any + +import httpx + +from .. import config +from .name_matching import search_name_variants + +EPO_INDEX = "epo_index_1.0" +USPTO_INDEX = "uspto_patents_3.0" + +DEFAULT_SEARCH_SIZE = 100 + + +def _match_name_field(field: str, name: str) -> dict[str, Any]: + """Match a name field, including transliterated variants (Müller/Mueller).""" + variants = search_name_variants(name) + if len(variants) <= 1: + return {"match": {field: variants[0] if variants else name}} + return { + "bool": { + "should": [{"match": {field: variant}} for variant in variants], + "minimum_should_match": 1, + } + } + + +class MissingApiKeyError(Exception): + pass + + +class PatentSearchClient: + def __init__( + self, + base_url: str | None = None, + api_key: str | None = None, + timeout: float = 30.0, + transport: httpx.AsyncBaseTransport | None = None, + ): + self.base_url = (base_url or config.settings.patent_elasticsearch_url).rstrip("/") + self.api_key = api_key if api_key is not None else config.settings.patent_elasticsearch_api_key + self.timeout = timeout + self.transport = transport + + def _headers(self) -> dict[str, str]: + if not self.api_key: + raise MissingApiKeyError("Patent Elasticsearch API key is not configured.") + return { + "Authorization": f"ApiKey {self.api_key}", + "Content-Type": "application/json", + } + + def epo_query_by_inventor( + self, + last_name: str, + first_name: str | None = None, + size: int = DEFAULT_SEARCH_SIZE, + ) -> dict[str, Any]: + """Search EPO index: first AND last name in the SAME inventor entry.""" + if first_name: + query = { + "nested": { + "path": "inventors_name_nested", + "query": { + "bool": { + "must": [ + _match_name_field("inventors_name_nested.inventor", last_name), + _match_name_field("inventors_name_nested.inventor", first_name), + ] + } + }, + } + } + else: + query = { + "nested": { + "path": "inventors_name_nested", + "query": _match_name_field("inventors_name_nested.inventor", last_name), + } + } + + return { + "size": size, + "track_total_hits": True, + "sort": [ + {"_score": {"order": "desc"}}, + {"date_publication": {"order": "desc", "missing": "_last"}}, + "_doc", + ], + "_source": [ + "doc_number", + "country", + "kind", + "date_publication", + "date_publication_year", + "title_en", + "title_de", + "abstract", + "inventors_name", + "applicants_name", + "ipc", + "ipc_text", + ], + "query": query, + } + + def uspto_query_by_inventor( + self, + last_name: str, + first_name: str | None = None, + size: int = DEFAULT_SEARCH_SIZE, + ) -> dict[str, Any]: + """Search USPTO index: first AND last name in the SAME inventor entry.""" + if first_name: + query = { + "nested": { + "path": "inventors", + "query": { + "bool": { + "must": [ + _match_name_field("inventors.name", last_name), + _match_name_field("inventors.name", first_name), + ] + } + }, + } + } + else: + query = { + "nested": { + "path": "inventors", + "query": _match_name_field("inventors.name", last_name), + } + } + + return { + "size": size, + "track_total_hits": True, + "sort": [ + {"_score": {"order": "desc"}}, + {"publication_date": {"order": "desc", "missing": "_last"}}, + "_doc", + ], + "_source": [ + "publication_number", + "country", + "publication_date", + "publication_year", + "title", + "abstract", + "inventors_names", + "inventors_names_text", + "assignees_orgs", + "ipcr", + "ipcr_text", + ], + "query": query, + } + + async def search_epo(self, payload: dict[str, Any]) -> dict[str, Any]: + return await self._search(EPO_INDEX, payload) + + async def search_uspto(self, payload: dict[str, Any]) -> dict[str, Any]: + return await self._search(USPTO_INDEX, payload) + + async def _search(self, index: str, payload: dict[str, Any]) -> dict[str, Any]: + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.post( + f"/{index}/_search", + headers=self._headers(), + json=payload, + ) + response.raise_for_status() + return response.json() diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py new file mode 100644 index 00000000..7e82cc31 --- /dev/null +++ b/service/src/main/inse/patents/logic.py @@ -0,0 +1,156 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Business logic for patent matching by author name. +""" +import logging + +import httpx +from fastapi import HTTPException +from starlette.status import HTTP_502_BAD_GATEWAY +from starlette.status import HTTP_503_SERVICE_UNAVAILABLE + +from ..persons import logic as person_logic +from ..models.openalex.author import Author +from . import model +from .elastic_search_client import MissingApiKeyError +from .elastic_search_client import PatentSearchClient +from .name_matching import name_matches + +logger = logging.getLogger(__name__) + + +async def get_patents_by_author_id( + author_id: str, + client: PatentSearchClient | None = None, +) -> model.PatentsByAuthorResponse: + search_client = client or PatentSearchClient() + + author = _get_author(author_id) + if not author: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=None, + patent_count=0, + patents=[], + ) + + author_name = author.display_name + last_name = _extract_last_name(author_name) + first_name = _extract_first_name(author_name) + + if not last_name: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=0, + patents=[], + ) + + try: + epo_data, uspto_data = await _search_both_indices( + search_client, last_name, first_name + ) + except MissingApiKeyError as exc: + raise HTTPException(status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.") from exc + except httpx.HTTPError as exc: + raise HTTPException(status_code=HTTP_502_BAD_GATEWAY, + detail="Patent search request failed.") from exc + + all_patents = _parse_epo_hits(epo_data) + _parse_uspto_hits(uspto_data) + + if first_name and last_name: + all_patents = _filter_patents_by_name(all_patents, first_name, last_name) + + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=len(all_patents), + patents=all_patents, + ) + + +async def _search_both_indices(client, last_name, first_name): + import asyncio + epo_result, uspto_result = await asyncio.gather( + client.search_epo(client.epo_query_by_inventor(last_name, first_name)), + client.search_uspto(client.uspto_query_by_inventor(last_name, first_name)), + ) + return epo_result, uspto_result + + +def _parse_epo_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_name") or [] + applicants = src.get("applicants_name") or [] + ipc = src.get("ipc") or [] + patents.append(model.PatentEntry( + patent_id=f"EP{src.get('doc_number', hit.get('_id', ''))}", + source="EPO", + title=src.get("title_en") or src.get("title_de"), + abstract=src.get("abstract"), + publication_date=str(src.get("date_publication")) if src.get("date_publication") else None, + publication_year=str(src.get("date_publication_year")) if src.get("date_publication_year") else None, + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=applicants if isinstance(applicants, list) else [applicants], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "EP"), + )) + return patents + + +def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_names") or [] + assignees = src.get("assignees_orgs") or [] + ipc = src.get("ipcr") or [] + patents.append(model.PatentEntry( + patent_id=f"US{src.get('publication_number', hit.get('_id', ''))}", + source="USPTO", + title=src.get("title"), + abstract=src.get("abstract"), + publication_date=str(src.get("publication_date")) if src.get("publication_date") else None, + publication_year=str(src.get("publication_year")) if src.get("publication_year") else None, + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=assignees if isinstance(assignees, list) else [assignees], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "US"), + )) + return patents + + +def _filter_patents_by_name( + patents: list[model.PatentEntry], + first_name: str, + last_name: str, +) -> list[model.PatentEntry]: + """Keep patents where at least one inventor matches the author name.""" + return [ + patent for patent in patents + if any(name_matches(inventor, first_name, last_name) for inventor in patent.inventors) + ] + + +def _get_author(author_id: str) -> Author | None: + short_id = author_id.replace("https://openalex.org/", "") + result = person_logic.search_persons(author_id=short_id) + return result.results[0] if result.results else None + + +def _extract_last_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[-1] if parts else None + + +def _extract_first_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[0] if len(parts) > 1 else None \ No newline at end of file diff --git a/service/src/main/inse/patents/model.py b/service/src/main/inse/patents/model.py new file mode 100644 index 00000000..31ebc18c --- /dev/null +++ b/service/src/main/inse/patents/model.py @@ -0,0 +1,20 @@ +from pydantic import BaseModel, Field + + +class PatentEntry(BaseModel): + patent_id: str + source: str # "EPO" or "USPTO" + title: str | None = None + abstract: str | None = None + publication_date: str | None = None + publication_year: str | None = None + inventors: list[str] = Field(default_factory=list) + assignees: list[str] = Field(default_factory=list) + ipc: list[str] = Field(default_factory=list) + country: str | None = None + +class PatentsByAuthorResponse(BaseModel): + author_id: str + author_name: str | None = None + patent_count: int + patents: list[PatentEntry] diff --git a/service/src/main/inse/patents/name_matching.py b/service/src/main/inse/patents/name_matching.py new file mode 100644 index 00000000..659b295c --- /dev/null +++ b/service/src/main/inse/patents/name_matching.py @@ -0,0 +1,242 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Name normalization and matching for patent inventor lookup. + + Handles umlauts, diacritics, and common Latin transliterations so that + e.g. 'Müller' matches 'Mueller' and 'Muller'. +""" +import re +import unicodedata + +# Characters that NFKD does not map to ASCII-friendly forms. +_CHAR_REPLACEMENTS: dict[str, str] = { + "ß": "ss", + "ẞ": "ss", + "æ": "ae", + "Æ": "ae", + "œ": "oe", + "Œ": "oe", + "ø": "o", + "Ø": "o", + "đ": "d", + "Đ": "d", + "ð": "d", + "Ð": "d", + "þ": "th", + "Þ": "th", + "ł": "l", + "Ł": "l", + "ı": "i", + "ſ": "s", +} + +# German patent transliterations: ae/oe/ue often stand in for ä/ö/ü. +_DIGRAPH_COLLAPSES: tuple[tuple[str, str], ...] = ( + ("ae", "a"), + ("oe", "o"), + ("ue", "u"), +) + +# Common ASCII spellings in patent records for umlaut-derived vowels. +_PATENT_VOWEL_EXPANSIONS: tuple[tuple[str, str], ...] = ( + (r"u([lmnrt])", r"ue\1"), + (r"o([lmnrt])", r"oe\1"), + (r"a([lmnrt])", r"ae\1"), +) + + +def normalize_name_part(value: str | None) -> str: + """ + Normalize a single name token for comparison. + + Steps: transliteration map -> NFKD -> strip diacritics -> lowercase + -> remove apostrophes/punctuation -> collapse whitespace. + """ + if not value: + return "" + + text = value.strip() + for src, dst in _CHAR_REPLACEMENTS.items(): + text = text.replace(src, dst) + + text = unicodedata.normalize("NFKD", text) + text = "".join(c for c in text if not unicodedata.combining(c)) + text = text.lower() + text = re.sub(r"[''`´]", "", text) + text = re.sub(r"[^\w\s-]", "", text) + text = re.sub(r"\s+", " ", text).strip() + return text + + +def name_token_variants(value: str | None) -> set[str]: + """ + Return equivalent forms of a name token. + + Includes the normalized base plus German digraph collapses + (Mueller -> muller) and hyphen Relaxed forms (Jean-Pierre -> jean pierre). + """ + base = normalize_name_part(value) + if not base: + return set() + + variants = {base} + + for src, dst in _DIGRAPH_COLLAPSES: + if src in base: + variants.add(base.replace(src, dst)) + + if "-" in base: + variants.add(base.replace("-", "")) + variants.add(base.replace("-", " ")) + + return {v for v in variants if v} + + +def _patent_transliteration_expansions(normalized: str) -> set[str]: + """ + ASCII spellings used in patent records (e.g. Müller indexed as Mueller). + + Used for Elasticsearch recall only; post-filter applies stricter matching. + """ + expanded = {normalized} + for pattern, repl in _PATENT_VOWEL_EXPANSIONS: + if re.search(pattern, normalized): + expanded.add(re.sub(pattern, repl, normalized)) + return expanded + + +def tokens_equal( + left: str | None, + right: str | None, + *, + allow_initial: bool = True, +) -> bool: + """True when two name tokens are equivalent after normalization.""" + left_variants = name_token_variants(left) + right_variants = name_token_variants(right) + if not left_variants or not right_variants: + return False + if left_variants & right_variants: + return True + + if not allow_initial: + return False + + return _initial_tokens_match(left, right) + + +def _initial_letter(token: str | None) -> str | None: + normalized = normalize_name_part(token) + if len(normalized) == 1 and normalized.isalpha(): + return normalized + return None + + +def _initial_tokens_match(left: str | None, right: str | None) -> bool: + """True when one token is a single-letter initial matching the other token.""" + left_initial = _initial_letter(left) + right_initial = _initial_letter(right) + left_full = normalize_name_part(left) + right_full = normalize_name_part(right) + + if left_initial and right_full and len(right_full) > 1: + return right_full.startswith(left_initial) + if right_initial and left_full and len(left_full) > 1: + return left_full.startswith(right_initial) + if left_initial and right_initial: + return left_initial == right_initial + return False + + +def _inventor_first_token(inventor_name: str) -> str: + if "," in inventor_name: + _, first_part = [p.strip() for p in inventor_name.split(",", 1)] + return first_part.split()[0] if first_part else "" + parts = inventor_name.split() + return parts[0] if parts else "" + + +def first_name_match_kind( + inventor_name: str, + first_name: str, + last_name: str, +) -> str: + """ + Match quality for the inventor first name: 'full', 'initial', or 'none'. + """ + if not name_matches(inventor_name, first_name, last_name): + return "none" + + inventor_first = _inventor_first_token(inventor_name) + if tokens_equal(inventor_first, first_name, allow_initial=False): + return "full" + return "initial" + + +def search_name_variants(value: str | None) -> list[str]: + """ + Distinct search strings for Elasticsearch, preserving original casing + where useful but including normalized and transliterated forms. + """ + if not value or not value.strip(): + return [] + + seen: set[str] = set() + ordered: list[str] = [] + + def _add(candidate: str) -> None: + key = candidate.casefold() + if candidate.strip() and key not in seen: + seen.add(key) + ordered.append(candidate.strip()) + + _add(value.strip()) + + normalized = normalize_name_part(value) + if normalized: + _add(normalized.title()) + + for variant in name_token_variants(value): + _add(variant.title()) + + for variant in _patent_transliteration_expansions(normalized): + _add(variant.title()) + + if normalized and len(normalized) > 1: + _add(normalized[0].upper()) + + return ordered + + +def name_matches(inventor_name: str, first_name: str, last_name: str) -> bool: + """ + True when an inventor entry matches first_name + last_name. + + Supports: + - USPTO: 'Christian Weber', 'Christian Hans Weber' + - EPO: 'Weber, Christian', 'Weber, Christian Hans' + """ + if not inventor_name or not last_name: + return False + + name = inventor_name.strip() + + if "," in name: + last_part, first_part = [p.strip() for p in name.split(",", 1)] + first_token = first_part.split()[0] if first_part else "" + return ( + tokens_equal(last_part, last_name, allow_initial=False) + and bool(first_name) + and tokens_equal(first_token, first_name) + ) + + parts = name.split() + if len(parts) < 2: + return False + + return ( + tokens_equal(parts[-1], last_name, allow_initial=False) + and bool(first_name) + and tokens_equal(parts[0], first_name) + ) diff --git a/service/src/main/inse/patents/service.py b/service/src/main/inse/patents/service.py new file mode 100644 index 00000000..53a27446 --- /dev/null +++ b/service/src/main/inse/patents/service.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + REST API for patent matching by author. +""" +from fastapi import APIRouter +from . import logic +from . import model + +router = APIRouter(prefix="/api/inse-service/authors", tags=["Patents"]) + + +@router.get( + "/{author_id}/patents", + operation_id="getPatentsByAuthor", + response_model=model.PatentsByAuthorResponse, + summary="Get patents matched to an author by name.", +) +async def get_patents_by_author(author_id: str): + return await logic.get_patents_by_author_id(author_id) diff --git a/service/src/main/inse/patents/test_elastic_search_client.py b/service/src/main/inse/patents/test_elastic_search_client.py new file mode 100644 index 00000000..08729ea6 --- /dev/null +++ b/service/src/main/inse/patents/test_elastic_search_client.py @@ -0,0 +1,49 @@ +import httpx +import pytest + +from inse.patents.elastic_search_client import ( + DEFAULT_SEARCH_SIZE, + EPO_INDEX, + PatentSearchClient, + USPTO_INDEX, +) + + +@pytest.fixture +def anyio_backend(): + return "asyncio" + + +def test_epo_query_uses_nested_search_and_name_variants(): + client = PatentSearchClient(api_key="test-key") + payload = client.epo_query_by_inventor("Müller", "Christian") + + assert payload["size"] == DEFAULT_SEARCH_SIZE + assert payload["sort"][0] == {"_score": {"order": "desc"}} + nested = payload["query"]["nested"] + assert nested["path"] == "inventors_name_nested" + must = nested["query"]["bool"]["must"] + assert len(must) == 2 + assert "should" in must[0]["bool"] + + +def test_uspto_index_is_3_0(): + assert USPTO_INDEX == "uspto_patents_3.0" + assert EPO_INDEX == "epo_index_1.0" + + +@pytest.mark.anyio +async def test_search_epo_posts_to_correct_index(): + requests: list[str] = [] + + def handler(request: httpx.Request) -> httpx.Response: + requests.append(request.url.path) + return httpx.Response(200, json={"hits": {"hits": []}}) + + transport = httpx.MockTransport(handler) + client = PatentSearchClient(api_key="test-key", transport=transport) + + await client.search_epo(client.epo_query_by_inventor("Weber", "Christian")) + + assert len(requests) == 1 + assert requests[0].endswith(f"/{EPO_INDEX}/_search") diff --git a/service/src/main/inse/patents/test_name_matching.py b/service/src/main/inse/patents/test_name_matching.py new file mode 100644 index 00000000..cc93465d --- /dev/null +++ b/service/src/main/inse/patents/test_name_matching.py @@ -0,0 +1,123 @@ +import pytest + +from inse.patents.name_matching import ( + first_name_match_kind, + name_matches, + name_token_variants, + normalize_name_part, + search_name_variants, + tokens_equal, +) + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("Müller", "Mueller"), + ("Müller", "Muller"), + ("Schöning", "Schoening"), + ("François", "Francois"), + ("José", "Jose"), + ("García", "Garcia"), + ("Bräun", "Braun"), + ("Straß", "Strass"), + ("Grøn", "Gron"), + ("Małgorzata", "Malgorzata"), + ("Øystein", "Oystein"), + ], +) +def test_tokens_equal_transliteration(left: str, right: str) -> None: + assert tokens_equal(left, right) + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("Christian", "Marc"), + ("Weber", "Wagner"), + ("Müller", "Meier"), + ], +) +def test_tokens_equal_rejects_different_names(left: str, right: str) -> None: + assert not tokens_equal(left, right) + + +def test_hyphenated_first_name() -> None: + assert tokens_equal("Jean-Pierre", "Jean Pierre") + assert tokens_equal("Jean-Pierre", "JeanPierre") + + +@pytest.mark.parametrize( + ("inventor", "first", "last", "expected"), + [ + ("Christian Weber", "Christian", "Weber", True), + ("Weber, Christian", "Christian", "Weber", True), + ("Marc Christian Weber", "Christian", "Weber", False), + ("Müller, Hans", "Hans", "Müller", True), + ("Mueller, Hans", "Hans", "Müller", True), + ("Hans Mueller", "Hans", "Müller", True), + ("Weber, Christian Hans", "Christian", "Weber", True), + ("Schoening, Klaus", "Klaus", "Schöning", True), + ], +) +def test_name_matches(inventor: str, first: str, last: str, expected: bool) -> None: + assert name_matches(inventor, first, last) is expected + + +def test_normalize_name_part_strips_diacritics() -> None: + assert normalize_name_part("François") == "francois" + assert normalize_name_part(" O'Brien ") == "obrien" + + +def test_search_name_variants_includes_transliterations() -> None: + variants = search_name_variants("Müller") + folded = {v.casefold() for v in variants} + assert "müller" in folded or "Müller".casefold() in folded + assert "mueller" in folded + assert "muller" in folded + + +def test_name_token_variants_mueller() -> None: + variants = name_token_variants("Mueller") + assert "mueller" in variants + assert "muller" in variants + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("C", "Christian"), + ("C.", "Christian"), + ("Christian", "C"), + ], +) +def test_tokens_equal_initials(left: str, right: str) -> None: + assert tokens_equal(left, right) + + +def test_tokens_equal_initials_not_for_last_names_by_default() -> None: + assert not tokens_equal("W", "Weber", allow_initial=False) + + +@pytest.mark.parametrize( + ("inventor", "first", "last", "expected"), + [ + ("C. Weber", "Christian", "Weber", True), + ("Weber, C.", "Christian", "Weber", True), + ("Weber, C", "Christian", "Weber", True), + ], +) +def test_name_matches_initials(inventor: str, first: str, last: str, expected: bool) -> None: + assert name_matches(inventor, first, last) is expected + + +def test_first_name_match_kind() -> None: + assert first_name_match_kind("Christian Weber", "Christian", "Weber") == "full" + assert first_name_match_kind("C. Weber", "Christian", "Weber") == "initial" + assert first_name_match_kind("Marc Christian Weber", "Christian", "Weber") == "none" + + +def test_search_name_variants_includes_initial() -> None: + variants = search_name_variants("Christian") + assert "C" in variants + diff --git a/service/src/main/inse/persons/logic.py b/service/src/main/inse/persons/logic.py index 76db43c7..8c5238f9 100644 --- a/service/src/main/inse/persons/logic.py +++ b/service/src/main/inse/persons/logic.py @@ -13,6 +13,8 @@ from elasticsearch import ApiError, NotFoundError import hashlib import httpx from fastapi import HTTPException + +from inse.model import ESIndex from .. import config from .. import util from ..integrations import llm @@ -28,8 +30,63 @@ from inse.persons.model import ( PersonSearchRequest, CareerMetrics, ) + logger = logging.getLogger(__name__) INDEX_NAME = "openalex-authors" +UDE_INSTITUTION_ID = "https://openalex.org/I62318514" # Universität Duisburg-Essen + +def find_ude_author_by_name(display_name: str) -> Optional[dict]: + query = { + "_source": ["display_name"], + "query": { + "bool": { + "must": [ + { + "match_phrase": { + "display_name": display_name + } + }, + { + "nested": { + "path": "affiliations", + "query": { + "term": { + "affiliations.institution.id": UDE_INSTITUTION_ID + } + }, + } + }, + ] + } + }, + "size": 10, + } + + try: + data = elasticsearch.search(index=INDEX_NAME, body=query) + except Exception: + logger.exception(f"UDE-Lookup für '{display_name}' fehlgeschlagen.") + return None + + hits = data.get("hits", {}).get("hits", []) + + display_name = display_name.strip().lower() + exact_matches = [] + + for hit in hits: + hit_display_name = hit.get("_source", {}).get("display_name", "") + if hit_display_name.strip().lower() == display_name: + exact_matches.append(hit) + + if not exact_matches: + return None + + hit = exact_matches[0] + + return { + "id": hit.get("_id"), + "display_name": hit.get("_source", {}).get("display_name"), + } def get_author_name_by_id(author_id: str) -> Optional[str]: @@ -55,20 +112,26 @@ def get_author_name_by_id(author_id: str) -> Optional[str]: def search_persons( author_id: Optional[str] = None, query: Optional[str] = None, - include: Optional[set[str]] = None, ) -> AuthorsListResponse: if author_id: - query_field = "_id" - query_value = author_id + query_ = { + "query_string": { + "default_field": "_id", + "query": author_id, + } + } + elif query: - query_field = "display_name" - query_value = query + query_ = { + "query_string": { + "default_field": "display_name", + "query": query, + } + } else: return AuthorsListResponse(results=[], meta=Meta(count=0)) - data = elasticsearch.search( - index="openalex-authors", query_field=query_field, query_value=query_value - ) + data = elasticsearch.search(index=ESIndex.OPENALEX_AUTHORS, query=query_) authors = [] for hit in data.get("hits", {}).get("hits", []): @@ -221,9 +284,7 @@ def _get_publication_years_for_author(author_id: str) -> list[int]: ) buckets = ( - response.get("aggregations", {}) - .get("publication_years", {}) - .get("buckets", []) + response.get("aggregations", {}).get("publication_years", {}).get("buckets", []) ) publication_years: list[int] = [] @@ -237,20 +298,21 @@ def _get_publication_years_for_author(author_id: str) -> list[int]: return publication_years + def _classify_career_stage(active_years: int) -> str: if active_years <= 0: return "unknown" if active_years <= 4: - return "Early Researcher" + return "Early" - if active_years <= 10: - return "Emerging Researcher" + if active_years <= 9: + return "Emerging" - if active_years <= 20: - return "Established Researcher" + if active_years <= 14: + return "Established" - return "Senior Researcher" + return "Senior" def _compute_career_metrics(publication_years: list[int]) -> CareerMetrics: @@ -371,15 +433,13 @@ def generate_person_bio(author_id: str, include: Optional[set[str]] = None) -> s def get_person_by_id( author_id: str, include: Optional[str] = None ) -> CustomAuthorsListResponse: - body = { - "_source": include.split(",") if include else True, - } + source = include.split(",") if include else None try: hit = elasticsearch.get( index="openalex-authors", - body=body, doc_id=author_id, + source=source, ) except NotFoundError: raise HTTPException( @@ -389,7 +449,13 @@ def get_person_by_id( raise HTTPException(status_code=500, detail=f"Elasticsearch error: {str(e)}") author = util.get_persons_data(hit) + start_time = time.time() career_metrics = get_career_metrics_for_author(author_id) + elapsed_time = time.time() - start_time + + logger.info( + f"Career metrics calculation for author {author_id} took {elapsed_time:.2f} seconds" + ) custom_author = CustomAuthor( **author.model_dump(), @@ -399,7 +465,6 @@ def get_person_by_id( return CustomAuthorsListResponse(results=[custom_author]) - def search_persons_by_name( author_name: str, limit: Optional[int] = 10, @@ -676,11 +741,22 @@ def advanced_search_persons( hits = response_dict.get("hits", {}).get("hits", []) total_count = response_dict.get("hits", {}).get("total", {}).get("value", 0) + include_career_metrics = include is None or "career_metrics" in include results = [] for hit in hits: raw_data = util.get_persons_data(hit) custom_author = _enrich_author_data(raw_data) if custom_author: + if include_career_metrics: + start_time = time.time() + custom_author.career_metrics = get_career_metrics_for_author( + custom_author.id + ) + elapsed_time = time.time() - start_time + logger.info( + f"Career metrics calculation for author {custom_author.id} took " + f"{elapsed_time:.2f} seconds" + ) results.append(custom_author) return CustomAuthorsListResponse( diff --git a/service/src/main/inse/persons/service.py b/service/src/main/inse/persons/service.py index c6cae176..a1e08f62 100644 --- a/service/src/main/inse/persons/service.py +++ b/service/src/main/inse/persons/service.py @@ -53,7 +53,7 @@ def search_persons( if include else None ) - return logic.search_persons(author_id, query, include_set) + return logic.search_persons(author_id, query) @router.get( diff --git a/service/src/main/inse/projects/model.py b/service/src/main/inse/projects/model.py index 03a3caa3..d0957d4d 100644 --- a/service/src/main/inse/projects/model.py +++ b/service/src/main/inse/projects/model.py @@ -1,9 +1,61 @@ +from datetime import date +import datetime +from enum import StrEnum from typing import List, Optional -from pydantic import BaseModel, Field +from pydantic import BaseModel, Field, field_validator from inse.models.bund_project import BundProject from inse.models.eu_project import EuProject +from inse.models.cordis_eu_project import CordisEuProject +from inse.model import ESIndex + + +class ProjectType(StrEnum): + BUND = "bund" + EU = "eu" + DFG = "dfg" + + def to_es_index(self) -> ESIndex: + mapping = { + self.BUND: ESIndex.PROJECTS_BUND_V1, + self.EU: ESIndex.CORDIS_EU_PROJECTS_WILDCARD, + self.DFG: ESIndex.PROJECTS_DFG_ALL, + } + index = mapping.get(self) + if index is None: + raise ValueError(f"Unsupported project type: {self}") + return index + + +class ProjectsSortBy(StrEnum): + TITLE = "title" + FUNDING_START = "funding_start" + FUNDING_END = "funding_end" + FUNDING_AMOUNT = "funding_amount" + + def to_cordis_eu_project_sort_field(self) -> str: + mapping = { + self.TITLE: "title.keyword", + self.FUNDING_START: "startDate", + self.FUNDING_END: "endDate", + self.FUNDING_AMOUNT: "ecMaxContribution", + } + return mapping.get(self, "title.keyword") + + def to_bund_project_sort_field(self) -> str: + mapping = { + self.TITLE: "Thema.keyword", + self.FUNDING_START: "funding_start", + self.FUNDING_END: "funding_end", + self.FUNDING_AMOUNT: "Fördersumme", + } + return mapping.get(self, "Thema.keyword") + + +class SortDirection(StrEnum): + ASC = "asc" + DESC = "desc" class Page(BaseModel): @@ -73,3 +125,192 @@ class DfgProjectPage(Page): elements: List[DfgProjectSummary] = Field( default_factory=list, description="The DFG projects on this page." ) + + +class InstitutionFunderSummary(BaseModel): + type: ProjectType = Field( + description="The type of funding data (e.g., 'bund', 'eu', 'dfg')." + ) + funding_per_year: dict = Field( + default_factory=dict, + description="A dictionary mapping years to total funding amounts for that year.", + ) + annual_average_over_period: float = Field( + default=0.0, + description="The average annual funding over the continuous period covered by the data.", + ) + + +class ProjectsFilteringProperties(BaseModel): + project_type: ProjectType = Field(description="The type of projects to filter by.") + page: int = Field(description="The page number for pagination.") + size: int = Field(description="The page size for pagination.") + raw_oa_institution_id: Optional[str] = Field( + default=None, description="The raw OA institution ID to filter by." + ) + query: Optional[str] = Field( + default=None, description="The query string to filter projects by." + ) + sort_by: ProjectsSortBy = Field( + default=ProjectsSortBy.TITLE, description="The field to sort by." + ) + sort_direction: SortDirection = Field( + default=SortDirection.ASC, description="The sort direction (asc or desc)." + ) + + +class CordisEuProjectPage(Page): + elements: List[CordisEuProject] = Field( + default_factory=list, description="The CORDIS EU projects on this page." + ) + + +class FundingProject(BaseModel): + type: ProjectType = Field( + description="The type of the project.", + examples=[ProjectType.BUND, ProjectType.EU, ProjectType.DFG], + ) + id: str = Field(description="The unique identifier of the project.") + title: Optional[str] = Field(default=None, description="The title of the project.") + acronym: Optional[str] = Field( + default=None, description="The acronym of the project (if available)." + ) + start_date: Optional[date] = Field( + default=None, description="The funding start date of the project." + ) + end_date: Optional[date] = Field( + default=None, description="The funding end date of the project." + ) + funding_amount: Optional[float] = Field( + default=None, description="The total funding amount for the project." + ) + + @field_validator("start_date", "end_date", mode="before") + @classmethod + def parse_all_date_formats(cls, value): + if isinstance(value, str): + value = value.strip() + + if len(value) == 4 and value.isdigit(): + return f"{value}-01-01" + + if "." in value: + return datetime.datetime.strptime(value, "%d.%m.%Y").date() + + return value + + return value + + @classmethod + def from_cordis_projects_hit(cls, hit: dict) -> "FundingProject": + if not hit.get("_index", "").startswith("cordis_eu_") and not hit.get( + "_index", "" + ).endswith("_projects"): + raise ValueError( + "The provided hit does not belong to an index starting with 'cordis_eu_' and ending with '_projects'." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.EU, + id=hit.get("_id", ""), + title=source.get("title"), + start_date=source.get("startDate"), + end_date=source.get("endDate"), + funding_amount=source.get("ecMaxContribution"), + ) + + @classmethod + def from_bund_projects_hit(cls, hit: dict) -> "FundingProject": + if hit.get("_index") != "projects_bund_v1": + raise ValueError( + "The provided hit does not belong to the 'projects_bund_v1' index." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.BUND, + id=source.get("Förderkennzeichen", ""), + title=source.get("Thema"), + start_date=source.get("funding_start"), + end_date=source.get("funding_end"), + funding_amount=source.get("Fördersumme"), + ) + + @classmethod + def from_dfg_projects_hit(cls, hit: dict) -> "FundingProject": + if hit.get("_index") != "projects_dfg_all": + raise ValueError( + "The provided hit does not belong to the 'projects_dfg_all' index." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.DFG, + id=hit.get("_id", ""), + title=source.get("title"), + start_date=source.get("funding_start"), + end_date=source.get("funding_end"), + acronym=source.get("acronym"), + ) + + +class FundingProjectPage(Page): + elements: List[FundingProject] = Field( + default_factory=list, description="The funding projects on this page." + ) + + +class EuOrganizationShort(BaseModel): + project_id: str = Field(description="The unique identifier of the project.") + organization_id: str = Field( + description="The unique identifier of the organization." + ) + ec_contribution: Optional[float] = Field( + default=None, + description="The EC contribution amount for the organization in the project.", + ) + + +class EuProjectShort(BaseModel): + id: str = Field(description="The unique identifier of the EU project.") + title: Optional[str] = Field( + default=None, description="The title of the EU project." + ) + start_date: Optional[date] = Field( + default=None, description="The funding start date of the EU project." + ) + end_date: Optional[date] = Field( + default=None, description="The funding end date of the EU project." + ) + acronym: Optional[str] = Field( + default=None, description="The acronym of the EU project." + ) + + +class EuOrganizationProjectSummary(BaseModel): + organization_id: str = Field( + description="The unique identifier of the organization." + ) + project_id: str = Field(description="The unique identifier of the project.") + title: Optional[str] = Field(default=None, description="The title of the project.") + start_date: Optional[date] = Field( + default=None, description="The funding start date of the project." + ) + end_date: Optional[date] = Field( + default=None, description="The funding end date of the project." + ) + acronym: Optional[str] = Field( + default=None, description="The acronym of the project." + ) + ec_contribution: Optional[float] = Field( + default=None, + description="The EC contribution amount for the organization in the project.", + ) + + +class EuOrganizationProjectSummaryPage(Page): + elements: List[EuOrganizationProjectSummary] = Field( + default_factory=list, + description="The organization project summaries on this page.", + ) diff --git a/service/src/main/inse/projects/projects_search_client.py b/service/src/main/inse/projects/projects_search_client.py index c448c704..a53c2f1f 100644 --- a/service/src/main/inse/projects/projects_search_client.py +++ b/service/src/main/inse/projects/projects_search_client.py @@ -1,6 +1,6 @@ import json import logging -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, Set, Tuple import httpx @@ -8,11 +8,26 @@ from inse.config import get_settings from inse.models.bund_project import BundProject from inse.projects.model import ( BundProjectPage, + CordisEuProjectPage, DfgProjectPage, DfgProjectSummary, - EuProjectPage, + EuOrganizationProjectSummary, + EuOrganizationProjectSummaryPage, + EuOrganizationShort, + EuProjectShort, + FundingProject, + FundingProjectPage, + ProjectType, + ProjectsFilteringProperties, + ProjectsSortBy, + SortDirection, ) -from inse.models.eu_project import EuProject + +from inse.models.dfg_project_details import DfgProjectDetails +from inse.models.bund_project_details import BundProjectDetails +from inse.models.cordis_eu_project import CordisEuProject +from inse.integrations import elasticsearch +from inse.model import ESCluster, ESIndex settings = get_settings() @@ -81,545 +96,822 @@ DFG_PERSON_FIELDS: List[str] = [ "stellvertr. Sprecherinnen / stellvertr. Sprecher", ] - -class ProjectsSearchClient: - def __init__( - self, - base_url: str, - index: str, - api_key: str, - ): - self.base_url = base_url - self.index = index - self.api_key = api_key - self.headers = { - "Content-Type": "application/json", - "Authorization": f"ApiKey {self.api_key}", - } - - async def make_search_request(self, query: dict) -> dict: - async with httpx.AsyncClient() as client: - response = await client.post( - f"{self.base_url}/{self.index}/_search", - json=query, - headers=self.headers, - ) - - try: - response.raise_for_status() - except httpx.HTTPStatusError as e: - logger.exception( - f"HTTP error occurred: {e.response.status_code} - {e.response.text}" - ) - raise - - return response.json() +# BUND -class BundProjectsSearchClient(ProjectsSearchClient): - def __init__(self): - if not settings.elasticsearch_inse_url: - raise ValueError("Elasticsearch INSE URL is missing in settings.") - if not settings.elasticsearch_inse_api_key: - raise ValueError("Elasticsearch INSE API key is missing in settings.") - super().__init__( - base_url=settings.elasticsearch_inse_url, - index="projects_bund", - api_key=settings.elasticsearch_inse_api_key, - ) +def search_bund_projects( + filter_properties: ProjectsFilteringProperties, + institution_names: List[str] = [], +) -> BundProjectPage: + """Searches for Bund projects based on the provided filtering properties and institution names. - def bund_projects_query( - self, - page: int, - size: int, - id: Optional[str] = None, - institution_names: List[str] = [], - topic: Optional[str] = None, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> dict: - from_ = page * size - query: Dict[str, Any] = {"size": size, "from": from_, "query": {}} + Args: + filter_properties (ProjectsFilteringProperties): The properties to filter the projects by. + institution_names (List[str], optional): The names of the institutions to filter by. Defaults to []. - must_clauses: List[Dict[str, Any]] = [] - if id: - must_clauses.append({"match": {"id": id}}) + Returns: + BundProjectPage: The page of Bund projects that match the filtering criteria. + """ - if len(institution_names) > 0: - must_clauses.append( - { - "bool": { - "should": [ - { - "match": { - "Zuwendungsempfänger": { - "query": name, - "operator": "and", - } + must_clauses: List[Dict[str, Any]] = [] + if len(institution_names) > 0: + must_clauses.append( + { + "bool": { + "should": [ + { + "match": { + "Zuwendungsempfänger": { + "query": name, + "operator": "and", } } - for name in institution_names - ], - "minimum_should_match": 1, - } - } - ) - - if topic is not None and topic.strip() != "": - must_clauses.append( - { - "match_phrase_prefix": { - "Thema": { - "query": topic, - "max_expansions": 50, } - } - } - ) - - if must_clauses: - query["query"] = {"bool": {"must": must_clauses}} - else: - query["query"] = {"match_all": {}} - - sort_by = sort_by.strip() - if sort_by == "topic": - sort_by = "Thema.keyword" - elif sort_by == "department": - sort_by = "Ressort_fullname.keyword" - elif sort_by == "grant_amount": - sort_by = "Fördersumme" - - sort_direction = sort_direction.strip().lower() - if sort_direction not in ["asc", "desc"]: - sort_direction = "asc" - - query["sort"] = [{f"{sort_by}": {"order": sort_direction}}] - - query_str = json.dumps(query, indent=2) - logger.debug(f"Constructed Bund project query: {query_str}") - - return query - - def response_to_bund_project_page( - self, response: dict, page: int, size: int - ) -> BundProjectPage: - hits_block = response.get("hits", {}) - total_hits = hits_block.get("total", {}).get("value", 0) - elements = [ - BundProject.model_validate(hit["_source"]) - for hit in hits_block.get("hits", []) - ] - return BundProjectPage( - elements=elements, total=total_hits, page=page, size=size - ) - - async def search_bund_projects( - self, - page: int, - size: int, - id: Optional[str] = None, - institution_names: List[str] = [], - topic: Optional[str] = None, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> BundProjectPage: - query = self.bund_projects_query( - page=page, - size=size, - id=id, - institution_names=institution_names, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, - ) - response = await self.make_search_request(query) - return self.response_to_bund_project_page(response, page, size) - - async def get_bund_projects_by_institution_name( - self, - institution_names: List[str], - page: int, - size: int, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> BundProjectPage: - query = self.bund_projects_query( - page=page, - size=size, - institution_names=institution_names, - sort_by=sort_by, - sort_direction=sort_direction, - ) - response = await self.make_search_request(query) - return self.response_to_bund_project_page(response, page, size) - - -class EuProjectsSearchClient(ProjectsSearchClient): - def __init__(self): - if not settings.elasticsearch_inse_url: - raise ValueError("Elasticsearch INSE URL is missing in settings.") - if not settings.elasticsearch_inse_api_key: - raise ValueError("Elasticsearch INSE API key is missing in settings.") - super().__init__( - base_url=settings.elasticsearch_inse_url, - index="projects_eu_all", - api_key=settings.elasticsearch_inse_api_key, - ) - - def eu_projects_query( - self, - page: int, - size: int, - id: Optional[str] = None, - institution_names: List[str] = [], - topic: Optional[str] = "Network", - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> dict: - from_ = page * size - query: Dict[str, Any] = {"size": size, "from": from_, "query": {}} - - must_clauses: List[Dict[str, Any]] = [] - if id: - must_clauses.append({"match": {"id": id}}) - - if topic is not None and topic.strip() != "": - must_clauses.append( - { - "match_phrase_prefix": { - "title": { - "query": topic, - "max_expansions": 50, - } - } - } - ) - - if institution_names: - must_clauses.append( - { - "nested": { - "path": "organization_nested", - "query": { - "bool": { - "should": [ - { - "match": { - "organization_nested.name": { - "query": name, - "operator": "and", - } - } - } - for name in institution_names - ], - "minimum_should_match": 1, - } - }, - } - } - ) - - if must_clauses: - query["query"] = {"bool": {"must": must_clauses}} - else: - query["query"] = {"match_all": {}} - - sort_by = sort_by.strip().lower() - sort_direction = sort_direction.strip().lower() - if sort_direction not in ["asc", "desc"]: - sort_direction = "asc" - - sort_config: Dict[str, Any] = {} - - if sort_by == "topic": - sort_config = {"title.keyword": {"order": sort_direction}} - - elif sort_by == "grant_amount": - sort_config = {"totalCost.keyword": {"order": sort_direction}} - - elif sort_by == "department": - sort_config = { - "programme_nested.programme.keyword": { - "order": sort_direction, - "nested": {"path": "programme_nested"}, + for name in institution_names + ], + "minimum_should_match": 1, } } - else: - sort_config = {"id.keyword": {"order": sort_direction}} - - query["sort"] = [sort_config] - - query_str = json.dumps(query, indent=2) - logger.debug(f"Constructed EU project query: {query_str}") - - return query - - def response_to_eu_project_page( - self, response: dict, page: int, size: int - ) -> EuProjectPage: - hits_block = response.get("hits", {}) - total_hits = hits_block.get("total", {}).get("value", 0) - elements = [ - EuProject.model_validate(hit["_source"]) - for hit in hits_block.get("hits", []) - ] - return EuProjectPage(elements=elements, total=total_hits, page=page, size=size) - - async def search_eu_projects( - self, - page: int, - size: int, - id: Optional[str] = None, - institution_names: List[str] = [], - topic: Optional[str] = None, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> EuProjectPage: - query = self.eu_projects_query( - page=page, - size=size, - id=id, - institution_names=institution_names, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, - ) - response = await self.make_search_request(query) - return self.response_to_eu_project_page(response, page, size) - - async def get_eu_projects_by_institution_name( - self, - institution_names: List[str], - page: int, - size: int, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> EuProjectPage: - query = self.eu_projects_query( - page=page, - size=size, - institution_names=institution_names, - sort_by=sort_by, - sort_direction=sort_direction, - ) - response = await self.make_search_request(query) - return self.response_to_eu_project_page(response, page, size) - - -class DfgProjectsSearchClient(ProjectsSearchClient): - def __init__(self): - if not settings.elasticsearch_inse_url: - raise ValueError("Elasticsearch INSE URL is missing in settings.") - if not settings.elasticsearch_inse_api_key: - raise ValueError("Elasticsearch INSE API key is missing in settings.") - super().__init__( - base_url=settings.elasticsearch_inse_url, - index="projects_dfg_all", - api_key=settings.elasticsearch_inse_api_key, ) - def dfg_projects_query( - self, - page: int, - size: int, - names: Optional[List[str]] = None, - topic: Optional[str] = None, - sort_by: str = "id", - sort_direction: str = "asc", - ) -> dict: - - from_ = page * size - - painless_fields_string = ", ".join( - [f"'{f}.keyword'" for f in DFG_PERSON_FIELDS] - ) - - query: Dict[str, Any] = { - "size": size, - "from": from_, - "_source": [ - "id", - "link", - "title", - "funding_start", - "funding_end", - "Fachliche Zuordnung", - ], - "query": {}, - "script_fields": { - "all_found_names": { - "script": { - "lang": "painless", - "source": ( - f"def names = new HashSet(); " - f"def fields = [{painless_fields_string}]; " - f"for (field in fields) {{ " - f" if (doc.containsKey(field) && !doc[field].empty) {{ " - f" for (value in doc[field]) {{ " - f" if (value.contains(';')) {{ " - f" def splitNames = value.splitOnToken(';'); " - f" for (sn in splitNames) {{ names.add(sn.trim()); }} " - f" }} else {{ " - f" names.add(value.trim()); " - f" }} " - f" }} " - f" }} " - f"}} " - f"return new ArrayList(names);" - ), + if filter_properties.query is not None and filter_properties.query.strip() != "": + must_clauses.append( + { + "match_phrase_prefix": { + "Thema": { + "query": filter_properties.query, + "max_expansions": 50, } } - }, + } + ) + + query: Optional[Dict[str, Any]] = None + if must_clauses: + query = {"bool": {"must": must_clauses}} + + sort = [ + { + filter_properties.sort_by.to_bund_project_sort_field(): { + "order": filter_properties.sort_direction.value + } + } + ] + + response = elasticsearch.search( + index=ESIndex.PROJECTS_BUND_V1, + query=query, + sort=sort, + size=filter_properties.size, + offset=filter_properties.page * filter_properties.size, + ) + + return _complete_response_to_bund_project_page( + response=response, page=filter_properties.page, size=filter_properties.size + ) + + +def _complete_response_to_bund_project_page( + response: Dict[str, Any], page: int, size: int +) -> BundProjectPage: + """Converts the raw Elasticsearch response into a BundProjectPage object. + + Args: + response (Dict[str, Any]): The raw Elasticsearch response. + page (int): The page number. + size (int): The number of items per page. + + Returns: + BundProjectPage: The converted BundProjectPage object. + """ + hits_block = response.get("hits", {}) + total_hits = hits_block.get("total", {}).get("value", 0) + elements = [ + BundProject.model_validate(hit["_source"]) for hit in hits_block.get("hits", []) + ] + return BundProjectPage(elements=elements, total=total_hits, page=page, size=size) + + +def get_bund_project_by_id(project_id: str) -> Optional[BundProjectDetails]: + """Fetches the details of a single Bund project based on its project ID. + + Args: + project_id (str): The ID of the project to fetch. + + Returns: + Optional[BundProjectDetails]: The details of the project if found, otherwise None. + """ + query = {"term": {"Förderkennzeichen.keyword": {"value": project_id}}} + + response = elasticsearch.search( + index=ESIndex.PROJECTS_BUND_V1, + query=query, + size=1, + ) + + hits = response.get("hits", {}).get("hits", []) + if hits: + hit = hits[0] + details = BundProjectDetails.from_elastic_hit(hit=hit) + return details + return None + + +# EU + + +def get_eu_organization_project_contributions( + organization_names: List[str], + projects_filtering_properties: ProjectsFilteringProperties, +) -> EuOrganizationProjectSummaryPage: + """Fetches the contributions of EU organizations to projects based on the provided organization names and filtering properties, and returns a paginated summary of the projects. + + Args: + organization_names (List[str]): The list of organization names to fetch contributions for. + projects_filtering_properties (ProjectsFilteringProperties): The filtering properties for the projects. + + Returns: + EuOrganizationProjectSummaryPage: The paginated summary of the projects. + """ + # Pagination depending on sorting criteria + # For FUNDING_AMOUNT before on the organization project contributions + # For the rest after the contributions are known on the real projects + + organization_project_contributions = get_eu_organization_contributions( + organization_names=organization_names, + ) + + total_projects, projects = get_eu_organization_projects( + project_contributions=list(organization_project_contributions.values()), + projects_filtering_properties=projects_filtering_properties, + ) + + elements: List[EuOrganizationProjectSummary] = _merge_project_data( + projects=projects, contributions=organization_project_contributions + ) + + if projects_filtering_properties.sort_by == ProjectsSortBy.FUNDING_AMOUNT: + elements.sort( + key=lambda x: x.ec_contribution or 0, + reverse=projects_filtering_properties.sort_direction == SortDirection.DESC, + ) + start = projects_filtering_properties.page * projects_filtering_properties.size + end = start + projects_filtering_properties.size + elements = elements[start:end] + + return EuOrganizationProjectSummaryPage( + elements=elements, + total=total_projects, + page=projects_filtering_properties.page, + size=projects_filtering_properties.size, + ) + + +def get_eu_organization_contributions( + organization_names: List[str], +) -> Dict[str, EuOrganizationShort]: + """Fetches the contributions of EU organizations to projects based on the provided organization names. + + Args: + organization_names (List[str]): The list of organization names to fetch contributions for. + + Returns: + Dict[str, EuOrganizationShort]: A dictionary mapping project IDs to their corresponding organization contributions. + """ + + source = ["projectID", "organisationID", "ecContribution"] + + query = { + "terms": { + "name.keyword": [ + name.upper() for name in organization_names if name.strip() + ], + } + } + + response = elasticsearch.search( + index=ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD, + cluster=ESCluster.INSE, + source=source, + size=10000, + query=query, + ) + + logger.debug( + f"Received organization project contributions response: {json.dumps(response, indent=2)}" + ) + + organization_project_contributions = _process_organization_project_contributions( + response + ) + + logger.debug( + f"Found organization project contributions for organization names {organization_names}: {organization_project_contributions}" + ) + + return organization_project_contributions + + +def _process_organization_project_contributions( + response: Dict[str, Any], +) -> Dict[str, EuOrganizationShort]: + """Processes the raw Elasticsearch response to extract the contributions of EU organizations to projects. + + Args: + response (Dict[str, Any]): The raw Elasticsearch response. + + Returns: + Dict[str, EuOrganizationShort]: A dictionary mapping project IDs to their corresponding organization contributions. + """ + hits_block = response.get("hits", {}) + project_contributions: Dict[str, EuOrganizationShort] = {} + for hit in hits_block.get("hits", []): + source = hit.get("_source", {}) + project_id = source.get("projectID") + organization_id = source.get("organisationID") + ec_contribution = source.get("ecContribution") + if project_id and organization_id: + project_contributions[project_id] = EuOrganizationShort( + project_id=project_id, + organization_id=organization_id, + ec_contribution=ec_contribution, + ) + return project_contributions + + +def get_eu_organization_projects( + project_contributions: List[EuOrganizationShort], + projects_filtering_properties: ProjectsFilteringProperties, +) -> Tuple[int, Dict[str, EuProjectShort]]: + """Fetches the projects associated with the given list of organization contributions, applying the specified filtering properties. + + Args: + project_contributions (List[EuOrganizationShort]): The list of organization contributions to fetch projects for. + projects_filtering_properties (ProjectsFilteringProperties): The filtering properties to apply to the project search. + + Returns: + Tuple[int, Dict[str, EuProjectShort]]: A tuple containing the total number of projects and a dictionary mapping project IDs to their corresponding project details. + """ + project_ids = [contribution.project_id for contribution in project_contributions] + + source = ["id", "title", "startDate", "endDate", "acronym"] + + query = { + "terms": { + "id": project_ids, + } + } + + if ( + projects_filtering_properties.query + and projects_filtering_properties.query.strip() + ): + query = { + "bool": { + "must": [ + { + "match_phrase_prefix": { + "title": { + "query": projects_filtering_properties.query, + "max_expansions": 50, + } + } + } + ], + "filter": query, + } } - must_clauses: List[Dict[str, Any]] = [] - filter_clauses: List[Dict[str, Any]] = [] - - if topic is not None and topic.strip() != "": - must_clauses.append( + # Project contributions have been filtered before based on ecContribution + if projects_filtering_properties.sort_by == ProjectsSortBy.FUNDING_AMOUNT: + response = elasticsearch.search( + index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD, + cluster=ESCluster.INSE, + source=source, + query=query, + size=10000, + ) + else: + response = elasticsearch.search( + index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD, + cluster=ESCluster.INSE, + source=source, + query=query, + size=projects_filtering_properties.size, + offset=projects_filtering_properties.page + * projects_filtering_properties.size, + sort=[ { - "match_phrase_prefix": { - "title": { - "query": topic, - "max_expansions": 100, - } + projects_filtering_properties.sort_by.to_cordis_eu_project_sort_field(): { + "order": projects_filtering_properties.sort_direction } } + ], + ) + + return _process_projects_response(response) + + +def _process_projects_response( + response: Dict[str, Any], +) -> Tuple[int, Dict[str, EuProjectShort]]: + """Processes the raw Elasticsearch response to extract the project details and total count. + + Args: + response (Dict[str, Any]): The raw Elasticsearch response. + + Returns: + Tuple[int, Dict[str, EuProjectShort]]: A tuple containing the total number of projects and a dictionary mapping project IDs to their corresponding project details. + """ + hits_block = response.get("hits", {}) + total = hits_block.get("total", {}).get("value", 0) + projects: Dict[str, EuProjectShort] = {} + for hit in hits_block.get("hits", []): + source = hit.get("_source", {}) + project_id = source.get("id") + title = source.get("title") + start_date = source.get("startDate") + end_date = source.get("endDate") + acronym = source.get("acronym") + if not project_id: + continue + projects[project_id] = EuProjectShort( + id=project_id, + title=title, + start_date=start_date, + end_date=end_date, + acronym=acronym, + ) + + return total, projects + + +def _merge_project_data( + projects: Dict[str, EuProjectShort], contributions: Dict[str, EuOrganizationShort] +) -> List[EuOrganizationProjectSummary]: + """Merges the project details with the organization contributions to create a list of EuOrganizationProjectSummary objects. + + Args: + projects (Dict[str, EuProjectShort]): The dictionary of project details. + contributions (Dict[str, EuOrganizationShort]): The dictionary of organization contributions. + + Returns: + List[EuOrganizationProjectSummary]: The list of merged project-summary objects. + """ + merged_data = [] + for project_id, project_info in projects.items(): + contribution_info = contributions.get(project_id) + if contribution_info: + merged_entry = EuOrganizationProjectSummary( + project_id=project_id, + title=project_info.title, + start_date=project_info.start_date, + end_date=project_info.end_date, + acronym=project_info.acronym, + organization_id=contribution_info.organization_id, + ec_contribution=contribution_info.ec_contribution, ) + merged_data.append(merged_entry) + return merged_data - if names: - name_should_clauses = [] - script_conditions = [] - for full_name in names: - name_parts = full_name.strip().split() - if not name_parts: - continue +def _get_raw_doi(doi: str) -> str: + """Extracts the raw DOI from a given DOI string, removing any URL prefixes if present. - match_musts = [] - for part in name_parts: - match_musts.append( - {"multi_match": {"query": part, "fields": DFG_PERSON_FIELDS}} - ) + Args: + doi (str): The DOI string to process. - name_should_clauses.append({"bool": {"must": match_musts}}) + Returns: + str: The raw DOI string. + """ + if doi.startswith("https://doi.org/"): + return doi[len("https://doi.org/") :] + elif doi.startswith("http://dx.doi.org/"): + return doi[len("http://dx.doi.org/") :] + else: + return doi - script_parts = [ - f"singlePerson.contains('{part.lower()}')" for part in name_parts - ] - script_conditions.append(f"({' && '.join(script_parts)})") - if name_should_clauses: - must_clauses.append( - {"bool": {"should": name_should_clauses, "minimum_should_match": 1}} - ) +def get_cordis_eu_publications_by_dois(dois: List[str]): + """Retrieves Cordis EU publications associated with the given list of DOIs. - combined_script_condition = " || ".join(script_conditions) - painless_source = ( - f"def fields = [{painless_fields_string}]; " - f"for (field in fields) {{ " - f" if (doc.containsKey(field) && !doc[field].empty) {{ " - f" for (value in doc[field]) {{ " - f" if (value.contains(';')) {{ " - f" def splitValues = value.splitOnToken(';'); " - f" for (singlePersonRaw in splitValues) {{ " - f" def singlePerson = singlePersonRaw.toLowerCase(); " - f" if ({combined_script_condition}) {{ return true; }} " - f" }} " - f" }} else {{ " - f" def singlePerson = value.toLowerCase(); " - f" if ({combined_script_condition}) {{ return true; }} " - f" }} " - f" }} " - f" }} " - f"}} " - f"return false;" - ) + Args: + dois (List[str]): The list of DOIs for which to retrieve publications. - filter_clauses.append( - { - "script": { - "script": {"lang": "painless", "source": painless_source} - } + Returns: + _type_: The retrieved publications. + """ + raw_dois = [_get_raw_doi(doi) for doi in dois] + query = {"bool": {"filter": [{"terms": {"qaProcessedDoi": raw_dois}}]}} + + response = elasticsearch.search( + query=query, + index=ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD, + cluster=ESCluster.INSE, + ) + + logger.debug(f"Received publications response: {json.dumps(response, indent=2)}") + + return response + + +def get_cordis_eu_project_ids_by_dois(dois: List[str]) -> List[str]: + """Retrieves the project IDs of Cordis EU projects associated with the given list of DOIs. + + Args: + dois (List[str]): The list of DOIs for which to retrieve project IDs. + + Returns: + List[str]: The list of project IDs. + """ + response = get_cordis_eu_publications_by_dois(dois=dois) + hits_block = response.get("hits", {}) + project_ids = set() + for hit in hits_block.get("hits", []): + source = hit.get("_source", {}) + project_id = source.get("projectID") + if project_id: + project_ids.add(project_id) + return list(project_ids) + + +def get_cordis_eu_projects_by_project_ids( + project_ids: List[str], +) -> CordisEuProjectPage: + query = {"bool": {"filter": [{"terms": {"id": project_ids}}]}} + + response = elasticsearch.search( + query=query, + index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD, + cluster=ESCluster.INSE, + ) + + hits_block = response.get("hits", {}) + total_hits = hits_block.get("total", {}).get("value", 0) + elements = [ + CordisEuProject.model_validate(hit["_source"]) + for hit in hits_block.get("hits", []) + ] + return CordisEuProjectPage( + elements=elements, total=total_hits, page=0, size=len(elements) + ) + + +# DFG + + +def search_dfg_projects( + page: int, + size: int, + names: Optional[List[str]] = None, + topic: Optional[str] = None, + sort_by: str = "id", + sort_direction: str = "asc", +) -> DfgProjectPage: + """Searches for DFG projects based on the provided filtering and sorting criteria. + + Args: + page (int): The page number. + size (int): The number of items per page. + names (Optional[List[str]], optional): The list of names to search for. Defaults to None. + topic (Optional[str], optional): The topic to search for. Defaults to None. + sort_by (str, optional): The field to sort by. Defaults to "id". + sort_direction (str, optional): The direction to sort. Defaults to "asc". + + Returns: + DfgProjectPage: The search results. + """ + from_ = page * size + + painless_fields_string = ", ".join([f"'{f}.keyword'" for f in DFG_PERSON_FIELDS]) + + body: Dict[str, Any] = { + "size": size, + "from": from_, + "_source": [ + "id", + "link", + "title", + "funding_start", + "funding_end", + "Fachliche Zuordnung", + ], + "query": {}, + "script_fields": { + "all_found_names": { + "script": { + "lang": "painless", + "source": ( + f"def names = new HashSet(); " + f"def fields = [{painless_fields_string}]; " + f"for (field in fields) {{ " + f" if (doc.containsKey(field) && !doc[field].empty) {{ " + f" for (value in doc[field]) {{ " + f" if (value.contains(';')) {{ " + f" def splitNames = value.splitOnToken(';'); " + f" for (sn in splitNames) {{ names.add(sn.trim()); }} " + f" }} else {{ " + f" names.add(value.trim()); " + f" }} " + f" }} " + f" }} " + f"}} " + f"return new ArrayList(names);" + ), + } + } + }, + } + + must_clauses: List[Dict[str, Any]] = [] + filter_clauses: List[Dict[str, Any]] = [] + + if topic is not None and topic.strip() != "": + must_clauses.append( + { + "match_phrase_prefix": { + "title": { + "query": topic, + "max_expansions": 100, } + } + } + ) + + if names: + name_should_clauses = [] + script_conditions = [] + + for full_name in names: + name_parts = full_name.strip().split() + if not name_parts: + continue + + match_musts = [] + for part in name_parts: + match_musts.append( + {"multi_match": {"query": part, "fields": DFG_PERSON_FIELDS}} ) - if must_clauses or filter_clauses: - query["query"] = {"bool": {}} - if must_clauses: - query["query"]["bool"]["must"] = must_clauses - if filter_clauses: - query["query"]["bool"]["filter"] = filter_clauses - else: - query["query"] = {"match_all": {}} + name_should_clauses.append({"bool": {"must": match_musts}}) - sort_by = sort_by.strip().lower() - sort_direction = sort_direction.strip().lower() - if sort_direction not in ["asc", "desc"]: - sort_direction = "asc" + script_parts = [ + f"singlePerson.contains('{part.lower()}')" for part in name_parts + ] + script_conditions.append(f"({' && '.join(script_parts)})") + + if name_should_clauses: + must_clauses.append( + {"bool": {"should": name_should_clauses, "minimum_should_match": 1}} + ) + + combined_script_condition = " || ".join(script_conditions) + painless_source = ( + f"def fields = [{painless_fields_string}]; " + f"for (field in fields) {{ " + f" if (doc.containsKey(field) && !doc[field].empty) {{ " + f" for (value in doc[field]) {{ " + f" if (value.contains(';')) {{ " + f" def splitValues = value.splitOnToken(';'); " + f" for (singlePersonRaw in splitValues) {{ " + f" def singlePerson = singlePersonRaw.toLowerCase(); " + f" if ({combined_script_condition}) {{ return true; }} " + f" }} " + f" }} else {{ " + f" def singlePerson = value.toLowerCase(); " + f" if ({combined_script_condition}) {{ return true; }} " + f" }} " + f" }} " + f" }} " + f"}} " + f"return false;" + ) + + filter_clauses.append( + {"script": {"script": {"lang": "painless", "source": painless_source}}} + ) + + if must_clauses or filter_clauses: + body["query"] = {"bool": {}} + if must_clauses: + body["query"]["bool"]["must"] = must_clauses + if filter_clauses: + body["query"]["bool"]["filter"] = filter_clauses + else: + body["query"] = {"match_all": {}} + + sort_by = sort_by.strip().lower() + sort_direction = sort_direction.strip().lower() + if sort_direction not in ["asc", "desc"]: + sort_direction = "asc" + logger.debug(f"Sorting DFG projects by {sort_by} with direction {sort_direction}") + + if sort_by in ["topic", "title"]: + logger.debug(f"Sorting DFG projects by title with direction {sort_direction}") + sort_config = {"title.keyword": {"order": sort_direction}} + elif sort_by == "funding_start": logger.debug( - f"Sorting DFG projects by {sort_by} with direction {sort_direction}" + f"Sorting DFG projects by funding_start with direction {sort_direction}" + ) + sort_config = {"funding_start.keyword": {"order": sort_direction}} + elif sort_by == "funding_end": + logger.debug( + f"Sorting DFG projects by funding_end with direction {sort_direction}" + ) + sort_config = {"funding_end.keyword": {"order": sort_direction}} + elif sort_by == "professional_classification": + logger.debug( + f"Sorting DFG projects by Fachliche Zuordnung with direction {sort_direction}" + ) + sort_config = {"Fachliche Zuordnung.keyword": {"order": sort_direction}} + else: + logger.debug(f"Sorting DFG projects by id with direction {sort_direction}") + sort_config = {"id.keyword": {"order": sort_direction}} + + body["sort"] = [sort_config] + + response = elasticsearch.search( + index=ESIndex.PROJECTS_DFG_ALL, + body=body, + ) + return _complete_response_to_dfg_project_page(response, page, size) + + +def _complete_response_to_dfg_project_page( + response: dict, page: int, size: int +) -> DfgProjectPage: + """Converts the raw Elasticsearch response into a DfgProjectPage object. + + Args: + response (dict): The raw Elasticsearch response. + page (int): The page number. + size (int): The number of items per page. + + Returns: + DfgProjectPage: The converted project page object. + """ + hits_block = response.get("hits", {}) + total_hits = hits_block.get("total", {}).get("value", 0) + elements = [DfgProjectSummary.from_hit(hit) for hit in hits_block.get("hits", [])] + return DfgProjectPage(elements=elements, total=total_hits, page=page, size=size) + + +def get_dfg_project_by_id(project_id: str) -> Optional[DfgProjectDetails]: + """Fetches the details of a single DFG project based on its project ID. + + Args: + project_id (str): The project ID to fetch. + + Returns: + Optional[DfgProjectDetails]: The project details or None if not found. + """ + query = {"ids": {"values": [project_id]}} + + response = elasticsearch.search( + index=ESIndex.PROJECTS_DFG_ALL, + query=query, + size=1, + ) + hits = response.get("hits", {}).get("hits", []) + + if hits: + hit = hits[0] + details = DfgProjectDetails.from_elastic_hit(hit=hit) + return details + return None + + +# All + + +def search_all_projects( + projects_filtering_properties: ProjectsFilteringProperties, + selected_project_types: Optional[Set[ProjectType]] = None, +) -> FundingProjectPage: + """Searches for projects across all project types based on the provided filtering properties and selected project types. + + Args: + projects_filtering_properties (ProjectsFilteringProperties): The filtering properties for the search. + selected_project_types (Optional[Set[ProjectType]], optional): The set of project types to include in the search. Defaults to None -> includes all project types. + + Raises: + ValueError: If the sorting property is not supported across all project types. + + Returns: + FundingProjectPage: The converted project page object. + """ + sort_by = projects_filtering_properties.sort_by + if sort_by != ProjectsSortBy.TITLE: + raise ValueError( + "Currently only sorting by title is supported across all project types." ) - if sort_by in ["topic", "title"]: - logger.debug( - f"Sorting DFG projects by title with direction {sort_direction}" - ) - sort_config = {"title.keyword": {"order": sort_direction}} - elif sort_by == "funding_start": - logger.debug( - f"Sorting DFG projects by funding_start with direction {sort_direction}" - ) - sort_config = {"funding_start.keyword": {"order": sort_direction}} - elif sort_by == "funding_end": - logger.debug( - f"Sorting DFG projects by funding_end with direction {sort_direction}" - ) - sort_config = {"funding_end.keyword": {"order": sort_direction}} - elif sort_by == "professional_classification": - logger.debug( - f"Sorting DFG projects by Fachliche Zuordnung with direction {sort_direction}" - ) - sort_config = {"Fachliche Zuordnung.keyword": {"order": sort_direction}} - else: - logger.debug(f"Sorting DFG projects by id with direction {sort_direction}") - sort_config = {"id.keyword": {"order": sort_direction}} + sort_direction = projects_filtering_properties.sort_direction + sort = [ + { + "title.keyword": { + "order": sort_direction, + "missing": "_last", + "unmapped_type": "keyword", + } + }, + { + "Thema.keyword": { + "order": sort_direction, + "missing": "_last", + "unmapped_type": "keyword", + } + }, + ] - query["sort"] = [sort_config] + query = None - query_str = json.dumps(query, indent=2) - logger.debug(f"Constructed DFG project query: {query_str}") + if ( + projects_filtering_properties.query + and projects_filtering_properties.query.strip() != "" + ): + title_query = projects_filtering_properties.query.strip() + wildcard_title = f"*{title_query}*" + query = { + "bool": { + "should": [ + { + "wildcard": { + "title.keyword": { + "value": wildcard_title, + "case_insensitive": True, + } + } + }, + { + "wildcard": { + "Thema.keyword": { + "value": wildcard_title, + "case_insensitive": True, + } + } + }, + ], + "minimum_should_match": 1, + } + } - return query + if not selected_project_types: + selected_project_types = {ProjectType.BUND, ProjectType.EU, ProjectType.DFG} + index = [project_type.to_es_index() for project_type in selected_project_types] + size = projects_filtering_properties.size + page = projects_filtering_properties.page + offset = page * size + response = elasticsearch.search( + index=index, + size=size, + offset=offset, + query=query, + sort=sort, + ) + return _response_to_funding_project_page(response=response, page=page, size=size) - def response_to_dfg_project_page( - self, response: dict, page: int, size: int - ) -> DfgProjectPage: - hits_block = response.get("hits", {}) - total_hits = hits_block.get("total", {}).get("value", 0) - elements = [ - DfgProjectSummary.from_hit(hit) for hit in hits_block.get("hits", []) - ] - return DfgProjectPage(elements=elements, total=total_hits, page=page, size=size) - async def search_dfg_projects( - self, - page: int, - size: int, - names: Optional[List[str]] = None, - topic: Optional[str] = None, - sort_by: str = "id", - sort_direction: str = "asc", - ) -> DfgProjectPage: - query = self.dfg_projects_query( - page=page, - size=size, - names=names, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, +def _response_to_funding_project_page( + response: Dict[str, Any], page: int, size: int +) -> FundingProjectPage: + """Converts the raw Elasticsearch response into a FundingProjectPage object. + + Args: + response (Dict[str, Any]): The raw Elasticsearch response. + page (int): The current page number. + size (int): The number of projects per page. + + Returns: + FundingProjectPage: The converted project page object. + """ + hits = response.get("hits", {}).get("hits", []) + projects = [_hit_to_funding_project(hit=hit) for hit in hits] + total = response.get("hits", {}).get("total", {}).get("value", 0) + return FundingProjectPage(elements=projects, total=total, page=page, size=size) + + +def _hit_to_funding_project(hit: Dict[str, Any]) -> FundingProject: + """Converts a single Elasticsearch hit into a FundingProject object based on the index it belongs to. + + Args: + hit (Dict[str, Any]): The Elasticsearch hit to convert. + + Raises: + ValueError: If the hit does not belong to a recognized project index. + + Returns: + FundingProject: The converted funding project object. + """ + if hit.get("_index", "").startswith("cordis_eu_") and hit.get( + "_index", "" + ).endswith("_projects"): + return FundingProject.from_cordis_projects_hit(hit=hit) + elif hit.get("_index") == ESIndex.PROJECTS_BUND_V1.value: + return FundingProject.from_bund_projects_hit(hit=hit) + elif hit.get("_index") == ESIndex.PROJECTS_DFG_ALL.value: + return FundingProject.from_dfg_projects_hit(hit=hit) + else: + raise ValueError( + "The provided hit does not belong to a recognized project index." ) - response = await self.make_search_request(query) - return self.response_to_dfg_project_page(response, page, size) diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index cf8e2a12..509f5d8b 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -1,47 +1,66 @@ from functools import lru_cache import logging -from typing import Annotated, Optional +from typing import Annotated, Optional, Set -from fastapi import APIRouter, Depends, Query, status +from fastapi import APIRouter, Body, Depends, Path, Query, status -from inse.projects.model import BundProjectPage, DfgProjectPage, EuProjectPage +from inse.projects.model import ( + BundProjectPage, + CordisEuProjectPage, + DfgProjectPage, + EuOrganizationProjectSummaryPage, + FundingProjectPage, + InstitutionFunderSummary, + ProjectType, + ProjectsFilteringProperties, + ProjectsSortBy, + SortDirection, +) +from inse.models.dfg_project_details import DfgProjectDetails +from inse.models.bund_project_details import BundProjectDetails from inse.tags import Tags from inse.projects import service as projects_service -from inse.projects.projects_search_client import ( - BundProjectsSearchClient, - DfgProjectsSearchClient, - EuProjectsSearchClient, -) + from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) -from inse.institutions.service import get_institutions_search_client +from inse.institutions.router import get_institutions_search_client logger = logging.getLogger(__name__) router = APIRouter(prefix="/api/projects", tags=[Tags.PROJECTS]) -@lru_cache -def get_bund_search_client() -> BundProjectsSearchClient: - return BundProjectsSearchClient() - - -@lru_cache -def get_eu_search_client() -> EuProjectsSearchClient: - return EuProjectsSearchClient() - - -@lru_cache -def get_dfg_search_client() -> DfgProjectsSearchClient: - return DfgProjectsSearchClient() - - @router.get( + "/author/{raw_oa_author_id}/eu", + summary="Get EU projects for an author.", + description="Returns a list of EU projects associated with the specified author ID.", + operation_id="getEuProjectsForAuthor", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": CordisEuProjectPage, + }, + status.HTTP_404_NOT_FOUND: {"description": "Author not found"}, + }, + response_model_by_alias=False, +) +def get_eu_projects_for_author( + raw_oa_author_id: Annotated[str, Path(description="The author ID to filter by.")], +) -> CordisEuProjectPage: + logger.debug( + f"Received request to get EU projects for author_id={raw_oa_author_id}" + ) + return projects_service.search_cordis_eu_projects_for_author_id( + raw_oa_author_id=raw_oa_author_id, + ) + + +@router.post( "/institution/bund/search", summary="Get bund projects.", description="Returns a page of bund projects based on the provided pagination parameters and optional institution filter.", - operation_id="getBundProjects", + operation_id="searchBundProjects", responses={ status.HTTP_200_OK: { "description": "Successful Response", @@ -51,79 +70,149 @@ def get_dfg_search_client() -> DfgProjectsSearchClient: }, response_model_by_alias=False, ) -async def get_bund_projects( - bund_search_client: Annotated[ - BundProjectsSearchClient, Depends(get_bund_search_client) - ], +async def search_bund_projects( institutions_search_client: Annotated[ InstitutionsSearchClient, Depends(get_institutions_search_client) ], - institution_id: Annotated[ - str, Query(description="The institution ID to filter by.") + filtering_properties: Annotated[ + ProjectsFilteringProperties, + Body(description="The filtering properties for the projects search."), ], - topic: Annotated[ - Optional[str], Query(description="The topic to filter by.") - ] = None, - page: Annotated[int, Query(description="The page number.", ge=0)] = 0, - size: Annotated[int, Query(description="The page size.", ge=1)] = 20, - sort_by: Annotated[str, Query(description="The field to sort by.")] = "topic", - sort_direction: Annotated[ - str, Query(description="The sort direction (asc or desc).") - ] = "asc", ) -> BundProjectPage: - return await projects_service.get_bund_projects_by_institution_id( - bund_search_client=bund_search_client, + return projects_service.search_bund_projects( institutions_search_client=institutions_search_client, - institution_id=institution_id, - page=page, - size=size, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, + filtering_properties=filtering_properties, ) @router.get( - "/institution/eu/search", - summary="Get EU projects.", - description="Returns a page of EU projects based on the provided pagination parameters and optional institution filter.", - operation_id="getEuProjects", + "/dfg/{id}", + summary="Get a single DFG project.", + description="Returns a single DFG project based on its ID.", + operation_id="getSingleDfgProject", responses={ status.HTTP_200_OK: { "description": "Successful Response", - "model": EuProjectPage, + "model": DfgProjectDetails, + }, + status.HTTP_404_NOT_FOUND: {"description": "Project not found"}, + }, + response_model_by_alias=False, +) +def get_single_dfg_project( + id: Annotated[str, Path(description="The ID of the DFG project to retrieve.")], +) -> DfgProjectDetails: + logger.debug(f"Received request to get single DFG project for id={id}") + return projects_service.get_single_dfg_project( + project_id=id, + ) + + +@router.get( + "/bund/{id}", + summary="Get a single BUND project.", + description="Returns a single BUND project based on its ID.", + operation_id="getSingleBundProject", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": BundProjectDetails, + }, + status.HTTP_404_NOT_FOUND: {"description": "Project not found"}, + }, + response_model_by_alias=False, +) +def get_single_bund_project( + id: Annotated[str, Path(description="The ID of the BUND project to retrieve.")], +) -> BundProjectDetails: + logger.debug(f"Received request to get single BUND project for id={id}") + return projects_service.get_single_bund_project( + project_id=id, + ) + + +@router.get( + "/institution/bund/funding-over-time", + summary="Get funding over time for bund projects.", + description="Returns the funding over time for bund projects associated with the specified institution.", + operation_id="getInstitutionBundProjectsFundingOverTime", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": InstitutionFunderSummary, }, status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, }, response_model_by_alias=False, ) -async def get_eu_projects( - eu_search_client: Annotated[EuProjectsSearchClient, Depends(get_eu_search_client)], +def get_institution_bund_projects_funding_over_time( institutions_search_client: Annotated[ InstitutionsSearchClient, Depends(get_institutions_search_client) ], - institution_id: Annotated[ + raw_oa_institution_id: Annotated[ str, Query(description="The institution ID to filter by.") ], - topic: Annotated[ - Optional[str], Query(description="The topic to filter by.") - ] = None, - page: Annotated[int, Query(description="The page number.", ge=0)] = 0, - size: Annotated[int, Query(description="The page size.", ge=1)] = 20, - sort_by: Annotated[str, Query(description="The field to sort by.")] = "topic", - sort_direction: Annotated[ - str, Query(description="The sort direction (asc or desc).") - ] = "asc", -) -> EuProjectPage: - return await projects_service.get_eu_projects_by_institution_id( - eu_search_client=eu_search_client, +) -> InstitutionFunderSummary: + return projects_service.get_institution_bund_projects_funding_over_time( institutions_search_client=institutions_search_client, - institution_id=institution_id, - topic=topic, - page=page, - size=size, - sort_by=sort_by, - sort_direction=sort_direction, + raw_oa_institution_id=raw_oa_institution_id, + ) + + +@router.post( + "/institution/eu/search", + summary="Get EU projects.", + description="Returns a page of EU projects based on the provided pagination parameters and optional institution filter.", + operation_id="searchCordisEuProjects", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": EuOrganizationProjectSummaryPage, + }, + status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, + }, + response_model_by_alias=False, +) +async def search_cordis_eu_projects( + institutions_search_client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], + projects_filtering_properties: Annotated[ + ProjectsFilteringProperties, + Body(description="The filtering properties for the projects search."), + ], +) -> EuOrganizationProjectSummaryPage: + return projects_service.search_cordis_eu_projects( + institutions_search_client=institutions_search_client, + projects_filtering_properties=projects_filtering_properties, + ) + + +@router.get( + "/institution/eu/funding-over-time", + summary="Get funding over time for EU projects.", + description="Returns the funding over time for EU projects associated with the specified institution.", + operation_id="getInstitutionCordisEuProjectsFundingOverTime", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": InstitutionFunderSummary, + }, + status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, + }, + response_model_by_alias=False, +) +async def get_institution_cordis_eu_projects_funding_over_time( + institutions_search_client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], + raw_oa_institution_id: Annotated[ + str, Query(description="The institution ID to filter by.") + ], +) -> InstitutionFunderSummary: + return await projects_service.get_institution_cordis_eu_projects_funding_over_time( + institutions_search_client=institutions_search_client, + raw_oa_institution_id=raw_oa_institution_id, ) @@ -142,9 +231,6 @@ async def get_eu_projects( response_model_by_alias=False, ) async def get_dfg_projects( - dfg_search_client: Annotated[ - DfgProjectsSearchClient, Depends(get_dfg_search_client) - ], author_id: Annotated[str, Query(description="The author ID to filter by.")], topic: Annotated[ Optional[str], Query(description="The topic to filter by.") @@ -166,7 +252,6 @@ async def get_dfg_projects( sort_direction, ) return await projects_service.get_dfg_projects_by_author_id( - dfg_search_client=dfg_search_client, author_id=author_id, topic=topic, page=page, @@ -174,3 +259,45 @@ async def get_dfg_projects( sort_by=sort_by, sort_direction=sort_direction, ) + + +@router.get( + "/search", + summary="Search projects across all funders.", + description="Returns a page of projects across all funders based on the provided pagination parameters and optional institution filter.", + operation_id="searchProjects", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": FundingProjectPage, + }, + }, + response_model_by_alias=False, +) +def search_projects( + page: Annotated[int, Query(description="The page number.", ge=0)] = 0, + size: Annotated[int, Query(description="The page size.", ge=1)] = 10, + selected_project_types: Annotated[ + Optional[Set[ProjectType]], + Query( + description="The set of project types to filter by (e.g., 'bund', 'eu', 'dfg'). If not provided, projects of all types will be included." + ), + ] = None, + title: Annotated[ + Optional[str], Query(description="The title to filter by.") + ] = None, + sort_by: Annotated[ + ProjectsSortBy, Query(description="The field to sort by.") + ] = ProjectsSortBy.TITLE, + sort_direction: Annotated[ + SortDirection, Query(description="The sort direction (asc or desc).") + ] = SortDirection.ASC, +) -> FundingProjectPage: + return projects_service.search_all_projects( + page=page, + size=size, + selected_project_types=selected_project_types, + title=title, + sort_by=sort_by, + sort_direction=sort_direction, + ) diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py index f6693a57..75c72e0e 100644 --- a/service/src/main/inse/projects/service.py +++ b/service/src/main/inse/projects/service.py @@ -1,109 +1,149 @@ +import datetime import logging -from typing import List, Optional +from typing import Any, Dict, List, Optional, Set +from inse.projects import projects_search_client from inse.projects.projects_search_client import ( - BundProjectsSearchClient, - DfgProjectsSearchClient, - EuProjectsSearchClient, + get_eu_organization_project_contributions, ) -from inse.projects.model import BundProjectPage, DfgProjectPage, EuProjectPage +from inse.projects.model import ( + BundProjectPage, + CordisEuProjectPage, + DfgProjectPage, + EuOrganizationProjectSummaryPage, + FundingProjectPage, + InstitutionFunderSummary, + ProjectType, + ProjectsFilteringProperties, + ProjectsSortBy, + SortDirection, +) +from inse.models.dfg_project_details import DfgProjectDetails +from inse.models.bund_project_details import BundProjectDetails from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) from inse.exceptions import NotFoundException from inse.persons.logic import get_author_name_by_id +from inse.works.logic import get_publication_dois_of_author + logger = logging.getLogger(__name__) -async def get_bund_projects_by_institution_id( - bund_search_client: BundProjectsSearchClient, - institutions_search_client: InstitutionsSearchClient, - institution_id: str, +def search_all_projects( page: int, size: int, - topic: Optional[str], - sort_by: str = "topic", - sort_direction: str = "asc", + sort_by: ProjectsSortBy, + sort_direction: SortDirection, + selected_project_types: Optional[Set[ProjectType]] = None, + title: Optional[str] = None, +) -> FundingProjectPage: + return projects_search_client.search_all_projects( + projects_filtering_properties=ProjectsFilteringProperties( + project_type=ProjectType.EU, # placeholder, shall be ignored in search_all_projects + page=page, + size=size, + sort_by=sort_by, + sort_direction=sort_direction, + query=title, + ), + selected_project_types=selected_project_types, + ) + + +def search_bund_projects( + institutions_search_client: InstitutionsSearchClient, + filtering_properties: ProjectsFilteringProperties, ) -> BundProjectPage: + if filtering_properties.project_type != "bund": + raise ValueError( + f"Invalid project type: {filtering_properties.project_type}. Expected 'bund'." + ) + + logger.debug( + f"search_bund_projects called with filtering_properties: {filtering_properties}" + ) + + return get_bund_projects_by_institution_id( + institutions_search_client=institutions_search_client, + filtering_properties=filtering_properties, + ) + + +def get_bund_projects_by_institution_id( + institutions_search_client: InstitutionsSearchClient, + filtering_properties: ProjectsFilteringProperties, +) -> BundProjectPage: + if filtering_properties.raw_oa_institution_id is None: + raise ValueError("raw_oa_institution_id must be provided") + logger.info( - f"Fetching bund projects for institution_id={institution_id}, page={page}, size={size}" + f"Fetching bund projects for institution_id={filtering_properties.raw_oa_institution_id}, page={filtering_properties.page}, size={filtering_properties.size}" ) institution_aliases = ( - await institutions_search_client.get_institution_aliases_by_id(institution_id) + institutions_search_client.get_institution_aliases_by_oa_institution_id( + filtering_properties.raw_oa_institution_id + ) ) logger.debug( - f"Found institution aliases for institution_id={institution_id}: {institution_aliases}" + f"get_bund_projects_by_institution_id: Found institution aliases for institution_id={filtering_properties.raw_oa_institution_id}: {institution_aliases}" ) - response = await bund_search_client.search_bund_projects( - page=page, - size=size, + response = projects_search_client.search_bund_projects( institution_names=institution_aliases, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, + filter_properties=filtering_properties, ) logger.debug(f"get_bund_projects_by_institution_id response: {response}") return response -async def get_eu_projects_by_institution_id( - eu_search_client: EuProjectsSearchClient, +def search_cordis_eu_projects( institutions_search_client: InstitutionsSearchClient, - institution_id: str, - topic: Optional[str], - page: int, - size: int, - sort_by: str = "topic", - sort_direction: str = "asc", -) -> EuProjectPage: + projects_filtering_properties: ProjectsFilteringProperties, +) -> EuOrganizationProjectSummaryPage: + if projects_filtering_properties.project_type != "eu": + raise ValueError( + f"Invalid project type: {projects_filtering_properties.project_type}. Expected 'eu'." + ) + + return get_cordis_eu_projects_by_institution_id( + institutions_search_client=institutions_search_client, + projects_filtering_properties=projects_filtering_properties, + ) + + +def get_cordis_eu_projects_by_institution_id( + institutions_search_client: InstitutionsSearchClient, + projects_filtering_properties: ProjectsFilteringProperties, +) -> EuOrganizationProjectSummaryPage: + if not projects_filtering_properties.raw_oa_institution_id: + raise ValueError( + "raw_oa_institution_id must be provided to fetch CORDIS EU projects by institution ID" + ) + logger.info( - f"Fetching EU projects for institution_id={institution_id}, page={page}, size={size}" + f"Fetching CORDIS EU projects for institution_id={projects_filtering_properties.raw_oa_institution_id}, page={projects_filtering_properties.page}, size={projects_filtering_properties.size}" ) institution_aliases = ( - await institutions_search_client.get_institution_aliases_by_id(institution_id) + institutions_search_client.get_institution_aliases_by_oa_institution_id( + projects_filtering_properties.raw_oa_institution_id + ) ) logger.debug( - f"Found institution aliases for institution_id={institution_id}: {institution_aliases}" - ) - response = await eu_search_client.search_eu_projects( - page=page, - size=size, - institution_names=institution_aliases, - topic=topic, - sort_by=sort_by, - sort_direction=sort_direction, - ) - logger.debug(f"get_eu_projects_by_institution_id response: {response}") - return response - - -async def get_bund_projects_by_institution_name( - bund_search_client: BundProjectsSearchClient, - page: int, - size: int, - institution_names: List[str] = [], - sort_by: str = "topic", - sort_direction: str = "asc", -) -> BundProjectPage: - logger.info( - f"Fetching bund projects for institution_names={institution_names}, page={page}, size={size}" - ) - response = await bund_search_client.search_bund_projects( - page=page, - size=size, - institution_names=institution_names, - sort_by=sort_by, - sort_direction=sort_direction, + f"Found institution aliases for institution_id={projects_filtering_properties.raw_oa_institution_id}: {institution_aliases}" ) - logger.debug(f"get_bund_projects_by_institution_name response: {response}") + page = get_eu_organization_project_contributions( + organization_names=institution_aliases, + projects_filtering_properties=projects_filtering_properties, + ) - return response + logger.debug(f"get_cordis_eu_projects_by_institution_id response: {page}") + + return page async def get_dfg_projects_by_author_id( - dfg_search_client: DfgProjectsSearchClient, author_id: str, topic: Optional[str], page: int, @@ -122,7 +162,7 @@ async def get_dfg_projects_by_author_id( ) logger.debug(f"Found author name for author_id={author_id}: {name}") - response = await dfg_search_client.search_dfg_projects( + response = projects_search_client.search_dfg_projects( page=page, size=size, names=[name], @@ -131,3 +171,179 @@ async def get_dfg_projects_by_author_id( sort_direction=sort_direction, ) return response + + +async def get_institution_cordis_eu_projects_funding_over_time( + institutions_search_client: InstitutionsSearchClient, + raw_oa_institution_id: str, +) -> InstitutionFunderSummary: + institution_aliases = ( + institutions_search_client.get_institution_aliases_by_oa_institution_id( + raw_oa_institution_id + ) + ) + page = get_eu_organization_project_contributions( + organization_names=institution_aliases, + projects_filtering_properties=ProjectsFilteringProperties( + project_type=ProjectType.EU, + page=0, + size=10000, + ), + ) + + return _calculate_funding_over_time( + project_type=ProjectType.EU, + projects=page.elements, + funding_start_attr="start_date", + funding_end_attr="end_date", + funding_amount_attr="ec_contribution", + ) + + +def get_institution_bund_projects_funding_over_time( + institutions_search_client: InstitutionsSearchClient, + raw_oa_institution_id: str, +) -> InstitutionFunderSummary: + logger.info( + f"Fetching funding over time for institution_id={raw_oa_institution_id}" + ) + institution_aliases = ( + institutions_search_client.get_institution_aliases_by_oa_institution_id( + raw_oa_institution_id + ) + ) + logger.debug( + f"Found institution aliases for institution_id={raw_oa_institution_id}: {institution_aliases}" + ) + response = projects_search_client.search_bund_projects( + filter_properties=ProjectsFilteringProperties( + project_type=ProjectType.BUND, + page=0, + size=10000, + ), + institution_names=institution_aliases, + ) + + return _calculate_funding_over_time( + project_type=ProjectType.BUND, + projects=response.elements, + funding_start_attr="funding_start", + funding_end_attr="funding_end", + funding_amount_attr="grant_amount", + ) + + +def _calculate_funding_over_time( + project_type: ProjectType, + projects: List[Any], + funding_start_attr: str, + funding_end_attr: str, + funding_amount_attr: str, +) -> InstitutionFunderSummary: + funding_per_year: Dict[int, float] = {} + + for project in projects: + funding_start = getattr(project, funding_start_attr) + funding_end = getattr(project, funding_end_attr) + funding_amount = getattr(project, funding_amount_attr) + if not funding_start or not funding_end or not funding_amount: + continue + + if hasattr(funding_start, "date"): + funding_start = funding_start.date() + if hasattr(funding_end, "date"): + funding_end = funding_end.date() + + delta = (funding_end - funding_start).days + 1 + if delta <= 0: + continue + + amount_per_day = funding_amount / delta + start_year = funding_start.year + end_year = funding_end.year + + for year in range(start_year, end_year + 1): + if year == start_year: + year_start = funding_start + else: + year_start = datetime.date(year, 1, 1) + + if year == end_year: + year_end = funding_end + else: + year_end = datetime.date(year, 12, 31) + + days_in_year = (year_end - year_start).days + 1 + proportional_share = days_in_year * amount_per_day + + funding_per_year[year] = ( + funding_per_year.get(year, 0.0) + proportional_share + ) + + sorted_funding_per_year: Dict[int, float] = {} + + if funding_per_year: + min_year = min(funding_per_year.keys()) + max_year = max(funding_per_year.keys()) + + for year in range(min_year, max_year + 1): + sorted_funding_per_year[year] = funding_per_year.get(year, 0.0) + + total_sum = sum(sorted_funding_per_year.values()) + annual_average_over_period = total_sum / len(sorted_funding_per_year) + else: + annual_average_over_period = 0.0 + + return InstitutionFunderSummary( + type=project_type, + funding_per_year=sorted_funding_per_year, + annual_average_over_period=annual_average_over_period, + ) + + +def get_single_dfg_project( + project_id: str, +) -> DfgProjectDetails: + logger.debug(f"Fetching single DFG project for id={project_id}") + + project = projects_search_client.get_dfg_project_by_id(project_id) + if not project: + raise NotFoundException(f"DFG project with id {project_id} not found") + return project + + +def get_single_bund_project( + project_id: str, +) -> BundProjectDetails: + logger.debug(f"Fetching single BUND project for id={project_id}") + + project = projects_search_client.get_bund_project_by_id(project_id) + if not project: + raise NotFoundException(f"BUND project with id {project_id} not found") + return project + + +def search_cordis_eu_projects_for_author_id( + raw_oa_author_id: str, +) -> CordisEuProjectPage: + + # Direct search not possible -> multi stage search + # 1. Exisiting author has publications with DOIs + # 2. CORDIS EU projects have associated publications with DOIs + # 3. Matching DOIs of author publications with DOIs of CORDIS EU project publications -> projects with associated publications of the author + + dois = get_publication_dois_of_author(raw_oa_author_id=raw_oa_author_id) + + logger.debug(f"Found DOIs for author_id={raw_oa_author_id}: {dois}") + + project_ids = projects_search_client.get_cordis_eu_project_ids_by_dois(dois=dois) + + logger.debug( + f"Found project IDs {project_ids} for author_id={raw_oa_author_id} and dois={dois}" + ) + + funding_project_page = projects_search_client.get_cordis_eu_projects_by_project_ids( + project_ids=project_ids + ) + + return funding_project_page diff --git a/service/src/main/inse/tags.py b/service/src/main/inse/tags.py index 600bcfb0..bd0b79c0 100644 --- a/service/src/main/inse/tags.py +++ b/service/src/main/inse/tags.py @@ -7,4 +7,5 @@ class Tags(Enum): INSTITUTIONS = "Institutions" TOPICS = "Topics" WORKS = "Works" + NEWS = "News" PROJECTS = "Projects" diff --git a/service/src/main/inse/topics/logic.py b/service/src/main/inse/topics/logic.py index adc56a7a..244f70c8 100644 --- a/service/src/main/inse/topics/logic.py +++ b/service/src/main/inse/topics/logic.py @@ -256,10 +256,22 @@ def _datetime_str_or_none(value: Any) -> str | None: return f"{text}T00:00:00Z" return text +# Configuration for vector search similarity thresholds and boosts +SIMILARITY_THRESHOLD = 0.8 # intfloat/multilingual-e5-base uses cosine similarity between 0.7 - 1 +BOOST_LEXICAL = 1.0 +# higher values for semantic weights, because cosine similarity is between 0 and 1 +BOOST_DISPLAY_NAME_VECTOR = 30.0 +BOOST_KEYWORD_VECTORS = 25.0 + +# Approximate Nearest Neighbor (ANN) => higher values = slower but more accurate (nested Keyword vectors require more) +K = 500 +NUM_CANDIDATES = 500 + async def vector_search_topics( *, query: str, limit: int = 25, + search_type: str = "hybrid", ) -> TopicsListResponse: """ Perform a semantic similarity search on the topicvectors index. @@ -267,7 +279,7 @@ async def vector_search_topics( try: from inse.integrations import elasticsearch from inse.util import get_model - + except Exception as exc: logger.exception("Failed to load elasticsearch integration.") raise HTTPException( @@ -285,59 +297,65 @@ async def vector_search_topics( status_code=HTTP_502_BAD_GATEWAY, detail=f"Failed to encode query text: {exc}" ) - + # 2. Query Elasticsearch using standard Bool Should hybrid search - + should_clauses = [] + + # Lexical multi_match search (only in hybrid mode) + if search_type == "hybrid": + should_clauses.append({ + "multi_match": { + "query": query, + "fields": [ + "display_name^3", + "keywords^2" + ], + "boost": BOOST_LEXICAL + } + }) + + # Semantic KNN clauses + should_clauses.extend([ + { + "knn": { + "field": "display_name_vector", + "query_vector": query_vector, + "similarity": SIMILARITY_THRESHOLD, + "boost": BOOST_DISPLAY_NAME_VECTOR, + "k": K, + "num_candidates": NUM_CANDIDATES + } + }, + { + "nested": { + "path": "keyword_vectors", + "query": { + "knn": { + "field": "keyword_vectors.vector", + "query_vector": query_vector, + "similarity": SIMILARITY_THRESHOLD, + "k": K, + "num_candidates": NUM_CANDIDATES + } + }, + "score_mode": "max", + "boost": BOOST_KEYWORD_VECTORS + } + } + ]) + body = { "query": { "bool": { - "should": [ - { - "multi_match": { - "query": query, - "fields": [ - "display_name^3", - "keywords^2", - "description^1" - ], - "boost": 1.0 - } - }, - { - "knn": { - "field": "display_name_vector", - "query_vector": query_vector, - "k": limit, - "num_candidates": 100, - "similarity": 0.62, - "boost": 2.0 - } - }, - { - "nested": { - "path": "description_vectors", - "query": { - "knn": { - "field": "description_vectors.vector", - "query_vector": query_vector, - "k": limit, - "num_candidates": 100, - "similarity": 0.62 - } - }, - "score_mode": "max", - "boost": 1.0 - } - } - ] + "should": should_clauses } }, "_source": { - "excludes": ["display_name_vector", "description_vectors", "description", "siblings"] # remove unrequired fields (description, sibling currently not needed) + "excludes": ["display_name_vector", "keyword_vectors", "works_api_url", "updated_date", "created_date", "_index" ] # remove unrequired fields }, "size": limit } - + try: raw_results = elasticsearch.search( index="topicvectors", @@ -350,20 +368,13 @@ async def vector_search_topics( status_code=HTTP_502_BAD_GATEWAY, detail=f"Elasticsearch vector search failed: {exc}" ) - + # 3. Format result hits = raw_results.get("hits", {}).get("hits", []) - - # Log scores to JSON for threshold analysis TODO: Remove after finetune - try: - from .score_logger import log_scores_to_json - log_scores_to_json(hits, query) - except Exception as exc: - logger.warning(f"Could not log search scores: {exc}") - + total = len(hits) results = [hit.get("_source", {}) for hit in hits] - + data = { "meta": { "count": total, @@ -372,7 +383,7 @@ async def vector_search_topics( }, "results": results } - + try: normalized_data = _normalize_topics_response(data) return TopicsListResponse.from_dict(normalized_data) or TopicsListResponse() diff --git a/service/src/main/inse/topics/score_logger.py b/service/src/main/inse/topics/score_logger.py deleted file mode 100644 index 0493d9ad..00000000 --- a/service/src/main/inse/topics/score_logger.py +++ /dev/null @@ -1,36 +0,0 @@ -import json -from pathlib import Path -from typing import Any, Dict, List - -def log_scores_to_json(hits: List[Dict[str, Any]], query: str) -> None: - """ - Utility function to log the names and scores of all vector search hits to a JSON file. - This helps in debugging and manually tweaking the similarity score thresholds. - """ - scores_data = [] - for hit in hits: - source = hit.get("_source", {}) - topic_name = source.get("display_name") or source.get("name") or "Unknown" - score = hit.get("_score", 0.0) - scores_data.append({ - "topic_name": topic_name, - "score": score - }) - - - data_dir = Path("/data") - - output_file = data_dir / "search_scores.json" - - log_payload = { - "query": query, - "max_score": hits[0].get("_score", 0.0) if hits else 0.0, - "results": scores_data - } - - try: - with open(output_file, "w", encoding="utf-8") as f: - json.dump(log_payload, f, indent=2, ensure_ascii=False) - print(f"DEBUG: Saved search scores for query '{query}' to {output_file}") - except Exception as exc: - print(f"DEBUG: Failed to save search scores: {exc}") diff --git a/service/src/main/inse/topics/service.py b/service/src/main/inse/topics/service.py index bf6346fc..50c69fbc 100644 --- a/service/src/main/inse/topics/service.py +++ b/service/src/main/inse/topics/service.py @@ -129,9 +129,14 @@ async def vector_search_topics( int, Query(description="Maximum number of topics to return.", ge=1, le=100), ] = 25, + search_type: Annotated[ + str, + Query(alias="searchType", description="Search approach: 'hybrid' or 'semantic'."), + ] = "hybrid", ): return await logic.vector_search_topics( query=query, limit=limit, + search_type=search_type, ) diff --git a/service/src/main/inse/university_ranking/logic.py b/service/src/main/inse/university_ranking/logic.py new file mode 100644 index 00000000..bd1e58f9 --- /dev/null +++ b/service/src/main/inse/university_ranking/logic.py @@ -0,0 +1,113 @@ +import logging +from typing import List, Dict, Any +from .model import UniversityTopicData, YearlyData, UniversityRanking, ResearchTopic, DashboardMetric, RankingResponse +from inse.integrations import elasticsearch + +logger = logging.getLogger(__name__) + +START_YEAR = 2015 +END_YEAR = 2026 + +async def get_ranking_data(topic: ResearchTopic, metric: DashboardMetric) -> RankingResponse: + """ + Fetches real data from Elasticsearch and computes metrics for the dashboard. + """ + query = { + "bool": { + "must": [ + { + "match_phrase": { + "topics.display_name": topic + } + }, + { + "term": { + "geo.country_code": "DE" + } + } + ] + } + } + + + # Fetch top institutions for the topic by works_count + res = elasticsearch.search( + index="openalex-institutions", + query=query, + size=10, + sort=[{"works_count": "desc"}], + cluster="nes" + ) + + hits = res.get("hits", {}).get("hits", []) + timeseries: List[UniversityTopicData] = [] + + for hit in hits: + source = hit["_source"] + # Map the counts_by_year from ES to our model + # We ensure every year from START_YEAR to END_YEAR is present, defaulting to 0 + es_counts = {c["year"]: c for c in source.get("counts_by_year", [])} + + yearly_data = [] + for year in range(START_YEAR, END_YEAR + 1): + count_item = es_counts.get(year, {}) + yearly_data.append(YearlyData( + year=year, + publications=count_item.get("works_count", 0), + citations=count_item.get("cited_by_count", 0) + )) + + timeseries.append(UniversityTopicData( + university=source.get("display_name", "Unknown"), + topic=topic, + yearly_data=yearly_data + )) + + rankings = _compute_rankings(timeseries, metric) + + return RankingResponse(timeseries=timeseries, rankings=rankings) + +def _compute_rankings(data: List[UniversityTopicData], metric: DashboardMetric) -> List[UniversityRanking]: + """Computes ranking metrics based on the timeseries data.""" + latest_year = END_YEAR + five_years_ago = latest_year - 5 + three_years_ago = latest_year - 3 + + processed: List[Dict[str, Any]] = [] + for item in data: + latest = next((d for d in item.yearly_data if d.year == latest_year), YearlyData(year=latest_year, publications=0, citations=0)) + prev = next((d for d in item.yearly_data if d.year == latest_year - 1), YearlyData(year=latest_year-1, publications=0, citations=0)) + start_range = next((d for d in item.yearly_data if d.year == five_years_ago), YearlyData(year=five_years_ago, publications=0, citations=0)) + mover_range = next((d for d in item.yearly_data if d.year == three_years_ago), YearlyData(year=three_years_ago, publications=0, citations=0)) + + curr_val = getattr(latest, metric) or 0 + prev_val = getattr(prev, metric) or 0 + old_val = getattr(start_range, metric) or 0 + mover_old_val = getattr(mover_range, metric) or 0 + + growth_rate = ((curr_val - old_val) / old_val * 100) if old_val > 0 else 0 + recent_growth = ((curr_val - mover_old_val) / mover_old_val * 100) if mover_old_val > 0 else 0 + + processed.append({ + "university": item.university, + "publications": latest.publications, + "citations": latest.citations, + "growth_rate": growth_rate, + "trend": 'up' if curr_val > prev_val else ('down' if curr_val < prev_val else 'stable'), + "recent_growth": recent_growth, + "sort_val": curr_val + }) + + processed.sort(key=lambda x: x["sort_val"], reverse=True) + # Top movers: top 2 by recent growth + growth_sorted = sorted([p["recent_growth"] for p in processed], reverse=True) + threshold = growth_sorted[1] if len(growth_sorted) > 1 else 0 + + return [ + UniversityRanking( + rank=i + 1, + is_top_mover=p["recent_growth"] >= threshold and p["recent_growth"] > 0, + **{k: v for k, v in p.items() if k != "sort_val" and k != "recent_growth"} + ) + for i, p in enumerate(processed) + ] \ No newline at end of file diff --git a/service/src/main/inse/university_ranking/model.py b/service/src/main/inse/university_ranking/model.py new file mode 100644 index 00000000..1b4b8605 --- /dev/null +++ b/service/src/main/inse/university_ranking/model.py @@ -0,0 +1,30 @@ +from pydantic import BaseModel +from typing import List, Literal + +ResearchTopic = Literal['Artificial Intelligence', 'Quantum Computing', 'Renewable Energy', 'Biotechnology'] +DashboardMetric = Literal['publications', 'citations'] + +class YearlyData(BaseModel): + year: int + publications: int + citations: int + +class UniversityTopicData(BaseModel): + university: str + topic: ResearchTopic + yearly_data: List[YearlyData] + +class UniversityRanking(BaseModel): + rank: int + university: str + publications: int + citations: int + growth_rate: float + trend: Literal['up', 'down', 'stable'] + is_top_mover: bool + +class RankingResponse(BaseModel): + # Raw timeseries data for the ECharts line race + timeseries: List[UniversityTopicData] + # Computed metrics for the ranking table + rankings: List[UniversityRanking] \ No newline at end of file diff --git a/service/src/main/inse/university_ranking/router.py b/service/src/main/inse/university_ranking/router.py new file mode 100644 index 00000000..60c52c9d --- /dev/null +++ b/service/src/main/inse/university_ranking/router.py @@ -0,0 +1,23 @@ +from fastapi import APIRouter, Query +from . import service +from .model import RankingResponse, ResearchTopic, DashboardMetric +from inse.tags import Tags + +router = APIRouter( + prefix="/api/inse-service/university-rankings", + tags=[Tags.INSTITUTIONS] +) + +@router.get( + "", + response_model=RankingResponse, + summary="Returns data for the University Ranking Dashboard." +) +async def get_rankings( + topic: ResearchTopic = Query( + ..., + description="Research topic (e.g., 'Artificial Intelligence')" + ), + metric: DashboardMetric = Query("publications", description="Metric to rank by") +): + return await service.get_university_dashboard_data(topic, metric) \ No newline at end of file diff --git a/service/src/main/inse/university_ranking/service.py b/service/src/main/inse/university_ranking/service.py new file mode 100644 index 00000000..4eac89e6 --- /dev/null +++ b/service/src/main/inse/university_ranking/service.py @@ -0,0 +1,6 @@ +from . import logic +from .model import RankingResponse, ResearchTopic, DashboardMetric + +async def get_university_dashboard_data(topic: ResearchTopic, metric: DashboardMetric) -> RankingResponse: + """Orchestrates data retrieval and computation for the dashboard.""" + return await logic.get_ranking_data(topic, metric) \ No newline at end of file diff --git a/service/src/main/inse/util.py b/service/src/main/inse/util.py index 1acf6d2e..dc47d976 100644 --- a/service/src/main/inse/util.py +++ b/service/src/main/inse/util.py @@ -38,6 +38,7 @@ def get_persons_data(hit:dict): return author from sentence_transformers import SentenceTransformer +from .config import settings # Sentence Transformer Model _model: SentenceTransformer | None = None @@ -55,5 +56,6 @@ def get_model(): if os.environ.get("SENTENCE_TRANSFORMERS_HOME") == "/models": os.environ["HF_HUB_OFFLINE"] = "1" - _model = SentenceTransformer("paraphrase-multilingual-mpnet-base-v2") + model_name = settings.sentence_transformers_model_name + _model = SentenceTransformer(model_name) return _model \ No newline at end of file diff --git a/service/src/main/inse/works/logic.py b/service/src/main/inse/works/logic.py index 40e2c9f1..9d5918cf 100644 --- a/service/src/main/inse/works/logic.py +++ b/service/src/main/inse/works/logic.py @@ -6,7 +6,7 @@ Business logic for publication works. import logging from time import time -from typing import List +from typing import Any, List import httpx from fastapi import HTTPException @@ -29,6 +29,26 @@ from .search_client import OpenAlexWorksSearchClient logger = logging.getLogger(__name__) +TOPIC_DETAIL_SOURCE_FIELDS = [ + "id", + "display_name", + "description", + "subfield", + "field", + "domain", +] + +TOPIC_HIERARCHY_DESCRIPTION_INDICES = { + "subfield": "openalex-subfields", + "field": "openalex-fields", + "domain": "openalex-domains", +} + +TOPIC_HIERARCHY_DESCRIPTION_SOURCE_FIELDS = [ + "id", + "description", +] + async def get_author_works( author_id: str, @@ -121,6 +141,7 @@ async def get_primary_topic_counts( name=name, count=item["count"], description=info.get("description"), + **_topic_hierarchy_fields(info), ) ) @@ -208,7 +229,7 @@ def _get_topic_details(topic_ids: List[str]) -> dict[str, dict]: response = elasticsearch.search( index="openalex-topics", query={"terms": {"id": topic_ids}}, - source=["id", "display_name", "description"], + source=TOPIC_DETAIL_SOURCE_FIELDS, size=len(topic_ids), ) except httpx.HTTPError: @@ -225,11 +246,94 @@ def _get_topic_details(topic_ids: List[str]) -> dict[str, dict]: details[topic_id] = { "display_name": source.get("display_name"), "description": source.get("description"), + "subfield": _extract_topic_hierarchy_item(source, "subfield"), + "field": _extract_topic_hierarchy_item(source, "field"), + "domain": _extract_topic_hierarchy_item(source, "domain"), } + _enrich_topic_hierarchy_descriptions(details) + return details +def _extract_topic_hierarchy_item(source: dict, key: str) -> dict[str, str | None]: + hierarchy_item = source.get(key) + + if not isinstance(hierarchy_item, dict): + return {"id": None, "display_name": None, "description": None} + + return { + "id": hierarchy_item.get("id"), + "display_name": hierarchy_item.get("display_name"), + "description": hierarchy_item.get("description"), + } + + +def _enrich_topic_hierarchy_descriptions(details: dict[str, dict]) -> None: + for hierarchy_key, index in TOPIC_HIERARCHY_DESCRIPTION_INDICES.items(): + hierarchy_ids = { + item.get(hierarchy_key, {}).get("id") + for item in details.values() + if item.get(hierarchy_key, {}).get("id") + } + + descriptions = _get_topic_hierarchy_descriptions(index, list(hierarchy_ids)) + + for item in details.values(): + hierarchy_item = item.get(hierarchy_key) or {} + hierarchy_id = hierarchy_item.get("id") + + if hierarchy_id and hierarchy_id in descriptions: + hierarchy_item["description"] = descriptions[hierarchy_id] + + +def _get_topic_hierarchy_descriptions( + index: str, + hierarchy_ids: list[str], +) -> dict[str, str | None]: + if not hierarchy_ids: + return {} + + try: + response = elasticsearch.search( + index=index, + query={"terms": {"id": hierarchy_ids}}, + source=TOPIC_HIERARCHY_DESCRIPTION_SOURCE_FIELDS, + size=len(hierarchy_ids), + ) + except httpx.HTTPError: + logger.exception("Could not load topic hierarchy details from %s.", index) + return {} + + descriptions = {} + for hit in response.get("hits", {}).get("hits", []): + source = hit.get("_source", {}) + hierarchy_id = source.get("id") + + if hierarchy_id: + descriptions[hierarchy_id] = source.get("description") + + return descriptions + + +def _topic_hierarchy_fields(topic_details: dict) -> dict[str, str | None]: + subfield = topic_details.get("subfield") or {} + field = topic_details.get("field") or {} + domain = topic_details.get("domain") or {} + + return { + "subfield_id": subfield.get("id"), + "subfield_name": subfield.get("display_name"), + "subfield_description": subfield.get("description"), + "field_id": field.get("id"), + "field_name": field.get("display_name"), + "field_description": field.get("description"), + "domain_id": domain.get("id"), + "domain_name": domain.get("display_name"), + "domain_description": domain.get("description"), + } + + def _limit_works_by_complete_years( work_results: list[Work], target_publications: int, @@ -328,6 +432,30 @@ async def get_topics_by_time_by_author( target_publications: int = 300, include_all: bool = False, client: OpenAlexWorksSearchClient | None = None, +) -> TopicsByTime: + if client is not None: + return await _get_topics_by_time_by_author_from_work_pages( + author_id, + max_topics_per_year=max_topics_per_year, + target_publications=target_publications, + include_all=include_all, + client=client, + ) + + return _get_topics_by_time_by_author_from_es( + author_id, + max_topics_per_year=max_topics_per_year, + target_publications=target_publications, + include_all=include_all, + ) + + +async def _get_topics_by_time_by_author_from_work_pages( + author_id: str, + max_topics_per_year: int = 3, + target_publications: int = 300, + include_all: bool = False, + client: OpenAlexWorksSearchClient | None = None, ) -> TopicsByTime: if include_all: works = await get_all_author_works(author_id, client=client) @@ -421,6 +549,7 @@ async def get_topics_by_time_by_author( name=topic["name"], count=topic["count"], description=info.get("description"), + **_topic_hierarchy_fields(info), ) ) @@ -438,6 +567,7 @@ async def get_topics_by_time_by_author( name=topic["name"], count=topic["count"], description=info.get("description"), + **_topic_hierarchy_fields(info), ) ) @@ -459,6 +589,298 @@ async def get_topics_by_time_by_author( ) +def _get_topics_by_time_by_author_from_es( + author_id: str, + max_topics_per_year: int = 3, + target_publications: int = 300, + include_all: bool = False, +) -> TopicsByTime: + year_buckets, total_publications = _get_publication_year_counts_from_es(author_id) + selected_years, is_limited = _select_complete_timeline_years( + year_buckets, + target_publications=target_publications, + include_all=include_all, + ) + + if not selected_years: + return TopicsByTime( + elements=[], + total=0, + is_limited=False, + used_publications=0, + total_publications=total_publications, + ) + + year_topic_buckets = _get_timeline_topic_counts_from_es( + author_id, + years=selected_years, + max_topics_per_year=max_topics_per_year, + ) + topic_ids = _collect_topic_ids_from_year_buckets(year_topic_buckets) + topic_details = _get_topic_details(list(topic_ids)) + + elements = _build_timeline_elements_from_aggregations( + year_topic_buckets, + topic_details=topic_details, + max_topics_per_year=max_topics_per_year, + ) + + return TopicsByTime( + elements=elements, + total=len(elements), + is_limited=is_limited, + used_publications=sum(element.publication_count for element in elements), + total_publications=total_publications, + ) + + +def _get_publication_year_counts_from_es(author_id: str) -> tuple[list[dict], int]: + body = { + "size": 0, + "track_total_hits": True, + "query": _author_works_query(author_id), + "aggs": { + "publication_years": { + "terms": { + "field": "publication_year", + "size": 300, + "order": {"_key": "desc"}, + }, + }, + }, + } + + try: + response = elasticsearch.search( + index=config.settings.openalex_works_search_index, + body=body, + ) + except httpx.HTTPError as exc: + logger.exception("OpenAlex publication year aggregation request failed.") + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="OpenAlex works search request failed.", + ) from exc + + return _parse_year_count_buckets(response), _parse_total_hits(response) + + +def _get_timeline_topic_counts_from_es( + author_id: str, + years: list[int], + max_topics_per_year: int, +) -> list[dict]: + body = { + "size": 0, + "query": { + "bool": { + "must": [_author_works_query(author_id)], + "filter": [{"terms": {"publication_year": years}}], + }, + }, + "aggs": { + "by_year": { + "terms": { + "field": "publication_year", + "size": len(years), + "order": {"_key": "asc"}, + }, + "aggs": { + "primary_topics": { + "terms": { + "field": "primary_topic.id", + "size": max_topics_per_year, + "order": [ + {"_count": "desc"}, + {"_key": "asc"}, + ], + }, + }, + "topics_nested": { + "nested": {"path": "topics"}, + "aggs": { + "topics": { + "terms": { + "field": "topics.id", + "size": max_topics_per_year, + "order": [ + {"_count": "desc"}, + {"_key": "asc"}, + ], + }, + "aggs": { + "works": { + "reverse_nested": {}, + }, + }, + }, + }, + }, + }, + }, + }, + } + + try: + response = elasticsearch.search( + index=config.settings.openalex_works_search_index, + body=body, + ) + except httpx.HTTPError as exc: + logger.exception("OpenAlex timeline topic aggregation request failed.") + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="OpenAlex works search request failed.", + ) from exc + + return response.get("aggregations", {}).get("by_year", {}).get("buckets", []) + + +def _author_works_query(author_id: str) -> dict[str, Any]: + indexed_author_id = f"https://openalex.org/{author_id.strip()}" + + return { + "nested": { + "path": "authorships", + "query": { + "bool": { + "filter": [ + {"term": {"authorships.author.id": indexed_author_id}}, + ], + }, + }, + }, + } + + +def _parse_year_count_buckets(response: dict) -> list[dict]: + return ( + response.get("aggregations", {}).get("publication_years", {}).get("buckets", []) + ) + + +def _parse_total_hits(response: dict) -> int: + total = response.get("hits", {}).get("total", 0) + + if isinstance(total, dict): + return total.get("value", 0) + + return total + + +def _select_complete_timeline_years( + year_buckets: list[dict], + target_publications: int, + include_all: bool, +) -> tuple[list[int], bool]: + if include_all: + return [bucket["key"] for bucket in year_buckets], False + + selected_years: list[int] = [] + selected_publications = 0 + + for bucket in year_buckets: + selected_years.append(bucket["key"]) + selected_publications += bucket.get("doc_count", 0) + + if selected_publications >= target_publications: + break + + is_limited = len(selected_years) < len(year_buckets) + + return selected_years, is_limited + + +def _collect_topic_ids_from_year_buckets(year_buckets: list[dict]) -> set[str]: + topic_ids: set[str] = set() + + for year_bucket in year_buckets: + primary_buckets = year_bucket.get("primary_topics", {}).get("buckets", []) + topic_buckets = ( + year_bucket.get("topics_nested", {}).get("topics", {}).get("buckets", []) + ) + + for bucket in primary_buckets + topic_buckets: + topic_id = bucket.get("key") + + if topic_id: + topic_ids.add(topic_id) + + return topic_ids + + +def _build_timeline_elements_from_aggregations( + year_buckets: list[dict], + topic_details: dict[str, dict], + max_topics_per_year: int, +) -> list[TopicsByYear]: + elements: list[TopicsByYear] = [] + + for year_bucket in year_buckets: + year = year_bucket.get("key") + + if year is None: + continue + + topics = _build_topic_counts_from_buckets( + year_bucket.get("topics_nested", {}).get("topics", {}).get("buckets", []), + topic_details=topic_details, + max_topics_per_year=max_topics_per_year, + use_reverse_nested_count=True, + ) + primary_topics = _build_topic_counts_from_buckets( + year_bucket.get("primary_topics", {}).get("buckets", []), + topic_details=topic_details, + max_topics_per_year=max_topics_per_year, + use_reverse_nested_count=False, + ) + + elements.append( + TopicsByYear( + year=year, + publication_count=year_bucket.get("doc_count", 0), + topics=topics, + primary_topics=primary_topics, + ) + ) + + return elements + + +def _build_topic_counts_from_buckets( + buckets: list[dict], + topic_details: dict[str, dict], + max_topics_per_year: int, + use_reverse_nested_count: bool, +) -> list[TopicCount]: + topics: list[TopicCount] = [] + + for bucket in buckets[:max_topics_per_year]: + topic_id = bucket.get("key") + + if not topic_id: + continue + + info = topic_details.get(topic_id, {}) + display_name = info.get("display_name") or topic_id + count = bucket.get("doc_count", 0) + + if use_reverse_nested_count: + count = bucket.get("works", {}).get("doc_count", count) + + topics.append( + TopicCount( + id=topic_id, + name=display_name, + count=count, + description=info.get("description"), + **_topic_hierarchy_fields(info), + ) + ) + + return topics + + async def _search_author_works_data( search_client: OpenAlexWorksSearchClient, author_id: str, @@ -539,3 +961,49 @@ def _parse_full_work_search_response(data: dict) -> tuple[list[Work], int]: ) from exc return elements, total + + +def get_publication_dois_of_author( + raw_oa_author_id: str, +) -> List[str]: + query = { + "bool": { + "must": [ + { + "nested": { + "path": "authorships", + "query": { + "term": { + "authorships.author.id": f"https://openalex.org/{raw_oa_author_id.strip().upper()}" + } + }, + } + } + ], + "filter": [{"exists": {"field": "doi"}}], + } + } + + try: + response = elasticsearch.search( + index="openalex-works", + source=["doi"], + size=10000, + query=query, + cluster="nes", + ) + except httpx.HTTPError as exc: + logger.exception("Request for publication DOIs of author failed.") + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Request for publication DOIs of author failed.", + ) from exc + + dois = [] + for hit in response.get("hits", {}).get("hits", []): + source = hit.get("_source", {}) + doi = source.get("doi") + if doi: + dois.append(doi) + + return dois diff --git a/service/src/main/inse/works/search_client.py b/service/src/main/inse/works/search_client.py index 36b1b3bb..fe60c665 100644 --- a/service/src/main/inse/works/search_client.py +++ b/service/src/main/inse/works/search_client.py @@ -26,12 +26,13 @@ class OpenAlexWorksSearchClient: timeout: float | None = None, transport: httpx.AsyncBaseTransport | None = None, ): - self.base_url = (base_url or config.settings.openalex_works_search_base_url).rstrip("/") + self.base_url = (base_url or config.settings.elasticsearch_url or "").rstrip("/") self.index = index or config.settings.openalex_works_search_index - self.api_key = api_key if api_key is not None else config.settings.openalex_works_api_key + self.api_key = api_key if api_key is not None else config.settings.elasticsearch_api_key self.timeout = timeout if timeout is not None else config.settings.openalex_works_search_timeout_seconds self.transport = transport + def author_works_query( self, author_id: str, diff --git a/ude_person.http b/ude_person.http index e41036ba..9354020f 100644 --- a/ude_person.http +++ b/ude_person.http @@ -13,10 +13,335 @@ Content-Type: application/json } ### -GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_publications/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json +{ + "size": 100, + "query": { + "bool": { + "filter": [ + { + "terms": { + "projectID": ["287661"] + } + } + ] + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_projects/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_projects/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 100, + "query": { + "bool": { + "filter": [ + { + "terms": { + "id": ["604123", "101003555"] + } + } + ] + } + } +} + +# 10.1371/journal.pone.0018216 + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_publications/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_publications/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_fp7_project_iprs/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_publications/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "query": { + "bool": { + "filter": [ + { + "terms": { + "qaProcessedDoi": [ + "10.5555/3234847.3234861", + "10.1145/1858367.1858373", + "10.1145/3583120.3586961", + "10.1109/ipin.2017.8115906", + "10.1145/3274783.3275217", + "10.1007/978-3-031-20716-7_7", + "10.1109/percomw.2012.6197554", + "10.1016/j.pmcj.2012.12.002", + "10.1007/978-3-658-32266-3_30", + "10.1109/percomw.2013.6529502", + "10.1109/ie.2010.40", + "10.18419/opus-2650", + "10.1007/s00138-024-01553-z", + "10.1007/978-3-030-90439-5_15", + "10.1201/9781003338659-4", + "10.1016/j.pmcj.2013.10.013", + "10.1109/percom.2009.4912852", + "10.1109/icra55743.2025.11128432", + "10.1145/2494091.2497327", + "10.1007/978-3-658-46485-1_31", + "10.1109/ie.2017.22", + "10.1109/jiot.2016.2554146", + "10.1145/2493432.2493459", + "10.3233/ais-160416", + "10.1109/percomw.2007.111", + "10.5194/asr-17-183-2020", + "10.1007/978-3-658-36430-4_37", + "10.1007/978-3-030-64559-5_50" + ] + } + } + ] + } + } +} + + + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 0, + "query": { + "bool": { + "filter": [ + { + "term": { + "organisationID": "999843312" + } + } + ] + } + }, + "aggs": { + "associated_project_ids": { + "terms": { + "field": "projectID" + } + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 1000, + "query": { + "bool": { + "filter": [ + { + "term": { + "name.keyword": "UNIVERSITAET DUISBURG-ESSEN" + } + } + ] + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 0, + "query": { + "bool": { + "filter": [ + { + "term": { + "name.keyword": "UNIVERSITAET DUISBURG-ESSEN" + } + } + ] + } + }, + "aggs": { + "associated_project_ids": { + "terms": { + "field": "projectID" + } + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_projects/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "query": { + "terms": { + "name": [ + "UNIVERSITÄT DUISBURG-ESSEN", + "UNIVERSITY OF DUISBURG-ESSEN", + "UNIVERSITAT DUISBURG-ESSEN", + "UNIVERSITY OF DUISBURG ESSEN", + "UNIVERSITAT DUISBURG-ESSEN", + "UNIVERSITAET DUISBURG ESSEN", + "UNIVERSITÄT DUISBURG ESSEN", + "UNIVERSITAT DUISBURG ESSEN", + "UNIVERSITÄT DUISBURG-ESSEN", + "UNIVERSITAET DUISBURG-ESSEN", + "UNIVERSITY OF DUISBURG-ESSEN" + ] + } + }, + "_source": ["projectID", "organisationID", "ecContribution"] +} + + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 10, + "query": { + "bool": { + "filter": [ + { + "term": { + "name.keyword": "UNIVERSITAET DUISBURG-ESSEN" + } + } + ] + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 0, + "query": { + "bool": { + "filter": [ + { + "terms": { + "name.keyword": [ + "UNIVERSITAET DUISBURG-ESSEN", + "UNIVERSITY OF DUISBURG-ESSEN", + "UNIVERSITÄT DUISBURG-ESSEN", + "UNIVERSITAT DUISBURG ESSEN", + "UNIVERSITÄT DUISBURG ESSEN", + "UNIVERSITY OF DUISBURG ESSEN", + "UNIVERSITAET DUISBURG ESSEN", + "UNIVERSITAT DUISBURG-ESSEN" + ] + } + } + ] + } + }, + "aggs": { + "organisation_ids": { + "terms": { + "field": "organisationID", + "size": 10000 + } + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_horizon_europe_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 0, + "query": { + "match": { + "name": { + "query": "Essen", + "fuzziness": "AUTO" + } + } + }, + "aggs": { + "distinct_matched_names": { + "terms": { + "field": "name.keyword", + "size": 100 + } + } + } +} + +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_fp7_organizations/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "size": 0, + "query": { + "match": { + "name": { + "query": "Essen", + "fuzziness": "AUTO" + } + } + }, + "aggs": { + "distinct_matched_names": { + "terms": { + "field": "name.keyword", + "size": 100 + } + } + } +} + ### GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== @@ -342,6 +667,42 @@ GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json +{ + "query": { + "bool": { + "should": [ + { + "wildcard": { + "title.keyword": { + "value": "*generic*", + "case_insensitive": true + } + } + }, + { + "wildcard": { + "Thema.keyword": { + "value": "*generic*", + "case_insensitive": true + } + } + } + ] + } + } +} + + +### +GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +### +GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + { "size": 100, "query": { @@ -451,37 +812,157 @@ Content-Type: application/json ### -GET https://inse.nes.uni-due.de/elastic/projects_bund/_mapping +GET https://inse.nes.uni-due.de/elastic/projects_bund_v1/_mapping Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json ### -GET https://inse.nes.uni-due.de/elastic/projects_bund/_search +GET https://inse.nes.uni-due.de/elastic/projects_bund_v1/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json { - - "size": 10, - "from": 1000, + "size": 0, "query": { - "match": { - "Zuwendungsempf\u00e4nger": { - "query": "Universit\u00e4t Duisburg-Essen", - "operator": "and" - } + "bool": { + "must": [ + { + "bool": { + "should": [ + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitaet duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitaet duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg essen", + "operator": "and" + } + } + } + ], + "minimum_should_match": 1 + } + } + ] } }, - "sort": [ - { - "Thema.keyword": { - "order": "asc" + "aggs": { + "distributed_annual_amounts": { + "scripted_metric": { + "init_script": "state.years_map = [:]", + "map_script": "if (doc['funding_start'].size() == 0 || doc['funding_end'].size() == 0 || doc['Fördersumme'].size() == 0) { return; } def start = doc['funding_start'].value.toLocalDate(); def end = doc['funding_end'].value.toLocalDate(); def totalAmount = doc['Fördersumme'].value; def startYear = start.getYear(); def endYear = end.getYear(); if (startYear == endYear) { state.years_map[startYear] = state.years_map.getOrDefault(startYear, 0.0) + totalAmount; } else { long totalDays = ChronoUnit.DAYS.between(start, end) + 1; if (totalDays <= 0) return; double amountPerDay = totalAmount / (double)totalDays; for (int y = startYear; y <= endYear; y++) { def yearStart = (y == startYear) ? start : LocalDate.of(y, 1, 1); def yearEnd = (y == endYear) ? end : LocalDate.of(y, 12, 31); long daysInYear = ChronoUnit.DAYS.between(yearStart, yearEnd) + 1; double proportionalShare = daysInYear * amountPerDay; state.years_map[y] = state.years_map.getOrDefault(y, 0.0) + proportionalShare; } }", + "combine_script": "return state.years_map", + "reduce_script": "def final_map = [:]; for (state in states) { for (entry in state.entrySet()) { final_map[entry.getKey()] = final_map.getOrDefault(entry.getKey(), 0.0) + entry.getValue(); } } if (final_map.isEmpty()) { return ['funding_per_year': final_map, 'annual_average_over_period': 0.0]; } double totalSum = 0.0; for (val in final_map.values()) { totalSum += val; } double avg = totalSum / final_map.size(); return ['funding_per_year': final_map, 'annual_average_over_period': avg];" } } - ] - + } } + + + +### + +# { + +# "size": 10, +# "from": 1000, +# "query": { +# "match": { +# "Zuwendungsempf\u00e4nger": { +# "query": "Universit\u00e4t Duisburg-Essen", +# "operator": "and" +# } +# } +# }, +# "sort": [ +# { +# "Thema.keyword": { +# "order": "asc" +# } +# } +# ] + +# } + #{'size': 10, 'from': 0, 'query': {'match': {'Zuwendungsempfänger': {'query': 'Universität Duisburg-Essen', 'operator': 'and'}}}, 'sort': [{'Thema': {'order': 'asc'}}]} # { @@ -688,6 +1169,69 @@ GET https://project.nes.uni-due.de/elastic/openalex-authors/_search Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== Content-Type: application/json +{ + "query": { + "bool": { + "must": [ + { + "prefix": { + "display_name.keyword": "Marcus Roth" + } + }, + { + "nested": { + "path": "last_known_institutions", + "query": { + "match": { + "last_known_institutions.display_name": "University of Duisburg-Essen" + } + } + } + } + ] + } + } +} + +### + +GET https://project.nes.uni-due.de/elastic/openalex-works/_search +Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== +Content-Type: application/json + +### + +GET https://project.nes.uni-due.de/elastic/openalex-works/_search +Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== +Content-Type: application/json + +{ + "_source": ["title", "doi"], + "size": 100, + "query": { + "bool": { + "must": [ + { + "nested": { + "path": "authorships", + "query": { + "term": { + "authorships.author.id": "https://openalex.org/A5007170803" + } + } + } + } + ], + "filter": [ + { + "exists": { + "field": "doi" + } + } + ] + } + } +} ### @@ -783,6 +1327,20 @@ GET https://project.nes.uni-due.de/elastic/openalex-authors/_mapping Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== Content-Type: application/json +### + +GET https://project.nes.uni-due.de/elastic/openalex-institutions/_search +Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== +Content-Type: application/json + +{ + "query": {}, + "size": 10, + "from": 0, + "sort": [{ "works_count": { "order": "desc" } }] +} + + ### GET https://project.nes.uni-due.de/elastic/openalex-awards/_search diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 707098fd..0a468ed3 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -1,13 +1,17 @@ .gitignore +.openapi-generator-ignore README.md api.base.service.ts api.module.ts api/api.ts +api/companyConnections.service.ts api/funding.service.ts api/iNSEAccountService.service.ts api/iNSEService.service.ts api/institutions.service.ts api/items.service.ts +api/news.service.ts +api/patents.service.ts api/personNetwork.service.ts api/persons.service.ts api/projects.service.ts @@ -37,11 +41,16 @@ model/autocompleteResponseResultsInner.ts model/award.ts model/bodyCreateUser.ts model/bundProject.ts +model/bundProjectDetails.ts model/bundProjectPage.ts -model/categoryNested.ts +model/careerMetrics.ts model/collaborationNetwork.ts model/collaborationNetworkEdge.ts model/collaborationNetworkNodeType.ts +model/companyConnection.ts +model/companyConnectionsResponse.ts +model/cordisEuProject.ts +model/cordisEuProjectPage.ts model/costUsd.ts model/customAuthor.ts model/customAuthorsListResponse.ts @@ -49,52 +58,69 @@ model/dehydratedAuthor.ts model/dehydratedFunder.ts model/dehydratedInstitution.ts model/dehydratedSource.ts +model/dfgProjectDetails.ts model/dfgProjectPage.ts model/dfgProjectSummary.ts -model/displayCodeSplittedNested.ts -model/euProject.ts -model/euProjectPage.ts +model/euOrganizationProjectSummary.ts +model/euOrganizationProjectSummaryPage.ts model/filterInformation.ts model/filterProperties.ts model/funderByAuthor.ts model/fundersByAuthorResponse.ts +model/fundingProject.ts +model/fundingProjectPage.ts model/fwci.ts model/groupByResult.ts model/hTTPValidationError.ts model/identityGrant.ts model/institution.ts +model/institutionFunderSummary.ts model/institutionGeo.ts model/institutionIds.ts model/institutionInformation.ts model/institutionNetworkNode.ts +model/institutionPage.ts model/institutionsListResponse.ts model/item.ts model/itemCreate.ts model/itemPage.ts -model/keywordNested.ts +model/keywords.ts model/latitude.ts model/location.ts model/longitude.ts +model/matchedOfficer.ts +model/mentionedPerson.ts model/meta.ts model/model2YrMeanCitedness.ts model/models.ts +model/newsArticle.ts +model/newsArticleDetail.ts +model/newsPage.ts model/openAccess.ts -model/organizationNested.ts +model/patentEntry.ts +model/patentsByAuthorResponse.ts model/personBio.ts -model/programmeNested.ts +model/projectType.ts +model/projectsFilteringProperties.ts +model/projectsSortBy.ts model/publicationDetailByFunder.ts model/publicationIdsByAuthorPosition.ts model/publicationsByAuthorResponse.ts +model/rankingResponse.ts model/score.ts +model/sortDirection.ts model/topic.ts model/topicCount.ts model/topicDomain.ts model/topicField.ts model/topicIds.ts model/topicSubfield.ts +model/topics.ts model/topicsByTime.ts model/topicsByYear.ts model/topicsListResponse.ts +model/universityRanking.ts +model/universityTopicData.ts model/user.ts model/validationError.ts model/validationErrorLocInner.ts @@ -118,6 +144,7 @@ model/workTopicInformation.ts model/workTopicSubfield.ts model/worksFilterProperties.ts model/worksListResponse.ts +model/yearlyData.ts param.ts provide-api.ts variables.ts diff --git a/webapp/src/app/api/README.md b/webapp/src/app/api/README.md index dfa7b6e7..2df9da7b 100644 --- a/webapp/src/app/api/README.md +++ b/webapp/src/app/api/README.md @@ -46,10 +46,10 @@ npm link In your project: ```console -npm link +npm link ``` -__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages. +**Note for Windows users:** The Angular CLI has troubles to use linked npm packages. Please refer to this issue for a solution / workaround. Published packages are not effected by this issue. @@ -58,22 +58,22 @@ Published packages are not effected by this issue. In your Angular project: ```typescript - import { ApplicationConfig } from '@angular/core'; import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi() - ], + providers: [ + // ... + provideHttpClient(), + provideApi(), + ], }; ``` **NOTE** If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: + ```typescript import { ApiModule } from ''; ``` @@ -86,11 +86,11 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi('http://localhost:9999') - ], + providers: [ + // ... + provideHttpClient(), + provideApi('http://localhost:9999'), + ], }; ``` @@ -101,15 +101,15 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi({ - withCredentials: true, - username: 'user', - password: 'password' - }) - ], + providers: [ + // ... + provideHttpClient(), + provideApi({ + withCredentials: true, + username: 'user', + password: 'password', + }), + ], }; ``` @@ -120,21 +120,22 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi, Configuration } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - { - provide: Configuration, - useFactory: (authService: AuthService) => new Configuration({ - basePath: 'http://localhost:9999', - withCredentials: true, - username: authService.getUsername(), - password: authService.getPassword(), - }), - deps: [AuthService], - multi: false - } - ], + providers: [ + // ... + provideHttpClient(), + { + provide: Configuration, + useFactory: (authService: AuthService) => + new Configuration({ + basePath: 'http://localhost:9999', + withCredentials: true, + username: authService.getUsername(), + password: authService.getPassword(), + }), + deps: [AuthService], + multi: false, + }, + ], }; ``` @@ -151,12 +152,12 @@ import { HttpClientModule } from '@angular/common/http'; import { environment } from '../environments/environment'; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideUserApi(environment.basePath), - provideAdminApi(environment.basePath), - ], + providers: [ + // ... + provideHttpClient(), + provideUserApi(environment.basePath), + provideAdminApi(environment.basePath), + ], }; ``` @@ -176,8 +177,8 @@ Example value for use in your Configuration-Provider: ```typescript new Configuration({ - encodeParam: (param: Param) => myFancyParamEncoder(param), -}) + encodeParam: (param: Param) => myFancyParamEncoder(param), +}); ``` [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations diff --git a/webapp/src/app/api/api.base.service.ts b/webapp/src/app/api/api.base.service.ts index dcf56358..d9ec8f2e 100644 --- a/webapp/src/app/api/api.base.service.ts +++ b/webapp/src/app/api/api.base.service.ts @@ -1,83 +1,109 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { + HttpHeaders, + HttpParams, + HttpParameterCodec, +} from '@angular/common/http'; import { CustomHttpParameterCodec } from './encoder'; import { Configuration } from './configuration'; export class BaseService { - protected basePath = 'http://localhost:8000'; - public defaultHeaders = new HttpHeaders(); - public configuration: Configuration; - public encoder: HttpParameterCodec; + protected basePath = 'http://localhost:8000'; + public defaultHeaders = new HttpHeaders(); + public configuration: Configuration; + public encoder: HttpParameterCodec; - constructor(basePath?: string|string[], configuration?: Configuration) { - this.configuration = configuration || new Configuration(); - if (typeof this.configuration.basePath !== 'string') { - const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; - if (firstBasePath != undefined) { - basePath = firstBasePath; - } + constructor(basePath?: string | string[], configuration?: Configuration) { + this.configuration = configuration || new Configuration(); + if (typeof this.configuration.basePath !== 'string') { + const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; + if (firstBasePath != undefined) { + basePath = firstBasePath; + } - if (typeof basePath !== 'string') { - basePath = this.basePath; - } - this.configuration.basePath = basePath; - } - this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } - protected canConsumeForm(consumes: string[]): boolean { - return consumes.indexOf('multipart/form-data') !== -1; - } + protected canConsumeForm(consumes: string[]): boolean { + return consumes.indexOf('multipart/form-data') !== -1; + } - protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams { - // If the value is an object (but not a Date), recursively add its keys. - if (typeof value === 'object' && !(value instanceof Date)) { - return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep); - } - return this.addToHttpParamsRecursive(httpParams, value, key); + protected addToHttpParams( + httpParams: HttpParams, + value: any, + key?: string, + isDeep: boolean = false, + ): HttpParams { + // If the value is an object (but not a Date), recursively add its keys. + if (typeof value === 'object' && !(value instanceof Date)) { + return this.addToHttpParamsRecursive( + httpParams, + value, + isDeep ? key : undefined, + isDeep, + ); } + return this.addToHttpParamsRecursive(httpParams, value, key); + } - protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams { - if (value === null || value === undefined) { - return httpParams; - } - if (typeof value === 'object') { - // If JSON format is preferred, key must be provided. - if (key != null) { - return isDeep - ? Object.keys(value as Record).reduce( - (hp, k) => hp.append(`${key}[${k}]`, value[k]), - httpParams, - ) - : httpParams.append(key, JSON.stringify(value)); - } - // Otherwise, if it's an array, add each element. - if (Array.isArray(value)) { - value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); - } else if (value instanceof Date) { - if (key != null) { - httpParams = httpParams.append(key, value.toISOString()); - } else { - throw Error("key may not be null if value is Date"); - } - } else { - Object.keys(value).forEach(k => { - const paramKey = key ? `${key}.${k}` : k; - httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey); - }); - } - return httpParams; - } else if (key != null) { - return httpParams.append(key, value); - } - throw Error("key may not be null if value is not object or array"); + protected addToHttpParamsRecursive( + httpParams: HttpParams, + value?: any, + key?: string, + isDeep: boolean = false, + ): HttpParams { + if (value === null || value === undefined) { + return httpParams; } + if (typeof value === 'object') { + // If JSON format is preferred, key must be provided. + if (key != null) { + return isDeep + ? Object.keys(value as Record).reduce( + (hp, k) => hp.append(`${key}[${k}]`, value[k]), + httpParams, + ) + : httpParams.append(key, JSON.stringify(value)); + } + // Otherwise, if it's an array, add each element. + if (Array.isArray(value)) { + value.forEach( + (elem) => + (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)), + ); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, value.toISOString()); + } else { + throw Error('key may not be null if value is Date'); + } + } else { + Object.keys(value).forEach((k) => { + const paramKey = key ? `${key}.${k}` : k; + httpParams = this.addToHttpParamsRecursive( + httpParams, + value[k], + paramKey, + ); + }); + } + return httpParams; + } else if (key != null) { + return httpParams.append(key, value); + } + throw Error('key may not be null if value is not object or array'); + } } diff --git a/webapp/src/app/api/api.module.ts b/webapp/src/app/api/api.module.ts index 58d341fb..e29250f2 100644 --- a/webapp/src/app/api/api.module.ts +++ b/webapp/src/app/api/api.module.ts @@ -1,30 +1,42 @@ -import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; +import { + NgModule, + ModuleWithProviders, + SkipSelf, + Optional, +} from '@angular/core'; import { Configuration } from './configuration'; import { HttpClient } from '@angular/common/http'; - @NgModule({ - imports: [], + imports: [], declarations: [], - exports: [], - providers: [] + exports: [], + providers: [], }) export class ApiModule { - public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { - return { - ngModule: ApiModule, - providers: [ { provide: Configuration, useFactory: configurationFactory } ] - }; - } + public static forRoot( + configurationFactory: () => Configuration, + ): ModuleWithProviders { + return { + ngModule: ApiModule, + providers: [{ provide: Configuration, useFactory: configurationFactory }], + }; + } - constructor( @Optional() @SkipSelf() parentModule: ApiModule, - @Optional() http: HttpClient) { - if (parentModule) { - throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); - } - if (!http) { - throw new Error('You need to import the HttpClientModule in your AppModule! \n' + - 'See also https://github.com/angular/angular/issues/20575'); - } + constructor( + @Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient, + ) { + if (parentModule) { + throw new Error( + 'ApiModule is already loaded. Import in your base AppModule only.', + ); } + if (!http) { + throw new Error( + 'You need to import the HttpClientModule in your AppModule! \n' + + 'See also https://github.com/angular/angular/issues/20575', + ); + } + } } diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index 5406f421..7f47efcd 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -1,3 +1,5 @@ +export * from './companyConnections.service'; +import { CompanyConnectionsService } from './companyConnections.service'; export * from './funding.service'; import { FundingService } from './funding.service'; export * from './iNSEAccountService.service'; @@ -8,6 +10,10 @@ export * from './institutions.service'; import { InstitutionsService } from './institutions.service'; export * from './items.service'; import { ItemsService } from './items.service'; +export * from './news.service'; +import { NewsService } from './news.service'; +export * from './patents.service'; +import { PatentsService } from './patents.service'; export * from './personNetwork.service'; import { PersonNetworkService } from './personNetwork.service'; export * from './persons.service'; @@ -18,4 +24,18 @@ export * from './topics.service'; import { TopicsService } from './topics.service'; export * from './works.service'; import { WorksService } from './works.service'; -export const APIS = [FundingService, INSEAccountServiceService, INSEServiceService, InstitutionsService, ItemsService, PersonNetworkService, PersonsService, ProjectsService, TopicsService, WorksService]; +export const APIS = [ + CompanyConnectionsService, + FundingService, + INSEAccountServiceService, + INSEServiceService, + InstitutionsService, + ItemsService, + NewsService, + PatentsService, + PersonNetworkService, + PersonsService, + ProjectsService, + TopicsService, + WorksService, +]; diff --git a/webapp/src/app/api/api/companyConnections.service.ts b/webapp/src/app/api/api/companyConnections.service.ts new file mode 100644 index 00000000..6ad850ea --- /dev/null +++ b/webapp/src/app/api/api/companyConnections.service.ts @@ -0,0 +1,148 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CompanyConnectionsResponse } from '../model/companyConnectionsResponse'; +// @ts-ignore +import { HTTPValidationError } from '../model/hTTPValidationError'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +@Injectable({ + providedIn: 'root', +}) +export class CompanyConnectionsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Get possible company connections by OpenAlex author ID. + * @endpoint get /api/inse-service/authors/{author_id}/company-connections + * @param authorId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCompanyConnectionsByAuthor( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getCompanyConnectionsByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCompanyConnectionsByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCompanyConnectionsByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } +} diff --git a/webapp/src/app/api/api/funding.service.ts b/webapp/src/app/api/api/funding.service.ts index 46772768..f1f0a1a7 100644 --- a/webapp/src/app/api/api/funding.service.ts +++ b/webapp/src/app/api/api/funding.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { FundersByAuthorResponse } from '../model/fundersByAuthorResponse'; @@ -24,138 +30,246 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { PublicationsByAuthorResponse } from '../model/publicationsByAuthorResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class FundingService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Get funding organizations by author. + * @endpoint get /api/inse-service/authors/{author_id}/funders + * @param authorId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getFundersByAuthor( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getFundersByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getFundersByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getFundersByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getFundersByAuthor.', + ); } - /** - * Get funding organizations by author. - * @endpoint get /api/inse-service/authors/{author_id}/funders - * @param authorId - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getFundersByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getFundersByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getFundersByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getFundersByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getFundersByAuthor.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/funders`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Get funded publications by author. - * @endpoint get /api/inse-service/authors/{author_id}/publications - * @param authorId - * @param page - * @param pageSize - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getPublicationsByAuthor.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'page_size'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/publications`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } + let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/funders`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get funded publications by author. + * @endpoint get /api/inse-service/authors/{author_id}/publications + * @param authorId + * @param page + * @param pageSize + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPublicationsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getPublicationsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPublicationsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPublicationsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getPublicationsByAuthor.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'page_size', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publications`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/iNSEAccountService.service.ts b/webapp/src/app/api/api/iNSEAccountService.service.ts index 90181dbd..4874a0a8 100644 --- a/webapp/src/app/api/api/iNSEAccountService.service.ts +++ b/webapp/src/app/api/api/iNSEAccountService.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { AccessGrant } from '../model/accessGrant'; @@ -28,255 +34,424 @@ import { IdentityGrant } from '../model/identityGrant'; import { User } from '../model/user'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class INSEAccountServiceService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Create User + * @endpoint post /inse-account/create + * @param bodyCreateUser + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public createUser( + bodyCreateUser: BodyCreateUser, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public createUser( + bodyCreateUser: BodyCreateUser, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public createUser( + bodyCreateUser: BodyCreateUser, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public createUser( + bodyCreateUser: BodyCreateUser, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (bodyCreateUser === null || bodyCreateUser === undefined) { + throw new Error( + 'Required parameter bodyCreateUser was null or undefined when calling createUser.', + ); } - /** - * Create User - * @endpoint post /inse-account/create - * @param bodyCreateUser - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public createUser(bodyCreateUser: BodyCreateUser, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createUser(bodyCreateUser: BodyCreateUser, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createUser(bodyCreateUser: BodyCreateUser, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createUser(bodyCreateUser: BodyCreateUser, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (bodyCreateUser === null || bodyCreateUser === undefined) { - throw new Error('Required parameter bodyCreateUser was null or undefined when calling createUser.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/inse-account/create`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: bodyCreateUser, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Get Access Grant - * @endpoint post /inse-account/auth/access - * @param secret - * @param account - * @param organization - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getAccessGrant(secret: string, account: number, organization: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getAccessGrant(secret: string, account: number, organization: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAccessGrant(secret: string, account: number, organization: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAccessGrant(secret: string, account: number, organization: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (secret === null || secret === undefined) { - throw new Error('Required parameter secret was null or undefined when calling getAccessGrant.'); - } - if (account === null || account === undefined) { - throw new Error('Required parameter account was null or undefined when calling getAccessGrant.'); - } - if (organization === null || organization === undefined) { - throw new Error('Required parameter organization was null or undefined when calling getAccessGrant.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarHeaders = this.defaultHeaders; + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/x-www-form-urlencoded' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let localVarFormParams: { append(param: string, value: any): any; }; - let localVarUseForm = false; - let localVarConvertFormParamsToString = false; - if (localVarUseForm) { - localVarFormParams = new FormData(); - } else { - localVarFormParams = new HttpParams({encoder: this.encoder}); - } - - if (secret !== undefined) { - localVarFormParams = localVarFormParams.append('secret', secret) as any || localVarFormParams; - } - if (account !== undefined) { - localVarFormParams = localVarFormParams.append('account', account) as any || localVarFormParams; - } - if (organization !== undefined) { - localVarFormParams = localVarFormParams.append('organization', organization) as any || localVarFormParams; - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/inse-account/auth/access`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); } - /** - * Get Identity Grant - * @endpoint post /inse-account/auth/id - * @param username - * @param password - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getIdentityGrant(username: string, password: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getIdentityGrant(username: string, password: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getIdentityGrant(username: string, password: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getIdentityGrant(username: string, password: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (username === null || username === undefined) { - throw new Error('Required parameter username was null or undefined when calling getIdentityGrant.'); - } - if (password === null || password === undefined) { - throw new Error('Required parameter password was null or undefined when calling getIdentityGrant.'); - } - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/x-www-form-urlencoded' - ]; - - const canConsumeForm = this.canConsumeForm(consumes); - - let localVarFormParams: { append(param: string, value: any): any; }; - let localVarUseForm = false; - let localVarConvertFormParamsToString = false; - if (localVarUseForm) { - localVarFormParams = new FormData(); - } else { - localVarFormParams = new HttpParams({encoder: this.encoder}); - } - - if (username !== undefined) { - localVarFormParams = localVarFormParams.append('username', username) as any || localVarFormParams; - } - if (password !== undefined) { - localVarFormParams = localVarFormParams.append('password', password) as any || localVarFormParams; - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/inse-account/auth/id`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } + let localVarPath = `/inse-account/create`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + body: bodyCreateUser, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } + + /** + * Get Access Grant + * @endpoint post /inse-account/auth/access + * @param secret + * @param account + * @param organization + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAccessGrant( + secret: string, + account: number, + organization: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getAccessGrant( + secret: string, + account: number, + organization: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAccessGrant( + secret: string, + account: number, + organization: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAccessGrant( + secret: string, + account: number, + organization: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (secret === null || secret === undefined) { + throw new Error( + 'Required parameter secret was null or undefined when calling getAccessGrant.', + ); + } + if (account === null || account === undefined) { + throw new Error( + 'Required parameter account was null or undefined when calling getAccessGrant.', + ); + } + if (organization === null || organization === undefined) { + throw new Error( + 'Required parameter organization was null or undefined when calling getAccessGrant.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/x-www-form-urlencoded']; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({ encoder: this.encoder }); + } + + if (secret !== undefined) { + localVarFormParams = + (localVarFormParams.append('secret', secret) as any) || + localVarFormParams; + } + if (account !== undefined) { + localVarFormParams = + (localVarFormParams.append('account', account) as any) || + localVarFormParams; + } + if (organization !== undefined) { + localVarFormParams = + (localVarFormParams.append('organization', organization) as any) || + localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/inse-account/auth/access`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString + ? localVarFormParams.toString() + : localVarFormParams, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get Identity Grant + * @endpoint post /inse-account/auth/id + * @param username + * @param password + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getIdentityGrant( + username: string, + password: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getIdentityGrant( + username: string, + password: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getIdentityGrant( + username: string, + password: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getIdentityGrant( + username: string, + password: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (username === null || username === undefined) { + throw new Error( + 'Required parameter username was null or undefined when calling getIdentityGrant.', + ); + } + if (password === null || password === undefined) { + throw new Error( + 'Required parameter password was null or undefined when calling getIdentityGrant.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/x-www-form-urlencoded']; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({ encoder: this.encoder }); + } + + if (username !== undefined) { + localVarFormParams = + (localVarFormParams.append('username', username) as any) || + localVarFormParams; + } + if (password !== undefined) { + localVarFormParams = + (localVarFormParams.append('password', password) as any) || + localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/inse-account/auth/id`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString + ? localVarFormParams.toString() + : localVarFormParams, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/iNSEService.service.ts b/webapp/src/app/api/api/iNSEService.service.ts index cf95d68e..8788adee 100644 --- a/webapp/src/app/api/api/iNSEService.service.ts +++ b/webapp/src/app/api/api/iNSEService.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; @@ -26,513 +32,922 @@ import { ItemCreate } from '../model/itemCreate'; import { ItemPage } from '../model/itemPage'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class INSEServiceService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Adds a new item. + * @endpoint post /api/inse-service/items + * @param itemCreate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addItem( + itemCreate: ItemCreate, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public addItem( + itemCreate: ItemCreate, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public addItem( + itemCreate: ItemCreate, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public addItem( + itemCreate: ItemCreate, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (itemCreate === null || itemCreate === undefined) { + throw new Error( + 'Required parameter itemCreate was null or undefined when calling addItem.', + ); } - /** - * Adds a new item. - * @endpoint post /api/inse-service/items - * @param itemCreate - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public addItem(itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public addItem(itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public addItem(itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public addItem(itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (itemCreate === null || itemCreate === undefined) { - throw new Error('Required parameter itemCreate was null or undefined when calling addItem.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarTransferCache: boolean = options?.transferCache ?? true; + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } + let localVarPath = `/api/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } + /** + * Builds the topic hierarchy cache. + * @endpoint get /api/inse-service/topics/cache + * @param pageSize Page size for each search page. + * @param saveJson Persist cache JSON to data folder. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'page_size', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + saveJson, + 'save_json', + ); - let localVarPath = `/api/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/topics/cache`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Counts topic hierarchy occurrences from cache. + * @endpoint get /api/inse-service/topics/count + * @param topic Topic names (repeat parameter). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public countTopicHierarchy( + topic: Array, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public countTopicHierarchy( + topic: Array, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (topic === null || topic === undefined) { + throw new Error( + 'Required parameter topic was null or undefined when calling countTopicHierarchy.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic', ); + }); } - /** - * Builds the topic hierarchy cache. - * @endpoint get /api/inse-service/topics/cache - * @param pageSize Page size for each search page. - * @param saveJson Persist cache JSON to data folder. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarHeaders = this.defaultHeaders; - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'page_size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - saveJson, 'save_json'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/cache`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Counts topic hierarchy occurrences from cache. - * @endpoint get /api/inse-service/topics/count - * @param topic Topic names (repeat parameter). - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public countTopicHierarchy(topic: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public countTopicHierarchy(topic: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public countTopicHierarchy(topic: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public countTopicHierarchy(topic: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (topic === null || topic === undefined) { - throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic'); - }) - } + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/count`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Deletes the item with the id. - * @endpoint delete /api/inse-service/items/{id} - * @param id The item id. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public deleteItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public deleteItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteItem.'); - } + let localVarPath = `/api/inse-service/topics/count`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('delete', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + /** + * Deletes the item with the id. + * @endpoint delete /api/inse-service/items/{id} + * @param id The item id. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteItem( + id: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public deleteItem( + id: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public deleteItem( + id: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public deleteItem( + id: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling deleteItem.', + ); } - /** - * Returns the item with the id. - * @endpoint get /api/inse-service/items/{id} - * @param id The item id. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getItem.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Returns a page of items. - * @endpoint get /api/inse-service/items - * @param pageOffset The page offset. - * @param pageSize The page size. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getItems(pageOffset?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getItems(pageOffset?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItems(pageOffset?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItems(pageOffset?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'pageOffset'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'pageSize'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). - * @endpoint get /api/inse-service/topics/hierarchy - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'delete', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/hierarchy`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + /** + * Returns the item with the id. + * @endpoint get /api/inse-service/items/{id} + * @param id The item id. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getItem( + id: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getItem( + id: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItem( + id: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItem( + id: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getItem.', + ); } - /** - * Updates the item with the id. - * @endpoint put /api/inse-service/items/{id} - * @param id The item id. - * @param itemCreate - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateItem(id: number, itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateItem.'); - } - if (itemCreate === null || itemCreate === undefined) { - throw new Error('Required parameter itemCreate was null or undefined when calling updateItem.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } + + /** + * Returns a page of items. + * @endpoint get /api/inse-service/items + * @param pageOffset The page offset. + * @param pageSize The page size. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItems( + pageOffset?: number, + pageSize?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'pageOffset', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). + * @endpoint get /api/inse-service/topics/hierarchy + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTopicHierarchy( + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getTopicHierarchy( + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/topics/hierarchy`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Updates the item with the id. + * @endpoint put /api/inse-service/items/{id} + * @param id The item id. + * @param itemCreate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling updateItem.', + ); + } + if (itemCreate === null || itemCreate === undefined) { + throw new Error( + 'Required parameter itemCreate was null or undefined when calling updateItem.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } } diff --git a/webapp/src/app/api/api/institutions.service.ts b/webapp/src/app/api/api/institutions.service.ts index 89bf1fd5..8b27a539 100644 --- a/webapp/src/app/api/api/institutions.service.ts +++ b/webapp/src/app/api/api/institutions.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { AutocompleteResponse } from '../model/autocompleteResponse'; @@ -23,228 +29,734 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore import { Institution } from '../model/institution'; // @ts-ignore +import { InstitutionPage } from '../model/institutionPage'; +// @ts-ignore import { InstitutionsListResponse } from '../model/institutionsListResponse'; +// @ts-ignore +import { RankingResponse } from '../model/rankingResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class InstitutionsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Returns institution options for autocomplete inputs. + * @endpoint get /api/inse-service/institutions/autocomplete + * @param query Institution search text, for example \'Duisburg Essen\'. + * @param countryCode Optional ISO country code filter. + * @param type Optional institution type filter. + * @param limit Maximum number of autocomplete options. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public autocompleteInstitutions( + query: string, + countryCode?: string, + type?: string, + limit?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public autocompleteInstitutions( + query: string, + countryCode?: string, + type?: string, + limit?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteInstitutions( + query: string, + countryCode?: string, + type?: string, + limit?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteInstitutions( + query: string, + countryCode?: string, + type?: string, + limit?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling autocompleteInstitutions.', + ); } - /** - * Returns institution options for autocomplete inputs. - * @endpoint get /api/inse-service/institutions/autocomplete - * @param query Institution search text, for example \'Duisburg Essen\'. - * @param countryCode Optional ISO country code filter. - * @param type Optional institution type filter. - * @param limit Maximum number of autocomplete options. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (query === null || query === undefined) { - throw new Error('Required parameter query was null or undefined when calling autocompleteInstitutions.'); - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + countryCode, + 'countryCode', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + type, + 'type', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - countryCode, 'countryCode'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - type, 'type'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/institutions/autocomplete`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Returns a single institution by ID. - * Returns a single institution by its OpenAlex ID. - * @endpoint get /api/inse-service/institutions/{id} - * @param id - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getInstitutionById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getInstitutionById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getInstitutionById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getInstitutionById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getInstitutionById.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarHeaders = this.defaultHeaders; + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Returns a list of OpenAlex institutions. - * @endpoint get /api/inse-service/institutions - * @param search Full-text search, for example \'Duisburg Essen\'. - * @param filter OpenAlex filter, for example \'country_code:DE,type:education\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'country_code\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarPath = `/api/inse-service/institutions/autocomplete`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - search, 'search'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filter, 'filter'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sort, 'sort'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - groupBy, 'group_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - perPage, 'per_page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - cursor, 'cursor'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sample, 'sample'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - select, 'select'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/institutions`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + /** + * Returns a single institution by ID. + * Returns a single institution by its OpenAlex ID. + * @endpoint get /api/inse-service/institutions/{id} + * @param id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getInstitutionById( + id: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getInstitutionById( + id: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionById( + id: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionById( + id: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getInstitutionById.', + ); } + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns data for the University Ranking Dashboard. + * @endpoint get /api/inse-service/university-rankings + * @param topic Research topic (e.g., \'Artificial Intelligence\') + * @param metric Metric to rank by + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getRankingsApiInseServiceUniversityRankingsGet( + topic: + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology', + metric?: 'publications' | 'citations', + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getRankingsApiInseServiceUniversityRankingsGet( + topic: + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology', + metric?: 'publications' | 'citations', + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet( + topic: + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology', + metric?: 'publications' | 'citations', + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet( + topic: + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology', + metric?: 'publications' | 'citations', + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (topic === null || topic === undefined) { + throw new Error( + 'Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + topic, + 'topic', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + metric, + 'metric', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/university-rankings`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns a list of OpenAlex institutions. + * @endpoint get /api/inse-service/institutions + * @param search Full-text search, for example \'Duisburg Essen\'. + * @param filter OpenAlex filter, for example \'country_code:DE,type:education\'. + * @param sort Sort field, for example \'works_count:desc\'. + * @param groupBy OpenAlex group_by field, for example \'country_code\'. + * @param perPage Results per page. + * @param page Page number. Use cursor for deep pagination. + * @param cursor Cursor pagination token. Use \'*\' to start. + * @param sample Random sample size. Cannot be combined with sort or page. + * @param select Comma-separated fields to return. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public listInstitutions( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public listInstitutions( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listInstitutions( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listInstitutions( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + search, + 'search', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filter, + 'filter', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sort, + 'sort', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + groupBy, + 'group_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + perPage, + 'per_page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + cursor, + 'cursor', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sample, + 'sample', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + select, + 'select', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/institutions`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for institutions by name. + * Searches for institutions by name with pagination. + * @endpoint get /api/inse-service/institutions/search + * @param name Institution name to search for, for example \'University of Duisburg Essen\'. + * @param page Page number (0-indexed). + * @param size Number of institutions per page. + * @param sortBy Field to sort by, either \'relevance\', \'name\', \'works_count\', or \'citations_count\'. + * @param sortingDirection Sorting direction, either \'asc\' or \'desc\'. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchInstitutionsByName( + name?: string, + page?: number, + size?: number, + sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', + sortingDirection?: 'asc' | 'desc', + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchInstitutionsByName( + name?: string, + page?: number, + size?: number, + sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', + sortingDirection?: 'asc' | 'desc', + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchInstitutionsByName( + name?: string, + page?: number, + size?: number, + sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', + sortingDirection?: 'asc' | 'desc', + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchInstitutionsByName( + name?: string, + page?: number, + size?: number, + sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', + sortingDirection?: 'asc' | 'desc', + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + name, + 'name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortBy, + 'sort_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortingDirection, + 'sorting_direction', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/institutions/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/items.service.ts b/webapp/src/app/api/api/items.service.ts index 69cd8e54..bc3c2293 100644 --- a/webapp/src/app/api/api/items.service.ts +++ b/webapp/src/app/api/api/items.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; @@ -26,338 +32,603 @@ import { ItemCreate } from '../model/itemCreate'; import { ItemPage } from '../model/itemPage'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class ItemsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Adds a new item. + * @endpoint post /api/inse-service/items + * @param itemCreate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public addItem( + itemCreate: ItemCreate, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public addItem( + itemCreate: ItemCreate, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public addItem( + itemCreate: ItemCreate, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public addItem( + itemCreate: ItemCreate, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (itemCreate === null || itemCreate === undefined) { + throw new Error( + 'Required parameter itemCreate was null or undefined when calling addItem.', + ); } - /** - * Adds a new item. - * @endpoint post /api/inse-service/items - * @param itemCreate - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public addItem(itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public addItem(itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public addItem(itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public addItem(itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (itemCreate === null || itemCreate === undefined) { - throw new Error('Required parameter itemCreate was null or undefined when calling addItem.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Deletes the item with the id. - * @endpoint delete /api/inse-service/items/{id} - * @param id The item id. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public deleteItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public deleteItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteItem.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarHeaders = this.defaultHeaders; + const localVarTransferCache: boolean = options?.transferCache ?? true; - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('delete', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); } - /** - * Returns the item with the id. - * @endpoint get /api/inse-service/items/{id} - * @param id The item id. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getItem.'); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Returns a page of items. - * @endpoint get /api/inse-service/items - * @param pageOffset The page offset. - * @param pageSize The page size. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getItems(pageOffset?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getItems(pageOffset?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItems(pageOffset?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getItems(pageOffset?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarPath = `/api/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'pageOffset'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'pageSize'); - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + /** + * Deletes the item with the id. + * @endpoint delete /api/inse-service/items/{id} + * @param id The item id. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public deleteItem( + id: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public deleteItem( + id: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public deleteItem( + id: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public deleteItem( + id: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling deleteItem.', + ); } - /** - * Updates the item with the id. - * @endpoint put /api/inse-service/items/{id} - * @param id The item id. - * @param itemCreate - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateItem(id: number, itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateItem(id: number, itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateItem.'); - } - if (itemCreate === null || itemCreate === undefined) { - throw new Error('Required parameter itemCreate was null or undefined when calling updateItem.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'delete', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns the item with the id. + * @endpoint get /api/inse-service/items/{id} + * @param id The item id. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getItem( + id: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getItem( + id: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItem( + id: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItem( + id: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getItem.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } + + /** + * Returns a page of items. + * @endpoint get /api/inse-service/items + * @param pageOffset The page offset. + * @param pageSize The page size. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItems( + pageOffset?: number, + pageSize?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getItems( + pageOffset?: number, + pageSize?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'pageOffset', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Updates the item with the id. + * @endpoint put /api/inse-service/items/{id} + * @param id The item id. + * @param itemCreate + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public updateItem( + id: number, + itemCreate: ItemCreate, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling updateItem.', + ); + } + if (itemCreate === null || itemCreate === undefined) { + throw new Error( + 'Required parameter itemCreate was null or undefined when calling updateItem.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } } diff --git a/webapp/src/app/api/api/news.service.ts b/webapp/src/app/api/api/news.service.ts new file mode 100644 index 00000000..de08c0d1 --- /dev/null +++ b/webapp/src/app/api/api/news.service.ts @@ -0,0 +1,1060 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { HTTPValidationError } from '../model/hTTPValidationError'; +// @ts-ignore +import { NewsArticleDetail } from '../model/newsArticleDetail'; +// @ts-ignore +import { NewsPage } from '../model/newsPage'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +@Injectable({ + providedIn: 'root', +}) +export class NewsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Returns news articles in which the given person is mentioned. + * @endpoint get /api/news/by-author + * @param authorId OpenAlex author id, e.g. A5034365278. + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param sortOrder Sort order: \'desc\' (newest first) or \'asc\' (oldest first). + * @param query Optional search term, matched against title/author. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getNewsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getNewsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsByAuthor( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getNewsByAuthor.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorId, + 'authorId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/by-author`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns news articles in which the given person is mentioned. + * @endpoint get /api/news/by-author + * @param authorId OpenAlex author id, e.g. A5034365278. + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param sortOrder Sort order: \'desc\' (newest first) or \'asc\' (oldest first). + * @param query Optional search term, matched against title/author. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getNewsByAuthor_1( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getNewsByAuthor_1( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsByAuthor_1( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsByAuthor_1( + authorId: string, + page?: number, + pageSize?: number, + sortOrder?: string, + query?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getNewsByAuthor_1.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorId, + 'authorId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/by-author`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns a single news article including its full content. + * @endpoint get /api/news/{news_id} + * @param newsId The unique id of the news article (Elasticsearch _id). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getNewsById( + newsId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getNewsById( + newsId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsById( + newsId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsById( + newsId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (newsId === null || newsId === undefined) { + throw new Error( + 'Required parameter newsId was null or undefined when calling getNewsById.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/${this.configuration.encodeParam({ name: 'newsId', value: newsId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns a single news article including its full content. + * @endpoint get /api/news/{news_id} + * @param newsId The unique id of the news article (Elasticsearch _id). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getNewsById_2( + newsId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getNewsById_2( + newsId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsById_2( + newsId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getNewsById_2( + newsId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (newsId === null || newsId === undefined) { + throw new Error( + 'Required parameter newsId was null or undefined when calling getNewsById_2.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/${this.configuration.encodeParam({ name: 'newsId', value: newsId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns a page of news articles, newest first. + * @endpoint get /api/news + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param sortOrder Sort order: \'desc\' (newest first) or \'asc\' (oldest first). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public listNews( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public listNews( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listNews( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listNews( + page?: number, + pageSize?: number, + sortOrder?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns a page of news articles, newest first. + * @endpoint get /api/news + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param sortOrder Sort order: \'desc\' (newest first) or \'asc\' (oldest first). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public listNews_3( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public listNews_3( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listNews_3( + page?: number, + pageSize?: number, + sortOrder?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listNews_3( + page?: number, + pageSize?: number, + sortOrder?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches news articles by full text (full_content). + * @endpoint get /api/news/search + * @param query Search term, matched against the full text (full_content). + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchNews( + query: string, + page?: number, + pageSize?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchNews( + query: string, + page?: number, + pageSize?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchNews( + query: string, + page?: number, + pageSize?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchNews( + query: string, + page?: number, + pageSize?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling searchNews.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches news articles by full text (full_content). + * @endpoint get /api/news/search + * @param query Search term, matched against the full text (full_content). + * @param page Page number (1-based). + * @param pageSize Articles per page. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchNews_4( + query: string, + page?: number, + pageSize?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchNews_4( + query: string, + page?: number, + pageSize?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchNews_4( + query: string, + page?: number, + pageSize?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchNews_4( + query: string, + page?: number, + pageSize?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling searchNews_4.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/news/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } +} diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts new file mode 100644 index 00000000..d8715dc1 --- /dev/null +++ b/webapp/src/app/api/api/patents.service.ts @@ -0,0 +1,148 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { HTTPValidationError } from '../model/hTTPValidationError'; +// @ts-ignore +import { PatentsByAuthorResponse } from '../model/patentsByAuthorResponse'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +@Injectable({ + providedIn: 'root', +}) +export class PatentsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Get patents matched to an author by name. + * @endpoint get /api/inse-service/authors/{author_id}/patents + * @param authorId + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPatentsByAuthor( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getPatentsByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPatentsByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPatentsByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getPatentsByAuthor.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/patents`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } +} diff --git a/webapp/src/app/api/api/personNetwork.service.ts b/webapp/src/app/api/api/personNetwork.service.ts index b1183ff6..5b468938 100644 --- a/webapp/src/app/api/api/personNetwork.service.ts +++ b/webapp/src/app/api/api/personNetwork.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { CollaborationNetwork } from '../model/collaborationNetwork'; @@ -24,86 +30,139 @@ import { FilterProperties } from '../model/filterProperties'; import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class PersonNetworkService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Get a person\'s collaboration network. + * Returns a person\'s collaboration network based on their works and co-authors. + * @endpoint post /api/person/network/{raw_user_id} + * @param rawUserId The raw user ID of the person. + * @param filterProperties + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getCollaborationNetwork( + rawUserId: string, + filterProperties?: FilterProperties, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getCollaborationNetwork( + rawUserId: string, + filterProperties?: FilterProperties, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCollaborationNetwork( + rawUserId: string, + filterProperties?: FilterProperties, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCollaborationNetwork( + rawUserId: string, + filterProperties?: FilterProperties, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (rawUserId === null || rawUserId === undefined) { + throw new Error( + 'Required parameter rawUserId was null or undefined when calling getCollaborationNetwork.', + ); } - /** - * Get a person\'s collaboration network. - * Returns a person\'s collaboration network based on their works and co-authors. - * @endpoint post /api/person/network/{raw_user_id} - * @param rawUserId The raw user ID of the person. - * @param filterProperties - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (rawUserId === null || rawUserId === undefined) { - throw new Error('Required parameter rawUserId was null or undefined when calling getCollaborationNetwork.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - // to determine the Content-Type header - const consumes: string[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); - } - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/person/network/${this.configuration.encodeParam({name: "rawUserId", value: rawUserId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: filterProperties, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/person/network/${this.configuration.encodeParam({ name: 'rawUserId', value: rawUserId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: filterProperties, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/persons.service.ts b/webapp/src/app/api/api/persons.service.ts index b2ec8f84..cef36fc4 100644 --- a/webapp/src/app/api/api/persons.service.ts +++ b/webapp/src/app/api/api/persons.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { AuthorsListResponse } from '../model/authorsListResponse'; @@ -26,875 +32,1739 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { PersonBio } from '../model/personBio'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class PersonsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Generates a bio for a person by author ID. + * @endpoint get /api/inse-service/persons/bio + * @param authorId OpenAlex author ID (e.g., A5093075883) + * @param include Comma-separated list to include tags + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public generatePersonBio( + authorId: string, + include?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public generatePersonBio( + authorId: string, + include?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public generatePersonBio( + authorId: string, + include?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public generatePersonBio( + authorId: string, + include?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling generatePersonBio.', + ); } - /** - * Generates a bio for a person by author ID. - * @endpoint get /api/inse-service/persons/bio - * @param authorId OpenAlex author ID (e.g., A5093075883) - * @param include Comma-separated list to include tags - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public generatePersonBio(authorId: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public generatePersonBio(authorId: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public generatePersonBio(authorId: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public generatePersonBio(authorId: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling generatePersonBio.'); - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorId, + 'author_id', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorId, 'author_id'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarTransferCache: boolean = options?.transferCache ?? true; + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + let localVarPath = `/api/inse-service/persons/bio`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } + /** + * Searches for person by ID. + * @endpoint get /api/inse-service/person/{id} + * @param id OpenAlex author ID + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPersonByID( + id: string, + include?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getPersonByID( + id: string, + include?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPersonByID( + id: string, + include?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPersonByID( + id: string, + include?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getPersonByID.', + ); + } - let localVarPath = `/api/inse-service/persons/bio`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for person by ID. + * @endpoint get /api/inse-service/person/{id} + * @param id OpenAlex author ID + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPersonByID_1( + id: string, + include?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getPersonByID_1( + id: string, + include?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPersonByID_1( + id: string, + include?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPersonByID_1( + id: string, + include?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getPersonByID_1.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for persons by ID or name. + * @endpoint get /api/inse-service/persons/search + * @param authorId OpenAlex author ID (e.g., A5093075883) + * @param query Search query (e.g., Arman AND Arzani) + * @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersons( + authorId?: string, + query?: string, + include?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersons( + authorId?: string, + query?: string, + include?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersons( + authorId?: string, + query?: string, + include?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersons( + authorId?: string, + query?: string, + include?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorId, + 'author_id', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/autocomplete + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsAutocomplete( + authorName: string, + include: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsAutocomplete( + authorName: string, + include: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsAutocomplete( + authorName: string, + include: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsAutocomplete( + authorName: string, + include: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorName === null || authorName === undefined) { + throw new Error( + 'Required parameter authorName was null or undefined when calling searchPersonsAutocomplete.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsAutocomplete.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorName, + 'author_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/autocomplete`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/autocomplete + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsAutocomplete_2( + authorName: string, + include: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsAutocomplete_2( + authorName: string, + include: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsAutocomplete_2( + authorName: string, + include: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsAutocomplete_2( + authorName: string, + include: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorName === null || authorName === undefined) { + throw new Error( + 'Required parameter authorName was null or undefined when calling searchPersonsAutocomplete_2.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsAutocomplete_2.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorName, + 'author_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/autocomplete`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for persons by institution name. + * @endpoint get /api/inse-service/persons/searchByInstitution + * @param institutionName Institution name (e.g., MIT, Oxford University) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsByInstitution( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsByInstitution( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByInstitution( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByInstitution( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (institutionName === null || institutionName === undefined) { + throw new Error( + 'Required parameter institutionName was null or undefined when calling searchPersonsByInstitution.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsByInstitution.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionName, + 'institution_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'page_offset', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/searchByInstitution`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for persons by institution name. + * @endpoint get /api/inse-service/persons/searchByInstitution + * @param institutionName Institution name (e.g., MIT, Oxford University) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsByInstitution_3( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsByInstitution_3( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByInstitution_3( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByInstitution_3( + institutionName: string, + include: string, + limit?: number, + pageOffset?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (institutionName === null || institutionName === undefined) { + throw new Error( + 'Required parameter institutionName was null or undefined when calling searchPersonsByInstitution_3.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsByInstitution_3.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionName, + 'institution_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'page_offset', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/searchByInstitution`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/searchByName + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsByName( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsByName( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByName( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByName( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorName === null || authorName === undefined) { + throw new Error( + 'Required parameter authorName was null or undefined when calling searchPersonsByName.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsByName.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorName, + 'author_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'page_offset', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/searchByName`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/searchByName + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsByName_4( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsByName_4( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByName_4( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsByName_4( + authorName: string, + include: string, + limit?: number, + pageOffset?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorName === null || authorName === undefined) { + throw new Error( + 'Required parameter authorName was null or undefined when calling searchPersonsByName_4.', + ); + } + if (include === null || include === undefined) { + throw new Error( + 'Required parameter include was null or undefined when calling searchPersonsByName_4.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorName, + 'author_name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageOffset, + 'page_offset', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/persons/searchByName`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Searches for persons with advanced filters (Topic & Institution) and pagination. + * @endpoint get /api/inse-service/persons/search-list + * @param query Search query (e.g., Arman AND Arzani) + * @param institutionName Filter by institution name + * @param sortBy Value to sort by + * @param sortOrder asc or desc? + * @param topic Filter by topic display names + * @param page Page number (1-indexed) + * @param pageSize Results per page + * @param include Comma-separated include tags + * @param strict Strict institution search by target year + * @param filterMode Filter mode: \'in\' or \'from\' + * @param filterYear Filter year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsList( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsList( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsList( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsList( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionName, + 'institutionName', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortBy, + 'sortBy', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic', ); + }); + } + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + strict, + 'strict', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filterMode, + 'filterMode', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filterYear, + 'filterYear', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Searches for person by ID. - * @endpoint get /api/inse-service/person/{id} - * @param id OpenAlex author ID - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getPersonByID(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getPersonByID(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPersonByID(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPersonByID(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getPersonByID.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling getPersonByID.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + let localVarPath = `/api/inse-service/persons/search-list`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + /** + * Searches for persons with advanced filters (Topic & Institution) and pagination. + * @endpoint get /api/inse-service/persons/search-list + * @param query Search query (e.g., Arman AND Arzani) + * @param institutionName Filter by institution name + * @param sortBy Value to sort by + * @param sortOrder asc or desc? + * @param topic Filter by topic display names + * @param page Page number (1-indexed) + * @param pageSize Results per page + * @param include Comma-separated include tags + * @param strict Strict institution search by target year + * @param filterMode Filter mode: \'in\' or \'from\' + * @param filterYear Filter year + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchPersonsList_5( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchPersonsList_5( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsList_5( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchPersonsList_5( + query?: string, + institutionName?: string, + sortBy?: string, + sortOrder?: string, + topic?: Array, + page?: number, + pageSize?: number, + include?: string, + strict?: boolean, + filterMode?: string, + filterYear?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionName, + 'institutionName', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortBy, + 'sortBy', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortOrder, + 'sortOrder', + ); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic', ); + }); + } + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'pageSize', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + include, + 'include', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + strict, + 'strict', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filterMode, + 'filterMode', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filterYear, + 'filterYear', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Searches for person by ID. - * @endpoint get /api/inse-service/person/{id} - * @param id OpenAlex author ID - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getPersonByID_1(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getPersonByID_1(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPersonByID_1(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPersonByID_1(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getPersonByID_1.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling getPersonByID_1.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for persons by ID or name. - * @endpoint get /api/inse-service/persons/search - * @param authorId OpenAlex author ID (e.g., A5093075883) - * @param query Search query (e.g., Arman AND Arzani) - * @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersons(authorId?: string, query?: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorId, 'author_id'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/search`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/autocomplete - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsAutocomplete(authorName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsAutocomplete(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsAutocomplete(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsAutocomplete(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorName === null || authorName === undefined) { - throw new Error('Required parameter authorName was null or undefined when calling searchPersonsAutocomplete.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsAutocomplete.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorName, 'author_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/autocomplete`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/autocomplete - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsAutocomplete_2(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorName === null || authorName === undefined) { - throw new Error('Required parameter authorName was null or undefined when calling searchPersonsAutocomplete_2.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsAutocomplete_2.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorName, 'author_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/autocomplete`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for persons by institution name. - * @endpoint get /api/inse-service/persons/searchByInstitution - * @param institutionName Institution name (e.g., MIT, Oxford University) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (institutionName === null || institutionName === undefined) { - throw new Error('Required parameter institutionName was null or undefined when calling searchPersonsByInstitution.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsByInstitution.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionName, 'institution_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'page_offset'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/searchByInstitution`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for persons by institution name. - * @endpoint get /api/inse-service/persons/searchByInstitution - * @param institutionName Institution name (e.g., MIT, Oxford University) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (institutionName === null || institutionName === undefined) { - throw new Error('Required parameter institutionName was null or undefined when calling searchPersonsByInstitution_3.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsByInstitution_3.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionName, 'institution_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'page_offset'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/searchByInstitution`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/searchByName - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorName === null || authorName === undefined) { - throw new Error('Required parameter authorName was null or undefined when calling searchPersonsByName.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsByName.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorName, 'author_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'page_offset'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/searchByName`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/searchByName - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorName === null || authorName === undefined) { - throw new Error('Required parameter authorName was null or undefined when calling searchPersonsByName_4.'); - } - if (include === null || include === undefined) { - throw new Error('Required parameter include was null or undefined when calling searchPersonsByName_4.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorName, 'author_name'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageOffset, 'page_offset'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/searchByName`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for persons with advanced filters (Topic & Institution) and pagination. - * @endpoint get /api/inse-service/persons/search-list - * @param query Search query (e.g., Arman AND Arzani) - * @param institutionName Filter by institution name - * @param sortBy Value to sort by - * @param sortOrder asc or desc? - * @param topic Filter by topic display names - * @param page Page number (1-indexed) - * @param pageSize Results per page - * @param include Comma-separated include tags - * @param strict Strict institution search by target year - * @param filterMode Filter mode: \'in\' or \'from\' - * @param filterYear Filter year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionName, 'institutionName'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortBy, 'sortBy'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortOrder, 'sortOrder'); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic'); - }) - } - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'pageSize'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - strict, 'strict'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filterMode, 'filterMode'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filterYear, 'filterYear'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/search-list`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Searches for persons with advanced filters (Topic & Institution) and pagination. - * @endpoint get /api/inse-service/persons/search-list - * @param query Search query (e.g., Arman AND Arzani) - * @param institutionName Filter by institution name - * @param sortBy Value to sort by - * @param sortOrder asc or desc? - * @param topic Filter by topic display names - * @param page Page number (1-indexed) - * @param pageSize Results per page - * @param include Comma-separated include tags - * @param strict Strict institution search by target year - * @param filterMode Filter mode: \'in\' or \'from\' - * @param filterYear Filter year - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionName, 'institutionName'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortBy, 'sortBy'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortOrder, 'sortOrder'); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic'); - }) - } - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'pageSize'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - include, 'include'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - strict, 'strict'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filterMode, 'filterMode'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filterYear, 'filterYear'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/persons/search-list`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } + let localVarPath = `/api/inse-service/persons/search-list`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index ef64863e..35cdba8a 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,264 +9,1147 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; +// @ts-ignore +import { BundProjectDetails } from '../model/bundProjectDetails'; // @ts-ignore import { BundProjectPage } from '../model/bundProjectPage'; // @ts-ignore +import { CordisEuProjectPage } from '../model/cordisEuProjectPage'; +// @ts-ignore +import { DfgProjectDetails } from '../model/dfgProjectDetails'; +// @ts-ignore import { DfgProjectPage } from '../model/dfgProjectPage'; // @ts-ignore -import { EuProjectPage } from '../model/euProjectPage'; +import { EuOrganizationProjectSummaryPage } from '../model/euOrganizationProjectSummaryPage'; +// @ts-ignore +import { FundingProjectPage } from '../model/fundingProjectPage'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; +// @ts-ignore +import { InstitutionFunderSummary } from '../model/institutionFunderSummary'; +// @ts-ignore +import { ProjectType } from '../model/projectType'; +// @ts-ignore +import { ProjectsFilteringProperties } from '../model/projectsFilteringProperties'; +// @ts-ignore +import { ProjectsSortBy } from '../model/projectsSortBy'; +// @ts-ignore +import { SortDirection } from '../model/sortDirection'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class ProjectsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Get DFG projects. + * Returns a page of DFG projects based on the provided pagination parameters and optional institution filter. + * @endpoint get /api/projects/person/dfg/search + * @param authorId The author ID to filter by. + * @param topic The topic to filter by. + * @param page The page number. + * @param size The page size. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getDfgProjects( + authorId: string, + topic?: string, + page?: number, + size?: number, + sortBy?: string, + sortDirection?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getDfgProjects( + authorId: string, + topic?: string, + page?: number, + size?: number, + sortBy?: string, + sortDirection?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getDfgProjects( + authorId: string, + topic?: string, + page?: number, + size?: number, + sortBy?: string, + sortDirection?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getDfgProjects( + authorId: string, + topic?: string, + page?: number, + size?: number, + sortBy?: string, + sortDirection?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getDfgProjects.', + ); } - /** - * Get bund projects. - * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. - * @endpoint get /api/projects/institution/bund/search - * @param institutionId The institution ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (institutionId === null || institutionId === undefined) { - throw new Error('Required parameter institutionId was null or undefined when calling getBundProjects.'); - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + authorId, + 'author_id', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + topic, + 'topic', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortBy, + 'sort_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortDirection, + 'sort_direction', + ); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionId, 'institution_id'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - topic, 'topic'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - size, 'size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortBy, 'sort_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortDirection, 'sort_direction'); + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarTransferCache: boolean = options?.transferCache ?? true; + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + let localVarPath = `/api/projects/person/dfg/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } + /** + * Get EU projects for an author. + * Returns a list of EU projects associated with the specified author ID. + * @endpoint get /api/projects/author/{raw_oa_author_id}/eu + * @param rawOaAuthorId The author ID to filter by. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getEuProjectsForAuthor( + rawOaAuthorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getEuProjectsForAuthor( + rawOaAuthorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getEuProjectsForAuthor( + rawOaAuthorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getEuProjectsForAuthor( + rawOaAuthorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (rawOaAuthorId === null || rawOaAuthorId === undefined) { + throw new Error( + 'Required parameter rawOaAuthorId was null or undefined when calling getEuProjectsForAuthor.', + ); + } - let localVarPath = `/api/projects/institution/bund/search`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/author/${this.configuration.encodeParam({ name: 'rawOaAuthorId', value: rawOaAuthorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/eu`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get funding over time for bund projects. + * Returns the funding over time for bund projects associated with the specified institution. + * @endpoint get /api/projects/institution/bund/funding-over-time + * @param rawOaInstitutionId The institution ID to filter by. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getInstitutionBundProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getInstitutionBundProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionBundProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionBundProjectsFundingOverTime( + rawOaInstitutionId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (rawOaInstitutionId === null || rawOaInstitutionId === undefined) { + throw new Error( + 'Required parameter rawOaInstitutionId was null or undefined when calling getInstitutionBundProjectsFundingOverTime.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + rawOaInstitutionId, + 'raw_oa_institution_id', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/institution/bund/funding-over-time`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get funding over time for EU projects. + * Returns the funding over time for EU projects associated with the specified institution. + * @endpoint get /api/projects/institution/eu/funding-over-time + * @param rawOaInstitutionId The institution ID to filter by. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getInstitutionCordisEuProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getInstitutionCordisEuProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionCordisEuProjectsFundingOverTime( + rawOaInstitutionId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getInstitutionCordisEuProjectsFundingOverTime( + rawOaInstitutionId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (rawOaInstitutionId === null || rawOaInstitutionId === undefined) { + throw new Error( + 'Required parameter rawOaInstitutionId was null or undefined when calling getInstitutionCordisEuProjectsFundingOverTime.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + rawOaInstitutionId, + 'raw_oa_institution_id', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/institution/eu/funding-over-time`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get a single BUND project. + * Returns a single BUND project based on its ID. + * @endpoint get /api/projects/bund/{id} + * @param id The ID of the BUND project to retrieve. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSingleBundProject( + id: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getSingleBundProject( + id: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleBundProject( + id: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleBundProject( + id: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getSingleBundProject.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/bund/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get a single DFG project. + * Returns a single DFG project based on its ID. + * @endpoint get /api/projects/dfg/{id} + * @param id The ID of the DFG project to retrieve. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getSingleDfgProject( + id: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getSingleDfgProject( + id: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleDfgProject( + id: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleDfgProject( + id: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getSingleDfgProject.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/dfg/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get bund projects. + * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. + * @endpoint post /api/projects/institution/bund/search + * @param projectsFilteringProperties + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchBundProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchBundProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchBundProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchBundProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if ( + projectsFilteringProperties === null || + projectsFilteringProperties === undefined + ) { + throw new Error( + 'Required parameter projectsFilteringProperties was null or undefined when calling searchBundProjects.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/institution/bund/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: projectsFilteringProperties, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Get EU projects. + * Returns a page of EU projects based on the provided pagination parameters and optional institution filter. + * @endpoint post /api/projects/institution/eu/search + * @param projectsFilteringProperties + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchCordisEuProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchCordisEuProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchCordisEuProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchCordisEuProjects( + projectsFilteringProperties: ProjectsFilteringProperties, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if ( + projectsFilteringProperties === null || + projectsFilteringProperties === undefined + ) { + throw new Error( + 'Required parameter projectsFilteringProperties was null or undefined when calling searchCordisEuProjects.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = ['application/json']; + const httpContentTypeSelected: string | undefined = + this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Content-Type', + httpContentTypeSelected, + ); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/projects/institution/eu/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: projectsFilteringProperties, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Search projects across all funders. + * Returns a page of projects across all funders based on the provided pagination parameters and optional institution filter. + * @endpoint get /api/projects/search + * @param page The page number. + * @param size The page size. + * @param selectedProjectTypes The set of project types to filter by (e.g., \'bund\', \'eu\', \'dfg\'). If not provided, projects of all types will be included. + * @param title The title to filter by. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchProjects( + page?: number, + size?: number, + selectedProjectTypes?: Set, + title?: string, + sortBy?: ProjectsSortBy, + sortDirection?: SortDirection, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public searchProjects( + page?: number, + size?: number, + selectedProjectTypes?: Set, + title?: string, + sortBy?: ProjectsSortBy, + sortDirection?: SortDirection, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchProjects( + page?: number, + size?: number, + selectedProjectTypes?: Set, + title?: string, + sortBy?: ProjectsSortBy, + sortDirection?: SortDirection, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public searchProjects( + page?: number, + size?: number, + selectedProjectTypes?: Set, + title?: string, + sortBy?: ProjectsSortBy, + sortDirection?: SortDirection, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + if (selectedProjectTypes) { + selectedProjectTypes.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'selected_project_types', ); + }); + } + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + title, + 'title', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortBy, + 'sort_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sortDirection, + 'sort_direction', + ); + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Get DFG projects. - * Returns a page of DFG projects based on the provided pagination parameters and optional institution filter. - * @endpoint get /api/projects/person/dfg/search - * @param authorId The author ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getDfgProjects.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - authorId, 'author_id'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - topic, 'topic'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - size, 'size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortBy, 'sort_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortDirection, 'sort_direction'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/projects/person/dfg/search`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); - } - - /** - * Get EU projects. - * Returns a page of EU projects based on the provided pagination parameters and optional institution filter. - * @endpoint get /api/projects/institution/eu/search - * @param institutionId The institution ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (institutionId === null || institutionId === undefined) { - throw new Error('Required parameter institutionId was null or undefined when calling getEuProjects.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - institutionId, 'institution_id'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - topic, 'topic'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - size, 'size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortBy, 'sort_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sortDirection, 'sort_direction'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/projects/institution/eu/search`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } + let localVarPath = `/api/projects/search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/topics.service.ts b/webapp/src/app/api/api/topics.service.ts index 4c2902a1..2b90f737 100644 --- a/webapp/src/app/api/api/topics.service.ts +++ b/webapp/src/app/api/api/topics.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { AutocompleteResponse } from '../model/autocompleteResponse'; @@ -24,410 +30,803 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { TopicsListResponse } from '../model/topicsListResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class TopicsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Returns topic options for autocomplete inputs. + * @endpoint get /api/topics/autocomplete + * @param query Topic search text, for example \'machine learning\'. + * @param domainId Optional OpenAlex domain id filter. + * @param fieldId Optional OpenAlex field id filter. + * @param subfieldId Optional OpenAlex subfield id filter. + * @param limit Maximum number of autocomplete options. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling autocompleteTopics.', + ); } - /** - * Returns topic options for autocomplete inputs. - * @endpoint get /api/topics/autocomplete - * @param query Topic search text, for example \'machine learning\'. - * @param domainId Optional OpenAlex domain id filter. - * @param fieldId Optional OpenAlex field id filter. - * @param subfieldId Optional OpenAlex subfield id filter. - * @param limit Maximum number of autocomplete options. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (query === null || query === undefined) { - throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.'); - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + domainId, + 'domainId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + fieldId, + 'fieldId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + subfieldId, + 'subfieldId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - domainId, 'domainId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - fieldId, 'fieldId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - subfieldId, 'subfieldId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarTransferCache: boolean = options?.transferCache ?? true; + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + let localVarPath = `/api/topics/autocomplete`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } + /** + * Builds the topic hierarchy cache. + * @endpoint get /api/inse-service/topics/cache + * @param pageSize Page size for each search page. + * @param saveJson Persist cache JSON to data folder. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'page_size', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + saveJson, + 'save_json', + ); - let localVarPath = `/api/topics/autocomplete`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/inse-service/topics/cache`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Counts topic hierarchy occurrences from cache. + * @endpoint get /api/inse-service/topics/count + * @param topic Topic names (repeat parameter). + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public countTopicHierarchy( + topic: Array, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public countTopicHierarchy( + topic: Array, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (topic === null || topic === undefined) { + throw new Error( + 'Required parameter topic was null or undefined when calling countTopicHierarchy.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic', ); + }); } - /** - * Builds the topic hierarchy cache. - * @endpoint get /api/inse-service/topics/cache - * @param pageSize Page size for each search page. - * @param saveJson Persist cache JSON to data folder. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarHeaders = this.defaultHeaders; - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'page_size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - saveJson, 'save_json'); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/cache`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Counts topic hierarchy occurrences from cache. - * @endpoint get /api/inse-service/topics/count - * @param topic Topic names (repeat parameter). - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public countTopicHierarchy(topic: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public countTopicHierarchy(topic: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public countTopicHierarchy(topic: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public countTopicHierarchy(topic: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (topic === null || topic === undefined) { - throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.'); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic'); - }) - } + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/count`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). - * @endpoint get /api/inse-service/topics/hierarchy - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + let localVarPath = `/api/inse-service/topics/count`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let localVarHeaders = this.defaultHeaders; + /** + * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). + * @endpoint get /api/inse-service/topics/hierarchy + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTopicHierarchy( + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getTopicHierarchy( + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/inse-service/topics/hierarchy`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - /** - * Returns a list of OpenAlex topics. - * @endpoint get /api/topics - * @param search Full-text search, for example \'machine learning\'. - * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'domain.id\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - search, 'search'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filter, 'filter'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sort, 'sort'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - groupBy, 'group_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - perPage, 'per_page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - cursor, 'cursor'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sample, 'sample'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - select, 'select'); + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/topics`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } } - /** - * Semantic / vector search for topics using a keyword/sentence. - * @endpoint get /api/topics/vector-search - * @param query Word or sentence to search by similarity. - * @param limit Maximum number of topics to return. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public vectorSearchTopics(query: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public vectorSearchTopics(query: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public vectorSearchTopics(query: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public vectorSearchTopics(query: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (query === null || query === undefined) { - throw new Error('Required parameter query was null or undefined when calling vectorSearchTopics.'); - } + let localVarPath = `/api/inse-service/topics/hierarchy`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); + /** + * Returns a list of OpenAlex topics. + * @endpoint get /api/topics + * @param search Full-text search, for example \'machine learning\'. + * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. + * @param sort Sort field, for example \'works_count:desc\'. + * @param groupBy OpenAlex group_by field, for example \'domain.id\'. + * @param perPage Results per page. + * @param page Page number. Use cursor for deep pagination. + * @param cursor Cursor pagination token. Use \'*\' to start. + * @param sample Random sample size. Cannot be combined with sort or page. + * @param select Comma-separated fields to return. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + search, + 'search', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filter, + 'filter', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sort, + 'sort', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + groupBy, + 'group_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + perPage, + 'per_page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + cursor, + 'cursor', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sample, + 'sample', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + select, + 'select', + ); - let localVarHeaders = this.defaultHeaders; + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/topics/vector-search`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } - ); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/topics`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Semantic / vector search for topics using a keyword/sentence. + * @endpoint get /api/topics/vector-search + * @param query Word or sentence to search by similarity. + * @param limit Maximum number of topics to return. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public vectorSearchTopics( + query: string, + limit?: number, + searchType?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public vectorSearchTopics( + query: string, + limit?: number, + searchType?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public vectorSearchTopics( + query: string, + limit?: number, + searchType?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public vectorSearchTopics( + query: string, + limit?: number, + searchType?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling vectorSearchTopics.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); + if (searchType !== undefined && searchType !== null) { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + searchType, + 'searchType', + ); + } + + let localVarHeaders = this.defaultHeaders; + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/topics/vector-search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/api/works.service.ts b/webapp/src/app/api/api/works.service.ts index 9d95c5d8..20d855a3 100644 --- a/webapp/src/app/api/api/works.service.ts +++ b/webapp/src/app/api/api/works.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,18 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext - } from '@angular/common/http'; -import { CustomHttpParameterCodec } from '../encoder'; -import { Observable } from 'rxjs'; +import { Inject, Injectable, Optional } from '@angular/core'; +import { + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, +} from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; @@ -30,365 +36,691 @@ import { WorkPage } from '../model/workPage'; import { WorksListResponse } from '../model/worksListResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class WorksService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { - super(basePath, configuration); + /** + * Returns all works for an author. + * @endpoint get /api/works/{author_id}/all + * @param authorId The author id, for example A5023888391. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAllAuthorWorks( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getAllAuthorWorks( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAllAuthorWorks( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAllAuthorWorks( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getAllAuthorWorks.', + ); } - /** - * Returns all works for an author. - * @endpoint get /api/works/{author_id}/all - * @param authorId The author id, for example A5023888391. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getAllAuthorWorks(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getAllAuthorWorks(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllAuthorWorks(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllAuthorWorks(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getAllAuthorWorks.'); - } + let localVarHeaders = this.defaultHeaders; - let localVarHeaders = this.defaultHeaders; + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + const localVarTransferCache: boolean = options?.transferCache ?? true; - const localVarTransferCache: boolean = options?.transferCache ?? true; + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/all`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } + /** + * Returns a page of works for an author. + * @endpoint get /api/works/{author_id} + * @param authorId The author id, for example A5023888391. + * @param page The page number. + * @param size The page size. + * @param publicationYear Filter by publication year. Can be repeated. + * @param type Filter by publication type. Can be repeated. + * @param language Filter by language code. Can be repeated. + * @param institutionId Filter by OpenAlex institution id. Can be repeated. + * @param topicId Filter by OpenAlex topic id. Can be repeated. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getAuthorWorks( + authorId: string, + page?: number, + size?: number, + publicationYear?: Array, + type?: Array, + language?: Array, + institutionId?: Array, + topicId?: Array, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getAuthorWorks( + authorId: string, + page?: number, + size?: number, + publicationYear?: Array, + type?: Array, + language?: Array, + institutionId?: Array, + topicId?: Array, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAuthorWorks( + authorId: string, + page?: number, + size?: number, + publicationYear?: Array, + type?: Array, + language?: Array, + institutionId?: Array, + topicId?: Array, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getAuthorWorks( + authorId: string, + page?: number, + size?: number, + publicationYear?: Array, + type?: Array, + language?: Array, + institutionId?: Array, + topicId?: Array, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getAuthorWorks.', + ); + } - let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/all`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + if (publicationYear) { + publicationYear.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'publication_year', ); + }); } - - /** - * Returns a page of works for an author. - * @endpoint get /api/works/{author_id} - * @param authorId The author id, for example A5023888391. - * @param page The page number. - * @param size The page size. - * @param publicationYear Filter by publication year. Can be repeated. - * @param type Filter by publication type. Can be repeated. - * @param language Filter by language code. Can be repeated. - * @param institutionId Filter by OpenAlex institution id. Can be repeated. - * @param topicId Filter by OpenAlex topic id. Can be repeated. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getAuthorWorks.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - size, 'size'); - if (publicationYear) { - publicationYear.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'publication_year'); - }) - } - if (type) { - type.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'type'); - }) - } - if (language) { - language.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'language'); - }) - } - if (institutionId) { - institutionId.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'institution_id'); - }) - } - if (topicId) { - topicId.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic_id'); - }) - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + if (type) { + type.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'type', ); + }); } - - /** - * Returns work counts per primary topic for an author. - * @endpoint get /api/works/{author_id}/primary-topic-counts - * @param authorId The author id, for example A5023888391. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getPrimaryTopicCountsByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.'); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/primary-topic-counts`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + if (language) { + language.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'language', ); + }); } - - /** - * Returns topics grouped by publication year for an author. - * @endpoint get /api/works/{author_id}/topics-by-time - * @param authorId The author id, for example A5023888391. - * @param maxTopicsPerYear The maximum number of topics per year. - * @param targetPublications Target number of publications used for the timeline. Complete years are always included. - * @param includeAll If true, all publications are used for the timeline. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (authorId === null || authorId === undefined) { - throw new Error('Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.'); - } - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - maxTopicsPerYear, 'max_topics_per_year'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - targetPublications, 'target_publications'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - includeAll, 'include_all'); - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/topics-by-time`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + if (institutionId) { + institutionId.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'institution_id', ); + }); } - - /** - * Returns one publication. - * @endpoint get /api/works/detail/{work_id} - * @param workId The OpenAlex work id, for example W2741809807. - * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. - * @param reportProgress flag to report request and response progress. - */ - public getWork(workId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getWork(workId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getWork(workId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getWork(workId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (workId === null || workId === undefined) { - throw new Error('Required parameter workId was null or undefined when calling getWork.'); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); - } - - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - - const localVarTransferCache: boolean = options?.transferCache ?? true; - - - let responseType_: 'text' | 'json' | 'blob' = 'json'; - if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } - } - - let localVarPath = `/api/works/detail/${this.configuration.encodeParam({name: "workId", value: workId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + if (topicId) { + topicId.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic_id', ); + }); } + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns work counts per primary topic for an author. + * @endpoint get /api/works/{author_id}/primary-topic-counts + * @param authorId The author id, for example A5023888391. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getPrimaryTopicCountsByAuthor( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPrimaryTopicCountsByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getPrimaryTopicCountsByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getPrimaryTopicCountsByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/primary-topic-counts`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns topics grouped by publication year for an author. + * @endpoint get /api/works/{author_id}/topics-by-time + * @param authorId The author id, for example A5023888391. + * @param maxTopicsPerYear The maximum number of topics per year. + * @param targetPublications Target number of publications used for the timeline. Complete years are always included. + * @param includeAll If true, all publications are used for the timeline. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getTopicsByTimeByAuthor( + authorId: string, + maxTopicsPerYear?: number, + targetPublications?: number, + includeAll?: boolean, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getTopicsByTimeByAuthor( + authorId: string, + maxTopicsPerYear?: number, + targetPublications?: number, + includeAll?: boolean, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicsByTimeByAuthor( + authorId: string, + maxTopicsPerYear?: number, + targetPublications?: number, + includeAll?: boolean, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicsByTimeByAuthor( + authorId: string, + maxTopicsPerYear?: number, + targetPublications?: number, + includeAll?: boolean, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + maxTopicsPerYear, + 'max_topics_per_year', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + targetPublications, + 'target_publications', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + includeAll, + 'include_all', + ); + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/topics-by-time`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns one publication. + * @endpoint get /api/works/detail/{work_id} + * @param workId The OpenAlex work id, for example W2741809807. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public getWork( + workId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getWork( + workId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getWork( + workId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getWork( + workId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (workId === null || workId === undefined) { + throw new Error( + 'Required parameter workId was null or undefined when calling getWork.', + ); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders( + 'bearer', + 'Authorization', + localVarHeaders, + 'Bearer ', + ); + + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); + } + + const localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/works/detail/${this.configuration.encodeParam({ name: 'workId', value: workId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }); + } } diff --git a/webapp/src/app/api/configuration.ts b/webapp/src/app/api/configuration.ts index c39ce2d6..664630b3 100644 --- a/webapp/src/app/api/configuration.ts +++ b/webapp/src/app/api/configuration.ts @@ -1,193 +1,219 @@ -import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { + HttpHeaders, + HttpParams, + HttpParameterCodec, +} from '@angular/common/http'; import { Param } from './param'; export interface ConfigurationParameters { - /** - * @deprecated Since 5.0. Use credentials instead - */ - apiKeys?: {[ key: string ]: string}; - username?: string; - password?: string; - /** - * @deprecated Since 5.0. Use credentials instead - */ - accessToken?: string | (() => string); - basePath?: string; - withCredentials?: boolean; - /** - * Takes care of encoding query- and form-parameters. - */ - encoder?: HttpParameterCodec; - /** - * Override the default method for encoding path parameters in various - * styles. - *

- * See {@link README.md} for more details - *

- */ - encodeParam?: (param: Param) => string; - /** - * The keys are the names in the securitySchemes section of the OpenAPI - * document. They should map to the value used for authentication - * minus any standard prefixes such as 'Basic' or 'Bearer'. - */ - credentials?: {[ key: string ]: string | (() => string | undefined)}; + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: { [key: string]: string }; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Override the default method for encoding path parameters in various + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam?: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials?: { [key: string]: string | (() => string | undefined) }; } export class Configuration { - /** - * @deprecated Since 5.0. Use credentials instead - */ - apiKeys?: {[ key: string ]: string}; - username?: string; - password?: string; - /** - * @deprecated Since 5.0. Use credentials instead - */ - accessToken?: string | (() => string); - basePath?: string; - withCredentials?: boolean; - /** - * Takes care of encoding query- and form-parameters. - */ - encoder?: HttpParameterCodec; - /** - * Encoding of various path parameter - * styles. - *

- * See {@link README.md} for more details - *

- */ - encodeParam: (param: Param) => string; - /** - * The keys are the names in the securitySchemes section of the OpenAPI - * document. They should map to the value used for authentication - * minus any standard prefixes such as 'Basic' or 'Bearer'. - */ - credentials: {[ key: string ]: string | (() => string | undefined)}; + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: { [key: string]: string }; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Encoding of various path parameter + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials: { [key: string]: string | (() => string | undefined) }; -constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) { - if (apiKeys) { - this.apiKeys = apiKeys; - } - if (username !== undefined) { - this.username = username; - } - if (password !== undefined) { - this.password = password; - } - if (accessToken !== undefined) { - this.accessToken = accessToken; - } - if (basePath !== undefined) { - this.basePath = basePath; - } - if (withCredentials !== undefined) { - this.withCredentials = withCredentials; - } - if (encoder) { - this.encoder = encoder; - } - this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param)); - this.credentials = credentials ?? {}; + constructor({ + accessToken, + apiKeys, + basePath, + credentials, + encodeParam, + encoder, + password, + username, + withCredentials, + }: ConfigurationParameters = {}) { + if (apiKeys) { + this.apiKeys = apiKeys; + } + if (username !== undefined) { + this.username = username; + } + if (password !== undefined) { + this.password = password; + } + if (accessToken !== undefined) { + this.accessToken = accessToken; + } + if (basePath !== undefined) { + this.basePath = basePath; + } + if (withCredentials !== undefined) { + this.withCredentials = withCredentials; + } + if (encoder) { + this.encoder = encoder; + } + this.encodeParam = + encodeParam ?? ((param) => this.defaultEncodeParam(param)); + this.credentials = credentials ?? {}; - // init default bearer credential - if (!this.credentials['bearer']) { - this.credentials['bearer'] = () => { - return typeof this.accessToken === 'function' - ? this.accessToken() - : this.accessToken; - }; - } + // init default bearer credential + if (!this.credentials['bearer']) { + this.credentials['bearer'] = () => { + return typeof this.accessToken === 'function' + ? this.accessToken() + : this.accessToken; + }; + } + } + + /** + * Select the correct content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param contentTypes - the array of content types that are available for selection + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderContentType(contentTypes: string[]): string | undefined { + if (contentTypes.length === 0) { + return undefined; } - /** - * Select the correct content-type to use for a request. - * Uses {@link Configuration#isJsonMime} to determine the correct content-type. - * If no content type is found return the first found type if the contentTypes is not empty - * @param contentTypes - the array of content types that are available for selection - * @returns the selected content-type or undefined if no selection could be made. - */ - public selectHeaderContentType (contentTypes: string[]): string | undefined { - if (contentTypes.length === 0) { - return undefined; - } + const type = contentTypes.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return contentTypes[0]; + } + return type; + } - const type = contentTypes.find((x: string) => this.isJsonMime(x)); - if (type === undefined) { - return contentTypes[0]; - } - return type; + /** + * Select the correct accept content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param accepts - the array of content types that are available for selection. + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderAccept(accepts: string[]): string | undefined { + if (accepts.length === 0) { + return undefined; } - /** - * Select the correct accept content-type to use for a request. - * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. - * If no content type is found return the first found type if the contentTypes is not empty - * @param accepts - the array of content types that are available for selection. - * @returns the selected content-type or undefined if no selection could be made. - */ - public selectHeaderAccept(accepts: string[]): string | undefined { - if (accepts.length === 0) { - return undefined; - } - - const type = accepts.find((x: string) => this.isJsonMime(x)); - if (type === undefined) { - return accepts[0]; - } - return type; + const type = accepts.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return accepts[0]; } + return type; + } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp( + '^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', + 'i', + ); + return ( + mime !== null && + (jsonMime.test(mime) || + mime.toLowerCase() === 'application/json-patch+json') + ); + } - public lookupCredential(key: string): string | undefined { - const value = this.credentials[key]; - return typeof value === 'function' - ? value() - : value; - } + public lookupCredential(key: string): string | undefined { + const value = this.credentials[key]; + return typeof value === 'function' ? value() : value; + } - public addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders { - const value = this.lookupCredential(credentialKey); - return value - ? headers.set(headerName, (prefix ?? '') + value) - : headers; - } + public addCredentialToHeaders( + credentialKey: string, + headerName: string, + headers: HttpHeaders, + prefix?: string, + ): HttpHeaders { + const value = this.lookupCredential(credentialKey); + return value ? headers.set(headerName, (prefix ?? '') + value) : headers; + } - public addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams { - const value = this.lookupCredential(credentialKey); - return value - ? query.set(paramName, value) - : query; - } + public addCredentialToQuery( + credentialKey: string, + paramName: string, + query: HttpParams, + ): HttpParams { + const value = this.lookupCredential(credentialKey); + return value ? query.set(paramName, value) : query; + } - private defaultEncodeParam(param: Param): string { - // This implementation exists as fallback for missing configuration - // and for backwards compatibility to older typescript-angular generator versions. - // It only works for the 'simple' parameter style. - // Date-handling only works for the 'date-time' format. - // All other styles and Date-formats are probably handled incorrectly. - // - // But: if that's all you need (i.e.: the most common use-case): no need for customization! + private defaultEncodeParam(param: Param): string { + // This implementation exists as fallback for missing configuration + // and for backwards compatibility to older typescript-angular generator versions. + // It only works for the 'simple' parameter style. + // Date-handling only works for the 'date-time' format. + // All other styles and Date-formats are probably handled incorrectly. + // + // But: if that's all you need (i.e.: the most common use-case): no need for customization! - const value = param.dataFormat === 'date-time' && param.value instanceof Date - ? (param.value as Date).toISOString() - : param.value; + const value = + param.dataFormat === 'date-time' && param.value instanceof Date + ? (param.value as Date).toISOString() + : param.value; - return encodeURIComponent(String(value)); - } + return encodeURIComponent(String(value)); + } } diff --git a/webapp/src/app/api/encoder.ts b/webapp/src/app/api/encoder.ts index 138c4d5c..889ef00d 100644 --- a/webapp/src/app/api/encoder.ts +++ b/webapp/src/app/api/encoder.ts @@ -5,16 +5,16 @@ import { HttpParameterCodec } from '@angular/common/http'; * Workaround for https://github.com/angular/angular/issues/18261 */ export class CustomHttpParameterCodec implements HttpParameterCodec { - encodeKey(k: string): string { - return encodeURIComponent(k); - } - encodeValue(v: string): string { - return encodeURIComponent(v); - } - decodeKey(k: string): string { - return decodeURIComponent(k); - } - decodeValue(v: string): string { - return decodeURIComponent(v); - } + encodeKey(k: string): string { + return encodeURIComponent(k); + } + encodeValue(v: string): string { + return encodeURIComponent(v); + } + decodeKey(k: string): string { + return decodeURIComponent(k); + } + decodeValue(v: string): string { + return decodeURIComponent(v); + } } diff --git a/webapp/src/app/api/model/accessGrant.ts b/webapp/src/app/api/model/accessGrant.ts index ad1f537a..0aa29f6f 100644 --- a/webapp/src/app/api/model/accessGrant.ts +++ b/webapp/src/app/api/model/accessGrant.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,10 @@ */ import { AuthScope } from './authScope'; - -export interface AccessGrant { - token_type: string; - access_token: string; - expires_in: number; - scope: AuthScope; - refresh_token: string; +export interface AccessGrant { + token_type: string; + access_token: string; + expires_in: number; + scope: AuthScope; + refresh_token: string; } - diff --git a/webapp/src/app/api/model/authAccount.ts b/webapp/src/app/api/model/authAccount.ts index 770a61f5..7a672b04 100644 --- a/webapp/src/app/api/model/authAccount.ts +++ b/webapp/src/app/api/model/authAccount.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface AuthAccount { - i: number; - l: string; - o: number; - e: string; - on: string; +export interface AuthAccount { + i: number; + l: string; + o: number; + e: string; + on: string; } - diff --git a/webapp/src/app/api/model/authScope.ts b/webapp/src/app/api/model/authScope.ts index 65ffa9b5..3ccd752e 100644 --- a/webapp/src/app/api/model/authScope.ts +++ b/webapp/src/app/api/model/authScope.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,9 @@ */ import { AuthAccount } from './authAccount'; - -export interface AuthScope { - t: string; - a: AuthAccount; - d?: number | null; - r?: Array; +export interface AuthScope { + t: string; + a: AuthAccount; + d?: number | null; + r?: Array; } - diff --git a/webapp/src/app/api/model/author.ts b/webapp/src/app/api/model/author.ts index 9ba12273..0a050590 100644 --- a/webapp/src/app/api/model/author.ts +++ b/webapp/src/app/api/model/author.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -15,27 +15,25 @@ import { AuthorIds } from './authorIds'; import { AuthorSummaryStats } from './authorSummaryStats'; import { WorkTopic } from './workTopic'; - /** * A person who creates scholarly works */ -export interface Author { - id?: string | null; - orcid?: string | null; - display_name?: string | null; - display_name_alternatives?: Array | null; - longest_name?: string | null; - parsed_longest_name?: AuthorParsedLongestName | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - affiliations?: Array | null; - last_known_institutions?: Array | null; - topics?: Array | null; - counts_by_year?: Array | null; - ids?: AuthorIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Author { + id?: string | null; + orcid?: string | null; + display_name?: string | null; + display_name_alternatives?: Array | null; + longest_name?: string | null; + parsed_longest_name?: AuthorParsedLongestName | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + affiliations?: Array | null; + last_known_institutions?: Array | null; + topics?: Array | null; + counts_by_year?: Array | null; + ids?: AuthorIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } - diff --git a/webapp/src/app/api/model/authorAffiliationsInner.ts b/webapp/src/app/api/model/authorAffiliationsInner.ts index 270443ff..d1e8f764 100644 --- a/webapp/src/app/api/model/authorAffiliationsInner.ts +++ b/webapp/src/app/api/model/authorAffiliationsInner.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,12 +9,10 @@ */ import { DehydratedInstitution } from './dehydratedInstitution'; - /** * AuthorAffiliationsInner */ -export interface AuthorAffiliationsInner { - institution?: DehydratedInstitution | null; - years?: Array | null; +export interface AuthorAffiliationsInner { + institution?: DehydratedInstitution | null; + years?: Array | null; } - diff --git a/webapp/src/app/api/model/authorCountsByYearInner.ts b/webapp/src/app/api/model/authorCountsByYearInner.ts index d16c7c21..1fac5b45 100644 --- a/webapp/src/app/api/model/authorCountsByYearInner.ts +++ b/webapp/src/app/api/model/authorCountsByYearInner.ts @@ -1,20 +1,18 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * AuthorCountsByYearInner */ -export interface AuthorCountsByYearInner { - year?: number | null; - works_count?: number | null; - cited_by_count?: number | null; +export interface AuthorCountsByYearInner { + year?: number | null; + works_count?: number | null; + cited_by_count?: number | null; } - diff --git a/webapp/src/app/api/model/authorIds.ts b/webapp/src/app/api/model/authorIds.ts index 9235a207..0b079d33 100644 --- a/webapp/src/app/api/model/authorIds.ts +++ b/webapp/src/app/api/model/authorIds.ts @@ -1,20 +1,18 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * External identifiers: */ -export interface AuthorIds { - openalex?: string | null; - orcid?: string | null; - scopus?: string | null; +export interface AuthorIds { + openalex?: string | null; + orcid?: string | null; + scopus?: string | null; } - diff --git a/webapp/src/app/api/model/authorNetworkNode.ts b/webapp/src/app/api/model/authorNetworkNode.ts index aee98d47..f67c7148 100644 --- a/webapp/src/app/api/model/authorNetworkNode.ts +++ b/webapp/src/app/api/model/authorNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,22 +9,18 @@ */ import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; - -export interface AuthorNetworkNode { - /** - * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; +export interface AuthorNetworkNode { + /** + * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; } -export namespace AuthorNetworkNode { -} - - +export namespace AuthorNetworkNode {} diff --git a/webapp/src/app/api/model/authorParsedLongestName.ts b/webapp/src/app/api/model/authorParsedLongestName.ts index f49e04be..f08df27d 100644 --- a/webapp/src/app/api/model/authorParsedLongestName.ts +++ b/webapp/src/app/api/model/authorParsedLongestName.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The longest name parsed into its component parts. */ -export interface AuthorParsedLongestName { - first?: string | null; - middle?: string | null; - last?: string | null; - suffix?: string | null; - nickname?: string | null; +export interface AuthorParsedLongestName { + first?: string | null; + middle?: string | null; + last?: string | null; + suffix?: string | null; + nickname?: string | null; } - diff --git a/webapp/src/app/api/model/authorPositionCount.ts b/webapp/src/app/api/model/authorPositionCount.ts index a02e3749..989d2c18 100644 --- a/webapp/src/app/api/model/authorPositionCount.ts +++ b/webapp/src/app/api/model/authorPositionCount.ts @@ -1,18 +1,16 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface AuthorPositionCount { - first?: number; - middle?: number; - last?: number; - unknown?: number; +export interface AuthorPositionCount { + first?: number; + middle?: number; + last?: number; + unknown?: number; } - diff --git a/webapp/src/app/api/model/authorSummaryStats.ts b/webapp/src/app/api/model/authorSummaryStats.ts index 1cfc0bdb..63c35c31 100644 --- a/webapp/src/app/api/model/authorSummaryStats.ts +++ b/webapp/src/app/api/model/authorSummaryStats.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,13 +9,11 @@ */ import { Model2YrMeanCitedness } from './model2YrMeanCitedness'; - /** * Citation metrics: */ -export interface AuthorSummaryStats { - '2yr_mean_citedness'?: Model2YrMeanCitedness | null; - h_index?: number | null; - i10_index?: number | null; +export interface AuthorSummaryStats { + '2yr_mean_citedness'?: Model2YrMeanCitedness | null; + h_index?: number | null; + i10_index?: number | null; } - diff --git a/webapp/src/app/api/model/authorsFilterProperties.ts b/webapp/src/app/api/model/authorsFilterProperties.ts index 7312558f..50795f2a 100644 --- a/webapp/src/app/api/model/authorsFilterProperties.ts +++ b/webapp/src/app/api/model/authorsFilterProperties.ts @@ -1,26 +1,24 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface AuthorsFilterProperties { - /** - * The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included. - */ - allowed_institutions?: Array; - /** - * The minimum number of collaborations required for an author to be included in the collaboration network. - */ - min_collaborations?: number; - /** - * The maximum number of collaborations allowed for an author to be included in the collaboration network. - */ - max_collaborations?: number; +export interface AuthorsFilterProperties { + /** + * The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included. + */ + allowed_institutions?: Array; + /** + * The minimum number of collaborations required for an author to be included in the collaboration network. + */ + min_collaborations?: number; + /** + * The maximum number of collaborations allowed for an author to be included in the collaboration network. + */ + max_collaborations?: number; } - diff --git a/webapp/src/app/api/model/authorsListResponse.ts b/webapp/src/app/api/model/authorsListResponse.ts index d309ae43..bb1a602c 100644 --- a/webapp/src/app/api/model/authorsListResponse.ts +++ b/webapp/src/app/api/model/authorsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,13 +11,11 @@ import { Meta } from './meta'; import { Author } from './author'; import { GroupByResult } from './groupByResult'; - /** * AuthorsListResponse */ -export interface AuthorsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface AuthorsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } - diff --git a/webapp/src/app/api/model/authorship.ts b/webapp/src/app/api/model/authorship.ts index db3a0bf0..f1b9d48e 100644 --- a/webapp/src/app/api/model/authorship.ts +++ b/webapp/src/app/api/model/authorship.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,17 +10,15 @@ import { DehydratedInstitution } from './dehydratedInstitution'; import { DehydratedAuthor } from './dehydratedAuthor'; - /** * Author and their affiliation for a work */ -export interface Authorship { - author_position?: string | null; - author?: DehydratedAuthor | null; - institutions?: Array | null; - countries?: Array | null; - is_corresponding?: boolean | null; - raw_author_name?: string | null; - raw_affiliation_strings?: Array | null; +export interface Authorship { + author_position?: string | null; + author?: DehydratedAuthor | null; + institutions?: Array | null; + countries?: Array | null; + is_corresponding?: boolean | null; + raw_author_name?: string | null; + raw_affiliation_strings?: Array | null; } - diff --git a/webapp/src/app/api/model/autocompleteResponse.ts b/webapp/src/app/api/model/autocompleteResponse.ts index e220f57b..8b52b300 100644 --- a/webapp/src/app/api/model/autocompleteResponse.ts +++ b/webapp/src/app/api/model/autocompleteResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,12 +10,10 @@ import { AutocompleteResponseMeta } from './autocompleteResponseMeta'; import { AutocompleteResponseResultsInner } from './autocompleteResponseResultsInner'; - /** * AutocompleteResponse */ -export interface AutocompleteResponse { - meta?: AutocompleteResponseMeta | null; - results?: Array | null; +export interface AutocompleteResponse { + meta?: AutocompleteResponseMeta | null; + results?: Array | null; } - diff --git a/webapp/src/app/api/model/autocompleteResponseMeta.ts b/webapp/src/app/api/model/autocompleteResponseMeta.ts index 2e080d39..5bf94a57 100644 --- a/webapp/src/app/api/model/autocompleteResponseMeta.ts +++ b/webapp/src/app/api/model/autocompleteResponseMeta.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * AutocompleteResponseMeta */ -export interface AutocompleteResponseMeta { - count?: number | null; - db_response_time_ms?: number | null; +export interface AutocompleteResponseMeta { + count?: number | null; + db_response_time_ms?: number | null; } - diff --git a/webapp/src/app/api/model/autocompleteResponseResultsInner.ts b/webapp/src/app/api/model/autocompleteResponseResultsInner.ts index 99ba71fe..0fa956b7 100644 --- a/webapp/src/app/api/model/autocompleteResponseResultsInner.ts +++ b/webapp/src/app/api/model/autocompleteResponseResultsInner.ts @@ -1,24 +1,22 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * AutocompleteResponseResultsInner */ -export interface AutocompleteResponseResultsInner { - id?: string | null; - display_name?: string | null; - hint?: string | null; - cited_by_count?: number | null; - works_count?: number | null; - entity_type?: string | null; - external_id?: string | null; +export interface AutocompleteResponseResultsInner { + id?: string | null; + display_name?: string | null; + hint?: string | null; + cited_by_count?: number | null; + works_count?: number | null; + entity_type?: string | null; + external_id?: string | null; } - diff --git a/webapp/src/app/api/model/award.ts b/webapp/src/app/api/model/award.ts index 4e3b5cc9..a461c971 100644 --- a/webapp/src/app/api/model/award.ts +++ b/webapp/src/app/api/model/award.ts @@ -1,23 +1,21 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Award */ -export interface Award { - id?: string | null; - display_name?: string | null; - funder_award_id?: string | null; - funder_id?: string | null; - funder_display_name?: string | null; - doi?: string | null; +export interface Award { + id?: string | null; + display_name?: string | null; + funder_award_id?: string | null; + funder_id?: string | null; + funder_display_name?: string | null; + doi?: string | null; } - diff --git a/webapp/src/app/api/model/bodyCreateUser.ts b/webapp/src/app/api/model/bodyCreateUser.ts index 76caab3b..6a0778be 100644 --- a/webapp/src/app/api/model/bodyCreateUser.ts +++ b/webapp/src/app/api/model/bodyCreateUser.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface BodyCreateUser { - username: string; - password: string; - email: string; - institution: string; - superadmin?: boolean; +export interface BodyCreateUser { + username: string; + password: string; + email: string; + institution: string; + superadmin?: boolean; } - diff --git a/webapp/src/app/api/model/bundProject.ts b/webapp/src/app/api/model/bundProject.ts index 3463aa78..9f291399 100644 --- a/webapp/src/app/api/model/bundProject.ts +++ b/webapp/src/app/api/model/bundProject.ts @@ -1,42 +1,40 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface BundProject { - funding_code?: string | null; - department?: string | null; - department_fullname?: string | null; - referat?: string | null; - project_sponsor?: string | null; - project_sponsor_fullname?: string | null; - work_unit?: string | null; - recipient?: string | null; - municipal_code?: string | null; - municipality?: string | null; - place?: string | null; - state?: string | null; - country?: string | null; - implementing_agency?: string | null; - topic?: string | null; - performance_plan_system?: string | null; - performance_plan_system_text?: string | null; - funding_start?: string | null; - funding_end?: string | null; - grant_amount?: number | null; - funding_profile?: string | null; - joint_project?: string | null; - funding_type?: string | null; - publication_date?: string | null; - unix_timestamp?: number | null; - date?: string | null; - 'new'?: boolean | null; - duration?: string | null; +export interface BundProject { + funding_code?: string | null; + department?: string | null; + department_fullname?: string | null; + referat?: string | null; + project_sponsor?: string | null; + project_sponsor_fullname?: string | null; + work_unit?: string | null; + recipient?: string | null; + municipal_code?: string | null; + municipality?: string | null; + place?: string | null; + state?: string | null; + country?: string | null; + implementing_agency?: string | null; + topic?: string | null; + performance_plan_system?: string | null; + performance_plan_system_text?: string | null; + funding_start?: string | null; + funding_end?: string | null; + grant_amount?: number | null; + funding_profile?: string | null; + joint_project?: string | null; + funding_type?: string | null; + publication_date?: string | null; + unix_timestamp?: number | null; + date?: string | null; + new?: boolean | null; + duration?: string | null; } - diff --git a/webapp/src/app/api/model/bundProjectDetails.ts b/webapp/src/app/api/model/bundProjectDetails.ts new file mode 100644 index 00000000..b61df06b --- /dev/null +++ b/webapp/src/app/api/model/bundProjectDetails.ts @@ -0,0 +1,55 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types. + */ +export interface BundProjectDetails { + /** + * The ID of the Bund project + */ + id: string; + funding_reference?: string | null; + title?: string | null; + description?: string | null; + joint_project?: string | null; + funding_type?: string | null; + funding_profile?: string | null; + funding_amount?: number | null; + funding_start_date?: string | null; + funding_end_date?: string | null; + duration?: string | null; + performance_plan_code?: string | null; + performance_plan_fullname?: string | null; + executing_agency?: string | null; + funding_recipient?: string | null; + project_agency?: string | null; + project_agency_fullname?: string | null; + department?: string | null; + department_fullname?: string | null; + division?: string | null; + location?: string | null; + municipality?: string | null; + state?: string | null; + country?: string | null; + municipality_code?: string | null; + publication_date?: string | null; + is_new?: boolean | null; + record_date?: string | null; + unix_timestamp?: number | null; + /** + * All persons associated with the Bund project (from nested Arb object) + */ + associated_persons?: Array; + /** + * All institutions associated with the Bund project + */ + institutions?: Array; +} diff --git a/webapp/src/app/api/model/bundProjectPage.ts b/webapp/src/app/api/model/bundProjectPage.ts index 10514bce..6c38e7a6 100644 --- a/webapp/src/app/api/model/bundProjectPage.ts +++ b/webapp/src/app/api/model/bundProjectPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,23 +9,21 @@ */ import { BundProject } from './bundProject'; - -export interface BundProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The bund projects on this page. - */ - elements?: Array; +export interface BundProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The bund projects on this page. + */ + elements?: Array; } - diff --git a/webapp/src/app/api/model/careerMetrics.ts b/webapp/src/app/api/model/careerMetrics.ts new file mode 100644 index 00000000..eb84c19f --- /dev/null +++ b/webapp/src/app/api/model/careerMetrics.ts @@ -0,0 +1,32 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface CareerMetrics { + first_publication_year?: number | null; + last_publication_year?: number | null; + career_age?: number | null; + career_span?: number | null; + career_stage?: string | null; + /** + * Number of distinct years with at least one publication. + */ + active_years?: number; + /** + * Number of publications used for career metrics. + */ + publication_count?: number; + publications_per_active_year?: number | null; + publications_per_career_year?: number | null; + years_since_last_publication?: number | null; + /** + * True if publication years look suspicious. + */ + has_suspicious_publication_years?: boolean; +} diff --git a/webapp/src/app/api/model/categoryNested.ts b/webapp/src/app/api/model/categoryNested.ts deleted file mode 100644 index 8815022d..00000000 --- a/webapp/src/app/api/model/categoryNested.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Innovation Search Engine API - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { DisplayCodeSplittedNested } from './displayCodeSplittedNested'; - - -export interface CategoryNested { - category?: string | null; - code?: string | null; - display_code?: string | null; - /** - * A tokenized hierarchy breakdown of the display code represented as an array of strings. - */ - display_code_splitted?: Array; - /** - * Granular, nested breakdowns of the split parts of the display code. - */ - display_code_splitted_nested?: Array; -} - diff --git a/webapp/src/app/api/model/collaborationNetwork.ts b/webapp/src/app/api/model/collaborationNetwork.ts index e439c061..a2fbdc5b 100644 --- a/webapp/src/app/api/model/collaborationNetwork.ts +++ b/webapp/src/app/api/model/collaborationNetwork.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,31 +13,29 @@ import { CollaborationNetworkEdge } from './collaborationNetworkEdge'; import { InstitutionNetworkNode } from './institutionNetworkNode'; import { AuthorNetworkNode } from './authorNetworkNode'; - -export interface CollaborationNetwork { - /** - * The raw person ID of the person whose collaboration network this is. - */ - raw_person_id: string; - /** - * The work nodes in the collaboration network. - */ - work_nodes: Array; - /** - * The author nodes in the collaboration network. - */ - author_nodes: Array; - /** - * The institution nodes in the collaboration network. - */ - institution_nodes: Array; - /** - * The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I - */ - collaboration_edges: Array; - /** - * The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network. - */ - filter_information: FilterInformation; +export interface CollaborationNetwork { + /** + * The raw person ID of the person whose collaboration network this is. + */ + raw_person_id: string; + /** + * The work nodes in the collaboration network. + */ + work_nodes: Array; + /** + * The author nodes in the collaboration network. + */ + author_nodes: Array; + /** + * The institution nodes in the collaboration network. + */ + institution_nodes: Array; + /** + * The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I + */ + collaboration_edges: Array; + /** + * The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network. + */ + filter_information: FilterInformation; } - diff --git a/webapp/src/app/api/model/collaborationNetworkEdge.ts b/webapp/src/app/api/model/collaborationNetworkEdge.ts index 16fb5fc6..baffb178 100644 --- a/webapp/src/app/api/model/collaborationNetworkEdge.ts +++ b/webapp/src/app/api/model/collaborationNetworkEdge.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface CollaborationNetworkEdge { - /** - * The raw ID of the source node. - */ - raw_source_id: string; - /** - * The raw ID of the target node. - */ - raw_target_id: string; +export interface CollaborationNetworkEdge { + /** + * The raw ID of the source node. + */ + raw_source_id: string; + /** + * The raw ID of the target node. + */ + raw_target_id: string; } - diff --git a/webapp/src/app/api/model/collaborationNetworkNodeType.ts b/webapp/src/app/api/model/collaborationNetworkNodeType.ts index 1b3c0d84..3e673f35 100644 --- a/webapp/src/app/api/model/collaborationNetworkNodeType.ts +++ b/webapp/src/app/api/model/collaborationNetworkNodeType.ts @@ -1,18 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - export const CollaborationNetworkNodeType = { - author: 'author', - institution: 'institution', - work: 'work' + Author: 'author', + Institution: 'institution', + Work: 'work', } as const; -export type CollaborationNetworkNodeType = typeof CollaborationNetworkNodeType[keyof typeof CollaborationNetworkNodeType]; - +export type CollaborationNetworkNodeType = + (typeof CollaborationNetworkNodeType)[keyof typeof CollaborationNetworkNodeType]; diff --git a/webapp/src/app/api/model/companyConnection.ts b/webapp/src/app/api/model/companyConnection.ts new file mode 100644 index 00000000..2824c543 --- /dev/null +++ b/webapp/src/app/api/model/companyConnection.ts @@ -0,0 +1,25 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MatchedOfficer } from './matchedOfficer'; + +export interface CompanyConnection { + company_number?: string | null; + company_name?: string | null; + company_status?: string | null; + register_art?: string | null; + register_nummer?: string | null; + native_company_number?: string | null; + registrar?: string | null; + registered_office?: string | null; + registered_address?: string | null; + retrieved_at?: string | null; + matched_officers?: Array; + officers?: Array; +} diff --git a/webapp/src/app/api/model/companyConnectionsResponse.ts b/webapp/src/app/api/model/companyConnectionsResponse.ts new file mode 100644 index 00000000..f4f5f42f --- /dev/null +++ b/webapp/src/app/api/model/companyConnectionsResponse.ts @@ -0,0 +1,23 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CompanyConnection } from './companyConnection'; + +export interface CompanyConnectionsResponse { + author_id: string; + display_name?: string | null; + is_ude_author: boolean; + institution_scope?: string | null; + matching_institutions?: Array; + matching_method?: string | null; + company_count: number; + has_more_results: boolean; + common_name_warning: boolean; + connections?: Array; +} diff --git a/webapp/src/app/api/model/cordisEuProject.ts b/webapp/src/app/api/model/cordisEuProject.ts new file mode 100644 index 00000000..8d408ad6 --- /dev/null +++ b/webapp/src/app/api/model/cordisEuProject.ts @@ -0,0 +1,39 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Keywords } from './keywords'; +import { Topics } from './topics'; + +export interface CordisEuProject { + /** + * Unique identifier for the project, typically the CORDIS ID + */ + id: string; + rcn?: string | null; + acronym?: string | null; + title?: string | null; + objective?: string | null; + frameworkProgramme?: string | null; + fundingScheme?: string | null; + legalBasis?: string | null; + masterCall?: string | null; + subCall?: string | null; + topics?: Topics | null; + nature?: string | null; + status?: string | null; + ecMaxContribution?: number | null; + totalCost?: number | null; + startDate?: string | null; + endDate?: string | null; + ecSignatureDate?: string | null; + contentUpdateDate?: string | null; + grantDoi?: string | null; + humanValidated?: boolean | null; + keywords?: Keywords | null; +} diff --git a/webapp/src/app/api/model/cordisEuProjectPage.ts b/webapp/src/app/api/model/cordisEuProjectPage.ts new file mode 100644 index 00000000..8dc900f7 --- /dev/null +++ b/webapp/src/app/api/model/cordisEuProjectPage.ts @@ -0,0 +1,29 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CordisEuProject } from './cordisEuProject'; + +export interface CordisEuProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The CORDIS EU projects on this page. + */ + elements?: Array; +} diff --git a/webapp/src/app/api/model/costUsd.ts b/webapp/src/app/api/model/costUsd.ts index c7bcbee8..494cb094 100644 --- a/webapp/src/app/api/model/costUsd.ts +++ b/webapp/src/app/api/model/costUsd.ts @@ -1,17 +1,14 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Cost of this request in USD */ -export interface CostUsd { -} - +export interface CostUsd {} diff --git a/webapp/src/app/api/model/customAuthor.ts b/webapp/src/app/api/model/customAuthor.ts index 1117cd53..6fd54c51 100644 --- a/webapp/src/app/api/model/customAuthor.ts +++ b/webapp/src/app/api/model/customAuthor.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,31 +9,31 @@ */ import { AuthorAffiliationsInner } from './authorAffiliationsInner'; import { AuthorParsedLongestName } from './authorParsedLongestName'; +import { CareerMetrics } from './careerMetrics'; import { DehydratedInstitution } from './dehydratedInstitution'; import { AuthorCountsByYearInner } from './authorCountsByYearInner'; import { AuthorIds } from './authorIds'; import { AuthorSummaryStats } from './authorSummaryStats'; import { WorkTopic } from './workTopic'; - -export interface CustomAuthor { - id?: string | null; - orcid?: string | null; - display_name?: string | null; - display_name_alternatives?: Array | null; - longest_name?: string | null; - parsed_longest_name?: AuthorParsedLongestName | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - affiliations?: Array | null; - last_known_institutions?: Array | null; - topics?: Array | null; - counts_by_year?: Array | null; - ids?: AuthorIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; - relevance_rating?: string | null; +export interface CustomAuthor { + id?: string | null; + orcid?: string | null; + display_name?: string | null; + display_name_alternatives?: Array | null; + longest_name?: string | null; + parsed_longest_name?: AuthorParsedLongestName | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + affiliations?: Array | null; + last_known_institutions?: Array | null; + topics?: Array | null; + counts_by_year?: Array | null; + ids?: AuthorIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; + relevance_rating?: string | null; + career_metrics?: CareerMetrics | null; } - diff --git a/webapp/src/app/api/model/customAuthorsListResponse.ts b/webapp/src/app/api/model/customAuthorsListResponse.ts index f6eac14b..71f691a2 100644 --- a/webapp/src/app/api/model/customAuthorsListResponse.ts +++ b/webapp/src/app/api/model/customAuthorsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,14 +9,11 @@ */ import { Meta } from './meta'; import { CustomAuthor } from './customAuthor'; -import { Author } from './author'; import { GroupByResult } from './groupByResult'; - -export interface CustomAuthorsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; - placeholder?: CustomAuthor | null; +export interface CustomAuthorsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; + placeholder?: CustomAuthor | null; } - diff --git a/webapp/src/app/api/model/dehydratedAuthor.ts b/webapp/src/app/api/model/dehydratedAuthor.ts index 4d3817f1..350718ef 100644 --- a/webapp/src/app/api/model/dehydratedAuthor.ts +++ b/webapp/src/app/api/model/dehydratedAuthor.ts @@ -1,20 +1,18 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * [Dehydrated Author](/api-reference/authors#the-dehydratedauthor-object) — reduced-field version used in nested contexts */ -export interface DehydratedAuthor { - id?: string | null; - display_name?: string | null; - orcid?: string | null; +export interface DehydratedAuthor { + id?: string | null; + display_name?: string | null; + orcid?: string | null; } - diff --git a/webapp/src/app/api/model/dehydratedFunder.ts b/webapp/src/app/api/model/dehydratedFunder.ts index b134bbb1..c4231c13 100644 --- a/webapp/src/app/api/model/dehydratedFunder.ts +++ b/webapp/src/app/api/model/dehydratedFunder.ts @@ -1,20 +1,18 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * [Dehydrated Funder](/api-reference/funders) — reduced-field version used in nested contexts */ -export interface DehydratedFunder { - id?: string | null; - display_name?: string | null; - ror?: string | null; +export interface DehydratedFunder { + id?: string | null; + display_name?: string | null; + ror?: string | null; } - diff --git a/webapp/src/app/api/model/dehydratedInstitution.ts b/webapp/src/app/api/model/dehydratedInstitution.ts index 7b6c9824..956fc03e 100644 --- a/webapp/src/app/api/model/dehydratedInstitution.ts +++ b/webapp/src/app/api/model/dehydratedInstitution.ts @@ -1,23 +1,21 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * [Dehydrated Institution](/api-reference/institutions#the-dehydratedinstitution-object) — reduced-field version used in nested contexts */ -export interface DehydratedInstitution { - id?: string | null; - display_name?: string | null; - ror?: string | null; - country_code?: string | null; - type?: string | null; - lineage?: Array | null; +export interface DehydratedInstitution { + id?: string | null; + display_name?: string | null; + ror?: string | null; + country_code?: string | null; + type?: string | null; + lineage?: Array | null; } - diff --git a/webapp/src/app/api/model/dehydratedSource.ts b/webapp/src/app/api/model/dehydratedSource.ts index ae714846..b672b5dd 100644 --- a/webapp/src/app/api/model/dehydratedSource.ts +++ b/webapp/src/app/api/model/dehydratedSource.ts @@ -1,28 +1,26 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * [Dehydrated Source](/api-reference/sources#the-dehydratedsource-object) — reduced-field version used in nested contexts */ -export interface DehydratedSource { - id?: string | null; - display_name?: string | null; - issn_l?: string | null; - issn?: Array | null; - is_oa?: boolean | null; - is_in_doaj?: boolean | null; - is_core?: boolean | null; - host_organization?: string | null; - host_organization_name?: string | null; - host_organization_lineage?: Array | null; - type?: string | null; +export interface DehydratedSource { + id?: string | null; + display_name?: string | null; + issn_l?: string | null; + issn?: Array | null; + is_oa?: boolean | null; + is_in_doaj?: boolean | null; + is_core?: boolean | null; + host_organization?: string | null; + host_organization_name?: string | null; + host_organization_lineage?: Array | null; + type?: string | null; } - diff --git a/webapp/src/app/api/model/dfgProjectDetails.ts b/webapp/src/app/api/model/dfgProjectDetails.ts new file mode 100644 index 00000000..58ece5f7 --- /dev/null +++ b/webapp/src/app/api/model/dfgProjectDetails.ts @@ -0,0 +1,39 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Clean summary model for a DFG project, consolidating all person roles and institution references into unified lists. + */ +export interface DfgProjectDetails { + /** + * The ID of the DFG project + */ + id: string; + link?: string | null; + title?: string | null; + description?: string | null; + project_identifier?: string | null; + funding_start_date?: string | null; + funding_end_date?: string | null; + dfg_procedure?: string | null; + subject_area?: string | null; + funding_type?: string | null; + international_reference?: string | null; + website?: string | null; + /** + * All persons associated with the DFG project (any role) + */ + associated_persons?: Array; + /** + * All institutions associated with the DFG project + */ + institutions?: Array; + subproject_of?: string | null; +} diff --git a/webapp/src/app/api/model/dfgProjectPage.ts b/webapp/src/app/api/model/dfgProjectPage.ts index 8f67e170..a05d81d2 100644 --- a/webapp/src/app/api/model/dfgProjectPage.ts +++ b/webapp/src/app/api/model/dfgProjectPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,23 +9,21 @@ */ import { DfgProjectSummary } from './dfgProjectSummary'; - -export interface DfgProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The DFG projects on this page. - */ - elements?: Array; +export interface DfgProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The DFG projects on this page. + */ + elements?: Array; } - diff --git a/webapp/src/app/api/model/dfgProjectSummary.ts b/webapp/src/app/api/model/dfgProjectSummary.ts index 145dba4a..10c05a08 100644 --- a/webapp/src/app/api/model/dfgProjectSummary.ts +++ b/webapp/src/app/api/model/dfgProjectSummary.ts @@ -1,27 +1,25 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface DfgProjectSummary { - /** - * The unique identifier of the DFG project. - */ - id: string; - link?: string | null; - title?: string | null; - professional_classification?: string | null; - funding_start?: string | null; - funding_end?: string | null; - /** - * The names of the researchers involved in the DFG project. - */ - names?: Array; +export interface DfgProjectSummary { + /** + * The unique identifier of the DFG project. + */ + id: string; + link?: string | null; + title?: string | null; + professional_classification?: string | null; + funding_start?: string | null; + funding_end?: string | null; + /** + * The names of the researchers involved in the DFG project. + */ + names?: Array; } - diff --git a/webapp/src/app/api/model/euOrganizationProjectSummary.ts b/webapp/src/app/api/model/euOrganizationProjectSummary.ts new file mode 100644 index 00000000..af085ff3 --- /dev/null +++ b/webapp/src/app/api/model/euOrganizationProjectSummary.ts @@ -0,0 +1,25 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface EuOrganizationProjectSummary { + /** + * The unique identifier of the organization. + */ + organization_id: string; + /** + * The unique identifier of the project. + */ + project_id: string; + title?: string | null; + start_date?: string | null; + end_date?: string | null; + acronym?: string | null; + ec_contribution?: number | null; +} diff --git a/webapp/src/app/api/model/euOrganizationProjectSummaryPage.ts b/webapp/src/app/api/model/euOrganizationProjectSummaryPage.ts new file mode 100644 index 00000000..90166a7e --- /dev/null +++ b/webapp/src/app/api/model/euOrganizationProjectSummaryPage.ts @@ -0,0 +1,29 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { EuOrganizationProjectSummary } from './euOrganizationProjectSummary'; + +export interface EuOrganizationProjectSummaryPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The organization project summaries on this page. + */ + elements?: Array; +} diff --git a/webapp/src/app/api/model/euProject.ts b/webapp/src/app/api/model/euProject.ts deleted file mode 100644 index 9303df6c..00000000 --- a/webapp/src/app/api/model/euProject.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Innovation Search Engine API - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { ProgrammeNested } from './programmeNested'; -import { KeywordNested } from './keywordNested'; -import { OrganizationNested } from './organizationNested'; -import { CategoryNested } from './categoryNested'; - - -export interface EuProject { - acronym?: string | null; - /** - * Structured lists of classification categories and taxonomy mappings assigned to the project. - */ - categories_nested?: Array; - doc_number?: string | null; - doi?: string | null; - ec_max_contribution?: string | null; - end_date?: string | null; - funding_end?: string | null; - funding_start?: string | null; - id?: string | null; - keywords?: string | null; - /** - * Strictly tokenized and isolated keywords nested for targeted search engine aggregations. - */ - keywords_nested?: Array; - link?: string | null; - objective?: string | null; - /** - * The full roster of academic, public, or private organizations participating in the project consortium. - */ - organization_nested?: Array; - /** - * The nested historical line of EU funding frameworks and structural grants supporting this project. - */ - programme_nested?: Array; - source?: string | null; - start_date?: string | null; - status?: string | null; - teaser?: string | null; - title?: string | null; - total_cost?: string | null; -} - diff --git a/webapp/src/app/api/model/euProjectPage.ts b/webapp/src/app/api/model/euProjectPage.ts deleted file mode 100644 index e03e1c0f..00000000 --- a/webapp/src/app/api/model/euProjectPage.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Innovation Search Engine API - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { EuProject } from './euProject'; - - -export interface EuProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The EU projects on this page. - */ - elements?: Array; -} - diff --git a/webapp/src/app/api/model/filterInformation.ts b/webapp/src/app/api/model/filterInformation.ts index b2078376..1c4af66d 100644 --- a/webapp/src/app/api/model/filterInformation.ts +++ b/webapp/src/app/api/model/filterInformation.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,23 +10,21 @@ import { InstitutionInformation } from './institutionInformation'; import { WorkTopicInformation } from './workTopicInformation'; - -export interface FilterInformation { - /** - * The minimum publication year of the works in the collaboration network. - */ - min_possible_year: number; - /** - * The maximum publication year of the works in the collaboration network. - */ - max_possible_year: number; - /** - * The list of institutions associated with the works in the collaboration network. - */ - institutions: Array; - /** - * The list of topics associated with the works in the collaboration network. - */ - topics: Array; +export interface FilterInformation { + /** + * The minimum publication year of the works in the collaboration network. + */ + min_possible_year: number; + /** + * The maximum publication year of the works in the collaboration network. + */ + max_possible_year: number; + /** + * The list of institutions associated with the works in the collaboration network. + */ + institutions: Array; + /** + * The list of topics associated with the works in the collaboration network. + */ + topics: Array; } - diff --git a/webapp/src/app/api/model/filterProperties.ts b/webapp/src/app/api/model/filterProperties.ts index 608acab4..7caac0b6 100644 --- a/webapp/src/app/api/model/filterProperties.ts +++ b/webapp/src/app/api/model/filterProperties.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,13 +10,11 @@ import { WorksFilterProperties } from './worksFilterProperties'; import { AuthorsFilterProperties } from './authorsFilterProperties'; - -export interface FilterProperties { - /** - * The type of filter to apply when generating the collaboration network. Can be either \'works\' or \'authors\'. If \'works\', the filter properties in the \'works_filter_properties\' field will be used. If \'authors\', the filter properties in the \'authors_filter_properties\' field will be used. - */ - filter_by?: string; - works_filter_properties: WorksFilterProperties | null; - authors_filter_properties: AuthorsFilterProperties | null; +export interface FilterProperties { + /** + * The type of filter to apply when generating the collaboration network. Can be either \'works\' or \'authors\'. If \'works\', the filter properties in the \'works_filter_properties\' field will be used. If \'authors\', the filter properties in the \'authors_filter_properties\' field will be used. + */ + filter_by?: string; + works_filter_properties: WorksFilterProperties | null; + authors_filter_properties: AuthorsFilterProperties | null; } - diff --git a/webapp/src/app/api/model/funderByAuthor.ts b/webapp/src/app/api/model/funderByAuthor.ts index 247e5629..c62110e7 100644 --- a/webapp/src/app/api/model/funderByAuthor.ts +++ b/webapp/src/app/api/model/funderByAuthor.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,15 +11,13 @@ import { PublicationIdsByAuthorPosition } from './publicationIdsByAuthorPosition import { AuthorPositionCount } from './authorPositionCount'; import { PublicationDetailByFunder } from './publicationDetailByFunder'; - -export interface FunderByAuthor { - funder_id?: string | null; - funder_name?: string | null; - publication_count: number; - author_position_count: AuthorPositionCount; - publication_ids: PublicationIdsByAuthorPosition; - publication_urls?: { [key: string]: string; }; - publication_titles?: { [key: string]: string; }; - publication_details?: { [key: string]: PublicationDetailByFunder; }; +export interface FunderByAuthor { + funder_id?: string | null; + funder_name?: string | null; + publication_count: number; + author_position_count: AuthorPositionCount; + publication_ids: PublicationIdsByAuthorPosition; + publication_urls?: { [key: string]: string }; + publication_titles?: { [key: string]: string }; + publication_details?: { [key: string]: PublicationDetailByFunder }; } - diff --git a/webapp/src/app/api/model/fundersByAuthorResponse.ts b/webapp/src/app/api/model/fundersByAuthorResponse.ts index 1286429e..d6e0e02f 100644 --- a/webapp/src/app/api/model/fundersByAuthorResponse.ts +++ b/webapp/src/app/api/model/fundersByAuthorResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,9 @@ */ import { FunderByAuthor } from './funderByAuthor'; - -export interface FundersByAuthorResponse { - author_id: string; - author_name?: string | null; - funder_count: number; - funders: Array; +export interface FundersByAuthorResponse { + author_id: string; + author_name?: string | null; + funder_count: number; + funders: Array; } - diff --git a/webapp/src/app/api/model/fundingProject.ts b/webapp/src/app/api/model/fundingProject.ts new file mode 100644 index 00000000..fb8204e3 --- /dev/null +++ b/webapp/src/app/api/model/fundingProject.ts @@ -0,0 +1,27 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProjectType } from './projectType'; + +export interface FundingProject { + /** + * The type of the project. + */ + type: ProjectType; + /** + * The unique identifier of the project. + */ + id: string; + title?: string | null; + acronym?: string | null; + start_date?: string | null; + end_date?: string | null; + funding_amount?: number | null; +} +export namespace FundingProject {} diff --git a/webapp/src/app/api/model/fundingProjectPage.ts b/webapp/src/app/api/model/fundingProjectPage.ts new file mode 100644 index 00000000..e0996525 --- /dev/null +++ b/webapp/src/app/api/model/fundingProjectPage.ts @@ -0,0 +1,29 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { FundingProject } from './fundingProject'; + +export interface FundingProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The funding projects on this page. + */ + elements?: Array; +} diff --git a/webapp/src/app/api/model/fwci.ts b/webapp/src/app/api/model/fwci.ts index 0c0cf8de..bd7eea69 100644 --- a/webapp/src/app/api/model/fwci.ts +++ b/webapp/src/app/api/model/fwci.ts @@ -1,17 +1,14 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Field-weighted Citation Impact, calculated as citations received / citations expected. */ -export interface Fwci { -} - +export interface Fwci {} diff --git a/webapp/src/app/api/model/groupByResult.ts b/webapp/src/app/api/model/groupByResult.ts index 68c51855..98580663 100644 --- a/webapp/src/app/api/model/groupByResult.ts +++ b/webapp/src/app/api/model/groupByResult.ts @@ -1,20 +1,18 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * GroupByResult */ -export interface GroupByResult { - key?: string | null; - key_display_name?: string | null; - count?: number | null; +export interface GroupByResult { + key?: string | null; + key_display_name?: string | null; + count?: number | null; } - diff --git a/webapp/src/app/api/model/hTTPValidationError.ts b/webapp/src/app/api/model/hTTPValidationError.ts index f624be37..c8e65c3e 100644 --- a/webapp/src/app/api/model/hTTPValidationError.ts +++ b/webapp/src/app/api/model/hTTPValidationError.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,8 +9,6 @@ */ import { ValidationError } from './validationError'; - -export interface HTTPValidationError { - detail?: Array; +export interface HTTPValidationError { + detail?: Array; } - diff --git a/webapp/src/app/api/model/identityGrant.ts b/webapp/src/app/api/model/identityGrant.ts index 9ec3fe50..4bf172b8 100644 --- a/webapp/src/app/api/model/identityGrant.ts +++ b/webapp/src/app/api/model/identityGrant.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,9 @@ */ import { AuthScope } from './authScope'; - -export interface IdentityGrant { - token_type: string; - access_token: string; - expires_in: number; - scope: AuthScope; +export interface IdentityGrant { + token_type: string; + access_token: string; + expires_in: number; + scope: AuthScope; } - diff --git a/webapp/src/app/api/model/institution.ts b/webapp/src/app/api/model/institution.ts index 6b1a5778..c099fc57 100644 --- a/webapp/src/app/api/model/institution.ts +++ b/webapp/src/app/api/model/institution.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,30 +12,28 @@ import { AuthorCountsByYearInner } from './authorCountsByYearInner'; import { AuthorSummaryStats } from './authorSummaryStats'; import { InstitutionGeo } from './institutionGeo'; - /** * A university, research organization, or other affiliation */ -export interface Institution { - id?: string | null; - ror?: string | null; - display_name?: string | null; - country_code?: string | null; - type?: string | null; - homepage_url?: string | null; - image_url?: string | null; - image_thumbnail_url?: string | null; - display_name_acronyms?: Array | null; - display_name_alternatives?: Array | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - geo?: InstitutionGeo | null; - lineage?: Array | null; - ids?: InstitutionIds | null; - counts_by_year?: Array | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Institution { + id?: string | null; + ror?: string | null; + display_name?: string | null; + country_code?: string | null; + type?: string | null; + homepage_url?: string | null; + image_url?: string | null; + image_thumbnail_url?: string | null; + display_name_acronyms?: Array | null; + display_name_alternatives?: Array | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + geo?: InstitutionGeo | null; + lineage?: Array | null; + ids?: InstitutionIds | null; + counts_by_year?: Array | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } - diff --git a/webapp/src/app/api/model/institutionFunderSummary.ts b/webapp/src/app/api/model/institutionFunderSummary.ts new file mode 100644 index 00000000..cf15754a --- /dev/null +++ b/webapp/src/app/api/model/institutionFunderSummary.ts @@ -0,0 +1,26 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ProjectType } from './projectType'; + +export interface InstitutionFunderSummary { + /** + * The type of funding data (e.g., \'bund\', \'eu\', \'dfg\'). + */ + type: ProjectType; + /** + * A dictionary mapping years to total funding amounts for that year. + */ + funding_per_year?: object; + /** + * The average annual funding over the continuous period covered by the data. + */ + annual_average_over_period?: number; +} +export namespace InstitutionFunderSummary {} diff --git a/webapp/src/app/api/model/institutionGeo.ts b/webapp/src/app/api/model/institutionGeo.ts index 949b73f4..b438d37c 100644 --- a/webapp/src/app/api/model/institutionGeo.ts +++ b/webapp/src/app/api/model/institutionGeo.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,17 +10,15 @@ import { Latitude } from './latitude'; import { Longitude } from './longitude'; - /** * Location information: */ -export interface InstitutionGeo { - city?: string | null; - geonames_city_id?: string | null; - region?: string | null; - country_code?: string | null; - country?: string | null; - latitude?: Latitude | null; - longitude?: Longitude | null; +export interface InstitutionGeo { + city?: string | null; + geonames_city_id?: string | null; + region?: string | null; + country_code?: string | null; + country?: string | null; + latitude?: Latitude | null; + longitude?: Longitude | null; } - diff --git a/webapp/src/app/api/model/institutionIds.ts b/webapp/src/app/api/model/institutionIds.ts index 93d801e1..fd952098 100644 --- a/webapp/src/app/api/model/institutionIds.ts +++ b/webapp/src/app/api/model/institutionIds.ts @@ -1,23 +1,21 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * External identifiers: */ -export interface InstitutionIds { - openalex?: string | null; - ror?: string | null; - mag?: number | null; - grid?: string | null; - wikipedia?: string | null; - wikidata?: string | null; +export interface InstitutionIds { + openalex?: string | null; + ror?: string | null; + mag?: number | null; + grid?: string | null; + wikipedia?: string | null; + wikidata?: string | null; } - diff --git a/webapp/src/app/api/model/institutionInformation.ts b/webapp/src/app/api/model/institutionInformation.ts index e287b0fa..9e12986d 100644 --- a/webapp/src/app/api/model/institutionInformation.ts +++ b/webapp/src/app/api/model/institutionInformation.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface InstitutionInformation { - /** - * The raw institution ID of the institution. - */ - raw_id: string; - /** - * The display name of the institution. - */ - display_name: string; +export interface InstitutionInformation { + /** + * The raw institution ID of the institution. + */ + raw_id: string; + /** + * The display name of the institution. + */ + display_name: string; } - diff --git a/webapp/src/app/api/model/institutionNetworkNode.ts b/webapp/src/app/api/model/institutionNetworkNode.ts index a558a8cf..791645b7 100644 --- a/webapp/src/app/api/model/institutionNetworkNode.ts +++ b/webapp/src/app/api/model/institutionNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,22 +9,18 @@ */ import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; - -export interface InstitutionNetworkNode { - /** - * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; +export interface InstitutionNetworkNode { + /** + * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; } -export namespace InstitutionNetworkNode { -} - - +export namespace InstitutionNetworkNode {} diff --git a/webapp/src/app/api/model/institutionPage.ts b/webapp/src/app/api/model/institutionPage.ts new file mode 100644 index 00000000..b7640651 --- /dev/null +++ b/webapp/src/app/api/model/institutionPage.ts @@ -0,0 +1,29 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Institution } from './institution'; + +export interface InstitutionPage { + /** + * List of institutions in the current page. + */ + elements?: Array; + /** + * Current page number. (0-indexed) + */ + page?: number; + /** + * Number of institutions per page. + */ + size?: number; + /** + * Total number of institutions matching the search criteria. + */ + total?: number; +} diff --git a/webapp/src/app/api/model/institutionsListResponse.ts b/webapp/src/app/api/model/institutionsListResponse.ts index 908d72fe..0ac2c185 100644 --- a/webapp/src/app/api/model/institutionsListResponse.ts +++ b/webapp/src/app/api/model/institutionsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,13 +11,11 @@ import { Meta } from './meta'; import { Institution } from './institution'; import { GroupByResult } from './groupByResult'; - /** * InstitutionsListResponse */ -export interface InstitutionsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface InstitutionsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } - diff --git a/webapp/src/app/api/model/item.ts b/webapp/src/app/api/model/item.ts index cc33194a..377f3a81 100644 --- a/webapp/src/app/api/model/item.ts +++ b/webapp/src/app/api/model/item.ts @@ -1,26 +1,24 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Item { - /** - * The id of the entity. - */ - id: number; - /** - * The name of the item. - */ - name: string; - /** - * The description of the item. - */ - description: string; +export interface Item { + /** + * The id of the entity. + */ + id: number; + /** + * The name of the item. + */ + name: string; + /** + * The description of the item. + */ + description: string; } - diff --git a/webapp/src/app/api/model/itemCreate.ts b/webapp/src/app/api/model/itemCreate.ts index 608d6910..36920a12 100644 --- a/webapp/src/app/api/model/itemCreate.ts +++ b/webapp/src/app/api/model/itemCreate.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface ItemCreate { - /** - * The name of the item. - */ - name: string; - /** - * The description of the item. - */ - description: string; +export interface ItemCreate { + /** + * The name of the item. + */ + name: string; + /** + * The description of the item. + */ + description: string; } - diff --git a/webapp/src/app/api/model/itemPage.ts b/webapp/src/app/api/model/itemPage.ts index 56595b8a..53a7140a 100644 --- a/webapp/src/app/api/model/itemPage.ts +++ b/webapp/src/app/api/model/itemPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,23 +9,21 @@ */ import { Item } from './item'; - -export interface ItemPage { - /** - * The elements of the page. - */ - elements?: Array; - /** - * The page offset in elements. - */ - offset?: number; - /** - * The total number of elements. - */ - total?: number; - /** - * The page size in elements. - */ - size?: number; +export interface ItemPage { + /** + * The elements of the page. + */ + elements?: Array; + /** + * The page offset in elements. + */ + offset?: number; + /** + * The total number of elements. + */ + total?: number; + /** + * The page size in elements. + */ + size?: number; } - diff --git a/webapp/src/app/api/model/keywords.ts b/webapp/src/app/api/model/keywords.ts new file mode 100644 index 00000000..d93b5fe0 --- /dev/null +++ b/webapp/src/app/api/model/keywords.ts @@ -0,0 +1,14 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Keywords associated with the project + */ +export interface Keywords {} diff --git a/webapp/src/app/api/model/latitude.ts b/webapp/src/app/api/model/latitude.ts index fe6b49aa..8fb58a9b 100644 --- a/webapp/src/app/api/model/latitude.ts +++ b/webapp/src/app/api/model/latitude.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Latitude { -} - +export interface Latitude {} diff --git a/webapp/src/app/api/model/location.ts b/webapp/src/app/api/model/location.ts index f207d751..f92e2ffb 100644 --- a/webapp/src/app/api/model/location.ts +++ b/webapp/src/app/api/model/location.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,19 +9,17 @@ */ import { DehydratedSource } from './dehydratedSource'; - /** * Where a work is hosted */ -export interface Location { - is_oa?: boolean | null; - landing_page_url?: string | null; - pdf_url?: string | null; - source?: DehydratedSource | null; - license?: string | null; - license_id?: string | null; - version?: string | null; - is_accepted?: boolean | null; - is_published?: boolean | null; +export interface Location { + is_oa?: boolean | null; + landing_page_url?: string | null; + pdf_url?: string | null; + source?: DehydratedSource | null; + license?: string | null; + license_id?: string | null; + version?: string | null; + is_accepted?: boolean | null; + is_published?: boolean | null; } - diff --git a/webapp/src/app/api/model/longitude.ts b/webapp/src/app/api/model/longitude.ts index b0d39fce..d222a6ff 100644 --- a/webapp/src/app/api/model/longitude.ts +++ b/webapp/src/app/api/model/longitude.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Longitude { -} - +export interface Longitude {} diff --git a/webapp/src/app/api/model/matchedOfficer.ts b/webapp/src/app/api/model/matchedOfficer.ts new file mode 100644 index 00000000..a9f00939 --- /dev/null +++ b/webapp/src/app/api/model/matchedOfficer.ts @@ -0,0 +1,21 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface MatchedOfficer { + name?: string | null; + firstname?: string | null; + lastname?: string | null; + city?: string | null; + position?: string | null; + start_date?: string | null; + type?: string | null; + flag?: string | null; + is_matched_person?: boolean; +} diff --git a/webapp/src/app/api/model/programmeNested.ts b/webapp/src/app/api/model/mentionedPerson.ts similarity index 63% rename from webapp/src/app/api/model/programmeNested.ts rename to webapp/src/app/api/model/mentionedPerson.ts index f13b7312..dad21357 100644 --- a/webapp/src/app/api/model/programmeNested.ts +++ b/webapp/src/app/api/model/mentionedPerson.ts @@ -1,17 +1,15 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface ProgrammeNested { - code?: string | null; - id?: string | null; - programme?: string | null; +export interface MentionedPerson { + name: string; + is_ude?: boolean; + person_id?: string | null; } - diff --git a/webapp/src/app/api/model/meta.ts b/webapp/src/app/api/model/meta.ts index 8481062a..f9f56443 100644 --- a/webapp/src/app/api/model/meta.ts +++ b/webapp/src/app/api/model/meta.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,17 +9,15 @@ */ import { CostUsd } from './costUsd'; - /** * Metadata about the query results */ -export interface Meta { - count?: number | null; - db_response_time_ms?: number | null; - page?: number | null; - per_page?: number | null; - next_cursor?: string | null; - groups_count?: number | null; - cost_usd?: CostUsd | null; +export interface Meta { + count?: number | null; + db_response_time_ms?: number | null; + page?: number | null; + per_page?: number | null; + next_cursor?: string | null; + groups_count?: number | null; + cost_usd?: CostUsd | null; } - diff --git a/webapp/src/app/api/model/model2YrMeanCitedness.ts b/webapp/src/app/api/model/model2YrMeanCitedness.ts index 67ec623c..d9c3d9df 100644 --- a/webapp/src/app/api/model/model2YrMeanCitedness.ts +++ b/webapp/src/app/api/model/model2YrMeanCitedness.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Model2YrMeanCitedness { -} - +export interface Model2YrMeanCitedness {} diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 7b37e6c3..89f601cc 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -18,11 +18,16 @@ export * from './autocompleteResponseResultsInner'; export * from './award'; export * from './bodyCreateUser'; export * from './bundProject'; +export * from './bundProjectDetails'; export * from './bundProjectPage'; -export * from './categoryNested'; +export * from './careerMetrics'; export * from './collaborationNetwork'; export * from './collaborationNetworkEdge'; export * from './collaborationNetworkNodeType'; +export * from './companyConnection'; +export * from './companyConnectionsResponse'; +export * from './cordisEuProject'; +export * from './cordisEuProjectPage'; export * from './costUsd'; export * from './customAuthor'; export * from './customAuthorsListResponse'; @@ -30,51 +35,68 @@ export * from './dehydratedAuthor'; export * from './dehydratedFunder'; export * from './dehydratedInstitution'; export * from './dehydratedSource'; +export * from './dfgProjectDetails'; export * from './dfgProjectPage'; export * from './dfgProjectSummary'; -export * from './displayCodeSplittedNested'; -export * from './euProject'; -export * from './euProjectPage'; +export * from './euOrganizationProjectSummary'; +export * from './euOrganizationProjectSummaryPage'; export * from './filterInformation'; export * from './filterProperties'; export * from './funderByAuthor'; export * from './fundersByAuthorResponse'; +export * from './fundingProject'; +export * from './fundingProjectPage'; export * from './fwci'; export * from './groupByResult'; export * from './hTTPValidationError'; export * from './identityGrant'; export * from './institution'; +export * from './institutionFunderSummary'; export * from './institutionGeo'; export * from './institutionIds'; export * from './institutionInformation'; export * from './institutionNetworkNode'; +export * from './institutionPage'; export * from './institutionsListResponse'; export * from './item'; export * from './itemCreate'; export * from './itemPage'; -export * from './keywordNested'; +export * from './keywords'; export * from './latitude'; export * from './location'; export * from './longitude'; +export * from './matchedOfficer'; +export * from './mentionedPerson'; export * from './meta'; export * from './model2YrMeanCitedness'; +export * from './newsArticle'; +export * from './newsArticleDetail'; +export * from './newsPage'; export * from './openAccess'; -export * from './organizationNested'; +export * from './patentEntry'; +export * from './patentsByAuthorResponse'; export * from './personBio'; -export * from './programmeNested'; +export * from './projectType'; +export * from './projectsFilteringProperties'; +export * from './projectsSortBy'; export * from './publicationDetailByFunder'; export * from './publicationIdsByAuthorPosition'; export * from './publicationsByAuthorResponse'; +export * from './rankingResponse'; export * from './score'; +export * from './sortDirection'; export * from './topic'; export * from './topicCount'; export * from './topicDomain'; export * from './topicField'; export * from './topicIds'; export * from './topicSubfield'; +export * from './topics'; export * from './topicsByTime'; export * from './topicsByYear'; export * from './topicsListResponse'; +export * from './universityRanking'; +export * from './universityTopicData'; export * from './user'; export * from './validationError'; export * from './validationErrorLocInner'; @@ -98,3 +120,4 @@ export * from './workTopicInformation'; export * from './workTopicSubfield'; export * from './worksFilterProperties'; export * from './worksListResponse'; +export * from './yearlyData'; diff --git a/webapp/src/app/api/model/newsArticle.ts b/webapp/src/app/api/model/newsArticle.ts new file mode 100644 index 00000000..3701eb25 --- /dev/null +++ b/webapp/src/app/api/model/newsArticle.ts @@ -0,0 +1,19 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface NewsArticle { + id: string; + date?: string | null; + maintitle?: string | null; + author?: string | null; + url?: string | null; + relevant?: boolean | null; + snippet?: string | null; +} diff --git a/webapp/src/app/api/model/newsArticleDetail.ts b/webapp/src/app/api/model/newsArticleDetail.ts new file mode 100644 index 00000000..ed8903d0 --- /dev/null +++ b/webapp/src/app/api/model/newsArticleDetail.ts @@ -0,0 +1,22 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MentionedPerson } from './mentionedPerson'; + +export interface NewsArticleDetail { + id: string; + date?: string | null; + maintitle?: string | null; + author?: string | null; + url?: string | null; + relevant?: boolean | null; + snippet?: string | null; + full_content?: string | null; + authors?: Array; +} diff --git a/webapp/src/app/api/model/newsPage.ts b/webapp/src/app/api/model/newsPage.ts new file mode 100644 index 00000000..bbb74122 --- /dev/null +++ b/webapp/src/app/api/model/newsPage.ts @@ -0,0 +1,17 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { NewsArticle } from './newsArticle'; + +export interface NewsPage { + total: number; + page: number; + page_size: number; + results: Array; +} diff --git a/webapp/src/app/api/model/openAccess.ts b/webapp/src/app/api/model/openAccess.ts index 32a4ddd9..40d7b1d0 100644 --- a/webapp/src/app/api/model/openAccess.ts +++ b/webapp/src/app/api/model/openAccess.ts @@ -1,21 +1,19 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Open access information */ -export interface OpenAccess { - is_oa?: boolean | null; - oa_status?: string | null; - oa_url?: string | null; - any_repository_has_fulltext?: boolean | null; +export interface OpenAccess { + is_oa?: boolean | null; + oa_status?: string | null; + oa_url?: string | null; + any_repository_has_fulltext?: boolean | null; } - diff --git a/webapp/src/app/api/model/organizationNested.ts b/webapp/src/app/api/model/organizationNested.ts deleted file mode 100644 index fdfed27e..00000000 --- a/webapp/src/app/api/model/organizationNested.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Innovation Search Engine API - * - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export interface OrganizationNested { - ec_contribution?: string | null; - id?: string | null; - name?: string | null; - net_ec_contribution?: string | null; - total_cost?: string | null; - organization_type?: string | null; -} - diff --git a/webapp/src/app/api/model/patentEntry.ts b/webapp/src/app/api/model/patentEntry.ts new file mode 100644 index 00000000..a6a3619c --- /dev/null +++ b/webapp/src/app/api/model/patentEntry.ts @@ -0,0 +1,22 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface PatentEntry { + patent_id: string; + source: string; + title?: string | null; + abstract?: string | null; + publication_date?: string | null; + publication_year?: string | null; + inventors?: Array; + assignees?: Array; + ipc?: Array; + country?: string | null; +} diff --git a/webapp/src/app/api/model/patentsByAuthorResponse.ts b/webapp/src/app/api/model/patentsByAuthorResponse.ts new file mode 100644 index 00000000..ed970c7a --- /dev/null +++ b/webapp/src/app/api/model/patentsByAuthorResponse.ts @@ -0,0 +1,17 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PatentEntry } from './patentEntry'; + +export interface PatentsByAuthorResponse { + author_id: string; + author_name?: string | null; + patent_count: number; + patents: Array; +} diff --git a/webapp/src/app/api/model/personBio.ts b/webapp/src/app/api/model/personBio.ts index f7291e6f..b060c9a9 100644 --- a/webapp/src/app/api/model/personBio.ts +++ b/webapp/src/app/api/model/personBio.ts @@ -1,18 +1,16 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface PersonBio { - /** - * The generated biography. - */ - bio: string; +export interface PersonBio { + /** + * The generated biography. + */ + bio: string; } - diff --git a/webapp/src/app/api/model/projectType.ts b/webapp/src/app/api/model/projectType.ts new file mode 100644 index 00000000..08df30c4 --- /dev/null +++ b/webapp/src/app/api/model/projectType.ts @@ -0,0 +1,16 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export const ProjectType = { + Bund: 'bund', + Eu: 'eu', + Dfg: 'dfg', +} as const; +export type ProjectType = (typeof ProjectType)[keyof typeof ProjectType]; diff --git a/webapp/src/app/api/model/projectsFilteringProperties.ts b/webapp/src/app/api/model/projectsFilteringProperties.ts new file mode 100644 index 00000000..c0cebe63 --- /dev/null +++ b/webapp/src/app/api/model/projectsFilteringProperties.ts @@ -0,0 +1,38 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SortDirection } from './sortDirection'; +import { ProjectsSortBy } from './projectsSortBy'; +import { ProjectType } from './projectType'; + +export interface ProjectsFilteringProperties { + /** + * The type of projects to filter by. + */ + project_type: ProjectType; + /** + * The page number for pagination. + */ + page: number; + /** + * The page size for pagination. + */ + size: number; + raw_oa_institution_id?: string | null; + query?: string | null; + /** + * The field to sort by. + */ + sort_by?: ProjectsSortBy; + /** + * The sort direction (asc or desc). + */ + sort_direction?: SortDirection; +} +export namespace ProjectsFilteringProperties {} diff --git a/webapp/src/app/api/model/projectsSortBy.ts b/webapp/src/app/api/model/projectsSortBy.ts new file mode 100644 index 00000000..26400b22 --- /dev/null +++ b/webapp/src/app/api/model/projectsSortBy.ts @@ -0,0 +1,18 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export const ProjectsSortBy = { + Title: 'title', + FundingStart: 'funding_start', + FundingEnd: 'funding_end', + FundingAmount: 'funding_amount', +} as const; +export type ProjectsSortBy = + (typeof ProjectsSortBy)[keyof typeof ProjectsSortBy]; diff --git a/webapp/src/app/api/model/publicationDetailByFunder.ts b/webapp/src/app/api/model/publicationDetailByFunder.ts index 123ded7e..0fd6b7c5 100644 --- a/webapp/src/app/api/model/publicationDetailByFunder.ts +++ b/webapp/src/app/api/model/publicationDetailByFunder.ts @@ -1,45 +1,43 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface PublicationDetailByFunder { - id: string; - title: string; - 'abstract'?: string | null; - doi?: string | null; - publication_year?: number | null; - publication_date?: string | null; - publication_type?: string | null; - language?: string | null; - publication_url?: string | null; - pdf_url?: string | null; - source_name?: string | null; - source_type?: string | null; - is_open_access?: boolean | null; - open_access_status?: string | null; - has_fulltext?: boolean | null; - license?: string | null; - cited_by_count?: number | null; - is_retracted?: boolean | null; - primary_topic?: string | null; - topic_field?: string | null; - topic_subfield?: string | null; - topic_domain?: string | null; - author_position?: string | null; - authors?: Array; - funder_names?: Array; - institutions?: Array; - countries?: Array; - topics?: Array; - keywords?: Array; - grant_labels?: Array; - counts_by_year?: Array; +export interface PublicationDetailByFunder { + id: string; + title: string; + abstract?: string | null; + doi?: string | null; + publication_year?: number | null; + publication_date?: string | null; + publication_type?: string | null; + language?: string | null; + publication_url?: string | null; + pdf_url?: string | null; + source_name?: string | null; + source_type?: string | null; + is_open_access?: boolean | null; + open_access_status?: string | null; + has_fulltext?: boolean | null; + license?: string | null; + cited_by_count?: number | null; + is_retracted?: boolean | null; + primary_topic?: string | null; + topic_field?: string | null; + topic_subfield?: string | null; + topic_domain?: string | null; + author_position?: string | null; + authors?: Array; + funder_names?: Array; + institutions?: Array; + countries?: Array; + topics?: Array; + keywords?: Array; + grant_labels?: Array; + counts_by_year?: Array; } - diff --git a/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts b/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts index c35050ef..d549f8ed 100644 --- a/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts +++ b/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts @@ -1,18 +1,16 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface PublicationIdsByAuthorPosition { - first?: Array; - middle?: Array; - last?: Array; - unknown?: Array; +export interface PublicationIdsByAuthorPosition { + first?: Array; + middle?: Array; + last?: Array; + unknown?: Array; } - diff --git a/webapp/src/app/api/model/publicationsByAuthorResponse.ts b/webapp/src/app/api/model/publicationsByAuthorResponse.ts index 5176fe39..35333880 100644 --- a/webapp/src/app/api/model/publicationsByAuthorResponse.ts +++ b/webapp/src/app/api/model/publicationsByAuthorResponse.ts @@ -1,21 +1,19 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface PublicationsByAuthorResponse { - author_id: string; - page: number; - page_size: number; - total_works: number; - total: number; - results_count: number; - results: Array; +export interface PublicationsByAuthorResponse { + author_id: string; + page: number; + page_size: number; + total_works: number; + total: number; + results_count: number; + results: Array; } - diff --git a/webapp/src/app/api/model/rankingResponse.ts b/webapp/src/app/api/model/rankingResponse.ts new file mode 100644 index 00000000..5be090a2 --- /dev/null +++ b/webapp/src/app/api/model/rankingResponse.ts @@ -0,0 +1,16 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UniversityRanking } from './universityRanking'; +import { UniversityTopicData } from './universityTopicData'; + +export interface RankingResponse { + timeseries: Array; + rankings: Array; +} diff --git a/webapp/src/app/api/model/score.ts b/webapp/src/app/api/model/score.ts index fac39735..5b0b5935 100644 --- a/webapp/src/app/api/model/score.ts +++ b/webapp/src/app/api/model/score.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Score { -} - +export interface Score {} diff --git a/webapp/src/app/api/model/sortDirection.ts b/webapp/src/app/api/model/sortDirection.ts new file mode 100644 index 00000000..49933995 --- /dev/null +++ b/webapp/src/app/api/model/sortDirection.ts @@ -0,0 +1,15 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export const SortDirection = { + Asc: 'asc', + Desc: 'desc', +} as const; +export type SortDirection = (typeof SortDirection)[keyof typeof SortDirection]; diff --git a/webapp/src/app/api/model/topic.ts b/webapp/src/app/api/model/topic.ts index 9fc0ee63..eaac16f6 100644 --- a/webapp/src/app/api/model/topic.ts +++ b/webapp/src/app/api/model/topic.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,23 +12,21 @@ import { TopicIds } from './topicIds'; import { TopicSubfield } from './topicSubfield'; import { TopicField } from './topicField'; - /** * A research topic automatically assigned to works */ -export interface Topic { - id?: string | null; - display_name?: string | null; - description?: string | null; - keywords?: Array | null; - subfield?: TopicSubfield | null; - field?: TopicField | null; - domain?: TopicDomain | null; - works_count?: number | null; - cited_by_count?: number | null; - ids?: TopicIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Topic { + id?: string | null; + display_name?: string | null; + description?: string | null; + keywords?: Array | null; + subfield?: TopicSubfield | null; + field?: TopicField | null; + domain?: TopicDomain | null; + works_count?: number | null; + cited_by_count?: number | null; + ids?: TopicIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } - diff --git a/webapp/src/app/api/model/topicCount.ts b/webapp/src/app/api/model/topicCount.ts index 520042ec..1d2abe90 100644 --- a/webapp/src/app/api/model/topicCount.ts +++ b/webapp/src/app/api/model/topicCount.ts @@ -1,24 +1,31 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface TopicCount { - id?: string | null; - /** - * The topic display name. - */ - name: string; - /** - * The number of occurrences. - */ - count?: number; - description?: string | null; +export interface TopicCount { + id?: string | null; + /** + * The topic display name. + */ + name: string; + /** + * The number of occurrences. + */ + count?: number; + description?: string | null; + subfield_id?: string | null; + subfield_name?: string | null; + subfield_description?: string | null; + field_id?: string | null; + field_name?: string | null; + field_description?: string | null; + domain_id?: string | null; + domain_name?: string | null; + domain_description?: string | null; } - diff --git a/webapp/src/app/api/model/topicDomain.ts b/webapp/src/app/api/model/topicDomain.ts index 652b1bca..573bef0d 100644 --- a/webapp/src/app/api/model/topicDomain.ts +++ b/webapp/src/app/api/model/topicDomain.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The domain (highest level) containing this topic: */ -export interface TopicDomain { - id?: string | null; - display_name?: string | null; +export interface TopicDomain { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/topicField.ts b/webapp/src/app/api/model/topicField.ts index c7351675..cd7d08c8 100644 --- a/webapp/src/app/api/model/topicField.ts +++ b/webapp/src/app/api/model/topicField.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The field (second level) containing this topic: */ -export interface TopicField { - id?: string | null; - display_name?: string | null; +export interface TopicField { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/topicIds.ts b/webapp/src/app/api/model/topicIds.ts index 4aa6738f..22ca3343 100644 --- a/webapp/src/app/api/model/topicIds.ts +++ b/webapp/src/app/api/model/topicIds.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * External identifiers: */ -export interface TopicIds { - openalex?: string | null; - wikipedia?: string | null; +export interface TopicIds { + openalex?: string | null; + wikipedia?: string | null; } - diff --git a/webapp/src/app/api/model/topicSubfield.ts b/webapp/src/app/api/model/topicSubfield.ts index 53d37842..79f3c9c7 100644 --- a/webapp/src/app/api/model/topicSubfield.ts +++ b/webapp/src/app/api/model/topicSubfield.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The subfield (third level) containing this topic: */ -export interface TopicSubfield { - id?: string | null; - display_name?: string | null; +export interface TopicSubfield { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/keywordNested.ts b/webapp/src/app/api/model/topics.ts similarity index 74% rename from webapp/src/app/api/model/keywordNested.ts rename to webapp/src/app/api/model/topics.ts index 52b088e8..cf40ff1d 100644 --- a/webapp/src/app/api/model/keywordNested.ts +++ b/webapp/src/app/api/model/topics.ts @@ -1,15 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface KeywordNested { - keyword?: string | null; -} - +export interface Topics {} diff --git a/webapp/src/app/api/model/topicsByTime.ts b/webapp/src/app/api/model/topicsByTime.ts index 8af7c9bb..007dc43d 100644 --- a/webapp/src/app/api/model/topicsByTime.ts +++ b/webapp/src/app/api/model/topicsByTime.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,27 +9,25 @@ */ import { TopicsByYear } from './topicsByYear'; - -export interface TopicsByTime { - /** - * Topics grouped by year. - */ - elements?: Array; - /** - * The number of years. - */ - total?: number; - /** - * True if the timeline contains only a limited subset of the author\'s publications. - */ - is_limited?: boolean; - /** - * The number of publications used to build the timeline. - */ - used_publications?: number; - /** - * The total number of publications found for this author. - */ - total_publications?: number; +export interface TopicsByTime { + /** + * Topics grouped by year. + */ + elements?: Array; + /** + * The number of years. + */ + total?: number; + /** + * True if the timeline contains only a limited subset of the author\'s publications. + */ + is_limited?: boolean; + /** + * The number of publications used to build the timeline. + */ + used_publications?: number; + /** + * The total number of publications found for this author. + */ + total_publications?: number; } - diff --git a/webapp/src/app/api/model/topicsByYear.ts b/webapp/src/app/api/model/topicsByYear.ts index fded8da0..bb2f1820 100644 --- a/webapp/src/app/api/model/topicsByYear.ts +++ b/webapp/src/app/api/model/topicsByYear.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,23 +9,21 @@ */ import { TopicCount } from './topicCount'; - -export interface TopicsByYear { - /** - * The publication year. - */ - year: number; - /** - * The number of works in this year. - */ - publication_count?: number; - /** - * The topics in this year. - */ - topics?: Array; - /** - * The primary topics in this year. - */ - primary_topics?: Array; +export interface TopicsByYear { + /** + * The publication year. + */ + year: number; + /** + * The number of works in this year. + */ + publication_count?: number; + /** + * The topics in this year. + */ + topics?: Array; + /** + * The primary topics in this year. + */ + primary_topics?: Array; } - diff --git a/webapp/src/app/api/model/topicsListResponse.ts b/webapp/src/app/api/model/topicsListResponse.ts index 43f21226..058b45fd 100644 --- a/webapp/src/app/api/model/topicsListResponse.ts +++ b/webapp/src/app/api/model/topicsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,13 +11,11 @@ import { Meta } from './meta'; import { GroupByResult } from './groupByResult'; import { Topic } from './topic'; - /** * TopicsListResponse */ -export interface TopicsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface TopicsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } - diff --git a/webapp/src/app/api/model/universityRanking.ts b/webapp/src/app/api/model/universityRanking.ts new file mode 100644 index 00000000..5c9d0d05 --- /dev/null +++ b/webapp/src/app/api/model/universityRanking.ts @@ -0,0 +1,27 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface UniversityRanking { + rank: number; + university: string; + publications: number; + citations: number; + growth_rate: number; + trend: UniversityRanking.TrendEnum; + is_top_mover: boolean; +} +export namespace UniversityRanking { + export const TrendEnum = { + Up: 'up', + Down: 'down', + Stable: 'stable', + } as const; + export type TrendEnum = (typeof TrendEnum)[keyof typeof TrendEnum]; +} diff --git a/webapp/src/app/api/model/universityTopicData.ts b/webapp/src/app/api/model/universityTopicData.ts new file mode 100644 index 00000000..f5436445 --- /dev/null +++ b/webapp/src/app/api/model/universityTopicData.ts @@ -0,0 +1,25 @@ +/** + * Innovation Search Engine API + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { YearlyData } from './yearlyData'; + +export interface UniversityTopicData { + university: string; + topic: UniversityTopicData.TopicEnum; + yearly_data: Array; +} +export namespace UniversityTopicData { + export const TopicEnum = { + ArtificialIntelligence: 'Artificial Intelligence', + QuantumComputing: 'Quantum Computing', + RenewableEnergy: 'Renewable Energy', + Biotechnology: 'Biotechnology', + } as const; + export type TopicEnum = (typeof TopicEnum)[keyof typeof TopicEnum]; +} diff --git a/webapp/src/app/api/model/user.ts b/webapp/src/app/api/model/user.ts index def604e1..7e82821c 100644 --- a/webapp/src/app/api/model/user.ts +++ b/webapp/src/app/api/model/user.ts @@ -1,45 +1,43 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** - * An entry in the user configuration file. + * An entry in the user configuration file. */ -export interface User { - /** - * The username of the user. - */ - username: string; - /** - * The password of the user. - */ - password: string; - /** - * The email of the user. - */ - email: string; - /** - * The account id of the user. - */ - account: number; - /** - * The organization id of the user. - */ - organization: number; - /** - * The organization name of the user. - */ - organization_name: string; - /** - * Indicates whether the user is a superadmin. - */ - superadmin?: boolean; +export interface User { + /** + * The username of the user. + */ + username: string; + /** + * The password of the user. + */ + password: string; + /** + * The email of the user. + */ + email: string; + /** + * The account id of the user. + */ + account: number; + /** + * The organization id of the user. + */ + organization: number; + /** + * The organization name of the user. + */ + organization_name: string; + /** + * Indicates whether the user is a superadmin. + */ + superadmin?: boolean; } - diff --git a/webapp/src/app/api/model/validationError.ts b/webapp/src/app/api/model/validationError.ts index bdbd57ad..18cd1b61 100644 --- a/webapp/src/app/api/model/validationError.ts +++ b/webapp/src/app/api/model/validationError.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,10 +9,8 @@ */ import { ValidationErrorLocInner } from './validationErrorLocInner'; - -export interface ValidationError { - loc: Array; - msg: string; - type: string; +export interface ValidationError { + loc: Array; + msg: string; + type: string; } - diff --git a/webapp/src/app/api/model/validationErrorLocInner.ts b/webapp/src/app/api/model/validationErrorLocInner.ts index d248a9b7..3c1ffa29 100644 --- a/webapp/src/app/api/model/validationErrorLocInner.ts +++ b/webapp/src/app/api/model/validationErrorLocInner.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface ValidationErrorLocInner { -} - +export interface ValidationErrorLocInner {} diff --git a/webapp/src/app/api/model/value.ts b/webapp/src/app/api/model/value.ts index a9fc79ba..016b21cb 100644 --- a/webapp/src/app/api/model/value.ts +++ b/webapp/src/app/api/model/value.ts @@ -1,14 +1,11 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface Value { -} - +export interface Value {} diff --git a/webapp/src/app/api/model/work.ts b/webapp/src/app/api/model/work.ts index 07d94a1c..6c6ae99b 100644 --- a/webapp/src/app/api/model/work.ts +++ b/webapp/src/app/api/model/work.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -24,48 +24,46 @@ import { WorkHasContent } from './workHasContent'; import { Location } from './location'; import { WorkBiblio } from './workBiblio'; - /** * A scholarly document (article, book, dataset, thesis, etc.) */ -export interface Work { - id?: string | null; - doi?: string | null; - title?: string | null; - display_name?: string | null; - publication_year?: number | null; - publication_date?: string | null; - type?: string | null; - language?: string | null; - cited_by_count?: number | null; - is_retracted?: boolean | null; - is_paratext?: boolean | null; - primary_location?: Location | null; - locations?: Array | null; - best_oa_location?: Location | null; - open_access?: OpenAccess | null; - authorships?: Array | null; - ids?: WorkIds | null; - biblio?: WorkBiblio | null; - abstract_inverted_index?: object | null; - referenced_works?: Array | null; - referenced_works_count?: number | null; - related_works?: Array | null; - topics?: Array | null; - primary_topic?: WorkTopic | null; - keywords?: Array | null; - funders?: Array | null; - awards?: Array | null; - fwci?: Fwci | null; - citation_normalized_percentile?: WorkCitationNormalizedPercentile | null; - cited_by_percentile_year?: WorkCitedByPercentileYear | null; - counts_by_year?: Array | null; - sustainable_development_goals?: Array | null; - mesh?: Array | null; - indexed_in?: Array | null; - has_content?: WorkHasContent | null; - content_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Work { + id?: string | null; + doi?: string | null; + title?: string | null; + display_name?: string | null; + publication_year?: number | null; + publication_date?: string | null; + type?: string | null; + language?: string | null; + cited_by_count?: number | null; + is_retracted?: boolean | null; + is_paratext?: boolean | null; + primary_location?: Location | null; + locations?: Array | null; + best_oa_location?: Location | null; + open_access?: OpenAccess | null; + authorships?: Array | null; + ids?: WorkIds | null; + biblio?: WorkBiblio | null; + abstract_inverted_index?: object | null; + referenced_works?: Array | null; + referenced_works_count?: number | null; + related_works?: Array | null; + topics?: Array | null; + primary_topic?: WorkTopic | null; + keywords?: Array | null; + funders?: Array | null; + awards?: Array | null; + fwci?: Fwci | null; + citation_normalized_percentile?: WorkCitationNormalizedPercentile | null; + cited_by_percentile_year?: WorkCitedByPercentileYear | null; + counts_by_year?: Array | null; + sustainable_development_goals?: Array | null; + mesh?: Array | null; + indexed_in?: Array | null; + has_content?: WorkHasContent | null; + content_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } - diff --git a/webapp/src/app/api/model/workBiblio.ts b/webapp/src/app/api/model/workBiblio.ts index f6d7079b..65c0a34b 100644 --- a/webapp/src/app/api/model/workBiblio.ts +++ b/webapp/src/app/api/model/workBiblio.ts @@ -1,21 +1,19 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Bibliographic info: `volume`, `issue`, `first_page`, `last_page`. */ -export interface WorkBiblio { - volume?: string | null; - issue?: string | null; - first_page?: string | null; - last_page?: string | null; +export interface WorkBiblio { + volume?: string | null; + issue?: string | null; + first_page?: string | null; + last_page?: string | null; } - diff --git a/webapp/src/app/api/model/workCitationNormalizedPercentile.ts b/webapp/src/app/api/model/workCitationNormalizedPercentile.ts index a587ddf6..4a2bc6d4 100644 --- a/webapp/src/app/api/model/workCitationNormalizedPercentile.ts +++ b/webapp/src/app/api/model/workCitationNormalizedPercentile.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,13 +9,11 @@ */ import { Value } from './value'; - /** * Percentile of citation count normalized by work type, year, and subfield. Includes `value`, `is_in_top_1_percent`, `is_in_top_10_percent`. */ -export interface WorkCitationNormalizedPercentile { - value?: Value | null; - is_in_top_1_percent?: boolean | null; - is_in_top_10_percent?: boolean | null; +export interface WorkCitationNormalizedPercentile { + value?: Value | null; + is_in_top_1_percent?: boolean | null; + is_in_top_10_percent?: boolean | null; } - diff --git a/webapp/src/app/api/model/workCitedByPercentileYear.ts b/webapp/src/app/api/model/workCitedByPercentileYear.ts index 5257eb3b..7bcd3c85 100644 --- a/webapp/src/app/api/model/workCitedByPercentileYear.ts +++ b/webapp/src/app/api/model/workCitedByPercentileYear.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Percentile rank compared to other works published in the same year. Contains `min` and `max`. */ -export interface WorkCitedByPercentileYear { - min?: number | null; - max?: number | null; +export interface WorkCitedByPercentileYear { + min?: number | null; + max?: number | null; } - diff --git a/webapp/src/app/api/model/workCountsByYearInner.ts b/webapp/src/app/api/model/workCountsByYearInner.ts index 76d97d77..496a11db 100644 --- a/webapp/src/app/api/model/workCountsByYearInner.ts +++ b/webapp/src/app/api/model/workCountsByYearInner.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * WorkCountsByYearInner */ -export interface WorkCountsByYearInner { - year?: number | null; - cited_by_count?: number | null; +export interface WorkCountsByYearInner { + year?: number | null; + cited_by_count?: number | null; } - diff --git a/webapp/src/app/api/model/workHasContent.ts b/webapp/src/app/api/model/workHasContent.ts index 44fbe446..76871238 100644 --- a/webapp/src/app/api/model/workHasContent.ts +++ b/webapp/src/app/api/model/workHasContent.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * Information about downloadable full-text content: */ -export interface WorkHasContent { - pdf?: boolean | null; - grobid_xml?: boolean | null; +export interface WorkHasContent { + pdf?: boolean | null; + grobid_xml?: boolean | null; } - diff --git a/webapp/src/app/api/model/workIds.ts b/webapp/src/app/api/model/workIds.ts index e8315250..fe562e40 100644 --- a/webapp/src/app/api/model/workIds.ts +++ b/webapp/src/app/api/model/workIds.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * External identifiers: `openalex`, `doi`, `mag`, `pmid`, `pmcid`. */ -export interface WorkIds { - openalex?: string | null; - doi?: string | null; - mag?: number | null; - pmid?: string | null; - pmcid?: string | null; +export interface WorkIds { + openalex?: string | null; + doi?: string | null; + mag?: number | null; + pmid?: string | null; + pmcid?: string | null; } - diff --git a/webapp/src/app/api/model/workKeyword.ts b/webapp/src/app/api/model/workKeyword.ts index c9c99afb..7270db25 100644 --- a/webapp/src/app/api/model/workKeyword.ts +++ b/webapp/src/app/api/model/workKeyword.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,13 +9,11 @@ */ import { Score } from './score'; - /** * WorkKeyword */ -export interface WorkKeyword { - id?: string | null; - display_name?: string | null; - score?: Score | null; +export interface WorkKeyword { + id?: string | null; + display_name?: string | null; + score?: Score | null; } - diff --git a/webapp/src/app/api/model/workMeshInner.ts b/webapp/src/app/api/model/workMeshInner.ts index 40633524..36a0c569 100644 --- a/webapp/src/app/api/model/workMeshInner.ts +++ b/webapp/src/app/api/model/workMeshInner.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * WorkMeshInner */ -export interface WorkMeshInner { - descriptor_ui?: string | null; - descriptor_name?: string | null; - qualifier_ui?: string | null; - qualifier_name?: string | null; - is_major_topic?: boolean | null; +export interface WorkMeshInner { + descriptor_ui?: string | null; + descriptor_name?: string | null; + qualifier_ui?: string | null; + qualifier_name?: string | null; + is_major_topic?: boolean | null; } - diff --git a/webapp/src/app/api/model/workNetworkNode.ts b/webapp/src/app/api/model/workNetworkNode.ts index abc04a69..445cd8ad 100644 --- a/webapp/src/app/api/model/workNetworkNode.ts +++ b/webapp/src/app/api/model/workNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,24 +10,20 @@ import { WorkTopicInformation } from './workTopicInformation'; import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; - -export interface WorkNetworkNode { - /** - * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; - publication_year: number | null; - work_topics_information: Set | null; +export interface WorkNetworkNode { + /** + * The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; + publication_year: number | null; + work_topics_information: Set | null; } -export namespace WorkNetworkNode { -} - - +export namespace WorkNetworkNode {} diff --git a/webapp/src/app/api/model/workPage.ts b/webapp/src/app/api/model/workPage.ts index 8490c3ab..285d2065 100644 --- a/webapp/src/app/api/model/workPage.ts +++ b/webapp/src/app/api/model/workPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,27 +9,25 @@ */ import { Work } from './work'; - -export interface WorkPage { - /** - * Total number of works matching the query - */ - total: number; - /** - * List of works on the current page - */ - elements: Array; - /** - * Offset of the current page - */ - offset: number; - /** - * Size of the current page - */ - size: number; - /** - * Indicates if the current page is the last page - */ - last_page: boolean; +export interface WorkPage { + /** + * Total number of works matching the query + */ + total: number; + /** + * List of works on the current page + */ + elements: Array; + /** + * Offset of the current page + */ + offset: number; + /** + * Size of the current page + */ + size: number; + /** + * Indicates if the current page is the last page + */ + last_page: boolean; } - diff --git a/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts b/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts index c9ecd00f..8bc67292 100644 --- a/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts +++ b/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,13 +9,11 @@ */ import { Score } from './score'; - /** * WorkSustainableDevelopmentGoalsInner */ -export interface WorkSustainableDevelopmentGoalsInner { - id?: string | null; - display_name?: string | null; - score?: Score | null; +export interface WorkSustainableDevelopmentGoalsInner { + id?: string | null; + display_name?: string | null; + score?: Score | null; } - diff --git a/webapp/src/app/api/model/workTopic.ts b/webapp/src/app/api/model/workTopic.ts index 925ead4f..4b326824 100644 --- a/webapp/src/app/api/model/workTopic.ts +++ b/webapp/src/app/api/model/workTopic.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,16 +12,14 @@ import { WorkTopicDomain } from './workTopicDomain'; import { WorkTopicSubfield } from './workTopicSubfield'; import { WorkTopicField } from './workTopicField'; - /** * WorkTopic */ -export interface WorkTopic { - id?: string | null; - display_name?: string | null; - score?: Score | null; - subfield?: WorkTopicSubfield | null; - field?: WorkTopicField | null; - domain?: WorkTopicDomain | null; +export interface WorkTopic { + id?: string | null; + display_name?: string | null; + score?: Score | null; + subfield?: WorkTopicSubfield | null; + field?: WorkTopicField | null; + domain?: WorkTopicDomain | null; } - diff --git a/webapp/src/app/api/model/workTopicDomain.ts b/webapp/src/app/api/model/workTopicDomain.ts index 1a9879d4..13b227df 100644 --- a/webapp/src/app/api/model/workTopicDomain.ts +++ b/webapp/src/app/api/model/workTopicDomain.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The parent [domain](/api-reference/domains) */ -export interface WorkTopicDomain { - id?: string | null; - display_name?: string | null; +export interface WorkTopicDomain { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/workTopicField.ts b/webapp/src/app/api/model/workTopicField.ts index 1807cfc1..432b993e 100644 --- a/webapp/src/app/api/model/workTopicField.ts +++ b/webapp/src/app/api/model/workTopicField.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The parent [field](/api-reference/fields) */ -export interface WorkTopicField { - id?: string | null; - display_name?: string | null; +export interface WorkTopicField { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/workTopicInformation.ts b/webapp/src/app/api/model/workTopicInformation.ts index ca3b9454..5dbbfc78 100644 --- a/webapp/src/app/api/model/workTopicInformation.ts +++ b/webapp/src/app/api/model/workTopicInformation.ts @@ -1,22 +1,20 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface WorkTopicInformation { - /** - * The ID of the topic. - */ - raw_topic_id: string; - /** - * The name of the topic. - */ - display_name: string; +export interface WorkTopicInformation { + /** + * The ID of the topic. + */ + raw_topic_id: string; + /** + * The name of the topic. + */ + display_name: string; } - diff --git a/webapp/src/app/api/model/workTopicSubfield.ts b/webapp/src/app/api/model/workTopicSubfield.ts index b6e7278a..49c1155b 100644 --- a/webapp/src/app/api/model/workTopicSubfield.ts +++ b/webapp/src/app/api/model/workTopicSubfield.ts @@ -1,19 +1,17 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * The parent [subfield](/api-reference/subfields) */ -export interface WorkTopicSubfield { - id?: string | null; - display_name?: string | null; +export interface WorkTopicSubfield { + id?: string | null; + display_name?: string | null; } - diff --git a/webapp/src/app/api/model/worksFilterProperties.ts b/webapp/src/app/api/model/worksFilterProperties.ts index bd6cc9a4..fd25fd26 100644 --- a/webapp/src/app/api/model/worksFilterProperties.ts +++ b/webapp/src/app/api/model/worksFilterProperties.ts @@ -1,34 +1,32 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface WorksFilterProperties { - /** - * The start publication year for the works to include in the collaboration network. - */ - start_year?: number; - /** - * The end publication year for the works to include in the collaboration network. - */ - end_year?: number; - /** - * The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included. - */ - allowed_topics?: Array; - /** - * The minimum number of contributors required for a work to be included in the collaboration network. - */ - min_contributors?: number; - /** - * The maximum number of contributors allowed for a work to be included in the collaboration network. - */ - max_contributors?: number; +export interface WorksFilterProperties { + /** + * The start publication year for the works to include in the collaboration network. + */ + start_year?: number; + /** + * The end publication year for the works to include in the collaboration network. + */ + end_year?: number; + /** + * The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included. + */ + allowed_topics?: Array; + /** + * The minimum number of contributors required for a work to be included in the collaboration network. + */ + min_contributors?: number; + /** + * The maximum number of contributors allowed for a work to be included in the collaboration network. + */ + max_contributors?: number; } - diff --git a/webapp/src/app/api/model/worksListResponse.ts b/webapp/src/app/api/model/worksListResponse.ts index a65d3849..bc21a41b 100644 --- a/webapp/src/app/api/model/worksListResponse.ts +++ b/webapp/src/app/api/model/worksListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,13 +11,11 @@ import { Meta } from './meta'; import { Work } from './work'; import { GroupByResult } from './groupByResult'; - /** * WorksListResponse */ -export interface WorksListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface WorksListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } - diff --git a/webapp/src/app/api/model/displayCodeSplittedNested.ts b/webapp/src/app/api/model/yearlyData.ts similarity index 69% rename from webapp/src/app/api/model/displayCodeSplittedNested.ts rename to webapp/src/app/api/model/yearlyData.ts index ea2743bf..d473f13e 100644 --- a/webapp/src/app/api/model/displayCodeSplittedNested.ts +++ b/webapp/src/app/api/model/yearlyData.ts @@ -1,15 +1,15 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - -export interface DisplayCodeSplittedNested { - single_display_code?: string | null; +export interface YearlyData { + year: number; + publications: number; + citations: number; } - diff --git a/webapp/src/app/api/param.ts b/webapp/src/app/api/param.ts index 78a2d20a..486c804e 100644 --- a/webapp/src/app/api/param.ts +++ b/webapp/src/app/api/param.ts @@ -8,8 +8,7 @@ export type StandardParamStyle = | 'simple' | 'spaceDelimited' | 'pipeDelimited' - | 'deepObject' - ; + | 'deepObject'; /** * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. @@ -25,13 +24,12 @@ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; * Standard types as defined in OpenAPI Specification: Data Types */ export type StandardDataType = - | "integer" - | "number" - | "boolean" - | "string" - | "object" - | "array" - ; + | 'integer' + | 'number' + | 'boolean' + | 'string' + | 'object' + | 'array'; /** * Standard {@link DataType}s plus your own types/classes. @@ -42,16 +40,15 @@ export type DataType = StandardDataType | string; * Standard formats as defined in OpenAPI Specification: Data Types */ export type StandardDataFormat = - | "int32" - | "int64" - | "float" - | "double" - | "byte" - | "binary" - | "date" - | "date-time" - | "password" - ; + | 'int32' + | 'int64' + | 'float' + | 'double' + | 'byte' + | 'binary' + | 'date' + | 'date-time' + | 'password'; export type DataFormat = StandardDataFormat | string; @@ -62,7 +59,7 @@ export interface Param { name: string; value: unknown; in: ParamLocation; - style: ParamStyle, + style: ParamStyle; explode: boolean; dataType: DataType; dataFormat: DataFormat | undefined; diff --git a/webapp/src/app/api/provide-api.ts b/webapp/src/app/api/provide-api.ts index 19c762ac..960132f8 100644 --- a/webapp/src/app/api/provide-api.ts +++ b/webapp/src/app/api/provide-api.ts @@ -1,15 +1,17 @@ -import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; +import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core'; import { Configuration, ConfigurationParameters } from './configuration'; import { BASE_PATH } from './variables'; // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). -export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { - return makeEnvironmentProviders([ - typeof configOrBasePath === "string" - ? { provide: BASE_PATH, useValue: configOrBasePath } - : { - provide: Configuration, - useValue: new Configuration({ ...configOrBasePath }), - }, - ]); -} \ No newline at end of file +export function provideApi( + configOrBasePath: string | ConfigurationParameters, +): EnvironmentProviders { + return makeEnvironmentProviders([ + typeof configOrBasePath === 'string' + ? { provide: BASE_PATH, useValue: configOrBasePath } + : { + provide: Configuration, + useValue: new Configuration({ ...configOrBasePath }), + }, + ]); +} diff --git a/webapp/src/app/api/variables.ts b/webapp/src/app/api/variables.ts index 6fe58549..2277a9cc 100644 --- a/webapp/src/app/api/variables.ts +++ b/webapp/src/app/api/variables.ts @@ -2,8 +2,8 @@ import { InjectionToken } from '@angular/core'; export const BASE_PATH = new InjectionToken('basePath'); export const COLLECTION_FORMATS = { - 'csv': ',', - 'tsv': ' ', - 'ssv': ' ', - 'pipes': '|' -} + csv: ',', + tsv: ' ', + ssv: ' ', + pipes: '|', +}; diff --git a/webapp/src/app/app.config.ts b/webapp/src/app/app.config.ts index fe2175b6..0325060b 100644 --- a/webapp/src/app/app.config.ts +++ b/webapp/src/app/app.config.ts @@ -51,6 +51,8 @@ export const appConfig: ApplicationConfig = { return; } + console.error('Fehler beim Navigieren:', navigationError); + const error = navigationError.error; let errorMessage: string = 'Unbekannter Fehler'; if (error instanceof HttpErrorResponse) { diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index f6ab27f3..a7d8b279 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -5,9 +5,18 @@ import { personListResolver } from './resolvers/person-list.resolver'; import { personBioResolver } from './resolvers/person-bio.resolver'; import { personResolver } from './resolvers/person.resolver'; import { institutionResolver } from './resolvers/institution.resolver'; -import { bundProjectsResolver } from './resolvers/bund-projects.resolver'; -import { euProjectsResolver } from './resolvers/eu-projects.resolver'; +import { bundProjectPageResolver } from './resolvers/bund-project-page.resolver'; import { dfgProjectsResolver } from './resolvers/dfg-projects.resolver'; +import { personNewsResolver } from './resolvers/person-news.resolver'; +import { institutionsResolver } from './resolvers/institutions.resolver'; +import { bundProjectsFundingResolver } from './resolvers/bund-projects-funding.resolver'; +import { dfgSingleProjectResolver } from './resolvers/dfg-single-project-resolver'; +import { bundSingleProjectResolver } from './resolvers/bund-single-project-resolver'; +import { cordisEuProjectPageResolver } from './resolvers/cordis-eu-project-page.resolver'; +import { cordisEuProjectsFundingResolver } from './resolvers/cordis-eu-projects-funding.resolver'; +import { fundingProjectPageResolver } from './resolvers/funding-project-page.resolver'; +import { personCordisEuProjectPageResolver } from './resolvers/person-cordis-eu-project-page.resolver'; + export const routes: Routes = [ { path: '', @@ -75,6 +84,20 @@ export const routes: Routes = [ return scalarChanged || topicsChanged; }, }, + { + path: 'news', + canActivate: [userGuard], + loadComponent: () => + import('./modules/news/news.component').then((mod) => mod.NewsComponent), + }, + { + path: 'news/:id', + canActivate: [userGuard], + loadComponent: () => + import('./modules/news-detail/news-detail.component').then( + (mod) => mod.NewsDetailComponent, + ), + }, { path: 'publication/:publicationId', canActivate: [userGuard], @@ -83,6 +106,30 @@ export const routes: Routes = [ (mod) => mod.PublicationDetailComponent, ), }, + { + path: 'projects/dfg/:id', + canActivate: [userGuard], + pathMatch: 'full', + loadComponent: () => + import('./modules/person-projects/dfg-details/dfg-details.component').then( + (mod) => mod.DfgDetailsComponent, + ), + resolve: { + dfgSingleProject: dfgSingleProjectResolver, + }, + }, + { + path: 'projects/bund/:id', + canActivate: [userGuard], + pathMatch: 'full', + loadComponent: () => + import('./modules/person-projects/bund-details/bund-details.component').then( + (mod) => mod.BundDetailsComponent, + ), + resolve: { + bundSingleProject: bundSingleProjectResolver, + }, + }, { path: 'person/:id', canActivate: [userGuard], @@ -116,6 +163,7 @@ export const routes: Routes = [ ), resolve: { dfgProjectPage: dfgProjectsResolver, + personCordisEuProjectPage: personCordisEuProjectPageResolver, }, runGuardsAndResolvers: (from, to) => { const keys = ['page', 'size', 'sort_by', 'sort_direction', 'search']; @@ -142,7 +190,33 @@ export const routes: Routes = [ collaborationNetwork: collaborationNetworkResolver, }, runGuardsAndResolvers: (from, to) => { - // No need to re-run for different table view or search term + const network = from.data['collaborationNetwork'] as + | { + filter_information?: { + min_possible_year?: number; + max_possible_year?: number; + }; + } + | undefined; + + const filterInformation = network?.filter_information; + + const defaultQueryParams: Record = { + filter_by: 'works', + start_year: filterInformation?.min_possible_year + ? String(filterInformation.min_possible_year) + : '', + end_year: filterInformation?.max_possible_year + ? String(filterInformation.max_possible_year) + : '', + min_contributors: '2', + max_contributors: '10', + min_collaborations: '1', + max_collaborations: '100', + institutions: '', + topics: '', + }; + const keys = [ 'filter_by', 'start_year', @@ -155,9 +229,22 @@ export const routes: Routes = [ 'topics', ]; - return keys.some( - (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), - ); + return keys.some((key) => { + const fromRawValue = from.queryParamMap.get(key); + const toRawValue = to.queryParamMap.get(key); + + const fromValue = + fromRawValue === null || fromRawValue === '' + ? defaultQueryParams[key] + : fromRawValue; + + const toValue = + toRawValue === null || toRawValue === '' + ? defaultQueryParams[key] + : toRawValue; + + return fromValue !== toValue; + }); }, }, @@ -168,8 +255,57 @@ export const routes: Routes = [ (mod) => mod.PersonFundingComponent, ), }, + { + path: 'news', + loadComponent: () => + import('./modules/person-news/person-news.component').then( + (mod) => mod.PersonNewsComponent, + ), + resolve: { + newsPage: personNewsResolver, + }, + runGuardsAndResolvers: (from, to) => { + const keys = ['page', 'pageSize', 'sortOrder', 'query']; + + return keys.some( + (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), + ); + }, + }, + { + path: 'patents', + loadComponent: () => + import('./modules/person-patents/person-patents.component').then( + (mod) => mod.PersonPatentsComponent, + ), + }, + { + path: 'company-connections', + loadComponent: () => + import('./modules/person-company-connections/person-company-connections.component').then( + (mod) => mod.PersonCompanyConnectionsComponent, + ), + }, ], }, + { + path: 'institutions', + canActivate: [userGuard], + loadComponent: () => + import('./modules/institutions/institutions.component').then( + (mod) => mod.InstitutionsComponent, + ), + resolve: { + institutionPage: institutionsResolver, + }, + runGuardsAndResolvers: (from, to) => { + const keys = ['search', 'page', 'size', 'sort_by', 'sorting_order']; + + return keys.some( + (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), + ); + }, + }, { path: 'institution/:institutionId', canActivate: [userGuard], @@ -193,6 +329,13 @@ export const routes: Routes = [ (mod) => mod.InstitutionOverviewComponent, ), }, + { + path: 'publications', + loadComponent: () => + import('./modules/institution-publications/institution-publications.component').then( + (mod) => mod.InstitutionPublicationsComponent, + ), + }, { path: 'projects', loadComponent: () => { @@ -201,8 +344,10 @@ export const routes: Routes = [ ); }, resolve: { - bundProjectPage: bundProjectsResolver, - euProjectPage: euProjectsResolver, + bundProjectPage: bundProjectPageResolver, + bundProjectsFunding: bundProjectsFundingResolver, + cordisEuProjectPage: cordisEuProjectPageResolver, + cordisEuProjectsFunding: cordisEuProjectsFundingResolver, }, runGuardsAndResolvers: (from, to) => { const keys = ['page', 'size', 'sort_by', 'sort_direction', 'search']; @@ -213,8 +358,26 @@ export const routes: Routes = [ }, }, ], + }, + { + path: 'projects', + canActivate: [userGuard], + loadComponent: () => + import('./modules/projects/projects.component').then( + (mod) => mod.ProjectsComponent, + ), + resolve: { + fundingProjectPage: fundingProjectPageResolver, + }, runGuardsAndResolvers: (from, to) => { - const keys = ['page', 'size', 'sort_by', 'sort_direction']; + const keys = [ + 'search', + 'page', + 'size', + 'selected_project_types', + 'sort_by', + 'sorting_order', + ]; return keys.some( (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), diff --git a/webapp/src/app/modules/app-login/app-login.component.html b/webapp/src/app/modules/app-login/app-login.component.html index 957a6b5f..e7cb87a6 100644 --- a/webapp/src/app/modules/app-login/app-login.component.html +++ b/webapp/src/app/modules/app-login/app-login.component.html @@ -43,7 +43,7 @@ Anmelden -
+
diff --git a/webapp/src/app/modules/app-register/app-register.component.html b/webapp/src/app/modules/app-register/app-register.component.html index 018be1bf..e6349bc5 100644 --- a/webapp/src/app/modules/app-register/app-register.component.html +++ b/webapp/src/app/modules/app-register/app-register.component.html @@ -1,9 +1,7 @@

Konto erstellen

-

- Bitte gib Deine Daten ein, um Dich zu registrieren. -

+

Bitte gib Deine Daten ein, um Dich zu registrieren.

Benutzername @@ -49,43 +47,50 @@ Institution apartment - - @if (registerForm.controls['institution'].hasError('required')) { + + @if (registerForm.controls['institution'].hasError('required')) { Fehler: Institution erforderlich. } - - @for (institution of institutionOptions(); track institution.id) { - -
{{ institution.display_name }}
- @if (institution.hint) { - {{ institution.hint }} - } -
+ + @for (institution of institutionOptions(); track institution.id) { + +
+ {{ institution.display_name }} +
+ @if (institution.hint) { + {{ institution.hint }} } -
+ + } +
- Superadmin Rechte + Superadmin Rechte
-
+
@@ -94,4 +99,4 @@

-
\ No newline at end of file +
diff --git a/webapp/src/app/modules/app-register/app-register.component.ts b/webapp/src/app/modules/app-register/app-register.component.ts index 70b2f073..42d53887 100644 --- a/webapp/src/app/modules/app-register/app-register.component.ts +++ b/webapp/src/app/modules/app-register/app-register.component.ts @@ -1,4 +1,11 @@ -import { Component, inject, OnDestroy, signal, DestroyRef, OnInit } from '@angular/core'; +import { + Component, + inject, + OnDestroy, + signal, + DestroyRef, + OnInit, +} from '@angular/core'; import { CommonModule } from '@angular/common'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { Router, RouterLink } from '@angular/router'; @@ -15,8 +22,19 @@ import { MatIconModule } from '@angular/material/icon'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { CredentialService } from '../../shared/services/credential.service'; import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar'; -import { Subscription, map, switchMap, debounceTime, distinctUntilChanged, catchError,of} from 'rxjs'; -import { MatAutocompleteModule, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete'; +import { + Subscription, + map, + switchMap, + debounceTime, + distinctUntilChanged, + catchError, + of, +} from 'rxjs'; +import { + MatAutocompleteModule, + MatAutocompleteSelectedEvent, +} from '@angular/material/autocomplete'; import { InstitutionsService } from '../../api'; @Component({ selector: 'app-register', @@ -43,7 +61,7 @@ export class AppRegisterComponent implements OnDestroy, OnInit { private readonly snackBar = inject(MatSnackBar); private readonly destroyRef = inject(DestroyRef); private subscription?: Subscription; - private institutionsService = inject(InstitutionsService) + private institutionsService = inject(InstitutionsService); registerForm: FormGroup = this.fb.group({ username: ['', [Validators.required, Validators.minLength(4)]], email: ['', [Validators.required, Validators.email]], @@ -126,7 +144,10 @@ export class AppRegisterComponent implements OnDestroy, OnInit { } return this.searchInstitutions(query).pipe( - catchError((ev) => {console.log(ev);return of([])}), + catchError((ev) => { + console.log(ev); + return of([]); + }), ); }), takeUntilDestroyed(this.destroyRef), @@ -144,7 +165,9 @@ export class AppRegisterComponent implements OnDestroy, OnInit { onInstitutionSelected(event: MatAutocompleteSelectedEvent): void { const val = event.option.value; - this.registerForm.controls['institution'].setValue(val, { emitEvent: false }); + this.registerForm.controls['institution'].setValue(val, { + emitEvent: false, + }); this.institutionOptions.set([]); } } diff --git a/webapp/src/app/modules/dashboard/dashboard.component.html b/webapp/src/app/modules/dashboard/dashboard.component.html index e69de29b..fbd76a45 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.html +++ b/webapp/src/app/modules/dashboard/dashboard.component.html @@ -0,0 +1,39 @@ +
+
+

University Performance Dashboard

+
+ + +
+ + +
+
+
+ +
+
+ +
+ + +
+
diff --git a/webapp/src/app/modules/dashboard/dashboard.component.scss b/webapp/src/app/modules/dashboard/dashboard.component.scss index e69de29b..f9b4f56b 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.scss +++ b/webapp/src/app/modules/dashboard/dashboard.component.scss @@ -0,0 +1,95 @@ +// src/app/modules/university-ranking/dashboard.component.scss +.dashboard-wrapper { + padding: 2rem; + font-family: 'Inter', sans-serif; + color: #333; + + .dashboard-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2rem; + border-bottom: 1px solid #eee; + padding-bottom: 1rem; + } + + .content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 2rem; + + @media (max-width: 1024px) { + grid-template-columns: 1fr; + } + } + + .controls { + display: flex; + gap: 1rem; + + select { + padding: 0.5rem; + border-radius: 4px; + border: 1px solid #ccc; + } + + .toggle-group { + button { + padding: 0.5rem 1rem; + border: 1px solid #0056b3; + background: white; + color: #0056b3; + cursor: pointer; + &:first-child { + border-radius: 4px 0 0 4px; + } + &:last-child { + border-radius: 0 4px 4px 0; + } + &.active { + background: #0056b3; + color: white; + } + } + } + } +} + +// Table styling +.ranking-table { + width: 100%; + border-collapse: collapse; + font-size: 0.9rem; + + th, + td { + padding: 0.75rem; + text-align: left; + border-bottom: 1px solid #f0f0f0; + } + + .top-tier { + background-color: #f8fbff; + font-weight: 600; + } + .positive { + color: #28a745; + } + .negative { + color: #dc3545; + } + .mover-badge { + margin-left: 4px; + font-size: 0.8rem; + } + + .trend-col { + font-weight: bold; + &[data-trend='up'] { + color: #28a745; + } + &[data-trend='down'] { + color: #dc3545; + } + } +} diff --git a/webapp/src/app/modules/dashboard/dashboard.component.ts b/webapp/src/app/modules/dashboard/dashboard.component.ts index 7d31c1db..ef967b09 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.ts +++ b/webapp/src/app/modules/dashboard/dashboard.component.ts @@ -1,10 +1,62 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; +import { UniversityRankingService } from '../university-ranking/services/uni-ranking-service'; +import { UniversityLineChartComponent } from '../university-ranking/uni-line-chart/uni-line-chart.component'; +import { UniversityRankingTableComponent } from '../university-ranking/uni-ranking-table/uni-ranking-table.component'; +import { UniversityTopicData, UniversityRanking } from '../../api'; +export type ResearchTopic = + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; @Component({ - selector: 'app-dashboard', - imports: [], + selector: 'dashboard', + imports: [UniversityLineChartComponent, UniversityRankingTableComponent], templateUrl: './dashboard.component.html', styleUrl: './dashboard.component.scss', - standalone: true, }) -export class DashboardComponent {} +export class DashboardComponent implements OnInit { + topics: ResearchTopic[] = [ + 'Artificial Intelligence', + 'Quantum Computing', + 'Renewable Energy', + 'Biotechnology', + ]; + selectedTopic: ResearchTopic = 'Artificial Intelligence'; + metric: DashboardMetric = 'publications'; + + rawDataSource: UniversityTopicData[] = []; + computedRankings: UniversityRanking[] = []; + isLoading = false; + + constructor(private dataService: UniversityRankingService) {} + + ngOnInit() { + this.loadData(); + } + + onTopicChange(topic: ResearchTopic) { + this.selectedTopic = topic; + this.loadData(); // Re-fetch as rankings depend on the topic + } + + setMetric(metric: DashboardMetric) { + this.metric = metric; + this.loadData(); // Re-fetch as ranking order changes based on metric + } + + private loadData() { + this.isLoading = true; + this.dataService + .getRankingData(this.selectedTopic, this.metric) + .subscribe((response) => { + // Map backend snake_case properties to frontend camelCase if necessary, + // though OpenAPI Generator usually handles this. + console.log(response); + this.rawDataSource = (response.timeseries as any) || []; + this.computedRankings = (response.rankings as any) || []; + this.isLoading = false; + }); + } +} diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html new file mode 100644 index 00000000..d96211ba --- /dev/null +++ b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html @@ -0,0 +1 @@ +
diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.scss b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts new file mode 100644 index 00000000..8a2e1f21 --- /dev/null +++ b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts @@ -0,0 +1,153 @@ +import { Component, effect, input } from '@angular/core'; + +import * as echarts from 'echarts/core'; +import { EChartsOption } from 'echarts'; + +import { GridComponent, LegendComponent } from 'echarts/components'; +import { CanvasRenderer } from 'echarts/renderers'; +import { NgxEchartsDirective } from 'ngx-echarts'; +import { InstitutionFunderSummary } from '../../api'; + +echarts.use([GridComponent, CanvasRenderer, LegendComponent]); + +type FunderData = { + funderName: string; + fundingMap: Record; +}; + +@Component({ + selector: 'app-institution-projects-funding-graph', + imports: [NgxEchartsDirective], + templateUrl: './institution-projects-funding-graph.component.html', + styleUrl: './institution-projects-funding-graph.component.scss', +}) +export class InstitutionProjectsFundingGraphComponent { + options!: EChartsOption; + + fundings = input.required(); + + constructor() { + effect(() => { + const fundings = this.fundings(); + this.generateChartOptions(fundings); + }); + } + + generateChartOptions(fundings: InstitutionFunderSummary[]): void { + const floorToTwoDecimals = (value: number): string => { + const floored = Math.floor(value * 100) / 100; + return floored.toLocaleString(undefined, { + style: 'currency', + currency: 'EUR', + minimumFractionDigits: 2, + maximumFractionDigits: 2, + }); + }; + + const yearsSet = new Set(); + + fundings.forEach((series) => { + if (series.funding_per_year) { + Object.keys(series.funding_per_year).forEach((year) => + yearsSet.add(year), + ); + } + }); + + const xAxisYears = Array.from(yearsSet).sort( + (a, b) => Number(a) - Number(b), + ); + + const currentYearStr = new Date().getFullYear().toString(); + + const chartSeries = fundings.map((series, index) => { + const fundingMap = (series.funding_per_year || {}) as Record< + string, + number + >; + const dataPoints = xAxisYears.map((year) => fundingMap[year] ?? 0); + + const baseSeries: any = { + name: series.type.toUpperCase(), + type: 'line', + stack: 'TotalInstitutionalFunding', + areaStyle: {}, + emphasis: { focus: 'series' }, + data: dataPoints, + }; + + if (index === 0) { + baseSeries.markLine = { + symbol: ['none', 'none'], + silent: true, + label: { + show: true, + position: 'end', + formatter: 'Aktuelles Jahr', + backgroundColor: '#333', + color: '#fff', + padding: [4, 6], + borderRadius: 4, + }, + lineStyle: { + color: '#ff4d4f', + type: 'dashed', + width: 2, + }, + data: [ + { + xAxis: currentYearStr, + }, + ], + }; + } + + return baseSeries; + }); + + this.options = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { backgroundColor: '#6a7985' }, + }, + valueFormatter: (value) => { + const numericValue = Array.isArray(value) ? 0 : Number(value ?? 0); + return floorToTwoDecimals(numericValue); + }, + }, + legend: { + data: fundings.map((series) => series.type.toUpperCase()), + top: '10%', + }, + grid: { + left: '4%', + right: '4%', + bottom: '5%', + containLabel: true, + }, + xAxis: [ + { + type: 'category', + boundaryGap: false, + data: xAxisYears, + }, + ], + yAxis: [ + { + type: 'value', + axisLabel: { + formatter: (value: number) => + value.toLocaleString(undefined, { + style: 'currency', + currency: 'EUR', + maximumFractionDigits: 0, + }), + }, + }, + ], + series: chartSeries, + }; + } +} diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.html b/webapp/src/app/modules/institution-projects/institution-projects.component.html index 77736b04..6da70b65 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.html +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.html @@ -1,48 +1,75 @@

Projekte

- - - - Suche nach Themen - - search - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + +
+ + + Förderung über Zeit + + + + + + +
+ + + + +
+
+
@@ -51,6 +78,18 @@ {{ row.funding_end | date: 'dd.MM.yyyy' }} - - {{ row.grant_amount | currency: 'EUR' : 'symbol' : '1.0-0' : 'de' }} + + {{ row.funding_amount | currency: 'EUR' : 'symbol' : '1.0-0' : 'de' }} + + + + + open_in_new + + + + + open_in_new + diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.scss b/webapp/src/app/modules/institution-projects/institution-projects.component.scss index c8534b0d..3226d421 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.scss +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.scss @@ -6,3 +6,26 @@ mat-card, mat-paginator { background-color: var(--sg-background); } + +.funding-area { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.funding-info-section { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.funding-info-cards { + display: flex; + flex-direction: row; + gap: 1rem; + + app-person-network-info-card { + width: 100%; + height: 100%; + } +} diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.ts b/webapp/src/app/modules/institution-projects/institution-projects.component.ts index b5218f2a..94b16f46 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.ts +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.ts @@ -4,21 +4,20 @@ import { effect, input, OnInit, - signal, TemplateRef, viewChild, } from '@angular/core'; -import { ActivatedRoute, Router } from '@angular/router'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; import { BundProject, BundProjectPage, - EuProject, - EuProjectPage, + EuOrganizationProjectSummary, + EuOrganizationProjectSummaryPage, + InstitutionFunderSummary, } from '../../api'; import { MatCardModule } from '@angular/material/card'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatTabChangeEvent, MatTabsModule } from '@angular/material/tabs'; -import { MatPaginatorModule, PageEvent } from '@angular/material/paginator'; import { FormsModule } from '@angular/forms'; import { MatInputModule } from '@angular/material/input'; import { @@ -26,25 +25,29 @@ import { DataTableComponent, } from '../../shared/ui/data-table/data-table.component'; import { CurrencyPipe, DatePipe } from '@angular/common'; -import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop'; -import { Sort, SortDirection } from '@angular/material/sort'; -import { DebounceDirective } from '../../directives/debounce.directive'; +import { toSignal } from '@angular/core/rxjs-interop'; import { MatIconModule } from '@angular/material/icon'; import { MatButtonModule } from '@angular/material/button'; +import { InstitutionProjectsFundingGraphComponent } from '../institution-projects-funding-graph/institution-projects-funding-graph.component'; +import { PersonNetworkInfoCardComponent } from '../person-network-info-card/person-network-info-card.component'; +import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component'; +import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component'; type BundProjectRow = { + id: string; topic: string; funding_start: Date; funding_end: Date; - grant_amount: number; + funding_amount: number; department: string; }; type EuProjectRow = { + id: string; topic: string; funding_start: Date; funding_end: Date; - grant_amount: number; + funding_amount: number; }; @Component({ @@ -53,15 +56,18 @@ type EuProjectRow = { MatCardModule, MatFormFieldModule, MatTabsModule, - MatPaginatorModule, FormsModule, MatInputModule, DataTableComponent, DatePipe, CurrencyPipe, - DebounceDirective, MatIconModule, MatButtonModule, + InstitutionProjectsFundingGraphComponent, + PersonNetworkInfoCardComponent, + RouterModule, + QueryParamPaginatorComponent, + QueryParamInputComponent, ], templateUrl: './institution-projects.component.html', styleUrl: './institution-projects.component.scss', @@ -69,36 +75,52 @@ type EuProjectRow = { export class InstitutionProjectsComponent implements OnInit { fundingStartTmp = viewChild.required>('fundingStartTmp'); fundingEndTmp = viewChild.required>('fundingEndTmp'); - grantAmountTmp = viewChild.required>('grantAmountTmp'); + fundingAmountTmp = viewChild.required>('fundingAmountTmp'); - euProjectPage = input.required(); + cordisEuProjectPage = input.required(); euProjectColumns: GenericColumn[] = []; euProjectData: EuProjectRow[] = []; + euProjectActionsTmp = viewChild.required>( + 'euProjectActionsTmp', + ); bundProjectPage = input.required(); bundProjectColumns: GenericColumn[] = []; bundProjectData: BundProjectRow[] = []; + bundProjectActionsTmp = viewChild.required>( + 'bundProjectActionsTmp', + ); - urlSortKey = signal(''); - urlSortDirection = signal(''); - urlSearchTerm = signal(''); + bundProjectsFunding = input.required(); + bundTotalFunding = computed(() => { + const funding = this.bundProjectsFunding(); + return Object.values( + funding.funding_per_year as Record, + ).reduce((sum, yearFunding) => sum + yearFunding, 0); + }); + bundAverageAnnualFunding = computed(() => { + const funding = this.bundProjectsFunding(); + return funding.annual_average_over_period ?? 0; + }); + + cordisEuProjectsFunding = input.required(); + euTotalFunding = computed(() => { + const funding = this.cordisEuProjectsFunding(); + return Object.values( + funding.funding_per_year as Record, + ).reduce((sum, yearFunding) => sum + yearFunding, 0); + }); + euAverageAnnualFunding = computed(() => { + const funding = this.cordisEuProjectsFunding(); + return funding.annual_average_over_period ?? 0; + }); constructor( private readonly activatedRoute: ActivatedRoute, private readonly router: Router, ) { - this.activatedRoute.queryParams - .pipe(takeUntilDestroyed()) - .subscribe((params) => { - this.urlSortKey.set(params['sort_by'] ?? ''); - this.urlSortDirection.set( - (params['sort_direction'] as SortDirection) ?? '', - ); - this.urlSearchTerm.set(params['search'] ?? ''); - }); - effect(() => { - const euPage = this.euProjectPage(); + const euPage = this.cordisEuProjectPage(); if (euPage) { this.euProjectData = euPage.elements ? euPage.elements.map(this.transformEuRow.bind(this)) @@ -113,16 +135,6 @@ export class InstitutionProjectsComponent implements OnInit { : []; } }); - - effect(() => { - const searchTerm = this.urlSearchTerm(); - if (searchTerm) { - this.router.navigate([], { - queryParams: { search: searchTerm }, - queryParamsHandling: 'merge', - }); - } - }); } readonly queryParams = toSignal(this.activatedRoute.queryParamMap, { @@ -133,15 +145,9 @@ export class InstitutionProjectsComponent implements OnInit { return this.queryParams()?.get('project_tab') ?? 'eu'; }); - readonly page = computed(() => { - const pageParam = this.queryParams()?.get('page'); - const page = pageParam ? Number.parseInt(pageParam, 10) : 0; - return Number.isNaN(page) ? 0 : page; - }); - readonly selectedPage = computed(() => { if (this.displayedProjects() === 'eu') { - return this.euProjectPage(); + return this.cordisEuProjectPage(); } else { return this.bundProjectPage(); } @@ -151,19 +157,11 @@ export class InstitutionProjectsComponent implements OnInit { return this.selectedPage()?.total ?? 0; }); - readonly pageSize = computed(() => { - return this.selectedPage()?.size ?? 10; - }); - - readonly pageIndex = computed(() => { - return this.selectedPage()?.page ?? 0; - }); - ngOnInit(): void { this.euProjectColumns = [ { - id: 'topic', - header: 'Thema', + id: 'title', + header: 'Titel', type: 'accessor', accessorKey: 'topic', }, @@ -182,17 +180,23 @@ export class InstitutionProjectsComponent implements OnInit { cellTemplate: this.fundingEndTmp(), }, { - id: 'grant_amount', + id: 'funding_amount', header: 'Fördersumme', type: 'accessor', - accessorKey: 'grant_amount', - cellTemplate: this.grantAmountTmp(), + accessorKey: 'funding_amount', + cellTemplate: this.fundingAmountTmp(), + }, + { + id: 'actions', + header: '', + type: 'display', + cellTemplate: this.euProjectActionsTmp(), }, ]; this.bundProjectColumns = [ { - id: 'topic', - header: 'Thema', + id: 'title', + header: 'Titel', type: 'accessor', accessorKey: 'topic', }, @@ -211,34 +215,36 @@ export class InstitutionProjectsComponent implements OnInit { cellTemplate: this.fundingEndTmp(), }, { - id: 'grant_amount', + id: 'funding_amount', header: 'Fördersumme', type: 'accessor', - accessorKey: 'grant_amount', - cellTemplate: this.grantAmountTmp(), + accessorKey: 'funding_amount', + cellTemplate: this.fundingAmountTmp(), }, { - id: 'department', - header: 'Abteilung', - type: 'accessor', - accessorKey: 'department', + id: 'actions', + header: '', + type: 'display', + cellTemplate: this.bundProjectActionsTmp(), }, ]; } - transformEuRow(project: EuProject): EuProjectRow { + transformEuRow(project: EuOrganizationProjectSummary): EuProjectRow { return { + id: project.project_id, topic: project.title || '', funding_start: project.start_date ? new Date(project.start_date) : new Date(0), funding_end: project.end_date ? new Date(project.end_date) : new Date(0), - grant_amount: Number(project.total_cost) || 0, + funding_amount: Number(project.ec_contribution) || 0, }; } transformBundRow(project: BundProject): BundProjectRow { return { + id: project.funding_code || '', topic: project.topic || '', funding_start: project.funding_start ? new Date(project.funding_start) @@ -246,7 +252,7 @@ export class InstitutionProjectsComponent implements OnInit { funding_end: project.funding_end ? new Date(project.funding_end) : new Date(0), - grant_amount: project.grant_amount || 0, + funding_amount: project.grant_amount || 0, department: project.department_fullname || '', }; } @@ -265,35 +271,7 @@ export class InstitutionProjectsComponent implements OnInit { selectedTabChange(event: MatTabChangeEvent): void { const tab = ['eu', 'bund'][event.index]; this.router.navigate([], { - queryParams: { project_tab: tab, page: 1, size: 10 }, - queryParamsHandling: 'merge', - }); - } - - handlePageChange(event: PageEvent): void { - this.router.navigate([], { - queryParams: { page: event.pageIndex, size: event.pageSize }, - queryParamsHandling: 'merge', - }); - } - - handleSortChange(event: Sort): void { - this.router.navigate([], { - queryParams: { sort_by: event.active, sort_direction: event.direction }, - queryParamsHandling: 'merge', - }); - } - - handleSearchTermChange(newTerm: string): void { - this.router.navigate([], { - queryParams: { search: newTerm }, - queryParamsHandling: 'merge', - }); - } - - clearSearchTerm(): void { - this.router.navigate([], { - queryParams: { search: null }, + queryParams: { project_tab: tab, page: 0, size: 10 }, queryParamsHandling: 'merge', }); } diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.html b/webapp/src/app/modules/institution-publications/institution-publications.component.html new file mode 100644 index 00000000..1f6b1f02 --- /dev/null +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.html @@ -0,0 +1 @@ +

institution-publications works!

diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.scss b/webapp/src/app/modules/institution-publications/institution-publications.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.ts b/webapp/src/app/modules/institution-publications/institution-publications.component.ts new file mode 100644 index 00000000..b1227d7c --- /dev/null +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.ts @@ -0,0 +1,9 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-institution-publications', + imports: [], + templateUrl: './institution-publications.component.html', + styleUrl: './institution-publications.component.scss', +}) +export class InstitutionPublicationsComponent {} diff --git a/webapp/src/app/modules/institution/institution.component.ts b/webapp/src/app/modules/institution/institution.component.ts index acd4b205..03ffd347 100644 --- a/webapp/src/app/modules/institution/institution.component.ts +++ b/webapp/src/app/modules/institution/institution.component.ts @@ -26,16 +26,17 @@ export class InstitutionComponent implements OnInit { links = [ { label: 'Übersicht', path: 'overview', disabled: false }, + { label: 'Publikationen', path: 'publications', disabled: false }, { label: 'Projekte', path: 'projects', disabled: false, queryParams: { project_tab: 'bund', - page: 1, + page: 0, size: 10, search: '', - sort_by: 'topic', + sort_by: 'title', sort_direction: 'asc', }, }, diff --git a/webapp/src/app/modules/institutions/institutions.component.html b/webapp/src/app/modules/institutions/institutions.component.html new file mode 100644 index 00000000..ce12b7ed --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.html @@ -0,0 +1,97 @@ +
+

Passende Institutionen finden

+ + + +
+ + +
+ + + +
+
+ + + + @let institutionPageValue = institutionPage(); + + @if ( + institutionPageValue.elements && institutionPageValue.elements.length > 0 + ) { +
+ @for (institution of institutionPageValue.elements; track $index) { + @let institutionId = extractInstitutionId(institution); + + + {{ getDisplayName(institution) }} + {{ institution.geo?.city }}, + {{ institution.geo?.country }} + + + + + + + + + + + + info + Übersicht + + + article + Publikationen + + + work + Projekte + + + + + } +
+ } @else { +
+

Keine passenden Institutionen gefunden.

+
+ } + + + + +
diff --git a/webapp/src/app/modules/institutions/institutions.component.scss b/webapp/src/app/modules/institutions/institutions.component.scss new file mode 100644 index 00000000..7303fdd7 --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.scss @@ -0,0 +1,83 @@ +.content { + display: flex; + flex-direction: column; + gap: 1rem; + padding: 1rem; +} + +.sorting { + display: flex; + justify-content: flex-end; + gap: 0.5rem; +} + +.sorting select { + padding: 0.75rem; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); + font-size: 1rem; +} + +.sorting select:hover { + cursor: pointer; +} + +.cards { + display: grid; + gap: 1.5rem; + grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); + padding: 0 1rem; +} + +.card { + padding: 0.5rem; + background-color: var(--sg-background); + transition: transform 0.3s ease; + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.card:hover { + cursor: pointer; + transform: scale(1.05); +} + +.card-content { + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 0.5rem; + flex: 1; +} + +.card-metadata { + display: flex; + flex-direction: column; + gap: 0.2rem; + font-size: 0.9rem; + color: var(--sg-text-secondary); +} + +mat-card-actions { + padding-top: 0.5rem; + display: flex; + gap: 0.5rem; +} + +mat-card-actions a { + width: 100%; + text-decoration: none; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); +} + +.no-results { + text-align: center; + padding: 2rem; + color: var(--sg-text-secondary); +} + +.search-and-sorting { + padding: 0 1rem; +} diff --git a/webapp/src/app/modules/institutions/institutions.component.ts b/webapp/src/app/modules/institutions/institutions.component.ts new file mode 100644 index 00000000..18eea25f --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.ts @@ -0,0 +1,57 @@ +import { Component, input } from '@angular/core'; +import { Institution, InstitutionPage } from '../../api'; +import { MatButtonModule } from '@angular/material/button'; +import { MatCardModule } from '@angular/material/card'; +import { RouterModule } from '@angular/router'; +import { MatIconModule } from '@angular/material/icon'; +import { MatDividerModule } from '@angular/material/divider'; +import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component'; +import { + QueryParamSelectorComponent, + SelectorOption, +} from '../../shared/ui/query-param-selector/query-param-selector.component'; +import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component'; + +@Component({ + selector: 'app-institutions', + imports: [ + MatButtonModule, + MatCardModule, + MatIconModule, + MatDividerModule, + RouterModule, + QueryParamPaginatorComponent, + QueryParamSelectorComponent, + QueryParamInputComponent, + ], + templateUrl: './institutions.component.html', + styleUrl: './institutions.component.scss', +}) +export class InstitutionsComponent { + institutionPage = input.required(); + + sortingOptions: SelectorOption[] = [ + { value: 'relevance', display_name: 'Relevanz' }, + { value: 'name', display_name: 'Name' }, + { value: 'works_count', display_name: 'Anzahl Publikationen' }, + { value: 'citations_count', display_name: 'Anzahl Zitationen' }, + ]; + sortingDirectionOptions: SelectorOption[] = [ + { value: 'asc', display_name: 'Aufsteigend' }, + { value: 'desc', display_name: 'Absteigend' }, + ]; + + extractInstitutionId(institution: Institution): string { + return institution.id?.split('/').pop() ?? ''; + } + + getDisplayName(institution: Institution): string { + const primary = institution.display_name?.trim(); + if (primary && primary.length > 0) return primary; + + const alt = institution.display_name_alternatives?.[0]?.trim(); + if (alt && alt.length > 0) return alt; + + return 'Unbekannte Institution'; + } +} diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html new file mode 100644 index 00000000..dc1a3fc0 --- /dev/null +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -0,0 +1,123 @@ +
+ + + @if (loading) { +
+ +

Nachricht wird geladen...

+
+ } @else if (notFound || !article) { +
+ search_off +

Nachricht nicht gefunden

+

Der Artikel konnte nicht geladen werden.

+ Zur Personensuche +
+ } @else { +
+
+
+
+ @if (article.author) { + {{ article.author }} + } + @if (article.date) { + {{ formatDate(article.date) }} + } +
+

{{ article.maintitle || 'Kein Titel' }}

+ + @if (article.relevant === true) { + + check_circle + Relevant + + } @else if (article.relevant === false) { + + cancel + Nicht relevant + + } @else { + + help + Relevanz nicht bestimmt + + } +
+ +
+ @if (article.full_content) { +

{{ article.full_content }}

+ } @else { +

Kein Inhalt verfügbar.

+ } +
+ + @if (article.url) { +
+ + open_in_new + Originalartikel öffnen + +
+ } +
+ + +
+ } +
diff --git a/webapp/src/app/modules/news-detail/news-detail.component.scss b/webapp/src/app/modules/news-detail/news-detail.component.scss new file mode 100644 index 00000000..82f7b1ac --- /dev/null +++ b/webapp/src/app/modules/news-detail/news-detail.component.scss @@ -0,0 +1,295 @@ +.detail-page { + max-width: 1200px; + margin: 0 auto; + padding: 28px 32px 64px; +} + +.back-link { + display: inline-flex; + align-items: center; + gap: 6px; + background: none; + border: none; + cursor: pointer; + font-size: 14px; + color: var(--sg-text-muted); + padding: 0; + margin-bottom: 32px; + + &:hover { + color: var(--sg-text); + } + + mat-icon { + font-size: 18px; + width: 18px; + height: 18px; + } +} + +.state { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 16px; + padding: 80px 0; + text-align: center; + color: var(--sg-text-muted); + + mat-icon { + font-size: 48px; + width: 48px; + height: 48px; + } + + p { + margin: 0; + } +} + +.error-state h2 { + margin: 0; +} + +.detail-layout { + display: grid; + grid-template-columns: 1fr 280px; + gap: 40px; + align-items: start; +} + +main { + min-width: 0; +} + +.hero { + margin-bottom: 32px; +} + +.eyebrow { + display: flex; + gap: 12px; + font-size: 13px; + color: var(--sg-text-muted); + margin-bottom: 12px; + + span + span::before { + content: '·'; + margin-right: 12px; + } +} + +.article-heading { + margin: 0; + font-size: 28px; + font-weight: 700; + line-height: 1.3; +} + +.relevance-badge { + display: inline-flex; + align-items: center; + gap: 6px; + margin-top: 14px; + padding: 5px 12px; + border-radius: 999px; + font-size: 13px; + font-weight: 600; + + mat-icon { + font-size: 16px; + width: 16px; + height: 16px; + } + + &.is-relevant { + background: #effaf3; + border: 1px solid #bdebcf; + color: #24834f; + } + + &.not-relevant { + background: var(--sg-surface-muted); + border: 1px solid #e2e2e2; + color: var(--sg-text-muted); + } + + &.undetermined { + background: #fff7e8; + border: 1px solid #ffd796; + color: #c67500; + } +} + +.article-body { + font-size: 15px; + line-height: 1.7; + color: var(--sg-text); +} + +.content { + margin: 0; + white-space: pre-wrap; +} + +.placeholder { + margin: 0; + color: var(--sg-text-muted); + font-style: italic; +} + +.article-actions { + margin-top: 32px; +} + +.sidebar { + display: flex; + flex-direction: column; + gap: 16px; + position: sticky; + top: 24px; +} + +.sidebar-card { + padding: 20px; + border: 1px solid #d7e4ff; + border-radius: 16px; + background: #ffffff; + box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + + h3 { + display: flex; + align-items: center; + gap: 8px; + margin: 0 0 14px; + font-size: 14px; + font-weight: 600; + color: var(--sg-text); + + mat-icon { + font-size: 18px; + width: 18px; + height: 18px; + color: var(--sg-text-muted); + } + } +} + +.person-list { + display: flex; + flex-direction: column; + gap: 8px; +} + +.person-item { + display: grid; + grid-template-columns: 38px minmax(0, 1fr) auto; + gap: 11px; + align-items: center; + padding: 12px; + border-radius: var(--sg-radius-sm); + background: var(--sg-surface-muted); +} + +.person-item.is-link { + cursor: pointer; + text-decoration: none; + color: inherit; + transition: background 0.15s ease; +} + +.person-item.is-link:hover { + background: #e5ecfb; +} + +.person-item.is-muted { + .avatar { + background: #ececef; + color: var(--sg-text-muted); + } + + .person-name { + color: var(--sg-text-muted); + } +} + +.ude-badge { + justify-self: end; + padding: 3px 9px; + border-radius: 999px; + background: #effaf3; + border: 1px solid #bdebcf; + color: #24834f; + font-size: 11px; + font-weight: 700; + letter-spacing: 0.03em; +} + +.avatar { + display: grid; + place-items: center; + width: 38px; + height: 38px; + border-radius: 50%; + background: #e5ecfb; + color: var(--sg-text); + font-size: 15px; + font-weight: 700; + text-transform: uppercase; +} + +.person-name { + color: var(--sg-text); + font-size: 13px; + font-weight: 700; +} + +.chip-list { + display: flex; + flex-wrap: wrap; + gap: 8px; +} + +.topic-chip { + display: inline-flex; + align-items: center; + padding: 6px 12px; + border: 1px solid var(--topic-border); + border-radius: 8px; + background: var(--topic-bg); + color: var(--topic-color); + font-size: 12px; + font-weight: 500; + line-height: 1.25; +} + +.purple { + --topic-border: #d8cafe; + --topic-bg: #f6f0ff; + --topic-color: #7255d9; +} + +.blue { + --topic-border: #bdd4ff; + --topic-bg: #f0f6ff; + --topic-color: #0b63ce; +} + +.green { + --topic-border: #bdebcf; + --topic-bg: #effaf3; + --topic-color: #24834f; +} + +.orange { + --topic-border: #ffd796; + --topic-bg: #fff7e8; + --topic-color: #c67500; +} + +.pink { + --topic-border: #ffc7d7; + --topic-bg: #fff1f5; + --topic-color: #d12f61; +} diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts new file mode 100644 index 00000000..bd75dc3c --- /dev/null +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -0,0 +1,109 @@ +import { Component, DestroyRef, OnInit, inject } from '@angular/core'; +import { Location, NgClass } from '@angular/common'; +import { HttpClient } from '@angular/common/http'; +import { ActivatedRoute, RouterLink } from '@angular/router'; +import { MatButtonModule } from '@angular/material/button'; +import { MatIconModule } from '@angular/material/icon'; +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; + +import { WorksService } from '../../api'; + +interface MentionedPerson { + name: string; + is_ude?: boolean; + person_id?: string | null; +} + +interface NewsArticleDetail { + id: string; + date?: string | null; + maintitle?: string | null; + author?: string | null; + url?: string | null; + full_content?: string | null; + relevant?: boolean; + authors?: MentionedPerson[]; +} + +@Component({ + selector: 'app-news-detail', + imports: [ + MatButtonModule, + MatIconModule, + MatProgressSpinnerModule, + RouterLink, + NgClass, + ], + templateUrl: './news-detail.component.html', + styleUrl: './news-detail.component.scss', +}) +export class NewsDetailComponent implements OnInit { + private readonly destroyRef = inject(DestroyRef); + private readonly route = inject(ActivatedRoute); + private readonly httpClient = inject(HttpClient); + private readonly worksService = inject(WorksService); + private readonly location = inject(Location); + + article: NewsArticleDetail | null = null; + loading = false; + notFound = false; + + readonly relevantTopics = [ + 'Künstliche Intelligenz', + 'Maschinelles Lernen', + 'Digitalisierung', + 'Datenwissenschaft', + ]; + + private readonly chipColors = ['purple', 'blue', 'green', 'orange', 'pink']; + + chipColor(index: number): string { + return this.chipColors[index % this.chipColors.length]; + } + + ngOnInit(): void { + this.route.paramMap + .pipe(takeUntilDestroyed(this.destroyRef)) + .subscribe((params) => { + const id = params.get('id'); + if (id) { + this.fetchArticle(id); + } + }); + } + + navigateBack(): void { + this.location.back(); + } + + formatDate(dateStr?: string | null): string { + if (!dateStr) return '-'; + const date = new Date(dateStr); + if (isNaN(date.getTime())) return dateStr; + return new Intl.DateTimeFormat('de-DE', { + day: '2-digit', + month: 'long', + year: 'numeric', + }).format(date); + } + + private fetchArticle(id: string): void { + this.loading = true; + this.notFound = false; + const basePath = this.worksService.configuration.basePath ?? ''; + this.httpClient + .get(`${basePath}/api/news/${encodeURIComponent(id)}`) + .pipe(takeUntilDestroyed(this.destroyRef)) + .subscribe({ + next: (article) => { + this.article = article; + this.loading = false; + }, + error: () => { + this.notFound = true; + this.loading = false; + }, + }); + } +} diff --git a/webapp/src/app/modules/news/news.component.html b/webapp/src/app/modules/news/news.component.html new file mode 100644 index 00000000..aff9aadc --- /dev/null +++ b/webapp/src/app/modules/news/news.component.html @@ -0,0 +1,110 @@ +
+
+
Nachrichten
+

Aktuelle Nachrichten aus Campus-Aktuell.

+
+ +
+ + search + + + + @if (!isSearching) { + + + Neueste zuerst + Älteste zuerst + + + } +
+ +
+ @if (loading) { +
+ +
+ } + + + + + + + + + + + + + + + + + + + + + + + + +
Titel + {{ + article.maintitle || 'Kein Titel' + }} + Fundstelle + @if (article.snippet) { + + } @else { + — + } + Relevanz + @if (article.relevant === true) { + + check_circle + Relevant + + } @else if (article.relevant === false) { + + cancel + Nicht relevant + + } @else { + + help + Nicht bestimmt + + } + Datum + {{ formatDate(article.date) }} +
+ + @if (!loading && articles.length === 0) { +
+ @if (isSearching) { + Keine Ergebnisse für „{{ searchControl.value.trim() }}" gefunden. + } @else { + Keine Nachrichten gefunden. + } +
+ } +
+ + +
diff --git a/webapp/src/app/modules/news/news.component.scss b/webapp/src/app/modules/news/news.component.scss new file mode 100644 index 00000000..100dead9 --- /dev/null +++ b/webapp/src/app/modules/news/news.component.scss @@ -0,0 +1,209 @@ +.page { + padding: 28px 32px 42px; + max-width: 100%; + margin: 0 auto; +} + +h6 { + margin: 0 0 6px; + font-size: 22px; + line-height: 1.2; + font-weight: 700; +} + +.page > div:first-child p { + margin: 0; + color: var(--sg-text-muted); + font-size: 14px; +} + +.news-toolbar { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 12px; + padding-top: 10px; + padding-bottom: 25px; +} + +.search-field { + max-width: 480px; +} + +::ng-deep .news-toolbar .mat-mdc-form-field-subscript-wrapper { + display: none; +} + +::ng-deep .news-toolbar .mat-mdc-text-field-wrapper { + height: 42px; + background: #fff; + border-radius: var(--sg-radius-sm); +} + +::ng-deep .news-toolbar .mat-mdc-form-field-infix { + min-height: unset; + height: 42px; + padding: 0; + display: flex; + align-items: center; +} + +::ng-deep .news-toolbar .mdc-notched-outline__leading, +::ng-deep .news-toolbar .mdc-notched-outline__notch, +::ng-deep .news-toolbar .mdc-notched-outline__trailing { + border-color: #d9e2f0; +} + +::ng-deep .news-toolbar input.mat-mdc-input-element { + color: var(--sg-text); + font-size: 14px; +} + +::ng-deep .news-toolbar input.mat-mdc-input-element::placeholder { + color: var(--sg-text-muted); + opacity: 1; + font-size: 14px; +} + +.sort-field { + width: 180px; +} + +.table-wrap { + position: relative; + overflow-x: auto; +} + +table { + width: 100%; + min-width: 600px; + border-collapse: separate; + border-spacing: 0 10px; + background: transparent; + box-shadow: none; +} + +.article-title { + display: inline-block; + max-width: 520px; + line-height: 1.35; + color: var(--sg-text); + font-size: 14px; + font-weight: 700; + text-decoration: none; + + &:hover { + color: var(--sg-text); + text-decoration: underline; + } +} + +.loading { + position: absolute; + inset: 0; + z-index: 1; + display: grid; + place-items: center; + background: rgba(255, 255, 255, 0.65); +} + +.empty-state { + padding: 28px; + text-align: center; + color: rgba(0, 0, 0, 0.6); + background: transparent; +} + +.snippet { + color: var(--sg-text-muted); + font-size: 13px; + line-height: 1.4; +} + +::ng-deep .snippet em { + font-style: normal; + background: #fff48d; + padding: 0 3px; + border-radius: 3px; +} + +.snippet-empty { + color: var(--sg-text-muted); +} + +.relevance-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 5px 12px; + border-radius: 999px; + font-size: 13px; + font-weight: 600; + line-height: 1; + white-space: nowrap; + + mat-icon { + font-size: 16px; + width: 16px; + height: 16px; + } + + &.is-relevant { + background: #effaf3; + border: 1px solid #bdebcf; + color: #24834f; + } + + &.not-relevant { + background: var(--sg-surface-muted); + border: 1px solid #e2e2e2; + color: var(--sg-text-muted); + } + + &.undetermined { + background: #fff7e8; + border: 1px solid #ffd796; + color: #c67500; + } +} + +::ng-deep .mat-mdc-header-cell { + color: var(--sg-text-muted); + font-size: 12px; + font-weight: 700; +} + +::ng-deep .mat-mdc-row { + height: 72px; +} + +::ng-deep .mat-mdc-cell { + color: var(--sg-text); + border-bottom-color: var(--sg-border); + font-size: 13px; +} + +mat-paginator { + background: transparent; +} + +.table-footer { + display: flex; + align-items: center; + justify-content: space-between; + min-height: 66px; + padding: 0 22px 0 28px; + color: var(--sg-text-muted); + font-size: 13px; +} + +@media (max-width: 600px) { + .page { + padding: 16px; + } + + .table-footer { + align-items: stretch; + flex-direction: column; + } +} diff --git a/webapp/src/app/modules/news/news.component.ts b/webapp/src/app/modules/news/news.component.ts new file mode 100644 index 00000000..3c1ff74c --- /dev/null +++ b/webapp/src/app/modules/news/news.component.ts @@ -0,0 +1,219 @@ +import { Component, DestroyRef, OnInit, inject } from '@angular/core'; +import { HttpClient, HttpParams } from '@angular/common/http'; +import { FormControl, ReactiveFormsModule } from '@angular/forms'; +import { ActivatedRoute, Router, RouterLink } from '@angular/router'; +import { MatIconModule } from '@angular/material/icon'; +import { MatSelectModule } from '@angular/material/select'; +import { MatPaginatorModule, PageEvent } from '@angular/material/paginator'; +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { MatTableModule } from '@angular/material/table'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatInputModule } from '@angular/material/input'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { debounceTime, distinctUntilChanged } from 'rxjs'; + +import { WorksService } from '../../api'; +import { PaginationService } from '../../shared/services/pagination.service'; + +interface NewsArticle { + id: string; + date?: string | null; + maintitle?: string | null; + author?: string | null; + url?: string | null; + relevant?: boolean | null; + snippet?: string | null; +} + +interface NewsPage { + total: number; + page: number; + page_size: number; + results: NewsArticle[]; +} + +type SortOrder = 'desc' | 'asc'; +const DEFAULT_SORT_ORDER: SortOrder = 'desc'; + +@Component({ + selector: 'app-news', + imports: [ + MatIconModule, + MatSelectModule, + MatFormFieldModule, + MatInputModule, + MatPaginatorModule, + MatProgressSpinnerModule, + MatTableModule, + ReactiveFormsModule, + RouterLink, + ], + templateUrl: './news.component.html', + styleUrl: './news.component.scss', +}) +export class NewsComponent implements OnInit { + private readonly destroyRef = inject(DestroyRef); + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly httpClient = inject(HttpClient); + private readonly worksService = inject(WorksService); + readonly paginationService = inject(PaginationService); + + readonly searchControl = new FormControl('', { nonNullable: true }); + + get displayedColumns(): string[] { + if (this.isSearching) { + return ['maintitle', 'snippet', 'relevance', 'date']; + } + return ['maintitle', 'relevance', 'date']; + } + + articles: NewsArticle[] = []; + total = 0; + loading = false; + + currentPage = 1; + sortOrder: SortOrder = DEFAULT_SORT_ORDER; + + get isSearching(): boolean { + return this.searchControl.value.trim().length > 0; + } + + ngOnInit(): void { + this.route.queryParamMap + .pipe(takeUntilDestroyed(this.destroyRef)) + .subscribe((params) => { + this.currentPage = this.parsePage(params.get('page')); + this.paginationService.selection = this.parsePageSize( + params.get('pageSize'), + ); + this.sortOrder = this.parseSortOrder(params.get('sortOrder')); + this.searchControl.setValue(params.get('q') ?? '', { + emitEvent: false, + }); + this.load(); + }); + + this.searchControl.valueChanges + .pipe( + debounceTime(300), + distinctUntilChanged(), + takeUntilDestroyed(this.destroyRef), + ) + .subscribe((query) => { + this.router.navigate([], { + relativeTo: this.route, + queryParams: { q: query.trim() || null, page: 1 }, + queryParamsHandling: 'merge', + }); + }); + } + + load(): void { + this.loading = true; + const query = this.searchControl.value.trim(); + const basePath = this.worksService.configuration.basePath ?? ''; + + if (query) { + const params = new HttpParams() + .set('query', query) + .set('page', this.currentPage) + .set('pageSize', this.paginationService.selection); + + this.httpClient + .get(`${basePath}/api/news/search`, { params }) + .subscribe({ + next: (page) => { + this.articles = page.results ?? []; + this.total = page.total ?? 0; + this.loading = false; + }, + error: () => { + this.articles = []; + this.total = 0; + this.loading = false; + }, + }); + } else { + const params = new HttpParams() + .set('page', this.currentPage) + .set('pageSize', this.paginationService.selection) + .set('sortOrder', this.sortOrder); + + this.httpClient + .get(`${basePath}/api/news`, { params }) + .subscribe({ + next: (page) => { + this.articles = page.results ?? []; + this.total = page.total ?? 0; + this.loading = false; + }, + error: () => { + this.articles = []; + this.total = 0; + this.loading = false; + }, + }); + } + } + + onPage(event: PageEvent): void { + this.router.navigate([], { + relativeTo: this.route, + queryParams: { + page: event.pageIndex + 1, + pageSize: event.pageSize, + }, + queryParamsHandling: 'merge', + }); + } + + onSortChange(order: SortOrder): void { + this.router.navigate([], { + relativeTo: this.route, + queryParams: { + sortOrder: order, + page: 1, + }, + queryParamsHandling: 'merge', + }); + } + + formatDate(dateStr?: string | null): string { + if (!dateStr) return '-'; + const date = new Date(dateStr); + if (isNaN(date.getTime())) return dateStr; + return new Intl.DateTimeFormat('de-DE').format(date); + } + + articleRange(): string { + if (this.total === 0) return 'Keine Nachrichten gefunden'; + const pageSize = this.paginationService.selection; + const start = (this.currentPage - 1) * pageSize + 1; + const end = Math.min(start + this.articles.length - 1, this.total); + return `Zeige ${start} bis ${end} von ${this.total} Nachrichten`; + } + + private parsePage(value: string | null): number { + const page = Number.parseInt(value ?? '', 10); + if (Number.isNaN(page) || page < 1) { + return 1; + } + return page; + } + + private parsePageSize(value: string | null): number { + const pageSize = Number.parseInt(value ?? '', 10); + if (this.paginationService.options.includes(pageSize)) { + return pageSize; + } + return 10; + } + + private parseSortOrder(value: string | null): SortOrder { + if (value === 'asc' || value === 'desc') { + return value; + } + return DEFAULT_SORT_ORDER; + } +} diff --git a/webapp/src/app/modules/person-card/person-card.component.html b/webapp/src/app/modules/person-card/person-card.component.html index 43698f60..e07bb800 100644 --- a/webapp/src/app/modules/person-card/person-card.component.html +++ b/webapp/src/app/modules/person-card/person-card.component.html @@ -1,8 +1,8 @@
- + -
- {{ getInitials(person.display_name) }} +
+ {{ initials() }}
@@ -11,41 +11,58 @@ (click)=" toggleBookmark(); $event.stopPropagation(); $event.preventDefault() " - [class.bookmarked]="isBookmarked" + [class.bookmarked]="isBookmarked()" aria-label="Bookmark person"> {{ - isBookmarked ? 'bookmark' : 'bookmark_border' + isBookmarked() ? 'bookmark' : 'bookmark_border' }}

- {{ person.display_name ?? '' }} + [title]="person().display_name ?? ''"> + {{ person().display_name ?? '' }}

-

- {{ getDistinguishingId(person) ?? '' }} +

+ {{ distinguishingId() }}

-

- {{ getStatsString() }} +

+ {{ statsString() }}

-

- {{ getHIndexString() }} +

+ {{ hIndexString() }}

+ @if (!loading()) { + @if (careerStage(); as careerStage) { +
+ Career Stage: + + {{ careerStage }} + +
+ } + }
- @if (institution(person); as inst) { + @if (institution(); as inst) {
- + "> {{ inst.display_name ?? '' }} - @if (inst.country_code && !loading) { + @if (inst.country_code && !loading()) { {{ inst.country_code.toUpperCase() }} } - +
}
- @for (topic of topics(person); track topic.id) { - {{ topic.display_name }} + "> + {{ topic.display_name }} + }
@@ -164,13 +222,11 @@
+ [style.--timeline-color]=" + getTopicColor(getMainTopicItem(item)) + "> + (chipClick)="selectTopic(topic, [item.year])"> + @@ -290,15 +342,26 @@ +
+ +
+
+ [style.--timeline-color]="getTopicColor(phase.primaryTopic)">
@@ -335,9 +398,10 @@ type="button" class="main-topic-button" [disabled]="!phase.primaryTopic.id" - [matTooltip]="getTopicDescription(phase.primaryTopic)" + [matTooltip]="getTopicTooltip(phase.primaryTopic)" + matTooltipClass="topic-chip-tooltip" [matTooltipDisabled]=" - !hasTopicDescription(phase.primaryTopic) + !hasTopicTooltip(phase.primaryTopic) " (click)=" selectTopic(phase.primaryTopic, getPhaseYears(phase)) @@ -351,25 +415,20 @@
- + (chipClick)="selectTopic(topic, getPhaseYears(phase))"> + @@ -427,8 +486,7 @@ ).length > 0; else noPhaseYearTopics "> - + (chipClick)="selectTopic(topic, [year.year])"> + diff --git a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss index e1b43d09..b9c0fe2d 100644 --- a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss +++ b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss @@ -11,9 +11,6 @@ button { font-family: inherit; - } - - button:not(:where(.topic-chip, .mini-topic-chip)) { border: 0; background: transparent; padding: 0; @@ -38,7 +35,7 @@ .timeline-header { display: grid; - grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr); + grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: flex-start; gap: 24px; margin-bottom: 28px; @@ -67,6 +64,131 @@ } } +.subfield-legend { + width: min(760px, 100%); + box-sizing: border-box; + margin-top: 16px; + padding: 13px 16px; + border: 1px solid #dbe5f6; + border-radius: 8px; + background: #ffffff; +} + +.subfield-legend-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; +} + +.subfield-legend-title, +.subfield-legend-visibility-toggle, +.subfield-legend-content, +.subfield-legend-group, +.subfield-legend-items, +.subfield-legend-item { + display: flex; + align-items: center; +} + +.subfield-legend-title { + gap: 5px; + color: #07163d; + font-size: 12px; + font-weight: 800; + line-height: 1.25; +} + +.subfield-legend-info { + width: 14px; + height: 14px; + color: #7d8aa8; + font-size: 14px; + line-height: 14px; +} + +.subfield-legend-visibility-toggle { + flex: 0 0 auto; + gap: 4px; + color: var(--accent); + font-size: 11px; + font-weight: 700; + line-height: 1.2; + + mat-icon { + width: 14px; + height: 14px; + font-size: 14px; + line-height: 14px; + } + + &:hover { + text-decoration: none; + } +} + +.subfield-legend-content { + flex-wrap: wrap; + gap: 8px; + margin-top: 17px; +} + +.subfield-legend-group { + gap: 9px; + max-width: 100%; + min-width: 0; + min-height: 28px; + padding: 5px 9px; + border: 1px solid #dbe5f6; + border-radius: 999px; + background: #fbfdff; +} + +.subfield-legend-field { + flex: 0 0 auto; + color: #07163d; + font-size: 11px; + font-weight: 800; + line-height: 1.2; + cursor: help; +} + +.subfield-legend-items { + flex-wrap: wrap; + gap: 6px 11px; + min-width: 0; +} + +.subfield-legend-item { + gap: 5px; + min-width: 0; + color: #53617e; + font-size: 11px; + font-weight: 600; + line-height: 1.25; + cursor: help; +} + +.subfield-legend-dot { + flex: 0 0 auto; + width: 9px; + height: 9px; + border: 1px solid rgba(255, 255, 255, 0.85); + border-radius: 50%; + box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2); +} + +.subfield-legend-more-toggle { + flex: 0 0 auto; + color: var(--accent); + font-size: 11px; + font-weight: 700; + + &:hover { + text-decoration: none; + } +} + .view-toggle { justify-self: center; display: flex; @@ -103,6 +225,7 @@ border: 1px solid #dbe5f6; border-radius: 10px; background: #fbfdff; + box-sizing: border-box; } .year-filter-top, @@ -290,12 +413,12 @@ } .dot { - width: 13px; - height: 13px; + width: 18px; + height: 18px; border: 3px solid #ffffff; border-radius: 50%; background: var(--timeline-color); - box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16); + box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.24); } } @@ -365,60 +488,9 @@ gap: 8px; } -.topic-chip { - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - align-items: center; - justify-items: center; - column-gap: 8px; +app-topic-chip.timeline-topic-chip { width: 100%; max-width: 210px; - box-sizing: border-box; - min-height: 34px; - padding: 6px 10px; - border: 1px solid var(--topic-border); - border-radius: 8px; - background: var(--topic-bg); - color: var(--topic-color); - font-family: inherit; - font-size: 12px; - font-weight: 500; - line-height: 1.25; - cursor: pointer; - transition: - transform 0.15s ease, - box-shadow 0.15s ease; - - &:hover:not(:disabled) { - transform: translateY(-1px); - box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12); - text-decoration: none; - } - - &:disabled { - cursor: default; - } -} - -.topic-name, -.mini-topic-chip span { - min-width: 0; - text-align: center; - overflow-wrap: anywhere; -} - -.topic-count { - display: inline-flex; - align-items: center; - justify-content: center; - min-width: 18px; - height: 18px; - padding: 0 5px; - border-radius: 999px; - background: rgba(255, 255, 255, 0.78); - color: inherit; - font-size: 11px; - font-weight: 700; } .no-topics { @@ -426,6 +498,11 @@ font-size: 12px; } +.compact-load-more-row { + display: flex; + margin: 6px 0 28px; +} + .compact-phase-list { display: flex; flex-wrap: wrap; @@ -452,13 +529,13 @@ } .phase-marker { - width: 11px; - height: 11px; - margin-top: 5px; + width: 16px; + height: 16px; + margin-top: 3px; border: 3px solid #ffffff; border-radius: 50%; background: var(--timeline-color); - box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14); + box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22); } .phase-title-block { @@ -504,7 +581,7 @@ gap: 7px; margin-top: 14px; - .topic-chip { + app-topic-chip.phase-topic-chip { flex: 0 0 calc((100% - 7px) / 2); width: calc((100% - 7px) / 2); max-width: none; @@ -573,75 +650,6 @@ gap: 6px; } -.mini-topic-chip { - display: inline-grid; - grid-template-columns: minmax(0, 1fr) auto; - align-items: center; - column-gap: 5px; - max-width: 100%; - padding: 4px 7px; - border: 0; - border-radius: 7px; - background: #f2f6ff; - color: #40506f; - font-family: inherit; - font-size: 11px; - line-height: 1.25; - cursor: pointer; - - &:hover:not(:disabled) { - color: var(--accent); - text-decoration: none; - } - - &:disabled { - cursor: default; - } - - strong { - display: inline-flex; - align-items: center; - gap: 2px; - color: var(--accent); - font-size: 10px; - } -} - -.purple { - --timeline-color: #7255d9; - --topic-border: #d8cafe; - --topic-bg: #f6f0ff; - --topic-color: #7255d9; -} - -.blue { - --timeline-color: #2678e8; - --topic-border: #bdd4ff; - --topic-bg: #f0f6ff; - --topic-color: #0b63ce; -} - -.green { - --timeline-color: #39a96b; - --topic-border: #bdebcf; - --topic-bg: #effaf3; - --topic-color: #24834f; -} - -.orange { - --timeline-color: #f59e0b; - --topic-border: #ffd796; - --topic-bg: #fff7e8; - --topic-color: #c67500; -} - -.pink { - --timeline-color: #e0527c; - --topic-border: #ffc7d7; - --topic-bg: #fff1f5; - --topic-color: #d12f61; -} - .timeline-note { display: flex; justify-content: center; @@ -654,8 +662,8 @@ } .note-dot { - width: 10px; - height: 10px; + width: 12px; + height: 12px; border: 3px solid #dce5f5; border-radius: 50%; background: #52627f; diff --git a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.ts b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.ts index 43c99ff3..fa29012f 100644 --- a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.ts +++ b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.ts @@ -1,4 +1,5 @@ import { CommonModule } from '@angular/common'; +import { MatIconModule } from '@angular/material/icon'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { MatTooltipModule } from '@angular/material/tooltip'; import { @@ -12,12 +13,24 @@ import { SimpleChanges, ViewChild, } from '@angular/core'; +import { TopicChipComponent } from '../../../../shared/ui/topic-chip/topic-chip.component'; +import { topicHierarchyColor } from '../../../../shared/utils/topic-colors'; +import { buildTopicHierarchyTooltip } from '../../../../shared/utils/topic-tooltip'; export interface TopicTimelineTopic { id?: string; name: string; count: number; description?: string; + subfield_id?: string; + subfield_name?: string; + subfield_description?: string; + field_id?: string; + field_name?: string; + field_description?: string; + domain_id?: string; + domain_name?: string; + domain_description?: string; } export interface TopicTimelineElement { @@ -65,10 +78,34 @@ interface TimelineScrollAnchor { scrollLeft: number; } +interface TopicSubfieldLegendItem { + id: string; + name: string; + description: string; + color: string; + tooltip: string; +} + +interface TopicFieldLegendGroup { + id: string; + name: string; + description: string; + domainName: string; + domainDescription: string; + tooltip: string; + items: TopicSubfieldLegendItem[]; +} + @Component({ selector: 'app-research-timeline', standalone: true, - imports: [CommonModule, MatProgressSpinnerModule, MatTooltipModule], + imports: [ + CommonModule, + MatIconModule, + MatProgressSpinnerModule, + MatTooltipModule, + TopicChipComponent, + ], templateUrl: './research-timeline.component.html', styleUrl: './research-timeline.component.scss', }) @@ -84,12 +121,16 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { @Input() viewMode: TimelineViewMode = 'years'; @Input() startYear: number | undefined; @Input() endYear: number | undefined; + @Input() subfieldLegendVisible = true; + @Input() subfieldLegendExpanded = false; @Output() viewModeChange = new EventEmitter(); @Output() yearRangeChange = new EventEmitter(); @Output() topicSelect = new EventEmitter(); @Output() yearSelect = new EventEmitter(); @Output() loadEarlierYears = new EventEmitter(); + @Output() subfieldLegendVisibleChange = new EventEmitter(); + @Output() subfieldLegendExpandedChange = new EventEmitter(); timelineViewMode: TimelineViewMode = 'years'; @@ -98,10 +139,10 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { selectedStartYear = 0; selectedEndYear = 0; - private readonly colors = ['purple', 'blue', 'green', 'orange', 'pink']; private readonly columnWidth = 240; private readonly displayedTopicLimit = 3; private readonly displayedPhaseTopicLimit = 4; + private readonly collapsedSubfieldLegendGroupLimit = 3; private readonly scrollRestoreThreshold = 24; private readonly expandedPhaseIds = new Set(); @@ -157,6 +198,32 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { return this.buildCompactPhases(this.timelineItems); } + get subfieldLegendGroups(): TopicFieldLegendGroup[] { + const groups = this.allSubfieldLegendGroups; + + if (this.subfieldLegendExpanded) { + return groups; + } + + return groups.slice(0, this.collapsedSubfieldLegendGroupLimit); + } + + get hiddenSubfieldLegendItemCount(): number { + if (this.subfieldLegendExpanded) { + return 0; + } + + return this.allSubfieldLegendGroups + .slice(this.collapsedSubfieldLegendGroupLimit) + .reduce((count, group) => count + group.items.length, 0); + } + + get showSubfieldLegendToggle(): boolean { + return ( + this.subfieldLegendExpanded || this.hiddenSubfieldLegendItemCount > 0 + ); + } + get hasYearRange(): boolean { return this.minYear > 0 && this.maxYear > 0 && this.minYear < this.maxYear; } @@ -335,8 +402,45 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { return (topic?.description ?? '').trim(); } - hasTopicDescription(topic: TopicTimelineTopic | undefined): boolean { - return this.getTopicDescription(topic).length > 0; + getTopicTooltip(topic: TopicTimelineTopic | undefined): string { + return buildTopicHierarchyTooltip({ + topicName: topic?.name, + description: topic?.description, + subfieldName: topic?.subfield_name, + fieldName: topic?.field_name, + domainName: topic?.domain_name, + }); + } + + hasTopicTooltip(topic: TopicTimelineTopic | undefined): boolean { + return this.getTopicTooltip(topic).length > 0; + } + + buildLegendTooltip( + entries: Array<{ label: string; value: string; description: string }>, + ): string { + const lines: string[] = []; + + for (const entry of entries) { + if (!entry.value && !entry.description) { + continue; + } + + if (lines.length > 0) { + lines.push(''); + } + + if (entry.value) { + lines.push(`${entry.label}: ${entry.value}`); + } + + if (entry.description) { + lines.push(''); + lines.push(`Beschreibung: ${entry.description}`); + } + } + + return lines.join('\n'); } getYearTopicCountTooltip( @@ -369,8 +473,26 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { return this.expandedPhaseIds.has(phase.id); } - getColorClass(index: number): string { - return this.colors[index % this.colors.length]; + getTopicColor(topic: TopicTimelineTopic | undefined): string { + return topicHierarchyColor(topic); + } + + toggleSubfieldLegend(): void { + this.subfieldLegendExpanded = !this.subfieldLegendExpanded; + this.subfieldLegendExpandedChange.emit(this.subfieldLegendExpanded); + } + + toggleSubfieldLegendVisibility(): void { + this.subfieldLegendVisible = !this.subfieldLegendVisible; + this.subfieldLegendVisibleChange.emit(this.subfieldLegendVisible); + } + + trackByLegendGroup(_: number, group: TopicFieldLegendGroup): string { + return group.id; + } + + trackByLegendItem(_: number, item: TopicSubfieldLegendItem): string { + return item.id; } trackByYear(_: number, item: TopicTimelineElement): number { @@ -519,6 +641,117 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { ); } + private get allSubfieldLegendGroups(): TopicFieldLegendGroup[] { + if ( + this.loading || + this.loadFailed || + this.timelineViewMode === 'wordcloud' + ) { + return []; + } + + const groups = new Map(); + + for (const topic of this.visibleLegendTopics) { + const subfieldName = topic.subfield_name?.trim(); + + if (!subfieldName) { + continue; + } + + const fieldName = topic.field_name?.trim() || 'Ohne Field'; + const fieldKey = topic.field_id ?? this.normalizeTopicName(fieldName); + const subfieldKey = + topic.subfield_id ?? this.normalizeTopicName(subfieldName); + + if (!groups.has(fieldKey)) { + groups.set(fieldKey, { + id: fieldKey, + name: fieldName, + description: topic.field_description?.trim() ?? '', + domainName: topic.domain_name?.trim() ?? '', + domainDescription: topic.domain_description?.trim() ?? '', + tooltip: this.buildLegendTooltip([ + { + label: 'Fachgebiet', + value: fieldName, + description: topic.field_description?.trim() ?? '', + }, + { + label: 'Wissenschaftsbereich', + value: topic.domain_name?.trim() ?? '', + description: topic.domain_description?.trim() ?? '', + }, + ]), + items: [], + }); + } + + const group = groups.get(fieldKey); + + if (!group || group.items.some((item) => item.id === subfieldKey)) { + continue; + } + + group.items.push({ + id: subfieldKey, + name: subfieldName, + description: topic.subfield_description?.trim() ?? '', + color: this.getTopicColor(topic), + tooltip: this.buildLegendTooltip([ + { + label: 'Themenbereich', + value: subfieldName, + description: topic.subfield_description?.trim() ?? '', + }, + { + label: 'Fachgebiet', + value: fieldName, + description: topic.field_description?.trim() ?? '', + }, + { + label: 'Wissenschaftsbereich', + value: topic.domain_name?.trim() ?? '', + description: topic.domain_description?.trim() ?? '', + }, + ]), + }); + } + + return [...groups.values()] + .map((group) => ({ + ...group, + items: group.items.sort((left, right) => + left.name.localeCompare(right.name), + ), + })) + .sort((left, right) => left.name.localeCompare(right.name)); + } + + private get visibleLegendTopics(): TopicTimelineTopic[] { + if (this.timelineViewMode === 'compact') { + return this.compactPhases.flatMap((phase) => [ + phase.primaryTopic, + ...phase.topics, + ...(this.isPhaseExpanded(phase) + ? phase.years.flatMap((year) => + this.getDisplayedTopicsForPrimaryTopic( + year, + phase.primaryTopicName, + ), + ) + : []), + ]); + } + + return this.timelineItems + .flatMap((item) => [ + this.getMainTopicItem(item), + ...this.getDisplayedTopics(item), + ]) + .filter((topic): topic is TopicTimelineTopic => Boolean(topic)); + } + private initializeYearBounds(): void { const years = this.sortedElements .map((item) => item.year) @@ -646,6 +879,15 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { let count = 0; let id = primaryTopic.id; let description = primaryTopic.description; + let subfieldId = primaryTopic.subfield_id; + let subfieldName = primaryTopic.subfield_name; + let subfieldDescription = primaryTopic.subfield_description; + let fieldId = primaryTopic.field_id; + let fieldName = primaryTopic.field_name; + let fieldDescription = primaryTopic.field_description; + let domainId = primaryTopic.domain_id; + let domainName = primaryTopic.domain_name; + let domainDescription = primaryTopic.domain_description; for (const year of years) { for (const topic of year.primary_topics ?? []) { @@ -662,6 +904,42 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { if (!description && topic.description) { description = topic.description; } + + if (!subfieldId && topic.subfield_id) { + subfieldId = topic.subfield_id; + } + + if (!subfieldName && topic.subfield_name) { + subfieldName = topic.subfield_name; + } + + if (!subfieldDescription && topic.subfield_description) { + subfieldDescription = topic.subfield_description; + } + + if (!fieldId && topic.field_id) { + fieldId = topic.field_id; + } + + if (!fieldName && topic.field_name) { + fieldName = topic.field_name; + } + + if (!fieldDescription && topic.field_description) { + fieldDescription = topic.field_description; + } + + if (!domainId && topic.domain_id) { + domainId = topic.domain_id; + } + + if (!domainName && topic.domain_name) { + domainName = topic.domain_name; + } + + if (!domainDescription && topic.domain_description) { + domainDescription = topic.domain_description; + } } } @@ -670,6 +948,15 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { name: primaryTopicName, count: count > 0 ? count : primaryTopic.count, description, + subfield_id: subfieldId, + subfield_name: subfieldName, + subfield_description: subfieldDescription, + field_id: fieldId, + field_name: fieldName, + field_description: fieldDescription, + domain_id: domainId, + domain_name: domainName, + domain_description: domainDescription, }; } @@ -681,6 +968,15 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { const originalNames = new Map(); const ids = new Map(); const descriptions = new Map(); + const subfieldIds = new Map(); + const subfieldNames = new Map(); + const subfieldDescriptions = new Map(); + const fieldIds = new Map(); + const fieldNames = new Map(); + const fieldDescriptions = new Map(); + const domainIds = new Map(); + const domainNames = new Map(); + const domainDescriptions = new Map(); for (const year of years) { for (const topic of year.topics ?? []) { @@ -700,6 +996,42 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { descriptions.set(normalizedName, topic.description); } + if (topic.subfield_id) { + subfieldIds.set(normalizedName, topic.subfield_id); + } + + if (topic.subfield_name) { + subfieldNames.set(normalizedName, topic.subfield_name); + } + + if (topic.subfield_description) { + subfieldDescriptions.set(normalizedName, topic.subfield_description); + } + + if (topic.field_id) { + fieldIds.set(normalizedName, topic.field_id); + } + + if (topic.field_name) { + fieldNames.set(normalizedName, topic.field_name); + } + + if (topic.field_description) { + fieldDescriptions.set(normalizedName, topic.field_description); + } + + if (topic.domain_id) { + domainIds.set(normalizedName, topic.domain_id); + } + + if (topic.domain_name) { + domainNames.set(normalizedName, topic.domain_name); + } + + if (topic.domain_description) { + domainDescriptions.set(normalizedName, topic.domain_description); + } + counts.set( normalizedName, (counts.get(normalizedName) ?? 0) + topic.count, @@ -713,6 +1045,15 @@ export class ResearchTimelineComponent implements OnChanges, AfterViewChecked { name: originalNames.get(normalizedName) ?? normalizedName, count, description: descriptions.get(normalizedName), + subfield_id: subfieldIds.get(normalizedName), + subfield_name: subfieldNames.get(normalizedName), + subfield_description: subfieldDescriptions.get(normalizedName), + field_id: fieldIds.get(normalizedName), + field_name: fieldNames.get(normalizedName), + field_description: fieldDescriptions.get(normalizedName), + domain_id: domainIds.get(normalizedName), + domain_name: domainNames.get(normalizedName), + domain_description: domainDescriptions.get(normalizedName), })) .sort((left, right) => { if (right.count !== left.count) { diff --git a/webapp/src/app/modules/person-overview/person-overview.component.html b/webapp/src/app/modules/person-overview/person-overview.component.html index 3d3ffa2d..ae891993 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.html +++ b/webapp/src/app/modules/person-overview/person-overview.component.html @@ -9,31 +9,15 @@ [viewMode]="timelineViewMode" [startYear]="timelineStartYear" [endYear]="timelineEndYear" + [subfieldLegendVisible]="timelineLegendVisible" + [subfieldLegendExpanded]="timelineLegendExpanded" (viewModeChange)="onTimelineViewModeChange($event)" (yearRangeChange)="onTimelineYearRangeChange($event)" + (subfieldLegendVisibleChange)="onTimelineLegendVisibleChange($event)" + (subfieldLegendExpandedChange)="onTimelineLegendExpandedChange($event)" (topicSelect)="onTimelineTopicSelect($event)" (yearSelect)="onTimelineYearSelect($event)" (loadEarlierYears)="onTimelineLoadEarlierYears()"> -
- @if (loadingWordCloud) { - Themen laden ... - } @else if (wordCloudOptions && sliderMax > 5) { - {{ topN }} Themen -
-
- -
- } @else { - Themen - } -
-
@if (loadingWordCloud) {
Forschungsthemen werden geladen ...
diff --git a/webapp/src/app/modules/person-overview/person-overview.component.scss b/webapp/src/app/modules/person-overview/person-overview.component.scss index 7b40485a..7e0732ce 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.scss +++ b/webapp/src/app/modules/person-overview/person-overview.component.scss @@ -5,91 +5,6 @@ box-sizing: border-box; } -.word-cloud-slider-wrapper { - display: flex; - align-items: center; - justify-content: center; - gap: 0.75rem; - min-height: 86px; -} - -.slider-label { - font-size: 13px; - color: var(--sg-text-muted); - white-space: nowrap; - min-width: 4.5rem; - text-align: right; -} - -.word-cloud-slider { - --accent: #0057ff; - --range-value: 50%; - - position: relative; - width: 160px; - height: 22px; - - .range-track { - position: absolute; - top: 50%; - left: 0; - right: 0; - height: 5px; - transform: translateY(-50%); - border-radius: 999px; - background: linear-gradient( - to right, - var(--accent) 0%, - var(--accent) var(--range-value), - #d8e2f4 var(--range-value), - #d8e2f4 100% - ); - } - - input[type='range'] { - position: absolute; - inset: 0; - width: 100%; - height: 22px; - margin: 0; - appearance: none; - background: transparent; - - &::-webkit-slider-runnable-track, - &::-moz-range-track { - height: 5px; - background: transparent; - border: none; - } - - &::-webkit-slider-thumb { - appearance: none; - width: 15px; - height: 15px; - margin-top: -5px; - border: 2px solid #ffffff; - border-radius: 50%; - background: var(--accent); - box-shadow: - 0 0 0 1px #9ab7ff, - 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - } - - &::-moz-range-thumb { - width: 15px; - height: 15px; - border: 2px solid #ffffff; - border-radius: 50%; - background: var(--accent); - box-shadow: - 0 0 0 1px #9ab7ff, - 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - } - } -} - .word-cloud-view { min-height: 420px; } diff --git a/webapp/src/app/modules/person-overview/person-overview.component.ts b/webapp/src/app/modules/person-overview/person-overview.component.ts index 57d2275c..3d30ee16 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.ts +++ b/webapp/src/app/modules/person-overview/person-overview.component.ts @@ -28,6 +28,10 @@ export class PersonOverviewComponent implements OnInit { private static readonly timelineViewQueryParam = 'timeline_view'; private static readonly timelineStartYearQueryParam = 'timeline_start_year'; private static readonly timelineEndYearQueryParam = 'timeline_end_year'; + private static readonly timelineLegendVisibleQueryParam = + 'timeline_legend_visible'; + private static readonly timelineLegendExpandedQueryParam = + 'timeline_legend_expanded'; private static readonly timelineTopicCountLimit = 4; private static readonly initialTimelineTargetPublications = 250; @@ -49,37 +53,17 @@ export class PersonOverviewComponent implements OnInit { timelineViewMode: TimelineViewMode = 'years'; timelineStartYear: number | undefined; timelineEndYear: number | undefined; + timelineLegendVisible = true; + timelineLegendExpanded = false; wordCloudOptions: EChartsOption | null = null; loadingWordCloud = false; wordCloudEmpty = false; - topN = 30; - sliderMax = 50; - - get sliderPercent(): string { - if (this.sliderMax <= 5) return '100%'; - return `${(((this.topN - 5) / (this.sliderMax - 5)) * 100).toFixed(1)}%`; - } - - onTopNChange(event: Event): void { - this.topN = Number((event.target as HTMLInputElement).value); - this.rebuildWordCloud(); - } - - private allTopicData: Array<{ + private rawTopicOccurrences: Array<{ name: string; - value: number; - topicId: string | undefined; - textStyle: { color: string; fontSize: number }; - emphasis: { - textStyle: { - fontSize: number; - color: string; - shadowBlur: number; - shadowColor: string; - }; - }; + topicId: string; + year: number | undefined; }> = []; ngOnInit(): void { @@ -106,6 +90,18 @@ export class PersonOverviewComponent implements OnInit { this.timelineEndYear = this.parseOptionalYear( queryParams.get(PersonOverviewComponent.timelineEndYearQueryParam), ); + this.timelineLegendVisible = this.parseBooleanQueryParam( + queryParams.get( + PersonOverviewComponent.timelineLegendVisibleQueryParam, + ), + true, + ); + this.timelineLegendExpanded = this.parseBooleanQueryParam( + queryParams.get( + PersonOverviewComponent.timelineLegendExpandedQueryParam, + ), + false, + ); }); } @@ -123,6 +119,7 @@ export class PersonOverviewComponent implements OnInit { onTimelineYearRangeChange(range: TimelineYearRange): void { this.timelineStartYear = range.startYear; this.timelineEndYear = range.endYear; + this.rebuildWordCloud(); this.updateTimelineQueryParams( { @@ -133,6 +130,32 @@ export class PersonOverviewComponent implements OnInit { ); } + onTimelineLegendVisibleChange(visible: boolean): void { + this.timelineLegendVisible = visible; + + this.updateTimelineQueryParams( + { + [PersonOverviewComponent.timelineLegendVisibleQueryParam]: visible + ? null + : 'false', + }, + true, + ); + } + + onTimelineLegendExpandedChange(expanded: boolean): void { + this.timelineLegendExpanded = expanded; + + this.updateTimelineQueryParams( + { + [PersonOverviewComponent.timelineLegendExpandedQueryParam]: expanded + ? 'true' + : null, + }, + true, + ); + } + onTimelineTopicSelect(selection: TimelineTopicSelection): void { if (!selection.topic.id) { return; @@ -308,30 +331,20 @@ export class PersonOverviewComponent implements OnInit { this.timelineEarlierYearsLoadFailed = false; } - private readonly blueShades = [ - '#0057ff', - '#1a6fff', - '#2952d9', - '#3d7cff', - '#1240cc', - '#5a90ff', - '#0044cc', - '#4d85ff', - '#0b4fe0', - '#2563eb', + private readonly timelineColors = [ + '#7255d9', + '#2678e8', + '#39a96b', + '#f59e0b', + '#e0527c', ]; - private topicColor(name: string): string { - const hash = name.split('').reduce((acc, c) => acc + c.charCodeAt(0), 0); - return this.blueShades[hash % this.blueShades.length]; - } - private loadWordCloud(authorId: string): void { if (!authorId || authorId === '0') { this.wordCloudOptions = null; this.wordCloudEmpty = false; this.loadingWordCloud = false; - this.allTopicData = []; + this.rawTopicOccurrences = []; return; } @@ -344,64 +357,28 @@ export class PersonOverviewComponent implements OnInit { .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe({ next: (page) => { - const counts = new Map(); - const nameToId = new Map(); - + this.rawTopicOccurrences = []; page.elements?.forEach((work) => { + const year = work.publication_year ?? undefined; work.topics?.forEach((topic) => { if (topic.display_name && topic.id) { - counts.set( - topic.display_name, - (counts.get(topic.display_name) ?? 0) + 1, - ); - if (!nameToId.has(topic.display_name)) { - nameToId.set(topic.display_name, topic.id); - } + this.rawTopicOccurrences.push({ + name: topic.display_name, + topicId: topic.id, + year, + }); } }); }); - const allValues = Array.from(counts.values()); - const minVal = Math.min(...allValues); - const maxVal = Math.max(...allValues); - const computeSize = (v: number): number => - maxVal === minVal - ? 22 - : Math.round(12 + ((v - minVal) / (maxVal - minVal)) * (32 - 12)); - - this.allTopicData = Array.from(counts.entries()) - .sort((a, b) => b[1] - a[1]) - .map(([name, value]) => { - const fontSize = computeSize(value); - return { - name, - value, - topicId: nameToId.get(name), - textStyle: { color: this.topicColor(name), fontSize }, - emphasis: { - textStyle: { - fontSize: Math.round(fontSize * 1.1), - color: '#101a3d', - shadowBlur: 16, - shadowColor: 'rgba(0, 87, 255, 0.35)', - }, - }, - }; - }); - this.loadingWordCloud = false; - if (this.allTopicData.length === 0) { + if (this.rawTopicOccurrences.length === 0) { this.wordCloudEmpty = true; return; } - this.sliderMax = Math.min(50, this.allTopicData.length); - this.topN = Math.min(30, this.sliderMax); - - setTimeout(() => { - this.rebuildWordCloud(); - }); + setTimeout(() => this.rebuildWordCloud()); }, error: (error) => { console.error('Word cloud could not be loaded.', error); @@ -412,8 +389,57 @@ export class PersonOverviewComponent implements OnInit { } private rebuildWordCloud(): void { - const data = this.allTopicData.slice(0, this.topN); - if (data.length === 0) return; + const start = this.timelineStartYear; + const end = this.timelineEndYear; + const counts = new Map(); + const nameToId = new Map(); + + for (const occ of this.rawTopicOccurrences) { + if (start !== undefined && (occ.year === undefined || occ.year < start)) + continue; + if (end !== undefined && (occ.year === undefined || occ.year > end)) + continue; + counts.set(occ.name, (counts.get(occ.name) ?? 0) + 1); + if (!nameToId.has(occ.name)) nameToId.set(occ.name, occ.topicId); + } + + if (counts.size === 0) { + this.wordCloudOptions = null; + this.wordCloudEmpty = true; + return; + } + + this.wordCloudEmpty = false; + + const allValues = Array.from(counts.values()); + const minVal = Math.min(...allValues); + const maxVal = Math.max(...allValues); + const computeSize = (v: number): number => + maxVal === minVal + ? 22 + : Math.round(12 + ((v - minVal) / (maxVal - minVal)) * (32 - 12)); + + const sorted = Array.from(counts.entries()).sort((a, b) => b[1] - a[1]); + + const data = sorted.slice(0, 30).map(([name, value], i) => { + const fontSize = computeSize(value); + const color = this.timelineColors[i % this.timelineColors.length]; + return { + name, + value, + topicId: nameToId.get(name), + textStyle: { color, fontSize }, + emphasis: { + textStyle: { + fontSize: Math.round(fontSize * 1.1), + color, + shadowBlur: 16, + shadowColor: 'rgba(0, 87, 255, 0.35)', + }, + }, + }; + }); + // eslint-disable-next-line @typescript-eslint/no-explicit-any this.wordCloudOptions = { series: [ @@ -454,6 +480,15 @@ export class PersonOverviewComponent implements OnInit { name: topic.name, count: topic.count ?? 0, description: topic.description ?? undefined, + subfield_id: topic.subfield_id ?? undefined, + subfield_name: topic.subfield_name ?? undefined, + subfield_description: topic.subfield_description ?? undefined, + field_id: topic.field_id ?? undefined, + field_name: topic.field_name ?? undefined, + field_description: topic.field_description ?? undefined, + domain_id: topic.domain_id ?? undefined, + domain_name: topic.domain_name ?? undefined, + domain_description: topic.domain_description ?? undefined, })); } @@ -511,8 +546,27 @@ export class PersonOverviewComponent implements OnInit { return year; } + private parseBooleanQueryParam( + value: string | null, + fallback: boolean, + ): boolean { + if (value === null) { + return fallback; + } + + if (value === 'true' || value === '1') { + return true; + } + + if (value === 'false' || value === '0') { + return false; + } + + return fallback; + } + private updateTimelineQueryParams( - queryParams: Record, + queryParams: Record, replaceUrl: boolean, ): void { void this.router.navigate([], { diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html new file mode 100644 index 00000000..054163c2 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -0,0 +1,179 @@ +@if (loading) { +

Lade Patente...

+} @else if (error) { +

Fehler beim Laden der Patente.

+} @else if (patents.length === 0) { +

Keine Patente gefunden.

+} @else { +
+
+

+ {{ filteredPatents.length }} + Patente +

+

+ {{ getEpoCount() }} + EPO +

+

+ {{ getUsptoCount() }} + USPTO +

+
+ + @if (showDetail && selectedPatent) { + + } + +
+ @if (showDetail && selectedPatent) { +
+

{{ selectedPatent.title ?? selectedPatent.patent_id }}

+ + @if (selectedPatent.abstract) { +
+

Abstract

+

{{ selectedPatent.abstract }}

+
+ } + +
+

Erfinder

+
    + @for (inventor of selectedPatent.inventors; track inventor) { +
  • {{ inventor }}
  • + } +
+
+ + @if (hasAsignees(selectedPatent)) { +
+

Anmelder

+
    + @for (assignee of selectedPatent.assignees; track assignee) { +
  • {{ assignee }}
  • + } +
+
+ } + + @if (hasIpcs(selectedPatent)) { +
+

Klassifikation (IPC)

+
    + @for (ipc of selectedPatent.ipc; track ipc) { +
  • {{ ipc }}
  • + } +
+
+ } +
+ } + +
+
+ + +
+ + + + + + + + + + + @for (patent of getPagedPatents(); track patent.patent_id) { + + + + + + } + +
PatentQuelleJahr
+ {{ patent.title ?? patent.patent_id }} + + + {{ patent.source }} + + {{ patent.publication_year ?? '-' }}
+ + @if (hasPagination()) { + + } +
+ + @if (selectedPatent) { +
+

{{ selectedPatent.title ?? selectedPatent.patent_id }}

+
+
+ Quelle + + + {{ selectedPatent.source }} + + +
+
+ Patent-Nr. + {{ selectedPatent.patent_id }} +
+
+ Datum + {{ + formatDate(selectedPatent.publication_date || '') + }} +
+
+
+ } @else { +
+

Klicke auf ein Patent für Details.

+
+ } +
+
+} diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss new file mode 100644 index 00000000..59079610 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -0,0 +1,306 @@ +.message { + padding: 16px; + color: #666; +} + +.patents-container { + padding: 16px; + display: flex; + flex-direction: column; + gap: 16px; +} + +.patents-summary { + margin-bottom: 8px; + display: flex; + gap: 24px; + + .summary-line { + margin: 0; + font-size: 14px; + color: #333; + } + + .summary-label { + color: #333; + } + + .summary-value { + font-weight: 600; + color: #333; + } +} + +.sort-control { + display: inline-flex; + align-items: center; + gap: 6px; + width: fit-content; + padding: 10px 14px; + border-radius: 20px; + background: #f2f2f2; + color: #333; + font-size: 14px; + + span { + color: #555; + } + + select { + border: 0; + background: transparent; + color: #111827; + font: inherit; + cursor: pointer; + outline: none; + } +} + +.patents-content { + display: flex; + gap: 24px; + align-items: flex-start; +} + +.patents-list { + flex: 1; + + &.hidden { + display: none; + } + + .patents-list-toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + margin-bottom: 18px; + flex-wrap: wrap; + } + + table { + width: 100%; + border-collapse: collapse; + + th { + text-align: left; + padding: 10px 12px; + border-bottom: 2px solid #e0e0e0; + font-weight: 600; + color: #333; + } + + tr { + cursor: pointer; + + &:hover { + background: #f5f5f5; + } + + &.selected { + background: #f0f0f0; + } + } + + td { + padding: 10px 12px; + border-bottom: 1px solid #f0f0f0; + } + + .patent-title { + color: #333; + font-weight: 500; + max-width: 400px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } +} + +.source-badge { + display: inline-flex; + align-items: center; + padding: 3px 10px; + border-radius: 999px; + font-size: 0.75rem; + font-weight: 700; + + &--epo { + background: #effaf3; + color: #24834f; + border: 1px solid #bdebcf; + } + + &--uspto { + background: #f0f6ff; + color: #0b63ce; + border: 1px solid #bdd4ff; + } +} + +.patent-detail { + width: 440px; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 20px; + background: #fafafa; + + &.empty { + display: flex; + align-items: center; + justify-content: center; + color: #999; + min-height: 200px; + } + + h3 { + margin: 0 0 16px 0; + font-size: 16px; + color: #333; + line-height: 1.4; + } +} + +.detail-stats { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + + .stat { + background: white; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 10px; + text-align: center; + + .stat-label { + display: block; + font-size: 11px; + color: #666; + margin-bottom: 4px; + text-transform: uppercase; + letter-spacing: 0.03em; + } + + .stat-value { + display: block; + font-size: 15px; + font-weight: bold; + color: #333; + } + } +} + +.stat--clickable { + cursor: pointer; + transition: + border-color 0.15s, + background 0.15s; + + &:hover { + border-color: #0b63ce; + background: #f0f6ff; + } +} + +.patent-full-detail { + flex: 1; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 20px; + background: #fafafa; + + h3 { + margin: 0 0 16px 0; + font-size: 16px; + color: #333; + line-height: 1.4; + } + + h4 { + margin: 16px 0 8px 0; + font-size: 14px; + color: #555; + font-weight: 600; + } + + p { + font-size: 13px; + color: #444; + line-height: 1.6; + margin: 0; + } +} + +.back-btn { + border: none; + background: none; + color: #333; + cursor: pointer; + font-size: 14px; + font-weight: 400; + padding: 0; + align-self: flex-start; // NEU + + &:hover { + text-decoration: underline; + } +} + +.detail-section { + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid #eee; +} + +.tag-list { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin: 0; + padding: 0; + list-style: none; + + &--compact .tag { + font-size: 0.75rem; + padding: 3px 8px; + } +} + +.tag { + padding: 4px 10px; + border-radius: 999px; + background: #f0f6ff; + border: 1px solid #dbeafe; + color: #1e40af; + font-size: 0.8rem; + line-height: 1.3; +} + +.pagination { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-top: 12px; + + button { + padding: 4px 10px; + border: 1px solid #d0d0d0; + border-radius: 6px; + background: white; + cursor: pointer; + font-size: 12px; + + &:disabled { + opacity: 0.5; + cursor: default; + } + } + + span { + font-size: 12px; + color: #666; + } +} diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts new file mode 100644 index 00000000..f0c80153 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -0,0 +1,174 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { ActivatedRoute, Router } from '@angular/router'; +import { PatentsService } from '../../api/api/patents.service'; +import { PatentEntry } from '../../api'; + +type SortMode = 'date' | 'title'; +type SourceFilter = 'all' | 'EPO' | 'USPTO'; + +@Component({ + selector: 'app-person-patents', + imports: [CommonModule], + templateUrl: './person-patents.component.html', + styleUrl: './person-patents.component.scss', +}) +export class PersonPatentsComponent implements OnInit { + private route = inject(ActivatedRoute); + private router = inject(Router); + private patentsApi = inject(PatentsService); + + patents: PatentEntry[] = []; + filteredPatents: PatentEntry[] = []; + authorName: string | null = null; + selectedPatent: PatentEntry | null = null; + showDetail = false; + + loading = true; + error = false; + + activeFilter: SourceFilter = 'all'; + sortMode: SortMode = 'date'; + + selectedPage = 1; + readonly pageSize = 10; + + hasAsignees(selectedPatent: PatentEntry | null): boolean { + return !!selectedPatent?.assignees && selectedPatent.assignees.length > 0; + } + + hasIpcs(selectedPatent: PatentEntry | null): boolean { + return !!selectedPatent?.ipc && selectedPatent.ipc.length > 0; + } + + ngOnInit(): void { + this.route.parent?.paramMap.subscribe((params) => { + const authorId = params.get('id') ?? ''; + + const filterFromUrl = this.route.snapshot.queryParamMap.get('filter'); + const sortFromUrl = this.route.snapshot.queryParamMap.get('sortBy'); + + if (this.isValidFilter(filterFromUrl)) { + this.activeFilter = filterFromUrl; + } + if (this.isValidSortMode(sortFromUrl)) { + this.sortMode = sortFromUrl; + } + + if (authorId) { + this.patentsApi.getPatentsByAuthor(authorId, 'body').subscribe({ + next: (result) => { + this.patents = result.patents ?? []; + this.authorName = result.author_name ?? null; + this.applyFilter(); + this.loading = false; + }, + error: () => { + this.error = true; + this.loading = false; + }, + }); + } + }); + } + + setFilter(filter: SourceFilter): void { + this.activeFilter = filter; + this.selectedPage = 1; + this.selectedPatent = null; + this.showDetail = false; + this.applyFilter(); + this.updateQueryParams(); + } + + setSortMode(sortMode: SortMode): void { + this.sortMode = sortMode; + this.applyFilter(); + this.updateQueryParams(); + } + + selectPatent(patent: PatentEntry): void { + this.selectedPatent = patent; + this.showDetail = false; + this.updateQueryParams(); + } + + openDetail(): void { + this.showDetail = true; + } + + private applyFilter(): void { + let patents = this.patents; + + if (this.activeFilter !== 'all') { + patents = patents.filter((p) => p.source === this.activeFilter); + } + + this.filteredPatents = this.sortPatents(patents); + } + + private sortPatents(patents: PatentEntry[]): PatentEntry[] { + return [...patents].sort((a, b) => { + if (this.sortMode === 'date') { + return (b.publication_date ?? '').localeCompare( + a.publication_date ?? '', + ); + } + return (a.title ?? '').localeCompare(b.title ?? '', 'de', { + sensitivity: 'base', + }); + }); + } + + private updateQueryParams(): void { + this.router.navigate([], { + relativeTo: this.route, + queryParams: { + filter: this.activeFilter, + sortBy: this.sortMode, + }, + queryParamsHandling: 'merge', + replaceUrl: true, + }); + } + + private isValidFilter(value: string | null): value is SourceFilter { + return value === 'all' || value === 'EPO' || value === 'USPTO'; + } + + private isValidSortMode(value: string | null): value is SortMode { + return value === 'date' || value === 'title'; + } + + getPagedPatents(): PatentEntry[] { + const start = (this.selectedPage - 1) * this.pageSize; + return this.filteredPatents.slice(start, start + this.pageSize); + } + + getPageCount(): number { + return Math.max(1, Math.ceil(this.filteredPatents.length / this.pageSize)); + } + + hasPagination(): boolean { + return this.getPageCount() > 1; + } + + setPage(page: number): void { + this.selectedPage = Math.min(Math.max(page, 1), this.getPageCount()); + this.updateQueryParams(); + } + + formatDate(date: string | null): string { + if (!date) return '-'; + const d = date.replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3'); + return new Intl.DateTimeFormat('de-DE').format(new Date(d)); + } + + getEpoCount(): number { + return this.patents.filter((p) => p.source === 'EPO').length; + } + + getUsptoCount(): number { + return this.patents.filter((p) => p.source === 'USPTO').length; + } +} diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html new file mode 100644 index 00000000..9b0df147 --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html @@ -0,0 +1,385 @@ +
+ + + @if (bundProject) { +
+
+
+ Bund Projekt + ID: {{ bundProject.funding_reference }} + +
+

{{ bundProject.title || 'Ohne Titel' }}

+ @if (bundProject.funding_reference) { +

+ {{ bundProject.funding_type }} +

+ } +
+ + +
+
+ +
+
+ calendar_today +
+ {{ getStartDate() || 'N/A' }} + Startdatum +
+
+
+ event_busy +
+ {{ getFundingStatus(getEndDate()) }} + Enddatum +
+
+ @if (bundProject.funding_amount) { +
+ paid +
+ {{ getFundingAmountDisplay() }} + Fördersumme +
+
+ } + @if (bundProject.funding_profile) { +
+ assignment +
+ {{ bundProject.funding_profile }} + Förderprofil +
+
+ } +
+
+ + @if (bundProject.description) { + +
+ description +

Beschreibung

+
+

{{ bundProject.description }}

+
+ } + +
+
+ + @if (getAssociatedPersons().length > 0) { + +
+ people +

Beteiligte Personen

+ {{ + getAssociatedPersons().length + }} +
+
+ @for (person of getAssociatedPersons(); track person) { +
+
{{ getInitials(person) }}
+
{{ person }}
+
+ } +
+
+ } + + + @if (getInstitutions().length > 0) { + +
+ business +

Beteiligte Institutionen

+ {{ getInstitutions().length }} +
+
+ @for (institution of getInstitutions(); track institution) { +
+ apartment + {{ institution }} +
+ } +
+
+ } + + + + @if ( + bundProject.executing_agency || + bundProject.funding_recipient || + bundProject.project_agency || + bundProject.department || + bundProject.division + ) { + +
+ organization +

Organisation

+
+
+ @if (bundProject.executing_agency) { +
+
Ausführende Stelle
+
+ {{ bundProject.executing_agency }} +
+
+ } + @if (bundProject.funding_recipient) { +
+
Förderempfänger
+
{{ bundProject.funding_recipient }}
+
+ } + @if (bundProject.project_agency) { +
+
Projektagentur
+
+ {{ + bundProject.project_agency_fullname || + bundProject.project_agency + }} +
+
+ } + @if (bundProject.department) { +
+
Abteilung
+
+ {{ + bundProject.department_fullname || bundProject.department + }} +
+
+ } + @if (bundProject.division) { +
+
Division
+
{{ bundProject.division }}
+
+ } +
+
+ } + + + @if ( + bundProject.location || + bundProject.municipality || + bundProject.state || + bundProject.country + ) { + +
+ location_on +

Standort

+
+
+ @if (bundProject.location) { +
+
Standort
+
+ {{ bundProject.location }} +
+
+ } + @if (bundProject.municipality) { +
+
Gemeinde
+
{{ bundProject.municipality }}
+
+ } + @if (bundProject.state) { +
+
Bundesland
+
+ {{ bundProject.state }} +
+
+ } + @if (bundProject.country) { +
+
Land
+
{{ bundProject.country }}
+
+ } + @if (bundProject.municipality_code) { +
+
Gemeindeschlüssel
+
{{ bundProject.municipality_code }}
+
+ } +
+
+ } + + + @if ( + bundProject.performance_plan_code || + bundProject.performance_plan_fullname || + bundProject.publication_date || + bundProject.record_date + ) { + +
+ more_info +

Weitere Informationen

+
+
+ @if (bundProject.performance_plan_code) { +
+
Leistungsplancode
+
{{ bundProject.performance_plan_code }}
+
+ } + @if (bundProject.performance_plan_fullname) { +
+
Leistungsplan
+
{{ bundProject.performance_plan_fullname }}
+
+ } + @if (bundProject.publication_date) { +
+
Veröffentlichungsdatum
+
{{ bundProject.publication_date }}
+
+ } + @if (bundProject.record_date) { +
+
Datensatzdatum
+
{{ bundProject.record_date }}
+
+ } +
+
+ } +
+ + +
+ } @else { +
+
+ error_outline +

Bund Projekt nicht gefunden.

+
+
+ } +
diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss new file mode 100644 index 00000000..839a4ea7 --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss @@ -0,0 +1,527 @@ +// Complete SCSS with all styles including clickable elements + +.detail-page { + padding: 28px 32px 42px; + max-width: 100%; + margin: 0 auto; +} + +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + margin-bottom: 24px; +} + +.back-link { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + color: var(--sg-text); + cursor: pointer; + font-size: 14px; + transition: all 0.2s; +} + +.back-link:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.back-link mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.breadcrumb { + display: flex; + align-items: center; + gap: 6px; + color: var(--sg-text-muted); + font-size: 13px; +} + +.breadcrumb mat-icon { + width: 18px; + height: 18px; + font-size: 18px; +} + +.breadcrumb span:last-child { + color: var(--sg-text); + font-weight: 500; +} + +.project-hero { + background: #f8fafc; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-md); + padding: 28px 32px; + margin-bottom: 28px; +} + +.hero-content { + margin-bottom: 24px; +} + +.eyebrow { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 12px; + flex-wrap: wrap; +} + +.project-badge { + display: inline-block; + padding: 4px 12px; + background: #e8edf5; + color: var(--sg-text); + border-radius: var(--sg-radius-sm); + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.project-id { + color: var(--sg-text-muted); + font-size: 13px; +} + +.new-badge { + display: inline-block; + padding: 2px 10px; + background: #27ae60; + color: #fff; + border-radius: var(--sg-radius-sm); + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +h1 { + margin: 0 0 8px; + font-size: 26px; + line-height: 1.3; + font-weight: 700; + color: var(--sg-text); +} + +.project-reference { + margin: 0 0 16px; + color: var(--sg-text-muted); + font-size: 14px; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.agency-info, +.funding-type-info { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + background: #fff; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + color: var(--sg-text); + font-size: 14px; + cursor: pointer; + transition: all 0.2s; +} + +.agency-info:hover, +.funding-type-info:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.agency-info mat-icon, +.funding-type-info mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; +} + +.metrics-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + padding-top: 20px; + border-top: 1px solid #d9e2f0; +} + +.metric-item { + display: flex; + align-items: center; + gap: 12px; +} + +.metric-item mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; +} + +.metric-content { + display: flex; + flex-direction: column; +} + +.metric-content strong { + font-size: 15px; + color: var(--sg-text); + line-height: 1.3; +} + +.metric-content span { + font-size: 12px; + color: var(--sg-text-muted); +} + +.card { + margin-bottom: 24px; + border-color: #d9e2f0 !important; + border-radius: var(--sg-radius-md) !important; +} + +.card ::ng-deep .mat-mdc-card-content { + padding: 0; +} + +.section-header { + display: flex; + align-items: center; + gap: 10px; + padding: 16px 20px 12px; + border-bottom: 1px solid #f0f2f5; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 16px; + font-weight: 600; + color: var(--sg-text); +} + +.count-badge { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 24px; + height: 24px; + padding: 0 8px; + margin-left: auto; + background: #e8edf5; + border-radius: 12px; + color: var(--sg-text-muted); + font-size: 12px; + font-weight: 500; +} + +.description-text { + padding: 16px 20px 20px; + margin: 0; + color: var(--sg-text); + font-size: 14px; + line-height: 1.6; +} + +.content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 24px; +} + +.main-content { + display: flex; + flex-direction: column; + gap: 24px; +} + +.sidebar { + display: flex; + flex-direction: column; + gap: 24px; +} + +.person-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); + gap: 12px; + padding: 16px 20px 20px; +} + +.person-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + cursor: pointer; + transition: all 0.2s; +} + +.person-item:hover { + background: #f8fafc; + border-color: #b8c5d6; + transform: translateY(-1px); +} + +.avatar { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + background: #e8edf5; + color: var(--sg-text); + font-size: 13px; + font-weight: 600; + flex-shrink: 0; +} + +.person-name { + font-size: 13px; + font-weight: 500; + color: var(--sg-text); +} + +.institution-grid { + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 16px 20px 20px; +} + +.institution-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + font-size: 13px; + color: var(--sg-text); + cursor: pointer; + transition: all 0.2s; +} + +.institution-item:hover { + background: #f8fafc; + border-color: #b8c5d6; +} + +.institution-item mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; + flex-shrink: 0; +} + +.joint-project-content { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 20px 20px; + color: var(--sg-text); + font-size: 14px; +} + +.joint-project-content mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; + flex-shrink: 0; +} + +.details-list { + margin: 0; + padding: 16px 20px 20px; +} + +.detail-row { + display: grid; + grid-template-columns: 140px 1fr; + gap: 24px; + padding: 8px 0; + border-bottom: 1px solid #f0f2f5; +} + +.detail-row:last-child { + border-bottom: none; +} + +.detail-row dt { + color: var(--sg-text-muted); + font-size: 13px; + font-weight: 500; +} + +.detail-row dd { + margin: 0; + color: var(--sg-text); + font-size: 13px; + word-break: break-word; + display: flex; + align-items: center; + gap: 6px; +} + +.detail-row dd.clickable { + cursor: pointer; + transition: color 0.2s; +} + +.detail-row dd.clickable:hover { + color: var(--sg-primary, #0066cc); +} + +.detail-row dd.clickable:hover .search-icon { + opacity: 1; +} + +.search-icon { + width: 16px; + height: 16px; + font-size: 16px; + opacity: 0; + transition: opacity 0.2s; + color: var(--sg-text-muted); +} + +.detail-row dd:hover .search-icon { + opacity: 1; +} + +.empty-state { + padding: 20px; + text-align: center; + color: var(--sg-text-muted); + font-size: 14px; +} + +.error-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; +} + +.error-state { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + color: var(--sg-text-muted); +} + +.error-state mat-icon { + width: 48px; + height: 48px; + font-size: 48px; + color: #e74c3c; +} + +.error-state p { + margin: 0; + font-size: 16px; +} + +// Clickable external link styling +.external-link { + color: var(--sg-primary, #0066cc); + text-decoration: none; +} + +.external-link:hover { + text-decoration: underline; +} + +@media (max-width: 992px) { + .content-grid { + grid-template-columns: 1fr; + gap: 20px; + } +} + +@media (max-width: 768px) { + .detail-page { + padding: 16px; + } + + .page-header { + flex-direction: column; + align-items: flex-start; + gap: 12px; + } + + .project-hero { + padding: 20px; + } + + .metrics-grid { + grid-template-columns: 1fr 1fr; + gap: 12px; + } + + h1 { + font-size: 22px; + } + + .detail-row { + grid-template-columns: 1fr; + gap: 4px; + } + + .person-grid { + grid-template-columns: 1fr; + } + + .eyebrow { + gap: 8px; + } +} + +@media (max-width: 480px) { + .metrics-grid { + grid-template-columns: 1fr; + } + + .hero-actions { + flex-direction: column; + } + + .agency-info, + .funding-type-info { + width: 100%; + justify-content: center; + } +} diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts new file mode 100644 index 00000000..5ad9007b --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts @@ -0,0 +1,163 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { CommonModule } from '@angular/common'; +import { MatCardModule } from '@angular/material/card'; +import { MatIconModule } from '@angular/material/icon'; +import { BundProjectDetails } from '../../../api/model/bundProjectDetails'; +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-bund-details', + standalone: true, + imports: [CommonModule, MatCardModule, MatIconModule], + templateUrl: './bund-details.component.html', + styleUrl: './bund-details.component.scss', +}) +export class BundDetailsComponent implements OnInit { + private route = inject(ActivatedRoute); + bundProject: BundProjectDetails | undefined; + + constructor(private router: Router) {} + + ngOnInit(): void { + this.route.data.subscribe(({ bundSingleProject }) => { + console.log('Bund Project:', bundSingleProject); + this.bundProject = bundSingleProject; + }); + } + + getInitials(name: string | null | undefined): string { + if (!name) return ''; + const parts = name.trim().split(/\s+/); + if (parts.length > 1) { + return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase(); + } + return parts[0][0].toUpperCase(); + } + + getFundingStatus(fundingEndDate: string | null | undefined): string { + if (!fundingEndDate) return 'N/A'; + if (fundingEndDate === '2999') return 'laufend'; + const year = parseInt(fundingEndDate, 10); + if (isNaN(year)) return fundingEndDate; + return year >= new Date().getFullYear() + ? `${fundingEndDate} (laufend)` + : `${fundingEndDate} (abgeschlossen)`; + } + + formatCurrency(amount: number | null | undefined): string { + if (amount === null || amount === undefined) return 'N/A'; + + // Format as Euro with thousands separators + return new Intl.NumberFormat('de-DE', { + style: 'currency', + currency: 'EUR', + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }).format(amount); + } + + searchForPersonName(personName: string): void { + this.router.navigate(['/persons'], { + queryParams: { + query: personName, + }, + }); + } + + searchForInstitutionName(institutionName: string): void { + this.router.navigate(['/institutions'], { + queryParams: { + search: institutionName, + }, + }); + } + + // searchForLocation(location: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // location: location + // } + // }); + // } + + // searchForState(state: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // state: state + // } + // }); + // } + + // searchForFundingType(fundingType: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // fundingType: fundingType + // } + // }); + // } + + // searchForAgency(agency: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // agency: agency + // } + // }); + // } + private formatGermanDate(dateString: string): string { + if (!dateString) return ''; + + return new Intl.DateTimeFormat('de-DE', { + day: 'numeric', + month: 'long', + year: 'numeric', + }).format(new Date(dateString)); + } + /** + * All associated persons as a simple list. + */ + getAssociatedPersons(): string[] { + return this.bundProject?.associated_persons || []; + } + getStartDate(): string { + return this.formatGermanDate(this.bundProject?.funding_start_date ?? ''); + } + + getEndDate(): string { + return this.formatGermanDate(this.bundProject?.funding_end_date ?? ''); + } + + getDuration(): string { + const start = this.bundProject?.funding_start_date; + const end = this.bundProject?.funding_end_date; + + if (!start || !end) return ''; + + return `von ${this.formatGermanDate(start)} bis ${this.formatGermanDate(end)}`; + } + /** + * All institutions as a simple list. + */ + getInstitutions(): string[] { + return this.bundProject?.institutions || []; + } + + /** + * Check if project is new + */ + isNewProject(): boolean { + return this.bundProject?.is_new === true; + } + + /** + * Get display name for funding amount + */ + getFundingAmountDisplay(): string { + if (!this.bundProject?.funding_amount) return 'N/A'; + return this.formatCurrency(this.bundProject.funding_amount); + } + + goBack(): void { + window.history.back(); + } +} diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html new file mode 100644 index 00000000..81947db7 --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html @@ -0,0 +1,245 @@ +
+ + + @if (dfgProject) { +
+
+
+ DFG Projekt + ID: {{ dfgProject.id }} +
+

{{ dfgProject.title }}

+ @if (dfgProject.project_identifier) { +

+ {{ dfgProject.project_identifier.split('-')[0] }} +

+ } +
+ @if (dfgProject.link) { + + open_in_new + Zum Projekt + + } + @if (dfgProject.website) { + + language + Webseite + + } +
+
+ +
+
+ calendar_today +
+ {{ dfgProject.funding_start_date || 'N/A' }} + Fördersbeginn +
+
+
+ event_busy +
+ {{ getFundingStatus(dfgProject.funding_end_date) }} + Fördersende +
+
+ + @if (dfgProject.dfg_procedure) { +
+ gavel +
+ {{ dfgProject.dfg_procedure }} + DFG Verfahren +
+
+ } + + @if (dfgProject.international_reference) { +
+ public +
+ {{ dfgProject.international_reference }} + Internationaler Bezug +
+
+ } +
+
+ + @if (dfgProject.description) { + +
+ description +

Beschreibung

+
+

{{ dfgProject.description }}

+
+ } + +
+
+ + +
+ people +

Beteiligte Personen

+ {{ getAssociatedPersons().length }} +
+ @if (getAssociatedPersons().length > 0) { +
+ @for (person of getAssociatedPersons(); track person) { +
+
{{ getInitials(person) }}
+
{{ person }}
+
+ } +
+ } @else { +
Keine Personen gefunden.
+ } +
+ + + +
+ business +

Beteiligte Institutionen

+ {{ getInstitutions().length }} +
+ @if (getInstitutions().length > 0) { +
+ @for (institution of getInstitutions(); track institution) { +
+ apartment + {{ institution }} +
+ } +
+ } @else { +
Keine Institutionen gefunden.
+ } +
+ + +
+ + +
+ } @else { +
+
+ error_outline +

DFG Projekt nicht gefunden.

+
+
+ } +
diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss new file mode 100644 index 00000000..08fbf9e7 --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss @@ -0,0 +1,467 @@ +.detail-page { + padding: 28px 32px 42px; + max-width: 100%; + margin: 0 auto; +} + +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + margin-bottom: 24px; +} + +.back-link { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + color: var(--sg-text); + cursor: pointer; + font-size: 14px; + transition: all 0.2s; +} + +.back-link:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.back-link mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.breadcrumb { + display: flex; + align-items: center; + gap: 6px; + color: var(--sg-text-muted); + font-size: 13px; +} + +.breadcrumb mat-icon { + width: 18px; + height: 18px; + font-size: 18px; +} + +.breadcrumb span:last-child { + color: var(--sg-text); + font-weight: 500; +} + +.project-hero { + background: #f8fafc; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-md); + padding: 28px 32px; + margin-bottom: 28px; +} + +.hero-content { + margin-bottom: 24px; +} + +.eyebrow { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 12px; +} + +.project-badge { + display: inline-block; + padding: 4px 12px; + background: #e8edf5; + color: var(--sg-text); + border-radius: var(--sg-radius-sm); + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.project-id { + color: var(--sg-text-muted); + font-size: 13px; +} + +h1 { + margin: 0 0 8px; + font-size: 26px; + line-height: 1.3; + font-weight: 700; + color: var(--sg-text); +} + +.project-identifier { + margin: 0 0 16px; + color: var(--sg-text-muted); + font-size: 14px; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.primary-action, +.secondary-action { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 10px 20px; + border-radius: var(--sg-radius-sm); + text-decoration: none; + font-size: 14px; + font-weight: 500; + transition: all 0.2s; +} + +.primary-action { + background: var(--sg-primary, #0066cc); + color: #fff; + border: none; +} + +.primary-action:hover { + background: var(--sg-primary-dark, #0052a3); +} + +.secondary-action { + background: #fff; + color: var(--sg-text); + border: 1px solid #d9e2f0; +} + +.secondary-action:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.primary-action mat-icon, +.secondary-action mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.metrics-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + padding-top: 20px; + border-top: 1px solid #d9e2f0; +} + +.metric-item { + display: flex; + align-items: center; + gap: 12px; +} + +.metric-item mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; +} + +.metric-content { + display: flex; + flex-direction: column; +} + +.metric-content strong { + font-size: 15px; + color: var(--sg-text); + line-height: 1.3; +} + +.metric-content span { + font-size: 12px; + color: var(--sg-text-muted); +} + +.card { + margin-bottom: 24px; + border-color: #d9e2f0 !important; + border-radius: var(--sg-radius-md) !important; +} + +.card ::ng-deep .mat-mdc-card-content { + padding: 0; +} + +.section-header { + display: flex; + align-items: center; + gap: 10px; + padding: 16px 20px 12px; + border-bottom: 1px solid #f0f2f5; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 16px; + font-weight: 600; + color: var(--sg-text); +} + +.count-badge { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 24px; + height: 24px; + padding: 0 8px; + margin-left: auto; + background: #e8edf5; + border-radius: 12px; + color: var(--sg-text-muted); + font-size: 12px; + font-weight: 500; +} + +.description-text { + padding: 16px 20px 20px; + margin: 0; + color: var(--sg-text); + font-size: 14px; + line-height: 1.6; +} + +.content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 24px; +} + +.main-content { + display: flex; + flex-direction: column; + gap: 24px; +} + +.sidebar { + display: flex; + flex-direction: column; + gap: 24px; +} + +.person-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + gap: 12px; + padding: 16px 20px 20px; +} + +.person-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + transition: all 0.2s; +} + +.person-item:hover { + cursor: pointer; + background: #f8fafc; + border-color: #b8c5d6; +} + +.avatar { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + background: #e8edf5; + color: var(--sg-text); + font-size: 13px; + font-weight: 600; + flex-shrink: 0; +} + +.person-name { + cursor: pointer; + font-size: 13px; + font-weight: 500; + color: var(--sg-text); +} + +.institution-grid { + cursor: pointer; + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 16px 20px 20px; +} + +.institution-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + font-size: 13px; + color: var(--sg-text); +} + +.institution-item mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; + flex-shrink: 0; +} + +.details-list { + margin: 0; + padding: 16px 20px 20px; +} + +.detail-row { + display: grid; + grid-template-columns: 140px 1fr; + gap: 12px; + padding: 8px 0; + border-bottom: 1px solid #f0f2f5; +} + +.detail-row:last-child { + border-bottom: none; +} + +.detail-row dt { + color: var(--sg-text-muted); + font-size: 13px; + font-weight: 500; +} + +.detail-row dd { + margin: 0; + color: var(--sg-text); + font-size: 13px; + word-break: break-word; +} + +.external-link { + color: var(--sg-primary, #0066cc); + text-decoration: none; +} + +.external-link:hover { + text-decoration: underline; +} + +.empty-state { + padding: 20px; + text-align: center; + color: var(--sg-text-muted); + font-size: 14px; +} + +.error-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; +} + +.error-state { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + color: var(--sg-text-muted); +} + +.error-state mat-icon { + width: 48px; + height: 48px; + font-size: 48px; + color: #e74c3c; +} + +.error-state p { + margin: 0; + font-size: 16px; +} + +@media (max-width: 992px) { + .content-grid { + grid-template-columns: 1fr; + gap: 20px; + } +} + +@media (max-width: 768px) { + .detail-page { + padding: 16px; + } + + .page-header { + flex-direction: column; + align-items: flex-start; + gap: 12px; + } + + .project-hero { + padding: 20px; + } + + .metrics-grid { + grid-template-columns: 1fr 1fr; + gap: 12px; + } + + h1 { + font-size: 22px; + } + + .detail-row { + grid-template-columns: 1fr; + gap: 4px; + } + + .person-grid { + grid-template-columns: 1fr; + } +} + +@media (max-width: 480px) { + .metrics-grid { + grid-template-columns: 1fr; + } + + .hero-actions { + flex-direction: column; + } + + .primary-action, + .secondary-action { + width: 100%; + justify-content: center; + } +} diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts new file mode 100644 index 00000000..ab8ca4ea --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts @@ -0,0 +1,77 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { CommonModule } from '@angular/common'; +import { MatCardModule } from '@angular/material/card'; +import { MatIconModule } from '@angular/material/icon'; +import { DfgProjectDetails } from '../../../api'; +import { Router } from '@angular/router'; +@Component({ + selector: 'app-dfg-details', + standalone: true, + imports: [CommonModule, MatCardModule, MatIconModule], + templateUrl: './dfg-details.component.html', + styleUrl: './dfg-details.component.scss', +}) +export class DfgDetailsComponent implements OnInit { + private route = inject(ActivatedRoute); + dfgProject: DfgProjectDetails | undefined; + + constructor(private router: Router) {} + + ngOnInit(): void { + this.route.data.subscribe(({ dfgSingleProject }) => { + console.log('DFG Project:', dfgSingleProject); + this.dfgProject = dfgSingleProject; + }); + } + + getInitials(name: string | null | undefined): string { + if (!name) return ''; + const parts = name.trim().split(/\s+/); + if (parts.length > 1) { + return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase(); + } + return parts[0][0].toUpperCase(); + } + + getFundingStatus(fundingEndDate: string | null | undefined): string { + if (!fundingEndDate) return 'N/A'; + if (fundingEndDate === '2999') return 'laufend'; + const year = parseInt(fundingEndDate, 10); + if (isNaN(year)) return fundingEndDate; + return year >= new Date().getFullYear() + ? `${fundingEndDate} (laufend)` + : `${fundingEndDate} (abgeschlossen)`; + } + searchForPersonName(personName: string): void { + this.router.navigate(['/persons'], { + queryParams: { + query: personName, + }, + }); + } + searchForInstitutionName(institutionName: string): void { + this.router.navigate(['/institutions'], { + queryParams: { + search: institutionName, + }, + }); + } + /** + * All associated persons as a simple list (no role grouping). + */ + getAssociatedPersons(): string[] { + return this.dfgProject?.associated_persons || []; + } + + /** + * All institutions as a simple list. + */ + getInstitutions(): string[] { + return this.dfgProject?.institutions || []; + } + + goBack(): void { + window.history.back(); + } +} diff --git a/webapp/src/app/modules/person-projects/person-projects.component.html b/webapp/src/app/modules/person-projects/person-projects.component.html index b1f8bb43..ed14000b 100644 --- a/webapp/src/app/modules/person-projects/person-projects.component.html +++ b/webapp/src/app/modules/person-projects/person-projects.component.html @@ -5,41 +5,37 @@
- - Suche nach Titel - - search - - + + queryParamSortKey="sort_by" + queryParamSortDirectionKey="sort_direction" /> + + + - +
- + open_in_new @@ -62,3 +58,25 @@
+ + + {{ element.startDate | date: 'dd.MM.yyyy' }} + + + + {{ element.endDate | date: 'dd.MM.yyyy' }} + + + + {{ element.ecMaxContribution | currency: 'EUR' : 'symbol' : '1.0-0' : 'de' }} + + + + + open_in_new + + diff --git a/webapp/src/app/modules/person-projects/person-projects.component.ts b/webapp/src/app/modules/person-projects/person-projects.component.ts index 660576e3..563c00ce 100644 --- a/webapp/src/app/modules/person-projects/person-projects.component.ts +++ b/webapp/src/app/modules/person-projects/person-projects.component.ts @@ -4,11 +4,15 @@ import { effect, input, OnInit, - signal, TemplateRef, viewChild, } from '@angular/core'; -import { DfgProjectPage, DfgProjectSummary } from '../../api'; +import { + CordisEuProject, + CordisEuProjectPage, + DfgProjectPage, + DfgProjectSummary, +} from '../../api'; import { DataTableComponent, GenericColumn, @@ -19,11 +23,10 @@ import { MatCardModule } from '@angular/material/card'; import { MatTabsModule } from '@angular/material/tabs'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; -import { DebounceDirective } from '../../directives/debounce.directive'; -import { ActivatedRoute, Router } from '@angular/router'; -import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { MatPaginatorModule, PageEvent } from '@angular/material/paginator'; -import { Sort, SortDirection } from '@angular/material/sort'; +import { Router, RouterModule } from '@angular/router'; +import { CurrencyPipe, DatePipe } from '@angular/common'; +import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component'; +import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component'; @Component({ selector: 'app-person-projects', @@ -35,8 +38,11 @@ import { Sort, SortDirection } from '@angular/material/sort'; MatTabsModule, MatFormFieldModule, MatInputModule, - DebounceDirective, - MatPaginatorModule, + RouterModule, + DatePipe, + CurrencyPipe, + QueryParamPaginatorComponent, + QueryParamInputComponent, ], templateUrl: './person-projects.component.html', styleUrl: './person-projects.component.scss', @@ -56,48 +62,35 @@ export class PersonProjectsComponent implements OnInit { 'dfgProjectDetailRowTmp', ); - urlSearchTerm = signal(''); - urlSortKey = signal(''); - urlSortDirection = signal(''); + personCordisEuProjectPage = input.required(); + personCordisEuProjectColumns: GenericColumn[] = []; + personCordisEuProjectData: CordisEuProject[] = []; + + euProjectsFundingStartTmp = viewChild.required>( + 'euProjectsFundingStartTmp', + ); + euProjectsFundingEndTmp = viewChild.required>( + 'euProjectsFundingEndTmp', + ); + euProjectsFundingAmountTmp = viewChild.required>( + 'euProjectsFundingAmountTmp', + ); + euProjectsActionsTmp = viewChild.required>( + 'euProjectsActionsTmp', + ); readonly pageTotal = computed(() => { return this.dfgProjectPage()?.total ?? 0; }); - readonly pageSize = computed(() => { - return this.dfgProjectPage()?.size ?? 10; - }); - - readonly pageIndex = computed(() => { - return this.dfgProjectPage()?.page ?? 0; - }); - - constructor( - private readonly router: Router, - private readonly activatedRoute: ActivatedRoute, - ) { - this.activatedRoute.queryParamMap - .pipe(takeUntilDestroyed()) - .subscribe((params) => { - this.urlSearchTerm.set(params.get('search') || ''); - }); - + constructor(private readonly router: Router) { effect(() => { - console.log( - 'PersonProjectsComponent: dfgProjectPage changed', - this.dfgProjectPage(), - ); this.dfgProjectData = this.dfgProjectPage().elements || []; }); effect(() => { - const searchTerm = this.urlSearchTerm(); - if (searchTerm) { - this.router.navigate([], { - queryParams: { search: searchTerm }, - queryParamsHandling: 'merge', - }); - } + this.personCordisEuProjectData = + this.personCordisEuProjectPage().elements || []; }); } @@ -130,33 +123,38 @@ export class PersonProjectsComponent implements OnInit { cellTemplate: this.dfgProjectActionsTmp(), }, ]; - } - handleSearchTermChange(newTerm: string): void { - this.router.navigate([], { - queryParams: { search: newTerm }, - queryParamsHandling: 'merge', - }); - } - - clearSearchTerm(): void { - this.router.navigate([], { - queryParams: { search: null }, - queryParamsHandling: 'merge', - }); - } - - handlePageChange(event: PageEvent): void { - this.router.navigate([], { - queryParams: { page: event.pageIndex, size: event.pageSize }, - queryParamsHandling: 'merge', - }); - } - - handleSortChange(event: Sort): void { - this.router.navigate([], { - queryParams: { sort_by: event.active, sort_direction: event.direction }, - queryParamsHandling: 'merge', - }); + this.personCordisEuProjectColumns = [ + { + id: 'title', + header: 'Titel', + type: 'accessor', + accessorKey: 'title', + }, + { + id: 'startDate', + header: 'Startdatum', + type: 'display', + cellTemplate: this.euProjectsFundingStartTmp(), + }, + { + id: 'endDate', + header: 'Enddatum', + type: 'display', + cellTemplate: this.euProjectsFundingEndTmp(), + }, + { + id: 'ecMaxContribution', + header: 'Förderbetrag (EU)', + type: 'display', + cellTemplate: this.euProjectsFundingAmountTmp(), + }, + { + id: 'actions', + header: '', + type: 'display', + cellTemplate: this.euProjectsActionsTmp(), + }, + ]; } } diff --git a/webapp/src/app/modules/person/person.component.html b/webapp/src/app/modules/person/person.component.html index a0b50703..0dea7f11 100644 --- a/webapp/src/app/modules/person/person.component.html +++ b/webapp/src/app/modules/person/person.component.html @@ -29,6 +29,19 @@ } } + @if (displayCareerStage()) { +
+ Career Stage: + + {{ displayCareerStage() }} + +
+ }
diff --git a/webapp/src/app/modules/person/person.component.scss b/webapp/src/app/modules/person/person.component.scss index be93f021..e232d508 100644 --- a/webapp/src/app/modules/person/person.component.scss +++ b/webapp/src/app/modules/person/person.component.scss @@ -85,6 +85,33 @@ font-size: 13px; } +.career-stage-line { + display: flex; + align-items: center; + gap: 8px; + color: var(--sg-text-muted); + font-size: 13px; +} + +.career-stage-label { + color: var(--sg-text-muted); +} + +.career-stage-chip { + display: inline-flex; + align-items: center; + min-height: 24px; + padding: 2px 10px; + border: 1px solid var(--sg-border); + border-radius: 999px; + background: var(--sg-surface-muted); + color: var(--sg-primary); + font-size: 13px; + font-weight: 600; + line-height: 1.2; + cursor: help; +} + .profile-contact { display: grid; gap: 16px; diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index 724e9882..866762e7 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -7,6 +7,7 @@ import { import { MatIconModule } from '@angular/material/icon'; import { MatProgressSpinner } from '@angular/material/progress-spinner'; import { MatTabsModule } from '@angular/material/tabs'; +import { MatTooltipModule } from '@angular/material/tooltip'; import { ActivatedRoute, ResolveEnd, @@ -19,7 +20,7 @@ import { import { of, switchMap, finalize, map, catchError } from 'rxjs'; import { PersonInterestingComponent } from '../person-interesting/person-interesting.component'; -import { PersonsService, WorksService } from '../../api'; +import { WorksService } from '../../api'; import { LoadingComponent } from '../../shared/ui/loading/loading.component'; import { PersonBioResolved } from '../../resolvers/person-bio.resolver'; @@ -28,6 +29,7 @@ import { PersonBioResolved } from '../../resolvers/person-bio.resolver'; imports: [ MatIconModule, MatTabsModule, + MatTooltipModule, PersonInterestingComponent, RouterOutlet, RouterModule, @@ -41,7 +43,6 @@ export class PersonComponent { private readonly router = inject(Router); private readonly activatedRoute = inject(ActivatedRoute); - private readonly personsApi = inject(PersonsService); private readonly worksApi = inject(WorksService); private readonly destroyRef = inject(DestroyRef); @@ -62,9 +63,9 @@ export class PersonComponent { const event = this.routerEvents(); if ( - !(event instanceof RouterEvent) || // not a router event - !this.isResolverEvent(event) || // not a resolver event - !this.isNetworkRouterEvent(event) // not navigating to network route + !(event instanceof RouterEvent) || + !this.isResolverEvent(event) || + !this.isNetworkRouterEvent(event) ) { return false; } @@ -84,7 +85,6 @@ export class PersonComponent { return event.url.startsWith(`/person/${this.authorId()}/network`); } - // loading states readonly isPersonLoading = signal(false); readonly isBioLoading = signal(false); @@ -111,6 +111,7 @@ export class PersonComponent { ), { initialValue: null }, ); + readonly displayName = computed( () => this.person()?.display_name ?? 'Unbekannte Person', ); @@ -119,15 +120,20 @@ export class PersonComponent { () => this.person()?.affiliations?.[0] ?? null, ); readonly lastAffiliation = computed(() => { - let lastAffiliation: number | undefined = 0; - if (this.person()?.affiliations?.length != undefined) { - lastAffiliation = this.person()?.affiliations?.length; + const affiliations = this.person()?.affiliations ?? []; + let newestAffiliation = affiliations[0] ?? null; + let newestYear = -1; + + for (const affiliation of affiliations) { + for (const jahr of affiliation.years ?? []) { + if (jahr > newestYear) { + newestYear = jahr; + newestAffiliation = affiliation; + } + } } - return ( - (lastAffiliation - ? this.person()?.affiliations?.[lastAffiliation - 1] - : this.person()?.affiliations?.[0]) ?? null - ); + + return newestAffiliation; }); readonly institution = computed( () => @@ -142,6 +148,36 @@ export class PersonComponent { readonly h_index = computed( () => this.person()?.summary_stats?.h_index ?? null, ); + readonly displayCareerStage = computed(() => { + const stage = this.person()?.career_metrics?.career_stage; + + if (!stage || stage === 'unknown') { + return null; + } + + return stage; + }); + readonly careerStageTooltip = computed(() => { + const stage = this.displayCareerStage(); + if (!stage) { + return ''; + } + + const activeYears = this.person()?.career_metrics?.active_years ?? '-'; + + return [ + `Aktuell: ${stage.replace(' Researcher', '')}`, + `Aktive Publikationsjahre: ${activeYears}`, + '', + 'Einteilung:', + 'Early: 1\u20134 aktive Publikationsjahre', + 'Emerging: 5\u20139 aktive Publikationsjahre', + 'Established: 10\u201314 aktive Publikationsjahre', + 'Senior: ab 15 aktiven Publikationsjahren', + '', + 'Diese Einschätzung basiert ausschließlich auf OpenAlex-Publikationsdaten und ist kein offizieller akademischer Status.', + ].join('\n'); + }); readonly orcid = computed(() => { const rawOrcid = this.getId('orcid'); if (!rawOrcid) { @@ -168,6 +204,7 @@ export class PersonComponent { ), { initialValue: [] }, ); + links = [ { label: 'Übersicht', path: 'overview', disabled: false }, { @@ -184,8 +221,10 @@ export class PersonComponent { }, { label: 'Publikationen', path: 'publications', disabled: false }, { label: 'Netzwerk', path: 'network', disabled: false }, - { label: 'Gründungen', path: 'foundings', disabled: true }, + { label: 'Unternehmen', path: 'company-connections', disabled: false }, { label: 'Förderungen', path: 'funding', disabled: false }, + { label: 'Nachrichten', path: 'news', disabled: false }, + { label: 'Patente', path: 'patents', disabled: false }, ]; onInterestingTagClick(selection: { id: string; name: string }): void { diff --git a/webapp/src/app/modules/projects/projects.component.html b/webapp/src/app/modules/projects/projects.component.html new file mode 100644 index 00000000..0ae1e25c --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.html @@ -0,0 +1,97 @@ +
+

Passende Projekte finden

+ + + +
+ + + +
+ + EU + BUND + DFG + + +
+ + + +
+
+
+ + + + @let fundingProjectPageValue = fundingProjectPage(); + + @if ( + fundingProjectPageValue.elements && + fundingProjectPageValue.elements.length > 0 + ) { +
+ @for (fundingProject of fundingProjectPageValue.elements; track $index) { + + + {{ fundingProject.title }} + {{ + fundingProject.type | uppercase + }} + + + + + + + + + + + + info + Übersicht + + + + + } +
+ } @else { +
+

Keine passenden Projekte gefunden.

+
+ } + + + + +
diff --git a/webapp/src/app/modules/projects/projects.component.scss b/webapp/src/app/modules/projects/projects.component.scss new file mode 100644 index 00000000..32a0f31e --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.scss @@ -0,0 +1,87 @@ +.content { + display: flex; + flex-direction: column; + gap: 1rem; + padding: 1rem; +} + +.sorting { + display: flex; + justify-content: flex-end; + gap: 0.5rem; +} + +.sorting select { + padding: 0.75rem; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); + font-size: 1rem; +} + +.sorting select:hover { + cursor: pointer; +} + +.cards { + display: grid; + gap: 1.5rem; + grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); + padding: 0 1rem; +} + +mat-paginator { + background-color: var(--sg-background); +} + +.card { + padding: 0.5rem; + background-color: var(--sg-background); + transition: transform 0.3s ease; + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.card:hover { + cursor: pointer; + transform: scale(1.05); +} + +.card-content { + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 0.5rem; + flex: 1; +} + +.card-metadata { + display: flex; + flex-direction: column; + gap: 0.2rem; + font-size: 0.9rem; + color: var(--sg-text-secondary); +} + +mat-card-actions { + padding-top: 0.5rem; + display: flex; + gap: 0.5rem; +} + +mat-card-actions a { + width: 100%; + text-decoration: none; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); +} + +.no-results { + text-align: center; + padding: 2rem; + color: var(--sg-text-secondary); +} + +.mat-mdc-standard-chip { + border-radius: var(--sg-radius-sm); +} diff --git a/webapp/src/app/modules/projects/projects.component.ts b/webapp/src/app/modules/projects/projects.component.ts new file mode 100644 index 00000000..effdc3f4 --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.ts @@ -0,0 +1,82 @@ +import { Component, input, signal } from '@angular/core'; +import { FundingProject, FundingProjectPage, ProjectType } from '../../api'; +import { MatDividerModule } from '@angular/material/divider'; +import { MatIconModule } from '@angular/material/icon'; +import { MatCardModule } from '@angular/material/card'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { MatButtonModule } from '@angular/material/button'; +import { DatePipe, UpperCasePipe } from '@angular/common'; +import { MatChipListboxChange, MatChipsModule } from '@angular/material/chips'; +import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component'; +import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component'; +import { + QueryParamSelectorComponent, + SelectorOption, +} from '../../shared/ui/query-param-selector/query-param-selector.component'; + +@Component({ + selector: 'app-projects', + imports: [ + MatDividerModule, + MatIconModule, + MatCardModule, + RouterModule, + MatButtonModule, + UpperCasePipe, + DatePipe, + MatChipsModule, + QueryParamInputComponent, + QueryParamPaginatorComponent, + QueryParamSelectorComponent, + ], + templateUrl: './projects.component.html', + styleUrl: './projects.component.scss', +}) +export class ProjectsComponent { + fundingProjectPage = input.required(); + + urlChips = signal(['eu', 'bund', 'dfg']); + + sortingOptions: SelectorOption[] = [{ value: 'title', display_name: 'Name' }]; + sortingDirectionOptions: SelectorOption[] = [ + { value: 'asc', display_name: 'Aufsteigend' }, + { value: 'desc', display_name: 'Absteigend' }, + ]; + + constructor( + private readonly activatedRoute: ActivatedRoute, + private readonly router: Router, + ) { + this.activatedRoute.queryParams + .pipe(takeUntilDestroyed()) + .subscribe((params) => { + this.urlChips.set( + (params['selected_project_types'] || 'eu,bund,dfg').split(','), + ); + }); + } + + handleChipBoxChange(change: MatChipListboxChange): void { + const selectedValues = change.value as string[]; + + this.router.navigate([], { + queryParams: { + selected_project_types: selectedValues.length + ? selectedValues.join(',') + : null, + }, + queryParamsHandling: 'merge', + }); + } + + getDetaiLink(fundingProject: FundingProject): string | null { + if (fundingProject.type === 'bund') { + return '/projects/bund/' + fundingProject.id; + } else if (fundingProject.type === 'dfg') { + return '/projects/dfg/' + fundingProject.id; + } else { + return null; + } + } +} diff --git a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.html b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.html index 0ba8f150..330b076f 100644 --- a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.html +++ b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.html @@ -1,11 +1,56 @@
+ @if (searchQuery()) { +
+ Modus: + + + Ähnlich + + + Genau + + +
+ } @if (loading()) {
Lade Themen...
} @else { - @if (searchQuery) { + @if (searchQuery()) {
+ #tooltip="matTooltip" + [checked]="selectedTopics().has(topic.name)" + (change)="toggleTopic(topic.name)" + [matTooltip]="topic.name" + matTooltipPosition="above" + (focusin)="tooltip.show()" + (focusout)="tooltip.hide()"> {{ topic.name }} {{ @@ -103,13 +153,18 @@
- {{ topic.name }} + #tooltip="matTooltip" + [checked]=" + selectedTopics().has(topic.name) + " + (change)="toggleTopic(topic.name)" + [matTooltip]="topic.name" + matTooltipPosition="above" + (focusin)="tooltip.show()" + (focusout)="tooltip.hide()"> + {{ + topic.name + }}
} diff --git a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss index 9be6e396..abfa99bc 100644 --- a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss +++ b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss @@ -2,11 +2,13 @@ width: 100%; max-height: 400px; overflow-y: auto; + overflow-x: hidden; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); background: var(--sg-background); - padding: 4px; + padding: 4px 8px 4px 4px; margin-top: 4px; + box-sizing: border-box; } .loading-state { @@ -55,6 +57,11 @@ font-size: 12px; color: var(--sg-text); font-weight: 500; + display: block; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .topic-path { @@ -92,7 +99,7 @@ width: 100%; background: transparent; border: none; - padding: 4px 6px; + padding: 4px; text-align: left; cursor: pointer; border-radius: 4px; @@ -122,6 +129,7 @@ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; + min-width: 0; } } @@ -158,37 +166,62 @@ } .domain-children { - padding-left: 12px; + padding-left: 10px; border-left: 1px solid var(--sg-border-soft); margin-left: 12px; margin-bottom: 4px; } .field-children { - padding-left: 14px; + padding-left: 10px; border-left: 1px solid var(--sg-border-soft); - margin-left: 14px; + margin-left: 12px; } .subfield-children { - padding-left: 14px; + padding-left: 10px; border-left: 1px dashed var(--sg-border-soft); - margin-left: 14px; + margin-left: 12px; margin-bottom: 2px; } .tree-leaf { padding: 2px 4px; + width: 100%; + box-sizing: border-box; } .topic-node { + width: 100%; + box-sizing: border-box; + .topic-label { font-size: 11px; color: var(--sg-text); - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; display: block; - max-width: 190px; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } +} + +mat-checkbox { + display: block !important; + width: 100% !important; + + ::ng-deep { + .mdc-form-field { + width: 100% !important; + display: flex !important; + align-items: center; + } + + .mdc-label { + flex: 1 !important; + min-width: 0 !important; + overflow: hidden; + padding-left: 8px !important; + } } } diff --git a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.ts b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.ts index eb9468e3..eb7af86a 100644 --- a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.ts +++ b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.ts @@ -1,17 +1,13 @@ -import { - Component, - Input, - Output, - EventEmitter, - OnInit, - signal, -} from '@angular/core'; +import { Component, input, model, output, OnInit, signal } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatIconModule } from '@angular/material/icon'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { MatRadioModule } from '@angular/material/radio'; +import { MatTooltipModule } from '@angular/material/tooltip'; import { TopicsService } from '../../api/api/topics.service'; -import { Subject, of } from 'rxjs'; +import { combineLatest, of } from 'rxjs'; +import { toObservable } from '@angular/core/rxjs-interop'; import { debounceTime, distinctUntilChanged, @@ -53,28 +49,18 @@ interface FlatTopic { MatCheckboxModule, MatIconModule, MatProgressSpinnerModule, + MatRadioModule, + MatTooltipModule, ], templateUrl: './topic-hierarchy.component.html', styleUrl: './topic-hierarchy.component.scss', }) export class TopicHierarchyComponent implements OnInit { - @Input() selectedTopics: Set = new Set(); + selectedTopics = input>(new Set()); + searchQuery = input(''); + searchType = model<'hybrid' | 'semantic'>('hybrid'); - private _searchQuery = ''; - @Input() - set searchQuery(value: string) { - if (value.length < 2) { - this._searchQuery = ''; - } else { - this._searchQuery = value; - } - this.filterFlatTopics(); - } - get searchQuery(): string { - return this._searchQuery; - } - - @Output() selectionChange = new EventEmitter>(); + selectionChange = output>(); domains: DomainNode[] = []; flatTopics: FlatTopic[] = []; @@ -86,32 +72,37 @@ export class TopicHierarchyComponent implements OnInit { expandedFields = new Set(); expandedSubfields = new Set(); - private readonly searchSubject = new Subject(); - constructor(private topicsService: TopicsService) { - this.searchSubject + combineLatest([ + toObservable(this.searchQuery), + toObservable(this.searchType), + ]) .pipe( debounceTime(300), - distinctUntilChanged(), - switchMap((query) => { - if (!query) { + distinctUntilChanged( + (prev, curr) => prev[0] === curr[0] && prev[1] === curr[1], + ), + switchMap(([query, searchType]) => { + if (!query || query.length < 2) { this.filteredFlatTopics = []; return of({ results: [] }); } this.loading.set(true); - return this.topicsService.vectorSearchTopics(query, 50).pipe( - catchError((err) => { - console.error('Error in semantic topic search:', err); - // Fallback to local filtering - const q = query.toLowerCase(); - this.filteredFlatTopics = this.flatTopics.filter( - (t) => - t.name.toLowerCase().includes(q) || - t.path.toLowerCase().includes(q), - ); - return of({ results: [] }); - }), - ); + return this.topicsService + .vectorSearchTopics(query, 50, searchType) + .pipe( + catchError((err) => { + console.error('Error in semantic topic search:', err); + // Fallback to local filtering + const q = query.toLowerCase(); + this.filteredFlatTopics = this.flatTopics.filter( + (t) => + t.name.toLowerCase().includes(q) || + t.path.toLowerCase().includes(q), + ); + return of({ results: [] }); + }), + ); }), ) .subscribe((response) => { @@ -167,19 +158,14 @@ export class TopicHierarchyComponent implements OnInit { }); }); this.flatTopics = flat; - this.filterFlatTopics(); } - filterFlatTopics(): void { - if (!this.searchQuery) { - this.filteredFlatTopics = []; - return; - } - this.searchSubject.next(this.searchQuery); + onSearchTypeChange(type: 'hybrid' | 'semantic'): void { + this.searchType.set(type); } toggleTopic(name: string): void { - const nextSelection = new Set(this.selectedTopics); + const nextSelection = new Set(this.selectedTopics()); if (nextSelection.has(name)) { nextSelection.delete(name); } else { diff --git a/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts b/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts new file mode 100644 index 00000000..ece71b78 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts @@ -0,0 +1,29 @@ +// src/app/modules/university-ranking/services/university-data.service.ts +import { inject, Injectable } from '@angular/core'; +import { Observable } from 'rxjs'; +import { InstitutionsService, RankingResponse } from '../../../api'; +export type ResearchTopic = + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; + +@Injectable({ providedIn: 'root' }) +export class UniversityRankingService { + private apiService = inject(InstitutionsService); + + /** + * Fetches ranking and timeseries data directly from the backend. + * Calculations for growth and trends are now handled server-side. + */ + getRankingData( + topic: ResearchTopic, + metric: DashboardMetric, + ): Observable { + return this.apiService.getRankingsApiInseServiceUniversityRankingsGet( + topic, + metric, + ); + } +} diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html new file mode 100644 index 00000000..41931384 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html @@ -0,0 +1,5 @@ +
diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss new file mode 100644 index 00000000..f51d8c68 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss @@ -0,0 +1,4 @@ +.chart-container { + height: 500px; + width: 100%; +} diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts new file mode 100644 index 00000000..799ad08f --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts @@ -0,0 +1,64 @@ +// src/app/modules/university-ranking/components/line-chart/university-line-chart.component.ts +import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; +import { EChartsOption } from 'echarts'; +import { NgxEchartsDirective } from 'ngx-echarts'; +import { UniversityTopicData, YearlyData } from '../../../api'; +export type ResearchTopic = + | 'Artificial Intelligence' + | 'Quantum Computing' + | 'Renewable Energy' + | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; + +@Component({ + selector: 'app-university-line-chart', + templateUrl: './uni-line-chart.component.html', + styleUrl: './uni-line-chart.component.scss', + imports: [NgxEchartsDirective], + standalone: true, +}) +export class UniversityLineChartComponent implements OnChanges { + @Input() data: UniversityTopicData[] = []; + @Input() metric: DashboardMetric = 'publications'; + + chartOption: EChartsOption = { + title: { + text: 'Research Output Over Time', + left: 'center', + textStyle: { fontWeight: 'lighter' }, + }, + tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, + legend: { bottom: 0 }, + grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true }, + xAxis: { type: 'category', boundaryGap: false, data: [] }, + yAxis: { type: 'value', name: 'Volume' }, + dataZoom: [{ type: 'slider', show: true, bottom: 40 }], + series: [], + }; + + mergeOption: EChartsOption = {}; + + ngOnChanges(changes: SimpleChanges): void { + if (this.data.length > 0) { + this.updateChart(); + console.log('CHANGES!'); + } + } + + private updateChart() { + const years = this.data[0].yearly_data.map((d) => d.year); + const series = this.data.map((uni) => ({ + name: uni.university, + type: 'line', + smooth: true, + emphasis: { focus: 'series' }, + animationDuration: 2000, + data: uni.yearly_data.map((d) => d[this.metric]), + })); + + this.mergeOption = { + xAxis: { data: years.map(String) }, + series: series as any, + }; + } +} diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html new file mode 100644 index 00000000..99da5bcb --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html @@ -0,0 +1,42 @@ +
+

Topic Rankings

+ @if (loading) { +
Loading rankings...
+ } @else { + + + + + + + + + + + + @for (row of rankings; track $index) { + + + + + + + + } + +
RankUniversityLatest5Y GrowthTrend
#{{ row.rank }} + {{ row.university }} + @if (row.is_top_mover) { + 🔥 + } + {{ row.publications | number }} + {{ row.growth_rate | number: '1.0-1' }}% + + {{ getTrendIcon(row.trend) }} +
+ } +
diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts new file mode 100644 index 00000000..05db1334 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts @@ -0,0 +1,21 @@ +// src/app/modules/university-ranking/components/ranking-table/university-ranking-table.component.ts +import { Component, Input } from '@angular/core'; +import { UniversityRanking } from '../../../api'; +import { DecimalPipe } from '@angular/common'; + +@Component({ + selector: 'app-university-ranking-table', + templateUrl: './uni-ranking-table.component.html', + styleUrls: ['./uni-ranking-table.component.scss'], + imports: [DecimalPipe], +}) +export class UniversityRankingTableComponent { + @Input() rankings: UniversityRanking[] = []; + @Input() loading: boolean = false; + + getTrendIcon(trend: string): string { + if (trend === 'up') return '↑'; + if (trend === 'down') return '↓'; + return '→'; + } +} diff --git a/webapp/src/app/resolvers/bund-project-page.resolver.ts b/webapp/src/app/resolvers/bund-project-page.resolver.ts new file mode 100644 index 00000000..548cbb34 --- /dev/null +++ b/webapp/src/app/resolvers/bund-project-page.resolver.ts @@ -0,0 +1,38 @@ +import { ResolveFn } from '@angular/router'; +import { + BundProjectPage, + ProjectsService, + ProjectsSortBy, + SortDirection, +} from '../api'; +import { inject } from '@angular/core'; + +export const bundProjectPageResolver: ResolveFn = ( + route, + state, +) => { + console.log('bundProjectPageResolver called with route:', route); + const page = route.queryParamMap.get('page') ?? '0'; + const size = route.queryParamMap.get('size') ?? '10'; + let institutionId = route.paramMap.get('institutionId'); + if (!institutionId) { + institutionId = route.parent?.paramMap.get('institutionId') ?? null; + } + + const sortBy = (route.queryParamMap.get('sort_by') || + 'title') as ProjectsSortBy; + const sortDirection = (route.queryParamMap.get('sort_direction') || + 'asc') as SortDirection; + + const search = route.queryParamMap.get('search'); + + return inject(ProjectsService).searchBundProjects({ + project_type: 'bund', + page: Number(page), + size: Number(size), + raw_oa_institution_id: institutionId, + query: search, + sort_by: sortBy, + sort_direction: sortDirection, + }); +}; diff --git a/webapp/src/app/resolvers/bund-projects-funding.resolver.ts b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts new file mode 100644 index 00000000..27f188c5 --- /dev/null +++ b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts @@ -0,0 +1,15 @@ +import { ResolveFn } from '@angular/router'; +import { InstitutionFunderSummary, ProjectsService } from '../api'; +import { inject } from '@angular/core'; + +export const bundProjectsFundingResolver: ResolveFn< + InstitutionFunderSummary +> = (route, state) => { + let institutionId = route.parent?.paramMap.get('institutionId') ?? null; + if (!institutionId) { + institutionId = route.parent?.paramMap.get('institutionId') ?? null; + } + return inject(ProjectsService).getInstitutionBundProjectsFundingOverTime( + institutionId!, + ); +}; diff --git a/webapp/src/app/resolvers/bund-projects.resolver.ts b/webapp/src/app/resolvers/bund-projects.resolver.ts deleted file mode 100644 index 88025139..00000000 --- a/webapp/src/app/resolvers/bund-projects.resolver.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { ResolveFn } from '@angular/router'; -import { BundProjectPage, ProjectsService } from '../api'; -import { inject } from '@angular/core'; - -export const bundProjectsResolver: ResolveFn = ( - route, - state, -) => { - console.log('bundProjectsResolver called with route:', route); - const page = route.queryParamMap.get('page') ?? '1'; - const size = route.queryParamMap.get('size') ?? '10'; - let institutionId = route.paramMap.get('institutionId'); - if (!institutionId) { - institutionId = route.parent?.paramMap.get('institutionId') ?? null; - } - - const sortBy = route.queryParamMap.get('sort_by') ?? 'topic'; - const sortDirection = route.queryParamMap.get('sort_direction') ?? 'asc'; - - const search = route.queryParamMap.get('search'); - - return inject(ProjectsService).getBundProjects( - institutionId || '', - search || undefined, - Number(page), - Number(size), - sortBy, - sortDirection, - ); -}; diff --git a/webapp/src/app/resolvers/bund-single-project-resolver.ts b/webapp/src/app/resolvers/bund-single-project-resolver.ts new file mode 100644 index 00000000..c41d0816 --- /dev/null +++ b/webapp/src/app/resolvers/bund-single-project-resolver.ts @@ -0,0 +1,16 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { ProjectsService } from '../api/api/projects.service'; +import { BundProjectDetails } from '../api/model/bundProjectDetails'; + +export const bundSingleProjectResolver: ResolveFn = ( + route, + state, +) => { + const projectsService = inject(ProjectsService); + const projectId = route.paramMap.get('id'); + if (!projectId) { + throw new Error('BUND Project ID is required'); + } + return projectsService.getSingleBundProject(projectId); +}; diff --git a/webapp/src/app/resolvers/collaboration-network.resolver.ts b/webapp/src/app/resolvers/collaboration-network.resolver.ts index f15ac150..4a8c1f9f 100644 --- a/webapp/src/app/resolvers/collaboration-network.resolver.ts +++ b/webapp/src/app/resolvers/collaboration-network.resolver.ts @@ -8,6 +8,11 @@ import { WorksFilterProperties, } from '../api'; +const DEFAULT_MIN_CONTRIBUTORS = 2; +const DEFAULT_MAX_CONTRIBUTORS = 10; +const DEFAULT_MIN_COLLABORATIONS = 1; +const DEFAULT_MAX_COLLABORATIONS = 100; + export const collaborationNetworkResolver: ResolveFn = ( route, state, @@ -38,10 +43,10 @@ export const collaborationNetworkResolver: ResolveFn = ( end_year: endYear ? Number.parseInt(endYear, 10) : undefined, min_contributors: minContributors ? Number.parseInt(minContributors, 10) - : undefined, + : DEFAULT_MIN_CONTRIBUTORS, max_contributors: maxContributors ? Number.parseInt(maxContributors, 10) - : undefined, + : DEFAULT_MAX_CONTRIBUTORS, allowed_topics: topics ? topics.split(',') : undefined, }; } @@ -49,10 +54,10 @@ export const collaborationNetworkResolver: ResolveFn = ( authorsFilterProperties = { min_collaborations: minCollaborations ? Number.parseInt(minCollaborations, 10) - : undefined, + : DEFAULT_MIN_COLLABORATIONS, max_collaborations: maxCollaborations ? Number.parseInt(maxCollaborations, 10) - : undefined, + : DEFAULT_MAX_COLLABORATIONS, allowed_institutions: institutions ? institutions.split(',') : undefined, }; } diff --git a/webapp/src/app/resolvers/cordis-eu-project-page.resolver.ts b/webapp/src/app/resolvers/cordis-eu-project-page.resolver.ts new file mode 100644 index 00000000..3e8facdc --- /dev/null +++ b/webapp/src/app/resolvers/cordis-eu-project-page.resolver.ts @@ -0,0 +1,35 @@ +import { ResolveFn } from '@angular/router'; +import { + EuOrganizationProjectSummaryPage, + ProjectsService, + ProjectsSortBy, + SortDirection, +} from '../api'; +import { inject } from '@angular/core'; + +export const cordisEuProjectPageResolver: ResolveFn< + EuOrganizationProjectSummaryPage +> = (route, state) => { + const page = route.queryParamMap.get('page') ?? '1'; + const size = route.queryParamMap.get('size') ?? '10'; + let institutionId = route.paramMap.get('institutionId'); + if (!institutionId) { + institutionId = route.parent?.paramMap.get('institutionId') ?? null; + } + + const sortBy = (route.queryParamMap.get('sort_by') || + 'title') as ProjectsSortBy; + const sortDirection = (route.queryParamMap.get('sort_direction') || + 'asc') as SortDirection; + const search = route.queryParamMap.get('search'); + + return inject(ProjectsService).searchCordisEuProjects({ + project_type: 'eu', + page: Number(page), + size: Number(size), + raw_oa_institution_id: institutionId, + query: search, + sort_by: sortBy, + sort_direction: sortDirection, + }); +}; diff --git a/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts b/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts new file mode 100644 index 00000000..4b1e5385 --- /dev/null +++ b/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts @@ -0,0 +1,17 @@ +import { ResolveFn } from '@angular/router'; +import { InstitutionFunderSummary, ProjectsService } from '../api'; +import { inject } from '@angular/core'; + +export const cordisEuProjectsFundingResolver: ResolveFn< + InstitutionFunderSummary +> = (route, state) => { + let institutionId = route.parent?.paramMap.get('institutionId') ?? null; + if (!institutionId) { + throw new Error( + 'Institution ID is required to resolve Cordis EU projects funding', + ); + } + return inject(ProjectsService).getInstitutionCordisEuProjectsFundingOverTime( + institutionId, + ); +}; diff --git a/webapp/src/app/resolvers/dfg-single-project-resolver.ts b/webapp/src/app/resolvers/dfg-single-project-resolver.ts new file mode 100644 index 00000000..2d0ae08f --- /dev/null +++ b/webapp/src/app/resolvers/dfg-single-project-resolver.ts @@ -0,0 +1,16 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { ProjectsService } from '../api/api/projects.service'; +import { DfgProjectDetails } from '../api'; + +export const dfgSingleProjectResolver: ResolveFn = ( + route, + state, +) => { + const projectsService = inject(ProjectsService); + const projectId = route.paramMap.get('id'); + if (!projectId) { + throw new Error('DFG Project ID is required'); + } + return projectsService.getSingleDfgProject(projectId); +}; diff --git a/webapp/src/app/resolvers/eu-projects.resolver.ts b/webapp/src/app/resolvers/eu-projects.resolver.ts deleted file mode 100644 index 5ca019aa..00000000 --- a/webapp/src/app/resolvers/eu-projects.resolver.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ResolveFn } from '@angular/router'; -import { EuProjectPage, ProjectsService } from '../api'; -import { inject } from '@angular/core'; - -export const euProjectsResolver: ResolveFn = (route, state) => { - const page = route.queryParamMap.get('page') ?? '1'; - const size = route.queryParamMap.get('size') ?? '10'; - let institutionId = route.paramMap.get('institutionId'); - if (!institutionId) { - institutionId = route.parent?.paramMap.get('institutionId') ?? null; - } - - const sortBy = route.queryParamMap.get('sort_by') ?? 'topic'; - const sortDirection = route.queryParamMap.get('sort_direction') ?? 'asc'; - const search = route.queryParamMap.get('search'); - - return inject(ProjectsService).getEuProjects( - institutionId || '', - search || undefined, - Number(page), - Number(size), - sortBy, - sortDirection, - ); -}; diff --git a/webapp/src/app/resolvers/funding-project-page.resolver.ts b/webapp/src/app/resolvers/funding-project-page.resolver.ts new file mode 100644 index 00000000..496e7958 --- /dev/null +++ b/webapp/src/app/resolvers/funding-project-page.resolver.ts @@ -0,0 +1,37 @@ +import { ResolveFn } from '@angular/router'; +import { + FundingProjectPage, + ProjectsService, + ProjectsSortBy, + ProjectType, + SortDirection, +} from '../api'; +import { inject } from '@angular/core'; + +export const fundingProjectPageResolver: ResolveFn = ( + route, + state, +) => { + const page = Number(route.queryParamMap.get('page') || '0'); + const size = Number(route.queryParamMap.get('size') || '10'); + const sortBy = (route.queryParamMap.get('sort_by') ?? + 'title') as ProjectsSortBy; + const sortOrder = (route.queryParamMap.get('sorting_order') ?? + 'asc') as SortDirection; + const title = route.queryParamMap.get('search') ?? undefined; + const selectedProjectTypes = route.queryParamMap.get('selected_project_types') + ? new Set( + route.queryParamMap + .get('selected_project_types')! + .split(',') as ProjectType[], + ) + : undefined; + return inject(ProjectsService).searchProjects( + page, + size, + selectedProjectTypes, + title, + sortBy, + sortOrder, + ); +}; diff --git a/webapp/src/app/resolvers/institutions.resolver.ts b/webapp/src/app/resolvers/institutions.resolver.ts new file mode 100644 index 00000000..a0657fab --- /dev/null +++ b/webapp/src/app/resolvers/institutions.resolver.ts @@ -0,0 +1,29 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { InstitutionPage, InstitutionsService } from '../api'; + +export const institutionsResolver: ResolveFn = ( + route, + state, +) => { + const queryParamMap = route.queryParamMap; + const query = queryParamMap.get('search') ?? ''; + const page = Number(queryParamMap.get('page') ?? '0'); + const pageSize = Number(queryParamMap.get('size') ?? '10'); + const sortBy = (queryParamMap.get('sort_by') ?? 'works_count') as + | 'relevance' + | 'name' + | 'works_count' + | 'citations_count'; + const sortOrder = (queryParamMap.get('sorting_order') ?? 'desc') as + | 'asc' + | 'desc'; + + return inject(InstitutionsService).searchInstitutionsByName( + query, + page, + pageSize, + sortBy, + sortOrder, + ); +}; diff --git a/webapp/src/app/resolvers/person-cordis-eu-project-page.resolver.ts b/webapp/src/app/resolvers/person-cordis-eu-project-page.resolver.ts new file mode 100644 index 00000000..90427263 --- /dev/null +++ b/webapp/src/app/resolvers/person-cordis-eu-project-page.resolver.ts @@ -0,0 +1,13 @@ +import { ResolveFn } from '@angular/router'; +import { CordisEuProjectPage, ProjectsService } from '../api'; +import { inject } from '@angular/core'; + +export const personCordisEuProjectPageResolver: ResolveFn< + CordisEuProjectPage +> = (route, state) => { + const rawAuthorId = route.parent?.params['id']; + if (!rawAuthorId) { + throw new Error('Author ID is required to resolve collaboration network'); + } + return inject(ProjectsService).getEuProjectsForAuthor(rawAuthorId); +}; diff --git a/webapp/src/app/resolvers/person-list.resolver.ts b/webapp/src/app/resolvers/person-list.resolver.ts index 8e4b824c..926dd58c 100644 --- a/webapp/src/app/resolvers/person-list.resolver.ts +++ b/webapp/src/app/resolvers/person-list.resolver.ts @@ -12,7 +12,7 @@ export const personListResolver: ResolveFn = ( return [val]; }; const defaultIncludes = - 'display_name,works_count,cited_by_count,summary_stats,topics,orcid,relevance_rating,last_known_institutions,affiliations'; + 'display_name,works_count,cited_by_count,summary_stats,topics,orcid,relevance_rating,last_known_institutions,affiliations,career_metrics'; const params = route.queryParamMap; const query = params.get('query') || undefined; diff --git a/webapp/src/app/resolvers/person-news.resolver.ts b/webapp/src/app/resolvers/person-news.resolver.ts new file mode 100644 index 00000000..9d361534 --- /dev/null +++ b/webapp/src/app/resolvers/person-news.resolver.ts @@ -0,0 +1,57 @@ +import { ResolveFn } from '@angular/router'; +import { inject } from '@angular/core'; +import { HttpClient, HttpParams } from '@angular/common/http'; +import { of } from 'rxjs'; + +import { WorksService } from '../api'; + +export interface NewsArticle { + id: string; + date?: string | null; + maintitle?: string | null; + author?: string | null; + url?: string | null; +} + +export interface NewsPage { + total: number; + page: number; + page_size: number; + results: NewsArticle[]; +} + +export const personNewsResolver: ResolveFn = (route) => { + const httpClient = inject(HttpClient); + const worksService = inject(WorksService); + + const authorId = route.parent?.paramMap.get('id'); + if (!authorId) { + return of({ total: 0, page: 1, page_size: 0, results: [] }); + } + + const queryParams = route.queryParamMap; + + const page = queryParams.get('page') + ? Number.parseInt(queryParams.get('page')!, 10) + : 1; + + const pageSize = queryParams.get('pageSize') + ? Number.parseInt(queryParams.get('pageSize')!, 10) + : 10; + + const sortOrder = queryParams.get('sortOrder') || 'desc'; + const query = queryParams.get('query') || ''; + + let params = new HttpParams() + .set('authorId', authorId) + .set('page', page) + .set('pageSize', pageSize) + .set('sortOrder', sortOrder); + + if (query) { + params = params.set('query', query); + } + + const basePath = worksService.configuration.basePath ?? ''; + return httpClient.get(`${basePath}/api/news/by-author`, { params }); +}; diff --git a/webapp/src/app/resolvers/person.resolver.ts b/webapp/src/app/resolvers/person.resolver.ts index a20198f2..b8175a50 100644 --- a/webapp/src/app/resolvers/person.resolver.ts +++ b/webapp/src/app/resolvers/person.resolver.ts @@ -1,23 +1,23 @@ import { ResolveFn } from '@angular/router'; import { inject } from '@angular/core'; -import { AuthorsListResponse, PersonsService } from '../api'; +import { CustomAuthorsListResponse, PersonsService } from '../api'; -export const personResolver: ResolveFn = ( +export const personResolver: ResolveFn = ( route, state, ) => { - const parseQueryParamArray = (val: any): string[] => { - if (!val) return []; - if (Array.isArray(val)) return val; - return [val]; - }; const PERSON_INCLUDE_TAGS = - 'topics_full,topic_share,summary_stats,ids,last_known_institutions,' + - 'sources,counts_by_year,works_api_url,dates,cited_by_count_boost'; - const params = route.paramMap; + 'display_name,works_count,cited_by_count,summary_stats,ids,' + + 'last_known_institutions,affiliations,topics,orcid,' + + 'topics_full,topic_share,sources,counts_by_year,works_api_url,' + + 'dates,cited_by_count_boost,career_metrics'; - const query = params.get('id') || undefined; + const authorId = route.paramMap.get('id') || undefined; const personsService = inject(PersonsService); - return personsService.searchPersons(query, undefined, PERSON_INCLUDE_TAGS); + if (!authorId) { + return { results: [] }; + } + + return personsService.getPersonByID(authorId, PERSON_INCLUDE_TAGS); }; diff --git a/webapp/src/app/shared/services/credential.service.ts b/webapp/src/app/shared/services/credential.service.ts index 040eac7c..a6963764 100644 --- a/webapp/src/app/shared/services/credential.service.ts +++ b/webapp/src/app/shared/services/credential.service.ts @@ -1,8 +1,12 @@ -import { Injectable,inject } from '@angular/core'; +import { Injectable, inject } from '@angular/core'; import { filter, take, map } from 'rxjs/operators'; //TODO: review by arman import { Observable, of } from 'rxjs'; // review import { BehaviorSubject } from 'rxjs'; //review -import { INSEAccountServiceService, IdentityGrant as ApiIdentityGrant, AccessGrant as ApiAccessGrant } from '../../api'; +import { + INSEAccountServiceService, + IdentityGrant as ApiIdentityGrant, + AccessGrant as ApiAccessGrant, +} from '../../api'; export interface AuthAccount { i: number; @@ -113,26 +117,25 @@ export class CredentialService { body.set('username', login); body.set('password', password); - this.accountService.getIdentityGrant(login,password) - .subscribe({ - next: (result) => { - if (this.request != request) return; - const token: TimedIdentityGrant = { - grant: result as any as IdentityGrant, - expiration: result.expires_in * 1000 + now, - }; - this.identityToken.next(token); - localStorage.setItem( - CredentialService.KEY_GRANT, - JSON.stringify(token), - ); - this.refreshAccessToken(token); - }, - error: () => { - if (this.request != request) return; - this.validating.next(false); - }, - }); + this.accountService.getIdentityGrant(login, password).subscribe({ + next: (result) => { + if (this.request != request) return; + const token: TimedIdentityGrant = { + grant: result as any as IdentityGrant, + expiration: result.expires_in * 1000 + now, + }; + this.identityToken.next(token); + localStorage.setItem( + CredentialService.KEY_GRANT, + JSON.stringify(token), + ); + this.refreshAccessToken(token); + }, + error: () => { + if (this.request != request) return; + this.validating.next(false); + }, + }); } public refreshAccessToken(identityToken: TimedIdentityGrant) { @@ -143,7 +146,8 @@ export class CredentialService { const uid = identityToken.grant.scope.a!.i; const org = identityToken.grant.scope.a!.o; - this.accountService.getAccessGrant(identityToken.grant.access_token, uid, org) + this.accountService + .getAccessGrant(identityToken.grant.access_token, uid, org) .subscribe({ next: (result) => { if (this.request != request) return; @@ -178,11 +182,10 @@ export class CredentialService { this.identityToken.next(undefined); this.accessToken.next(undefined); this.validating.next(false); - } public registerAccount(data: any): Observable { - return this.accountService.createUser(data) + return this.accountService.createUser(data); } //review: arman (generated fix) diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.html b/webapp/src/app/shared/ui/app-layout/app-layout.component.html index 6de5f1f4..7b479fe8 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.html +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.html @@ -1,6 +1,8 @@
- + @if ( (credentialService.authenticated | async) && ((credentialService.superadmin | async) || @@ -8,10 +10,15 @@ ) { - + + } @@ -52,6 +59,12 @@ icon="person" [size]="200" [diameter]="200" /> + } @else if (resolverState.isResolvingFromOutside('/projects/')) { + } @else { } diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss index 6556c59f..1f16e6cf 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss @@ -80,9 +80,14 @@ mat-toolbar.main { width: var(--sg-sidebar-width); background: var(--sg-surface); border-right: 1px solid var(--sg-border); + border-radius: 0; box-shadow: none; } +.drawer--collapsed { + width: 64px; +} + .content { display: flex; flex-direction: column; diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts index 7ac7e077..f0a1e6c1 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts @@ -45,7 +45,10 @@ export class AppLayoutComponent implements OnInit, OnDestroy { protected resolverState = inject(ResolverStateService); mediaQueryListener: () => void; + private readonly sidebarCollapsedStorageKey = 'inse.sidebar.collapsed'; sideNavOpen = false; + sideNavCollapsed = this.readSidebarCollapsedState(); + constructor( public credentialService: CredentialService, public router: Router, @@ -56,6 +59,11 @@ export class AppLayoutComponent implements OnInit, OnDestroy { this.mediaQuery = media.matchMedia('(max-width: 600px)'); this.mediaQueryListener = () => { this.sideNavOpen = !this.mediaQuery.matches; + + if (this.mediaQuery.matches) { + this.sideNavCollapsed = false; + } + changeDetector.detectChanges(); }; } @@ -66,6 +74,26 @@ export class AppLayoutComponent implements OnInit, OnDestroy { } } + private readSidebarCollapsedState(): boolean { + return localStorage.getItem(this.sidebarCollapsedStorageKey) === 'true'; + } + + isSidebarCollapsed(): boolean { + return this.sideNavCollapsed && !this.mediaQuery.matches; + } + + toggleSidebarCollapsed(): void { + if (this.mediaQuery.matches) { + return; + } + + this.sideNavCollapsed = !this.sideNavCollapsed; + localStorage.setItem( + this.sidebarCollapsedStorageKey, + String(this.sideNavCollapsed), + ); + } + ngOnInit() { this.sideNavOpen = !this.mediaQuery.matches; this.mediaQuery.addEventListener('change', this.mediaQueryListener); diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.html b/webapp/src/app/shared/ui/app-menu/app-menu.component.html index 5963c6ee..ab143d54 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.html +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.html @@ -1,30 +1,73 @@ -
-