From 3ece11b87fa98aa6af22fc61a047032674d7906d Mon Sep 17 00:00:00 2001 From: niclas Date: Tue, 12 Mar 2024 13:59:18 +0100 Subject: [PATCH] Fix [synonyms] --- clusters/intelligence-agencies.json | 208 +++++++--------------------- tools/IntelAgencies/main.py | 4 +- 2 files changed, 55 insertions(+), 157 deletions(-) diff --git a/clusters/intelligence-agencies.json b/clusters/intelligence-agencies.json index 4c9c327..d34d3d1 100644 --- a/clusters/intelligence-agencies.json +++ b/clusters/intelligence-agencies.json @@ -16,9 +16,7 @@ "https://en.wikipedia.org/wiki/General_Directorate_of_Intelligence" ], "synonyms": [ - [ - "د استخباراتو لوی ریاست" - ] + "د استخباراتو لوی ریاست" ] }, "related": [], @@ -34,9 +32,7 @@ "https://en.wikipedia.org/wiki/National_Intelligence_Service_(Albania)" ], "synonyms": [ - [ - "Sherbimi Informativ Shteteror" - ] + "Sherbimi Informativ Shteteror" ] }, "related": [], @@ -182,9 +178,7 @@ "https://en.wikipedia.org/wiki/Unidad_de_Inteligencia_Financiera_(Argentina)" ], "synonyms": [ - [ - "Unidad de Inteligencia Financiera" - ] + "Unidad de Inteligencia Financiera" ] }, "related": [], @@ -213,9 +207,7 @@ "https://en.wikipedia.org/wiki/Servicio_de_Inteligencia_del_Ej%C3%A9rcito_(Argentina)" ], "synonyms": [ - [ - "Servicio de Inteligencia del Ejército" - ] + "Servicio de Inteligencia del Ejército" ] }, "related": [], @@ -231,9 +223,7 @@ "https://en.wikipedia.org/wiki/Servicio_de_Inteligencia_Naval_(Argentina)" ], "synonyms": [ - [ - "Servicio de Inteligencia Naval" - ] + "Servicio de Inteligencia Naval" ] }, "related": [], @@ -249,9 +239,7 @@ "https://en.wikipedia.org/wiki/Servicio_de_Inteligencia_de_la_Fuerza_A%C3%A9rea_(Argentina)" ], "synonyms": [ - [ - "Servicio de Inteligencia de la Fuerza Aérea" - ] + "Servicio de Inteligencia de la Fuerza Aérea" ] }, "related": [], @@ -358,9 +346,7 @@ "https://en.wikipedia.org/wiki/Heeresnachrichtenamt" ], "synonyms": [ - [ - "Army Intelligence Office" - ] + "Army Intelligence Office" ] }, "related": [], @@ -376,9 +362,7 @@ "https://en.wikipedia.org/wiki/Ministry_of_Defence_(Austria)#Subordinate_departments" ], "synonyms": [ - [ - " Counter-Intelligence Office" - ] + " Counter-Intelligence Office" ] }, "related": [], @@ -1457,9 +1441,7 @@ "https://en.wikipedia.org/wiki/Estonian_Internal_Security_Service" ], "synonyms": [ - [ - "Kaitsepolitseiamet" - ] + "Kaitsepolitseiamet" ] }, "related": [], @@ -1475,10 +1457,8 @@ "https://en.wikipedia.org/wiki/Estonian_Foreign_Intelligence_Service" ], "synonyms": [ - [ - "VLA", - "Välisluureamet" - ] + "VLA", + "Välisluureamet" ] }, "related": [], @@ -1507,10 +1487,8 @@ "https://en.wikipedia.org/wiki/Finnish_Defence_Intelligence_Agency" ], "synonyms": [ - [ - "Puolustusvoimien tiedustelulaitos (PVTIEDL)", - "Försvarsmaktens underrättelsetjänst" - ] + "Puolustusvoimien tiedustelulaitos (PVTIEDL)", + "Försvarsmaktens underrättelsetjänst" ] }, "related": [], @@ -1526,9 +1504,7 @@ "https://en.wikipedia.org/wiki/Intelligence_Division_(Finland)" ], "synonyms": [ - [ - "Pääesikunnan tiedusteluosasto (PE TIEDOS) / Huvudstabens underrättelseavdelning)" - ] + "Pääesikunnan tiedusteluosasto (PE TIEDOS) / Huvudstabens underrättelseavdelning)" ] }, "related": [], @@ -1544,9 +1520,7 @@ "https://en.wikipedia.org/wiki/Finnish_Security_Intelligence_Service" ], "synonyms": [ - [ - "Suojelupoliisi / Skyddspolisen" - ] + "Suojelupoliisi / Skyddspolisen" ] }, "related": [], @@ -1562,9 +1536,7 @@ "https://en.wikipedia.org/wiki/National_Centre_for_Counter_Terrorism" ], "synonyms": [ - [ - "Coordination nationale du renseignement et de la lutte contre le terrorisme" - ] + "Coordination nationale du renseignement et de la lutte contre le terrorisme" ] }, "related": [], @@ -1580,9 +1552,7 @@ "https://en.wikipedia.org/wiki/General_Directorate_for_Internal_Security" ], "synonyms": [ - [ - "Direction générale de la sécurité intérieure" - ] + "Direction générale de la sécurité intérieure" ] }, "related": [], @@ -1595,9 +1565,7 @@ "country": "FR", "country_name": "France", "synonyms": [ - [ - "direction nationale du renseignement territorial " - ] + "direction nationale du renseignement territorial " ] }, "related": [], @@ -1610,9 +1578,7 @@ "country": "FR", "country_name": "France", "synonyms": [ - [ - "Sous-direction anti-terroriste" - ] + "Sous-direction anti-terroriste" ] }, "related": [], @@ -1628,9 +1594,7 @@ "https://en.wikipedia.org/wiki/Directorate-General_for_External_Security" ], "synonyms": [ - [ - "Direction générale de la sécurité extérieure" - ] + "Direction générale de la sécurité extérieure" ] }, "related": [], @@ -1646,9 +1610,7 @@ "https://en.wikipedia.org/wiki/DRSD" ], "synonyms": [ - [ - "Direction du Renseignement et de la Sécurité de la Défense" - ] + "Direction du Renseignement et de la Sécurité de la Défense" ] }, "related": [], @@ -1716,9 +1678,7 @@ "https://en.wikipedia.org/wiki/State_Security_Service_(Georgia)" ], "synonyms": [ - [ - "სახელმწიფო უშიშროების სამსახური" - ] + "სახელმწიფო უშიშროების სამსახური" ] }, "related": [], @@ -1734,9 +1694,7 @@ "https://en.wikipedia.org/wiki/Georgian_Intelligence_Service" ], "synonyms": [ - [ - "საქართველოს დაზვერვის სამსახური" - ] + "საქართველოს დაზვერვის სამსახური" ] }, "related": [], @@ -1762,9 +1720,7 @@ "https://en.wikipedia.org/wiki/Bundesnachrichtendienst" ], "synonyms": [ - [ - "Federal Intelligence Service" - ] + "Federal Intelligence Service" ] }, "related": [], @@ -1780,9 +1736,7 @@ "https://en.wikipedia.org/wiki/Bundesamt_f%C3%BCr_Verfassungsschutz" ], "synonyms": [ - [ - "Federal Office for the Protection of the Constitution" - ] + "Federal Office for the Protection of the Constitution" ] }, "related": [], @@ -1808,9 +1762,7 @@ "country": "DE", "country_name": "Germany", "synonyms": [ - [ - "Center for information and communication technology" - ] + "Center for information and communication technology" ] }, "related": [], @@ -1826,9 +1778,7 @@ "https://en.wikipedia.org/wiki/Milit%C3%A4rischer_Abschirmdienst" ], "synonyms": [ - [ - "Military Counterintelligence Service" - ] + "Military Counterintelligence Service" ] }, "related": [], @@ -1870,9 +1820,7 @@ "https://en.wikipedia.org/wiki/National_Intelligence_Service_(Greece)" ], "synonyms": [ - [ - "Εθνική Υπηρεσία Πληροφοριών" - ] + "Εθνική Υπηρεσία Πληροφοριών" ] }, "related": [], @@ -2165,9 +2113,7 @@ "https://en.wikipedia.org/wiki/State_Intelligence_Agency_(Indonesia)" ], "synonyms": [ - [ - "Badan Intelijen Negara" - ] + "Badan Intelijen Negara" ] }, "related": [], @@ -2183,9 +2129,7 @@ "https://en.wikipedia.org/wiki/Indonesian_Strategic_Intelligence_Agency" ], "synonyms": [ - [ - "Badan Intelijen Strategis Tentara Nasional Indonesia" - ] + "Badan Intelijen Strategis Tentara Nasional Indonesia" ] }, "related": [], @@ -2201,9 +2145,7 @@ "https://en.wikipedia.org/wiki/Indonesian_Army_Intelligence_Centre" ], "synonyms": [ - [ - "Pusat Intelijen Tentara Nasional Indonesia Angkatan Darat" - ] + "Pusat Intelijen Tentara Nasional Indonesia Angkatan Darat" ] }, "related": [], @@ -2219,9 +2161,7 @@ "https://en.wikipedia.org/wiki/National_Cyber_and_Crypto_Agency" ], "synonyms": [ - [ - "Badan Siber dan Sandi Negara" - ] + "Badan Siber dan Sandi Negara" ] }, "related": [], @@ -2237,9 +2177,7 @@ "https://en.wikipedia.org/wiki/Attorney_General%27s_Office_of_Indonesia" ], "synonyms": [ - [ - "Jaksa Agung Muda Bidang Intelijen Kejaksaan Agung" - ] + "Jaksa Agung Muda Bidang Intelijen Kejaksaan Agung" ] }, "related": [], @@ -2255,9 +2193,7 @@ "https://en.wikipedia.org/wiki/Directorate_General_of_Immigration_(Indonesia)" ], "synonyms": [ - [ - "Direktorat Intelijen Imigrasi" - ] + "Direktorat Intelijen Imigrasi" ] }, "related": [], @@ -2273,9 +2209,7 @@ "https://en.wikipedia.org/wiki/National_Anti-Narcotics_Agency_(Indonesia)" ], "synonyms": [ - [ - "Seksi Intelijen Badan Narkotika Nasional" - ] + "Seksi Intelijen Badan Narkotika Nasional" ] }, "related": [], @@ -2291,9 +2225,7 @@ "https://en.wikipedia.orghttps://id.wikipedia.org/wiki/Badan_Intelijen_dan_Keamanan_Kepolisian_Negara_Republik_Indonesia" ], "synonyms": [ - [ - "Badan Intelijen dan Keamanan Kepolisian Negara Republik Indonesia" - ] + "Badan Intelijen dan Keamanan Kepolisian Negara Republik Indonesia" ] }, "related": [], @@ -2309,9 +2241,7 @@ "https://en.wikipedia.org/wiki/Directorate_General_of_Customs_and_Excise_(Indonesia)" ], "synonyms": [ - [ - "Sub-Direktorat Intelijen Direktorat Jenderal Bea Cukai" - ] + "Sub-Direktorat Intelijen Direktorat Jenderal Bea Cukai" ] }, "related": [], @@ -2327,9 +2257,7 @@ "https://en.wikipedia.org/wiki/Indonesian_Financial_Transaction_Reports_and_Analysis_Center" ], "synonyms": [ - [ - "Pusat Pelaporan dan Analisis Transaksi Keuangan" - ] + "Pusat Pelaporan dan Analisis Transaksi Keuangan" ] }, "related": [], @@ -3171,9 +3099,7 @@ "https://en.wikipedia.org/wiki/National_Coordinator_for_Counterterrorism_and_Security" ], "synonyms": [ - [ - "Nationaal Coördinator Terrorismebestrijding en Veiligheid" - ] + "Nationaal Coördinator Terrorismebestrijding en Veiligheid" ] }, "related": [], @@ -3313,9 +3239,7 @@ "https://en.wikipedia.org/wiki/Administration_for_Security_and_Counterintelligence" ], "synonyms": [ - [ - "Uprava za bezbednost i kontrarazuznavanje" - ] + "Uprava za bezbednost i kontrarazuznavanje" ] }, "related": [], @@ -3331,9 +3255,7 @@ "https://en.wikipedia.org/wiki/Intelligence_Agency_of_North_Macedonia" ], "synonyms": [ - [ - "Agencija za Razuznavanje" - ] + "Agencija za Razuznavanje" ] }, "related": [], @@ -3349,9 +3271,7 @@ "https://en.wikipedia.org/wiki/Military_Service_for_Security_and_Intelligence" ], "synonyms": [ - [ - "Voena služba za razuznuvanje i bezbednost" - ] + "Voena služba za razuznuvanje i bezbednost" ] }, "related": [], @@ -3744,9 +3664,7 @@ "https://en.wikipedia.org/wiki/National_Intelligence_Coordinating_Agency" ], "synonyms": [ - [ - "Pambansang Ahensiya sa Ugnayang Intelihensiya" - ] + "Pambansang Ahensiya sa Ugnayang Intelihensiya" ] }, "related": [], @@ -3762,9 +3680,7 @@ "https://en.wikipedia.org/wiki/National_Bureau_of_Investigation_(Philippines)" ], "synonyms": [ - [ - "Pambansang Kawanihan ng Pagsisiyasat" - ] + "Pambansang Kawanihan ng Pagsisiyasat" ] }, "related": [], @@ -3897,9 +3813,7 @@ "https://en.wikipedia.org/wiki/Romanian_Intelligence_Service" ], "synonyms": [ - [ - "Serviciul Român de Informații" - ] + "Serviciul Român de Informații" ] }, "related": [], @@ -3915,9 +3829,7 @@ "https://en.wikipedia.org/wiki/Foreign_Intelligence_Service_(Romania)" ], "synonyms": [ - [ - "Serviciul de Informații Externe" - ] + "Serviciul de Informații Externe" ] }, "related": [], @@ -3959,9 +3871,7 @@ "https://en.wikipedia.org/wiki/Direc%C8%9Bia_General%C4%83_de_Informa%C8%9Bii_%C8%99i_Protec%C8%9Bie_Intern%C4%83" ], "synonyms": [ - [ - "Direcția Generală de Protecție Internă" - ] + "Direcția Generală de Protecție Internă" ] }, "related": [], @@ -3977,9 +3887,7 @@ "https://en.wikipedia.org/wiki/Federal_Security_Service_(Russia)" ], "synonyms": [ - [ - "Федеральная служба безопасности" - ] + "Федеральная служба безопасности" ] }, "related": [], @@ -3995,9 +3903,7 @@ "https://en.wikipedia.org/wiki/Main_Directorate_of_Special_Programs_of_the_President_of_the_Russian_Federation" ], "synonyms": [ - [ - "Главное управление специальных программ Президента Российской Федерации" - ] + "Главное управление специальных программ Президента Российской Федерации" ] }, "related": [], @@ -4013,9 +3919,7 @@ "https://en.wikipedia.org/wiki/Foreign_Intelligence_Service_(Russia)" ], "synonyms": [ - [ - "Служба Внешней Разведки" - ] + "Служба Внешней Разведки" ] }, "related": [], @@ -4031,9 +3935,7 @@ "https://en.wikipedia.org/wiki/GRU_(Russian_Federation)" ], "synonyms": [ - [ - "Главное Разведывательное Управление" - ] + "Главное Разведывательное Управление" ] }, "related": [], @@ -4049,9 +3951,7 @@ "https://en.wikipedia.org/wiki/Special_Communications_Service_of_Russia" ], "synonyms": [ - [ - "Служба специальной связи и информации" - ] + "Служба специальной связи и информации" ] }, "related": [], @@ -5635,9 +5535,7 @@ "https://en.wikipedia.orghttps://es.wikipedia.org/wiki/Secretar%C3%ADa_de_Inteligencia_Estrat%C3%A9gica_de_Estado" ], "synonyms": [ - [ - "Secretaría de Inteligencia Estratégica de Estado" - ] + "Secretaría de Inteligencia Estratégica de Estado" ] }, "related": [], diff --git a/tools/IntelAgencies/main.py b/tools/IntelAgencies/main.py index fcc362b..4e69bea 100644 --- a/tools/IntelAgencies/main.py +++ b/tools/IntelAgencies/main.py @@ -122,9 +122,9 @@ def get_agencies_from_country(heading, current_country, uuids): country_name = None if uuids and name in uuids: - agencies.append(IntelAgency(value=name, uuid=uuids[name], meta=Meta(country=country_code, country_name=country_name, refs=[links], synonyms=[synonyms]), description=description)) + agencies.append(IntelAgency(value=name, uuid=uuids[name], meta=Meta(country=country_code, country_name=country_name, refs=[links], synonyms=synonyms), description=description)) else: - agencies.append(IntelAgency(value=name, meta=Meta(country=country_code, country_name=country_name, refs=[links], synonyms=[synonyms]), uuid=str(uuid.uuid4()), description=description)) + agencies.append(IntelAgency(value=name, meta=Meta(country=country_code, country_name=country_name, refs=[links], synonyms=synonyms), uuid=str(uuid.uuid4()), description=description)) return agencies