Ajout des données JSON-LD acheteur et fix make_org_jsonld #66

This commit is contained in:
Colin Maudry
2026-01-28 13:32:08 +01:00
parent 6e992e0a6e
commit 07bdcf232d
3 changed files with 63 additions and 6 deletions
+2 -1
View File
@@ -727,7 +727,8 @@ def make_org_jsonld(org_id, org_type, org_name=None, type_org_id="SIRET") -> dic
jsonld = {
"@type": org_types[org_type],
"name": org_name,
"url": f"https://decp.info/titulaires/{org_id}",
"url": f"https://decp.info/{org_type}s/{org_id}",
"sameAs": f"https://annuaire-entreprises.data.gouv.fr/etablissement/{org_id}",
"identifier": {
"@type": "PropertyValue",
"propertyID": type_org_id.lower(),