From 31f563684dde9332b022ff9072d7828d49b377c1 Mon Sep 17 00:00:00 2001 From: Jules Neny Date: Tue, 3 Nov 2026 14:54:23 +0100 Subject: [PATCH] =?UTF-8?q?data(taxonomie):=20M3=20le=20mapping=20type=20?= =?UTF-8?q?=C3=97=20postures=20des=20211=20fiches,=20utils/taxonomie=20et?= =?UTF-8?q?=20son=20test=20(B4a)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - data/taxonomie/organisations.json : 91 org: + 120 structure:, type d'organisation et postures de la taxonomie N, une source par valeur. - Règle : le type d'abord par les champs (type_org, nom, type_principal, première phrase de la description), autre quand rien ne tranche ; une posture seulement si un hashtag, une pensée, la famille ou la description la porte. README : la règle et comment corriger une entrée sur Gitea ; B4b la portera dans NocoDB. - utils/taxonomie.ts (pur) : vocabulaire, libellés, classement avec repli autre, contrôle du mapping. useFicheAdapter : toMini(source, classer) pose type et postures. - scripts/test-taxonomie.mjs (34 cas), dans npm run test. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01PWGVn3kY4vPBaWF9EFkZbz --- composables/useFicheAdapter.ts | 19 +- data/taxonomie/README.md | 63 + data/taxonomie/organisations.json | 2572 +++++++++++++++++++++++++++++ package.json | 2 +- scripts/test-taxonomie.mjs | 103 ++ utils/taxonomie.ts | 107 ++ 6 files changed, 2864 insertions(+), 2 deletions(-) create mode 100644 data/taxonomie/README.md create mode 100644 data/taxonomie/organisations.json create mode 100644 scripts/test-taxonomie.mjs create mode 100644 utils/taxonomie.ts diff --git a/composables/useFicheAdapter.ts b/composables/useFicheAdapter.ts index 57c5d08..07cafc4 100644 --- a/composables/useFicheAdapter.ts +++ b/composables/useFicheAdapter.ts @@ -13,6 +13,11 @@ * `tags`, `famille`, `pays` pour Réseaux AEP). C'est ce que filtre, trie et * regroupe `utils/vueFiches.ts` ; `chips` et `echelle` restent l'affichage * de la carte-fiche, inchangé. + * + * B4a : `toMini(source, classer)` ajoute `type` (type d'organisation) et `postures` aux + * étiquettes, lus par `classer` dans le mapping `data/taxonomie/organisations.json` + * (`utils/taxonomie.ts`, passé par la page de la carte : les autres pages n'embarquent + * pas le mapping). Sans `classer`, rien ne change. */ import type { Org } from '~/types/org' import type { StructureV2 } from '~/types/structure-v2' @@ -93,7 +98,17 @@ function famillesDe(s: StructureV2): string[] { return [...new Set(ids.map(String))] } -export function toMini(source: Org | StructureV2): MiniFiche { +/** Classement d'une fiche par son identifiant de mapping (`org:108`, `structure:f1-rotor`) : `classement` de utils/taxonomie.ts. */ +export type ClasseurFiche = (id: string) => { type: string; postures: string[] } + +/** `type` et `postures` en étiquettes (B4a). `classer` peut arriver en index de `map` : seule une fonction compte. */ +function etiquettesTaxonomie(id: string, classer?: unknown): Record { + if (typeof classer !== 'function') return {} + const c = (classer as ClasseurFiche)(id) + return { type: [c.type], postures: [...c.postures] } +} + +export function toMini(source: Org | StructureV2, classer?: ClasseurFiche): MiniFiche { if (isStructure(source)) { const hashtags = source.hashtags ?? [] return { @@ -108,6 +123,7 @@ export function toMini(source: Org | StructureV2): MiniFiche { tags: hashtags.map(sansDiese), famille: famillesDe(source), pays: source.pays ? [source.pays] : [], + ...etiquettesTaxonomie(`structure:${source.id}`, classer), }, coords: coordsDe(source.latitude, source.longitude), ville: source.ville, @@ -130,6 +146,7 @@ export function toMini(source: Org | StructureV2): MiniFiche { fonctions, echelle: source.echelle ? [source.echelle] : [], territoire: [source.territoire && DOM_TOM.includes(source.territoire) ? source.territoire : 'Métropole'], + ...etiquettesTaxonomie(`org:${source.Id}`, classer), }, coords: coordsDe(source.latitude, source.longitude), date: source.submitted_at, diff --git a/data/taxonomie/README.md b/data/taxonomie/README.md new file mode 100644 index 0000000..45991aa --- /dev/null +++ b/data/taxonomie/README.md @@ -0,0 +1,63 @@ +# Taxonomie de la carte : type d'organisation et postures + +`organisations.json` dit, pour chaque fiche de la carte, **quel type d'organisation** elle est et **quelles postures** elle porte. Une entrée par fiche, 211 au 3 novembre 2026 : les 91 structures d'entraide (`org:`, mode Entraide) et les 120 réseaux et agences (`structure:`, mode Pratiques inspirantes, `public/data/reseaux-bifurcation.json`). + +Le site lit ce fichier (`utils/taxonomie.ts`) : chips « Type » dans les deux modes, chips « Posture » (contour safran) en mode Pratiques. + +## Une entrée + +```json +"structure:f1-rotor": { + "nom": "Rotor", + "type_organisation": "agence", + "postures": ["bas-carbone", "cooperative"], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "bas-carbone": "hashtag #reemploi-structurel", + "cooperative": "type_principal Cooperative" + } + } +} +``` + +- `nom` : seulement pour s'y retrouver, le site ne le lit pas. +- `type_organisation` : une seule valeur, parmi `institution` · `association` · `syndicat` · `agence` · `formation` · `media` · `autre`. +- `postures` : zéro, une ou plusieurs valeurs, parmi `regenerative` · `bas-carbone` · `cooperative` · `patrimoine` · `ecoconstruction` · `low-tech` · `participatif`. +- `source` : **d'où vient chaque valeur.** Une posture sans source n'est pas affichée (et le test échoue). + +## La règle qui a rempli le fichier + +**Le type** se lit d'abord dans les champs de la fiche, et `autre` quand rien ne tranche : + +1. Entraide : `type_org` de NocoDB (vide pour les 91 fiches au 03/11, donc jamais utilisé pour l'instant). +2. Le nom : Ordre, CNOA, CROA → `institution` ; « Syndicat » → `syndicat` ; « Association », « Fédération » → `association` ; CAUE → `institution` ; « Formation », « École », ENSA → `formation` ; « Ville de » → `institution` ; « Revue », « Podcast » → `media`. +3. Réseaux et agences : `type_principal` (Agence, Cooperative, Plateforme → `agence` ; Association, Reseau, Collectif, Mouvement → `association` ; Recherche → `formation` ; Autre → le nom, sinon `autre`). +4. Entraide, si rien avant : la première phrase de la description (« magazine », « revue », « podcast », « newsletter » → `media` ; « syndicat » ; « formations continues » → `formation` ; « organisme public », « musée national », « mission interministérielle », « caisse de retraite » → `institution` ; « association », « loi 1901 », « fondation » → `association` ; « cabinet » → `agence`). + +**Une posture ne s'écrit que si un champ de la fiche la porte**, jamais au jugé (critère « vérifiable » de la taxonomie N) : + +| Indice | Posture | +|--------|---------| +| hashtag `#sobriete-energetique`, `#reemploi-*`, `#deconstruction-selective`, `#plateforme-materiaux`, `#ressourcerie-batiment` | `bas-carbone` | +| hashtag `#scop-scic`, `#accompagnement-cooperatif`, `#habitat-cooperatif` ; `type_principal` Cooperative | `cooperative` | +| hashtag `#retrofit-strates`, `#renovation-profonde`, `#vernaculaire-rural`, `#friches-reactivation` | `patrimoine` | +| hashtag `#terre-crue`, `#bois-local`, `#paille`, `#chanvre-hempcrete`, `#materiaux-biosources`, `#materiaux-geosources`, `#biosource-geosource`, `#phytoconstruction` | `ecoconstruction` | +| hashtag `#low-tech-experimentation` ; pensée « Low-tech » ; famille 2 (Frugalité & low-tech) | `low-tech` | +| hashtag `#habitat-participatif`, `#participation-usagers`, `#baugruppe-cohousing` | `participatif` | +| le mot dans la description (régénératif, bas carbone, coopérative, patrimoine, réhabilitation, biosourcé, terre crue, low-tech, participatif) | la posture du mot | + +`regenerative` n'a aucune entrée : aucun champ ne le porte aujourd'hui. + +## Corriger une entrée sur Gitea + +1. Ouvrir `data/taxonomie/organisations.json` sur git.trans-former.fr, chercher le nom (Ctrl+F), crayon « Modifier ». +2. Changer `type_organisation`, ou ajouter / retirer une posture **et sa ligne dans `source.postures`** (une posture sans source n'est pas affichée). +3. Dans `source`, écrire d'où vient la correction, par exemple `"type_organisation": "Jules, 05/11 : association loi 1901"`. +4. Valider sur une branche ; `npm run test` (suite `test-taxonomie`) vérifie le vocabulaire, les sources et les 211 identifiants. + +Une fiche absente du fichier (ajoutée après) s'affiche en `autre`, sans posture, jusqu'à ce qu'on l'ajoute. + +## Après : B4b + +Le lot B4b portera ces deux champs dans NocoDB (colonnes `type_organisation` et `postures`, migration depuis ce fichier) et dans le JSON des réseaux. Les clés (`org:`, `structure:`) sont les identifiants stables des deux bases : la migration les lit telles quelles. Ce fichier deviendra alors la trace de la migration, plus la source. diff --git a/data/taxonomie/organisations.json b/data/taxonomie/organisations.json new file mode 100644 index 0000000..e70eb43 --- /dev/null +++ b/data/taxonomie/organisations.json @@ -0,0 +1,2572 @@ +{ + "version": 1, + "date": "2026-11-03", + "lisez_moi": "Règle, vocabulaire et façon de corriger : data/taxonomie/README.md. Une entrée par fiche, clé org: ou structure:.", + "entrees": { + "org:10": { + "nom": "Maison de l'Architecture Île-de-France", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:11": { + "nom": "Maison de l'Architecture Occitanie-Pyrénées (MAOP)", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:12": { + "nom": "Maison de l'Architecture Hauts-de-France", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:13": { + "nom": "Maison de l'Architecture Centre-Val de Loire", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:14": { + "nom": "Maison de l'Architecture de Franche-Comté", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:15": { + "nom": "MAF — Mutuelle des Architectes Français", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:16": { + "nom": "CIPAV — Caisse Interprofessionnelle de Prévoyance et Assurance Vieillesse", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "description : « caisse de retraite »", + "postures": {} + } + }, + "org:17": { + "nom": "MIQCP — Mission Interministérielle pour la Qualité des Constructions Publiques", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "description : « mission interministérielle »", + "postures": {} + } + }, + "org:18": { + "nom": "OPPIC — Opérateur du patrimoine et des projets immobiliers de la Culture", + "type_organisation": "institution", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "description : « opérateur »", + "postures": { + "patrimoine": "description : « patrimoine »" + } + } + }, + "org:19": { + "nom": "PUCA — Plan Urbanisme Construction Architecture", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:20": { + "nom": "Cité de l'Architecture et du Patrimoine", + "type_organisation": "institution", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "description : « musée national »", + "postures": { + "patrimoine": "description : « patrimoine »" + } + } + }, + "org:21": { + "nom": "Pavillon de l'Arsenal", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:22": { + "nom": "ASF France — Architectes Sans Frontières", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:23": { + "nom": "Architectes de l'Urgence", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « fondation »", + "postures": {} + } + }, + "org:24": { + "nom": "Architectes Solidaires", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:25": { + "nom": "AMC Archi — Le Moniteur Architecture", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « magazine »", + "postures": {} + } + }, + "org:26": { + "nom": "L'Architecture d'Aujourd'hui (AA)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « revue »", + "postures": {} + } + }, + "org:27": { + "nom": "D'Architectures", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « magazine »", + "postures": {} + } + }, + "org:28": { + "nom": "Archistorm", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « revue »", + "postures": {} + } + }, + "org:29": { + "nom": "Archicréé (Architectures CREE)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « revue »", + "postures": {} + } + }, + "org:30": { + "nom": "CROA Île-de-France", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:31": { + "nom": "CROA Provence-Alpes-Côte d'Azur", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:32": { + "nom": "CROA Hauts-de-France", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:33": { + "nom": "CROA Auvergne-Rhône-Alpes", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:34": { + "nom": "CROA Bretagne", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:35": { + "nom": "CROA Nouvelle-Aquitaine", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:36": { + "nom": "CROA Grand Est", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:37": { + "nom": "UNSFA — Union Nationale des Syndicats Français d'Architectes", + "type_organisation": "syndicat", + "postures": [], + "source": { + "type_organisation": "nom : syndicat", + "postures": {} + } + }, + "org:38": { + "nom": "Le Syndicat de l'Architecture", + "type_organisation": "syndicat", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "nom : syndicat", + "postures": { + "patrimoine": "description : « réhabilitation »" + } + } + }, + "org:39": { + "nom": "SNACG — Syndicat National des Architectes Contractants Généraux", + "type_organisation": "syndicat", + "postures": [], + "source": { + "type_organisation": "nom : syndicat", + "postures": {} + } + }, + "org:40": { + "nom": "SYNATPAU — Syndicat Salariés Architecture Urbanisme", + "type_organisation": "syndicat", + "postures": [], + "source": { + "type_organisation": "nom : syndicat", + "postures": {} + } + }, + "org:41": { + "nom": "Branche Architecture", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "description : « branche professionnelle »", + "postures": {} + } + }, + "org:42": { + "nom": "ANABF — Association Nationale des Architectes des Bâtiments de France", + "type_organisation": "association", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "nom : association / fédération", + "postures": { + "patrimoine": "description : « patrimoine »" + } + } + }, + "org:43": { + "nom": "FN CAUE — Fédération Nationale des CAUE", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "nom : association / fédération", + "postures": {} + } + }, + "org:44": { + "nom": "CAUE Paris (75)", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : CAUE", + "postures": {} + } + }, + "org:45": { + "nom": "CAUE Rhône Métropole (69)", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : CAUE", + "postures": {} + } + }, + "org:46": { + "nom": "CAUE Gironde (33)", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : CAUE", + "postures": {} + } + }, + "org:47": { + "nom": "CAUE Alsace", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : CAUE", + "postures": {} + } + }, + "org:48": { + "nom": "CAUE Seine-Maritime (76)", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : CAUE", + "postures": {} + } + }, + "org:49": { + "nom": "Réseau des Maisons de l'Architecture", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:50": { + "nom": "Chroniques d'Architecture", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « site d'actualité »", + "postures": {} + } + }, + "org:51": { + "nom": "Le Moniteur (lemoniteur.fr)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « hebdomadaire »", + "postures": {} + } + }, + "org:52": { + "nom": "Batiactu", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « portail d'information »", + "postures": {} + } + }, + "org:53": { + "nom": "Batiweb", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « newsletters »", + "postures": {} + } + }, + "org:54": { + "nom": "Plan Libre", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « revue »", + "postures": {} + } + }, + "org:55": { + "nom": "Team.archi — La French Connection", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « newsletter »", + "postures": {} + } + }, + "org:56": { + "nom": "Paroles d'archi (Chroniques d'Architecture)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « podcast »", + "postures": {} + } + }, + "org:57": { + "nom": "Podcast Pavillon de l'Arsenal", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "nom : revue / podcast", + "postures": {} + } + }, + "org:58": { + "nom": "Dans la tête d'un archi (Xavier Le Pennec)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « podcast »", + "postures": {} + } + }, + "org:59": { + "nom": "Fondations (Solène Sillière)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « podcast »", + "postures": {} + } + }, + "org:60": { + "nom": "Cité de l'Architecture — Podcasts", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "nom : revue / podcast", + "postures": {} + } + }, + "org:61": { + "nom": "GEPA — Groupe pour l'Éducation Permanente des Architectes", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "nom : formation / école", + "postures": {} + } + }, + "org:62": { + "nom": "MAJ Formation Continue", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "nom : formation / école", + "postures": {} + } + }, + "org:63": { + "nom": "Cité de l'Architecture — Formation continue", + "type_organisation": "formation", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "nom : formation / école", + "postures": { + "patrimoine": "description : « patrimoine »" + } + } + }, + "org:64": { + "nom": "CFAA — Centre de Formation des Architectes Aquitains", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "nom : formation / école", + "postures": {} + } + }, + "org:65": { + "nom": "REFC'A — Réseau Formation Continue Architectes", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "nom : formation / école", + "postures": {} + } + }, + "org:66": { + "nom": "Grandes Ateliers de l'Isle d'Abeau", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:67": { + "nom": "DU Business Management Architecture (Dauphine)", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "nom : formation / école", + "postures": {} + } + }, + "org:69": { + "nom": "Archiliste", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « newsletter »", + "postures": {} + } + }, + "org:74": { + "nom": "Ordre des architectes — Questions juridiques", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:76": { + "nom": "MAF — Protection juridique", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:77": { + "nom": "Branche Architecture — Fonds social", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:78": { + "nom": "Souffrance et Travail", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:79": { + "nom": "France Burn-Out (asso-franceburnout.fr)", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:80": { + "nom": "Psycom — Santé Mentale Info", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "description : « organisme public »", + "postures": {} + } + }, + "org:81": { + "nom": "Réseau Burn Out (reseauburnout.org)", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:82": { + "nom": "Croix-Rouge — Écoute", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:83": { + "nom": "ASAfSAT", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:84": { + "nom": "Archires — Revue du CROA Centre", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:86": { + "nom": "Archi-Jobs", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:89": { + "nom": "Annuaire CNOA (tableau des architectes)", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:90": { + "nom": "UNAID — Union Nationale Architectes d'Intérieur Designers", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:91": { + "nom": "FFP — Fédération Française du Paysage", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "nom : association / fédération", + "postures": {} + } + }, + "org:92": { + "nom": "Collectif Etc", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:93": { + "nom": "FAIRE — Pavillon de l'Arsenal", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:94": { + "nom": "PUCA — Ressources en ligne", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « publications »", + "postures": {} + } + }, + "org:96": { + "nom": "Construction21 France", + "type_organisation": "autre", + "postures": [], + "source": { + "type_organisation": "aucun champ ne tranche", + "postures": {} + } + }, + "org:97": { + "nom": "Archiscopie", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « revue »", + "postures": {} + } + }, + "org:98": { + "nom": "Urbanisme (revue)", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "nom : revue / podcast", + "postures": {} + } + }, + "org:99": { + "nom": "NDA — Numéro d'Architecture", + "type_organisation": "media", + "postures": [], + "source": { + "type_organisation": "description : « magazine »", + "postures": {} + } + }, + "org:106": { + "nom": "CNOA — Conseil National de l’Ordre des Architectes", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:108": { + "nom": "Collectif Fil", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "description : « association »", + "postures": {} + } + }, + "org:115": { + "nom": "CROA Bourgogne-Franche-Comté", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:116": { + "nom": "CROA Centre-Val de Loire", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:117": { + "nom": "CROA Corse", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:118": { + "nom": "CROA Normandie", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:119": { + "nom": "CROA Occitanie", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:120": { + "nom": "CROA Pays de la Loire", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:121": { + "nom": "CROA IDF — Questions juridiques", + "type_organisation": "institution", + "postures": [], + "source": { + "type_organisation": "nom : Ordre / CNOA / CROA", + "postures": {} + } + }, + "org:122": { + "nom": "Expert-Comptable Architectes (compta-architectes.com)", + "type_organisation": "agence", + "postures": [], + "source": { + "type_organisation": "description : « cabinet »", + "postures": {} + } + }, + "org:123": { + "nom": "Expert-Comptable Architectes (expert-comptable-architectes.fr)", + "type_organisation": "agence", + "postures": [], + "source": { + "type_organisation": "description : « cabinet »", + "postures": {} + } + }, + "structure:f1-rotor": { + "nom": "Rotor", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "cooperative" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "bas-carbone": "hashtag #reemploi-structurel", + "cooperative": "type_principal Cooperative" + } + } + }, + "structure:f2-frugalite-heureuse": { + "nom": "Frugalite heureuse & creative", + "type_organisation": "association", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Mouvement", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "description : « biosourcées »", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f3-yes-we-camp": { + "nom": "Yes We Camp", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Collectif", + "postures": {} + } + }, + "structure:f4-hab-fab": { + "nom": "Hab-Fab", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f5-cler": { + "nom": "CLER - Reseau pour la Transition Energetique", + "type_organisation": "association", + "postures": [ + "cooperative" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "description : « coopératives »" + } + } + }, + "structure:f1-encore-heureux": { + "nom": "Encore Heureux", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre" + } + } + }, + "structure:f1-opalis": { + "nom": "Opalis", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Plateforme", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f3-bellastock": { + "nom": "Bellastock", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "type_principal Cooperative", + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f1-insitu": { + "nom": "Bauburo in situ + Zirkular", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-structurel", + "patrimoine": "hashtag #retrofit-strates" + } + } + }, + "structure:f1-material-cultures": { + "nom": "Material Cultures", + "type_organisation": "association", + "postures": [ + "ecoconstruction" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "ecoconstruction": "hashtag #materiaux-biosources" + } + } + }, + "structure:f1-superuse": { + "nom": "Superuse Studios", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-structurel" + } + } + }, + "structure:f1-arteria": { + "nom": "Arteria", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine", + "ecoconstruction" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "patrimoine": "hashtag #retrofit-strates", + "ecoconstruction": "hashtag #materiaux-geosources" + } + } + }, + "structure:f1-oitoo": { + "nom": "oitoo", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "patrimoine": "hashtag #retrofit-strates" + } + } + }, + "structure:f1-agwa": { + "nom": "AgwA", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "patrimoine": "hashtag #retrofit-strates" + } + } + }, + "structure:f1-carton123": { + "nom": "Carton123 architecten", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre" + } + } + }, + "structure:f1-budcud": { + "nom": "BudCud", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre" + } + } + }, + "structure:f1-6a": { + "nom": "6a architects", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "patrimoine": "hashtag #retrofit-strates" + } + } + }, + "structure:f1-cycle-up": { + "nom": "Cycle Up", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Plateforme", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f1-backacia": { + "nom": "Backacia", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Plateforme", + "postures": { + "bas-carbone": "hashtag #deconstruction-selective" + } + } + }, + "structure:f1-mobius": { + "nom": "Mobius Reemploi", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #deconstruction-selective" + } + } + }, + "structure:f1-ad-vitam-material": { + "nom": "AD VITAM MATERIAL", + "type_organisation": "association", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f1-cirkla": { + "nom": "Cirkla", + "type_organisation": "association", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f1-cancan": { + "nom": "Collectif CANCAN", + "type_organisation": "association", + "postures": [ + "bas-carbone", + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "bas-carbone": "hashtag #deconstruction-selective", + "participatif": "description : « participative »" + } + } + }, + "structure:f1-harquitectes": { + "nom": "HArquitectes", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-structurel", + "ecoconstruction": "hashtag #materiaux-geosources" + } + } + }, + "structure:f1-isla": { + "nom": "isla architects", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "ecoconstruction": "hashtag #materiaux-geosources" + } + } + }, + "structure:f1-jdviv": { + "nom": "architecten jan de vylder inge vinck", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "patrimoine": "hashtag #retrofit-strates" + } + } + }, + "structure:f1-salvoweb": { + "nom": "SalvoWEB", + "type_organisation": "association", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f1-bl-architectes": { + "nom": "B+L Architectes", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #reemploi-second-oeuvre", + "ecoconstruction": "hashtag #materiaux-biosources" + } + } + }, + "structure:f1-refair-bdr": { + "nom": "REFAIR / Base du Reemploi (La Fab Bordeaux)", + "type_organisation": "agence", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Plateforme", + "postures": { + "bas-carbone": "hashtag #plateforme-materiaux" + } + } + }, + "structure:f2-lacaton-vassal": { + "nom": "Lacaton & Vassal Architectes", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "patrimoine": "hashtag #vernaculaire-rural", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-kere-architecture": { + "nom": "Kere Architecture", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-anna-heringer": { + "nom": "Studio Anna Heringer", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech", + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "pensée Low-tech", + "participatif": "description : « participative »" + } + } + }, + "structure:f2-craterre": { + "nom": "CRAterre", + "type_organisation": "formation", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Recherche", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-les-grands-ateliers": { + "nom": "Les Grands Ateliers", + "type_organisation": "autre", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Autre, aucun autre champ ne tranche", + "postures": { + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-amaco": { + "nom": "amaco - Atelier Matieres a Construire", + "type_organisation": "autre", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Autre, aucun autre champ ne tranche", + "postures": { + "patrimoine": "description : « réhabilitation »", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-lehm-ton-erde": { + "nom": "Lehm Ton Erde Baukunst GmbH", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech", + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "hashtag #low-tech-experimentation", + "participatif": "description : « participative »" + } + } + }, + "structure:f2-bc-architects": { + "nom": "BC Architects", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-agence-atm": { + "nom": "Agence ATM (Atelier Marie-Helene Toumayan)", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-atelier-56s": { + "nom": "Atelier 56S", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #paille", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-atelier-belenfant-daubas": { + "nom": "Atelier Belenfant Daubas", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-baubotanik": { + "nom": "Baubotanik", + "type_organisation": "formation", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Recherche", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-asterre": { + "nom": "AsTerre - Association nationale professionnelles Terre crue", + "type_organisation": "association", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-rfcp": { + "nom": "RFCP - Reseau Francais de la Construction Paille", + "type_organisation": "association", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "ecoconstruction": "hashtag #paille", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-vandkunsten": { + "nom": "Vandkunsten", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "cooperative", + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "cooperative": "type_principal Cooperative", + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f1-lokal": { + "nom": "Tegnestuen LOKAL", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #retrofit-strates", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-zrs-architekten": { + "nom": "ZRS Architekten", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #paille", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-natural-building-lab": { + "nom": "Natural Building Lab TU Berlin", + "type_organisation": "formation", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Recherche", + "postures": { + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-dgj-architektur": { + "nom": "DGJ Architektur", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #paille", + "low-tech": "pensée Low-tech" + } + } + }, + "structure:f2-tecla-mca": { + "nom": "TECLA / Mario Cucinella Architects", + "type_organisation": "agence", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-boidot-robin": { + "nom": "Boidot+Robin Architectes", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-ricehouse": { + "nom": "RiceHouse", + "type_organisation": "autre", + "postures": [ + "cooperative", + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Autre, aucun autre champ ne tranche", + "postures": { + "cooperative": "description : « coopératives »", + "patrimoine": "description : « réhabilitations »", + "ecoconstruction": "hashtag #paille", + "low-tech": "hashtag #low-tech-experimentation" + } + } + }, + "structure:f2-envirobatbdm": { + "nom": "EnvirobatBDM", + "type_organisation": "association", + "postures": [ + "bas-carbone", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-kebati": { + "nom": "KEBATI", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-aquaa": { + "nom": "AQUAA", + "type_organisation": "association", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "patrimoine": "description : « patrimoine »", + "ecoconstruction": "hashtag #chanvre-hempcrete", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-karibati": { + "nom": "Karibati", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-rbd-intertropical": { + "nom": "RBD Intertropical (Synergile)", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-caribois": { + "nom": "Caribois", + "type_organisation": "agence", + "postures": [ + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-vegetal-e": { + "nom": "Vegetal(e)", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-envirobat-reunion": { + "nom": "Envirobat Reunion", + "type_organisation": "association", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "description : « biosources »", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-white-arkitekter-v1": { + "nom": "White Arkitekter", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #bois-local", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-nunc-architectes": { + "nom": "Nunc architectes", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-laps-architecture": { + "nom": "LAPS Architecture", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-dorodango-architecture": { + "nom": "Dorodango Architecture", + "type_organisation": "agence", + "postures": [ + "patrimoine", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #vernaculaire-rural", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f2-bees-architectes": { + "nom": "BEES Architectes", + "type_organisation": "agence", + "postures": [ + "bas-carbone", + "ecoconstruction", + "low-tech" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "bas-carbone": "hashtag #sobriete-energetique", + "ecoconstruction": "hashtag #terre-crue", + "low-tech": "famille 2 (Frugalité & low-tech)" + } + } + }, + "structure:f3-architecture-precarites": { + "nom": "Architecture et Precarites (A&P)", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-quatorze": { + "nom": "Quatorze", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-ateliermob": { + "nom": "Ateliermob", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-tamassociati": { + "nom": "TAMassociati", + "type_organisation": "agence", + "postures": [], + "source": { + "type_organisation": "type_principal Agence", + "postures": {} + } + }, + "structure:f3-we-made-that": { + "nom": "We Made That", + "type_organisation": "agence", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-public-practice": { + "nom": "Public Practice", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-construire-bouchain": { + "nom": "Construire (Bouchain)", + "type_organisation": "agence", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-recetas-urbanas": { + "nom": "Recetas Urbanas", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-assemble": { + "nom": "Assemble", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-baupiloten": { + "nom": "Die Baupiloten", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-perou": { + "nom": "PEROU - Pole d'Exploration des Ressources Urbaines", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Association", + "postures": {} + } + }, + "structure:f3-plateau-urbain": { + "nom": "Plateau Urbain", + "type_organisation": "agence", + "postures": [ + "cooperative" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "type_principal Cooperative" + } + } + }, + "structure:f3-asf-france": { + "nom": "Architectes Sans Frontieres France", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-rural-studio": { + "nom": "Rural Studio", + "type_organisation": "formation", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Recherche", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-forensic-architecture": { + "nom": "Forensic Architecture", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "type_principal Recherche", + "postures": {} + } + }, + "structure:f3-collectif-parenthese": { + "nom": "Collectif Parenthese", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Collectif", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-woma": { + "nom": "WoMa", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-fab-city-grand-paris": { + "nom": "Fab City Grand Paris", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "description : « scic »", + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f3-civicwise": { + "nom": "CivicWise", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f4-rahp": { + "nom": "RAHP - Reseau National des Accompagnateurs et Accompagnatrices Professionnelles de l'Habitat Participatif", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-regain": { + "nom": "Regain - Habitat Participatif PACA", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-rehabiter": { + "nom": "Rehabiter (ex Eco-Quartier Strasbourg)", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-habicoop": { + "nom": "Habicoop - Federation Francaise des Cooperatives d'Habitants", + "type_organisation": "association", + "postures": [ + "cooperative" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #habitat-cooperatif" + } + } + }, + "structure:f4-cooperative-oasis": { + "nom": "Cooperative Oasis", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-mietshauser-syndikat": { + "nom": "Mietshäuser Syndikat", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #habitat-cooperatif", + "participatif": "hashtag #baugruppe-cohousing" + } + } + }, + "structure:f4-les-habiles": { + "nom": "Les HABILES - Habitats Iserois Libres et Solidaires", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-habitat-partage": { + "nom": "Habitat & Partage", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #habitat-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-atcoop": { + "nom": "Atcoop - Atelier des cooperatives d'habitants", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #habitat-cooperatif", + "participatif": "description : « participatif »" + } + } + }, + "structure:f4-toits-de-choix": { + "nom": "Toits de Choix", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-atelier15": { + "nom": "SCOP Atelier 15", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #scop-scic", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-hpen": { + "nom": "Habitat Participatif en Nord (HPeN)", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-atipic": { + "nom": "A-tipic", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-habiter-autrement-auvergne": { + "nom": "Habiter Autrement Auvergne", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-hpo": { + "nom": "Habitat Participatif Ouest (HPO)", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-hpf": { + "nom": "Habitat Participatif France (HPF)", + "type_organisation": "association", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-hp-metz": { + "nom": "Habitat Participatif Metz", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-emmanuelle-ducos": { + "nom": "Emmanuelle Ducos - Architecte accompagnatrice", + "type_organisation": "autre", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Autre, aucun autre champ ne tranche", + "postures": { + "cooperative": "hashtag #accompagnement-cooperatif", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f4-tepop-v1": { + "nom": "Tepop", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #scop-scic", + "participatif": "hashtag #participation-usagers" + } + } + }, + "structure:f4-lacol-v1": { + "nom": "Lacol Arquitectura Cooperativa", + "type_organisation": "agence", + "postures": [ + "cooperative" + ], + "source": { + "type_organisation": "type_principal Cooperative", + "postures": { + "cooperative": "hashtag #scop-scic" + } + } + }, + "structure:f4-einszueins-v1": { + "nom": "einszueins architektur", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "cooperative": "description : « coopératif »", + "participatif": "hashtag #baugruppe-cohousing" + } + } + }, + "structure:f4-diverserighe-v1": { + "nom": "Diverserighestudio", + "type_organisation": "agence", + "postures": [ + "cooperative", + "participatif" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "cooperative": "description : « coopérative »", + "participatif": "hashtag #habitat-participatif" + } + } + }, + "structure:f5-atelier-georges": { + "nom": "Atelier Georges", + "type_organisation": "agence", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #friches-reactivation" + } + } + }, + "structure:f5-amrf": { + "nom": "AMRF - Association des Maires Ruraux de France", + "type_organisation": "association", + "postures": [ + "participatif" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "participatif": "description : « participatif »" + } + } + }, + "structure:f5-institut-paris-region": { + "nom": "Institut Paris Région (ex-IAURIF)", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "type_principal Recherche", + "postures": {} + } + }, + "structure:f5-rac": { + "nom": "Réseau Action Climat (RAC)", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Reseau", + "postures": {} + } + }, + "structure:f5-energy-cities": { + "nom": "Energy Cities", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Reseau", + "postures": {} + } + }, + "structure:f5-coloco": { + "nom": "Coloco - Paysagistes / Urbanistes / Botanistes / Jardiniers", + "type_organisation": "agence", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Agence", + "postures": { + "patrimoine": "hashtag #friches-reactivation" + } + } + }, + "structure:f5-france-tiers-lieux": { + "nom": "France Tiers-Lieux", + "type_organisation": "association", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "patrimoine": "hashtag #friches-reactivation" + } + } + }, + "structure:f5-bas-smets": { + "nom": "Bureau Bas Smets", + "type_organisation": "agence", + "postures": [], + "source": { + "type_organisation": "type_principal Agence", + "postures": {} + } + }, + "structure:f5-loos-en-gohelle": { + "nom": "Ville de Loos-en-Gohelle", + "type_organisation": "institution", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "nom : collectivité (Ville de)", + "postures": { + "patrimoine": "hashtag #friches-reactivation" + } + } + }, + "structure:f5-energie-partagee": { + "nom": "�0nergie Partagée", + "type_organisation": "association", + "postures": [ + "cooperative" + ], + "source": { + "type_organisation": "type_principal Association", + "postures": { + "cooperative": "description : « coopératives »" + } + } + }, + "structure:f5-fabrique-de-la-cite": { + "nom": "La Fabrique de la Cité", + "type_organisation": "formation", + "postures": [], + "source": { + "type_organisation": "type_principal Recherche", + "postures": {} + } + }, + "structure:f5-tepos": { + "nom": "TEPOS - Réseau des Territoires à �0nergie Positive", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Reseau", + "postures": {} + } + }, + "structure:f5-centrala-v1": { + "nom": "Centrala", + "type_organisation": "formation", + "postures": [ + "patrimoine" + ], + "source": { + "type_organisation": "type_principal Recherche", + "postures": { + "patrimoine": "description : « patrimoine »" + } + } + }, + "structure:f5-fnau": { + "nom": "FNAU - Fédération Nationale des Agences d'Urbanisme", + "type_organisation": "association", + "postures": [ + "bas-carbone" + ], + "source": { + "type_organisation": "type_principal Reseau", + "postures": { + "bas-carbone": "description : « décarbonation »" + } + } + }, + "structure:f5-colibris": { + "nom": "Mouvement Colibris", + "type_organisation": "association", + "postures": [], + "source": { + "type_organisation": "type_principal Mouvement", + "postures": {} + } + } + } +} diff --git a/package.json b/package.json index c5e116a..446a2d8 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", - "test": "node scripts/test-echelles-nav.mjs && node scripts/test-figures.mjs && node scripts/test-vue-fiches.mjs && node scripts/test-submit-libre.mjs && node scripts/test-circuit-breaker.mjs && node scripts/test-bandeau.mjs && node scripts/test-outils-data.mjs && node scripts/test-citations.mjs && node scripts/test-seo.mjs && node scripts/test-y.mjs && node scripts/test-connaissances.mjs && node --test \"worker/test/*.test.js\"", + "test": "node scripts/test-echelles-nav.mjs && node scripts/test-figures.mjs && node scripts/test-vue-fiches.mjs && node scripts/test-submit-libre.mjs && node scripts/test-circuit-breaker.mjs && node scripts/test-bandeau.mjs && node scripts/test-outils-data.mjs && node scripts/test-citations.mjs && node scripts/test-seo.mjs && node scripts/test-y.mjs && node scripts/test-connaissances.mjs && node scripts/test-taxonomie.mjs && node --test \"worker/test/*.test.js\"", "postinstall": "nuxt prepare" }, "dependencies": { diff --git a/scripts/test-taxonomie.mjs b/scripts/test-taxonomie.mjs new file mode 100644 index 0000000..0df83a2 --- /dev/null +++ b/scripts/test-taxonomie.mjs @@ -0,0 +1,103 @@ +#!/usr/bin/env node +/** + * Test de la taxonomie de la carte (B4a-M3) : vocabulaire (taxonomie N), mapping + * `data/taxonomie/organisations.json` complet (91 org + 120 structures = 211 identifiants), + * aucune valeur hors vocabulaire, aucune posture sans source, repli `autre` pour un + * identifiant absent, et les étiquettes `type` / `postures` posées par `toMini`. + * Charge les VRAIS fichiers via jiti (même patron que test-vue-fiches.mjs). + * Usage : node scripts/test-taxonomie.mjs + */ + +import { createJiti } from 'jiti' +import { fileURLToPath } from 'node:url' +import { dirname, join } from 'node:path' +import { readFileSync } from 'node:fs' + +const __dirname = dirname(fileURLToPath(import.meta.url)) +const racine = join(__dirname, '..') +const jiti = createJiti(import.meta.url) +const T = await jiti.import(join(racine, 'utils', 'taxonomie.ts')) +const A = await jiti.import(join(racine, 'composables', 'useFicheAdapter.ts')) +const reseaux = JSON.parse(readFileSync(join(racine, 'public', 'data', 'reseaux-bifurcation.json'), 'utf8')) + +let n = 0 +let fail = 0 +function ok(cond, libelle, detail = '') { + n++ + if (!cond) fail++ + console.log(`${cond ? 'OK ' : 'FAIL'} ${libelle}${!cond && detail ? ` → ${detail}` : ''}`) +} +const eq = (a, b) => JSON.stringify(a) === JSON.stringify(b) + +// ── Vocabulaire : les sept types et les sept postures de N, un libellé chacun ── +ok(eq([...T.TYPES_ORGANISATION], ['institution', 'association', 'syndicat', 'agence', 'formation', 'media', 'autre']), 'types : les sept valeurs de N, dans l’ordre') +ok(eq([...T.POSTURES], ['regenerative', 'bas-carbone', 'cooperative', 'patrimoine', 'ecoconstruction', 'low-tech', 'participatif']), 'postures : les sept valeurs de N, dans l’ordre') +ok(T.TYPES_ORGANISATION.every((t) => T.LIBELLES_TYPE[t]?.length > 0) && Object.keys(T.LIBELLES_TYPE).length === 7, 'un libellé par type, pas un de plus') +ok(T.POSTURES.every((p) => T.LIBELLES_POSTURE[p]?.length > 0) && Object.keys(T.LIBELLES_POSTURE).length === 7, 'un libellé par posture, pas un de plus') +ok(T.LIBELLES_TYPE.media === 'Média' && T.LIBELLES_POSTURE.ecoconstruction === 'Écoconstruction', 'libellés accentués') + +// ── Mapping complet : 211 identifiants ── +const ids = Object.keys(T.MAPPING.entrees) +const orgIds = ids.filter((id) => id.startsWith('org:')) +const structIds = ids.filter((id) => id.startsWith('structure:')) +ok(ids.length === 211, `211 entrées (${ids.length})`) +ok(orgIds.length === 91, `91 structures d'entraide org: (${orgIds.length})`) +ok(structIds.length === 120, `120 réseaux et agences structure: (${structIds.length})`) +const attendues = reseaux.structures.map((s) => T.idStructure(s.id)) +const manquantes = attendues.filter((id) => !T.MAPPING.entrees[id]) +ok(manquantes.length === 0, 'chaque structure de reseaux-bifurcation.json a son entrée', manquantes.join(', ')) +ok(structIds.every((id) => attendues.includes(id)), 'aucune entrée structure: sans structure dans le JSON') +ok(orgIds.every((id) => /^org:\d+$/.test(id)), 'identifiants org: numériques (Id NocoDB)') + +// ── La règle : vocabulaire, sources ── +const ecarts = T.ecartsMapping(T.MAPPING) +ok(ecarts.length === 0, 'mapping conforme : types et postures dans le vocabulaire, une source par valeur', ecarts.slice(0, 5).join(' | ')) +const valeursType = new Set(Object.values(T.MAPPING.entrees).map((e) => e.type_organisation)) +ok([...valeursType].every((v) => T.TYPES_ORGANISATION.includes(v)), `aucun type hors vocabulaire (${[...valeursType].join(', ')})`) +const sansSource = Object.entries(T.MAPPING.entrees).flatMap(([id, e]) => e.postures.filter((p) => !e.source.postures[p]).map((p) => `${id}/${p}`)) +ok(sansSource.length === 0, 'aucune posture sans source', sansSource.join(', ')) +ok(Object.values(T.MAPPING.entrees).every((e) => typeof e.nom === 'string' && e.nom.length > 0), 'chaque entrée porte le nom de la fiche (pour qui corrige à la main)') + +// L'outil de contrôle lui-même attrape les fautes +const faux = { + version: 1, + entrees: { + 'org:1': { type_organisation: 'ong', postures: [], source: { type_organisation: 'x', postures: {} } }, + 'org:2': { type_organisation: 'agence', postures: ['low-tech'], source: { type_organisation: 'x', postures: {} } }, + 'org:3': { type_organisation: 'agence', postures: ['verte'], source: { type_organisation: 'x', postures: { verte: 'y' } } }, + 'org:4': { type_organisation: 'agence', postures: [], source: { type_organisation: '', postures: {} } }, + 'Org 5': { type_organisation: 'agence', postures: [], source: { type_organisation: 'x', postures: {} } }, + }, +} +const e = T.ecartsMapping(faux) +ok(e.some((x) => x.startsWith('org:1') && x.includes('hors vocabulaire')), 'contrôle : type hors vocabulaire attrapé') +ok(e.some((x) => x.startsWith('org:2') && x.includes('sans source')), 'contrôle : posture sans source attrapée') +ok(e.some((x) => x.startsWith('org:3') && x.includes('hors vocabulaire')), 'contrôle : posture hors vocabulaire attrapée') +ok(e.some((x) => x.startsWith('org:4') && x.includes('type sans source')), 'contrôle : type sans source attrapé') +ok(e.some((x) => x.startsWith('Org 5') && x.includes('hors forme')), 'contrôle : identifiant hors forme attrapé') + +// ── Lecture : classement et repli ── +ok(eq(T.classement('org:999999'), { type: 'autre', postures: [] }), 'identifiant absent → autre, sans posture') +ok(eq(T.classement('structure:inconnue'), { type: 'autre', postures: [] }), 'structure absente → autre') +ok(eq(T.classement('org:1', faux), { type: 'autre', postures: [] }), 'type hors vocabulaire → autre') +ok(eq(T.classement('org:2', faux).postures, []), 'posture sans source → pas affichée') +ok(eq(T.classement('org:3', faux).postures, []), 'posture hors vocabulaire → ignorée') +const rotor = T.classement('structure:f1-rotor') +ok(T.TYPES_ORGANISATION.includes(rotor.type) && rotor.postures.every((p) => T.POSTURES.includes(p)), `structure:f1-rotor lue (${rotor.type} · ${rotor.postures.join(', ')})`) +ok(T.classement('org:106').type === 'institution', 'org:106 (CNOA) → institution (nom : Ordre)') +ok(T.classement('org:37').type === 'syndicat', 'org:37 (UNSFA) → syndicat (nom)') +ok(eq(T.valeursPresentes(T.POSTURES, T.LIBELLES_POSTURE, ['participatif', 'bas-carbone', 'x']).map((v) => v.valeur), ['bas-carbone', 'participatif']), 'valeursPresentes : ordre du vocabulaire, inconnues ignorées') + +// ── useFicheAdapter : étiquettes type et postures ── +const s = reseaux.structures.find((x) => x.id === 'f1-rotor') +const mS = A.toMini(s, T.classement) +ok(eq(mS.etiquettes.type, [rotor.type]) && eq(mS.etiquettes.postures, rotor.postures), 'toMini(structure, classement) : étiquettes type et postures') +ok(mS.etiquettes.tags.length > 0 && mS.etiquettes.famille.length > 0, 'toMini : les étiquettes d’avant restent (tags, famille)') +const org = { Id: 106, nom: 'CNOA', echelle: 'National', tags_fonction: 'Juridique', territoire: 'Métropole' } +const mO = A.toMini(org, T.classement) +ok(eq(mO.etiquettes.type, ['institution']) && eq(mO.etiquettes.fonctions, ['Juridique']), 'toMini(org, classement) : type posé, fonctions inchangées') +ok(eq(A.toMini({ ...org, Id: 424242 }, T.classement).etiquettes.type, ['autre']), 'toMini : fiche absente du mapping → type autre') +ok(!('type' in A.toMini(org).etiquettes) && !('type' in [org].map(A.toMini)[0].etiquettes), 'toMini sans classeur (ou avec l’index de map) : rien d’ajouté') + +console.log(`\n${n - fail}/${n}`) +if (fail) process.exit(1) diff --git a/utils/taxonomie.ts b/utils/taxonomie.ts new file mode 100644 index 0000000..fd27eff --- /dev/null +++ b/utils/taxonomie.ts @@ -0,0 +1,107 @@ +/** + * taxonomie — B4a-M3. Le type d'organisation et les postures de chaque fiche de la carte, + * lus dans `data/taxonomie/organisations.json` (une entrée par identifiant : `org:`, + * `structure:`). Vocabulaire : la taxonomie N (`Cadrage/N-prompt-session-taxonomie-carte-unifiee.md`). + * + * Pur (aucune dépendance à Vue ni au routeur) : `scripts/test-taxonomie.mjs` le teste, + * `pages/index.vue` le passe à `toMini` (useFicheAdapter) qui en fait les étiquettes `type` + * et `postures` de chaque fiche. + * + * B4b portera ces deux champs dans NocoDB (`type_organisation`, `postures`) : les clés du + * fichier sont les identifiants stables des deux bases, rien d'autre ne change de forme. + */ +import mapping from '../data/taxonomie/organisations.json' + +export const TYPES_ORGANISATION = ['institution', 'association', 'syndicat', 'agence', 'formation', 'media', 'autre'] as const +export type TypeOrganisation = (typeof TYPES_ORGANISATION)[number] + +export const POSTURES = ['regenerative', 'bas-carbone', 'cooperative', 'patrimoine', 'ecoconstruction', 'low-tech', 'participatif'] as const +export type Posture = (typeof POSTURES)[number] + +/** Libellés des chips (valeur d'URL → texte). */ +export const LIBELLES_TYPE: Record = { + institution: 'Institution', + association: 'Association', + syndicat: 'Syndicat', + agence: 'Agence', + formation: 'Formation', + media: 'Média', + autre: 'Autre', +} + +export const LIBELLES_POSTURE: Record = { + regenerative: 'Régénératif', + 'bas-carbone': 'Bas carbone', + cooperative: 'Coopératif', + patrimoine: 'Patrimoine', + ecoconstruction: 'Écoconstruction', + 'low-tech': 'Low-tech', + participatif: 'Participatif', +} + +/** Une entrée du fichier. `nom` n'est là que pour qui corrige le fichier à la main. */ +export interface EntreeTaxonomie { + nom?: string + type_organisation: string + postures: string[] + source: { type_organisation: string; postures: Record } +} + +export interface MappingTaxonomie { + version: number + entrees: Record +} + +/** Ce qu'une fiche porte, toujours dans le vocabulaire. */ +export interface Classement { + type: TypeOrganisation + postures: Posture[] +} + +export const MAPPING = mapping as MappingTaxonomie + +export const idOrg = (id: number | string) => `org:${id}` +export const idStructure = (id: string) => `structure:${id}` + +const estType = (v: unknown): v is TypeOrganisation => (TYPES_ORGANISATION as readonly string[]).includes(v as string) +const estPosture = (v: unknown): v is Posture => (POSTURES as readonly string[]).includes(v as string) + +/** + * Classement d'un identifiant. Repli : un identifiant absent (fiche ajoutée après le + * mapping) ou un type hors vocabulaire vaut `autre` ; une posture hors vocabulaire ou + * sans source est ignorée (une posture ne s'affiche que si sa source est écrite). + */ +export function classement(id: string, m: MappingTaxonomie = MAPPING): Classement { + const e = m.entrees[id] + if (!e) return { type: 'autre', postures: [] } + const sources = e.source?.postures ?? {} + const postures = POSTURES.filter((p) => (e.postures ?? []).includes(p) && !!sources[p]) + return { type: estType(e.type_organisation) ? e.type_organisation : 'autre', postures } +} + +/** + * Écarts d'un mapping à la règle (liste vide = conforme) : type et postures dans le + * vocabulaire, une source pour le type et pour chaque posture, pas de posture en double. + */ +export function ecartsMapping(m: MappingTaxonomie): string[] { + const out: string[] = [] + for (const [id, e] of Object.entries(m.entrees)) { + if (!/^(org:\d+|structure:[a-z0-9-]+)$/.test(id)) out.push(`${id} : identifiant hors forme (org: ou structure:)`) + if (!estType(e.type_organisation)) out.push(`${id} : type « ${e.type_organisation} » hors vocabulaire`) + if (!e.source?.type_organisation?.trim()) out.push(`${id} : type sans source`) + const ps = e.postures ?? [] + if (new Set(ps).size !== ps.length) out.push(`${id} : posture en double`) + for (const p of ps) { + if (!estPosture(p)) out.push(`${id} : posture « ${p} » hors vocabulaire`) + if (!e.source?.postures?.[p]?.trim()) out.push(`${id} : posture « ${p} » sans source`) + } + for (const p of Object.keys(e.source?.postures ?? {})) if (!ps.includes(p)) out.push(`${id} : source pour « ${p} », absente de postures`) + } + return out +} + +/** Valeurs d'une dimension présentes dans des fiches, dans l'ordre du vocabulaire (chips sans zéro). */ +export function valeursPresentes(vocabulaire: readonly T[], libelles: Record, portees: Iterable): { valeur: T; libelle: string }[] { + const vues = new Set(portees) + return vocabulaire.filter((v) => vues.has(v)).map((v) => ({ valeur: v, libelle: libelles[v] })) +}