<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Bonjour,<div class=""><br class=""></div><div class="">JOSM/Tag2link génère un lien pour les identifiants <b class="">ref:mhs=*</b></div><div class=""><br class=""></div><div class="">Sur la page commons du <a href="https://commons.wikimedia.org/wiki/Category:Phare_de_la_Vieille" class="">Phare de la Vieille</a>, les liens vers les fiches Mérimées fonctionnent.</div><div class="">Ce « miracle » est du au fait que les liens générés sont décrits dans la propriété <i class="">formatter URL</i> de wikidata :</div><div class="">Voici celle de « <a href="https://www.wikidata.org/wiki/Property:P380#P1630" class="">Mérimée ID</a> » </div><div class=""><br class=""></div><div class="">Peut-on envisager d’interroger wikidata pour générer un lien ?</div><div class=""><ul class=""><li class="">Soit à chaque génération de lien par le greffon ?</li><li class="">Soit périodiquement (ou manuellement par les développeurs) pour mettre à jour le <a href="https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml" class="">fichier de configuration de tag2link</a> ?</li></ul></div><div class=""><div>Ça permettrait aussi de rajouter des liens sans avoir à faire une pull request / publication du greffon / téléchargement de sa dernière version 😎</div><div><br class=""></div><div>Pour ça il faut récupérer la clé OSM correspondante :</div><div>Pour Mérimée ID c’est ici : <a href="https://www.wikidata.org/wiki/Property:P380#P1282" class="">OSM tag or key</a></div><div><br class=""></div><div>Voici la liste des Identifiants : <a href="https://w.wiki/AdT" class="">https://w.wiki/AdT</a></div><div class=""><br class=""></div><div>—</div><div>Yves</div><div><br class=""></div></div><div class="">Résultat le Phare "La Vieille"</div><div class=""><a href="http://www2.culture.gouv.fr/public/mistral/mersri_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=" class="">http://www2.culture.gouv.fr/public/mistral/mersri_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=</a><b class="">PA29000080</b></div><div class=""><b class=""><br class=""></b></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><h2 style="font-family: -webkit-standard;" class="">Désolé, l'interrogation de la base a échoué.</h2></div><div class=""><span style="font-family: -webkit-standard; font-size: medium;" class="">(err=812)</span></div><div class=""><span style="font-family: -webkit-standard; font-size: medium;" class="">Impossible d'ouvrir la base merimee</span></div></blockquote><div class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><br class="Apple-interchange-newline">
</div>
<a href="https://www.pop.culture.gouv.fr/notice/merimee/IA29000464" class="">https://www.pop.culture.gouv.fr/notice/merimee/IA29000464</a></div><div class=""><a href="https://www.pop.culture.gouv.fr/notice/merimee/PA29000080" class="">https://www.pop.culture.gouv.fr/notice/merimee/PA29000080</a></div><div class=""><br class=""></div><div class=""><div class=""><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><a href="https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml#L195" class="">195</a> <link</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">name=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"View Mérimée sheet of monument"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">href=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"<a href="https://www.pop.culture.gouv.fr/notice/merimee/%v%" class="">https://www.pop.culture.gouv.fr/notice/merimee/%v%</a>"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">/></span></div></div><div class=""><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><br class=""></span></div><div class="">Ça ne fonctionne pas pour les communes (mais au moins, on a un magnifique message d’erreur 😃😁):</div><div class=""><a href="https://www.pop.culture.gouv.fr/notice/merimee/29010" class="">https://www.pop.culture.gouv.fr/notice/merimee/29010</a></div><div class=""><br class=""></div><div class="">Mais on peut faire la recherche sur le nom :</div><div class=""><a href="https://www.pop.culture.gouv.fr/search/list?ou=%5B%22Lyon%22%5D" class="">https://www.pop.culture.gouv.fr/search/list?ou=%5B%22Lyon%22%5D</a></div><div class=""><br class=""></div><div class=""><a href="https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml#L198" class="">198</a> <span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><condition</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">k=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"ref:(FR:)?INSEE"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">v=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"\p{Digit}{5}"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">/></span></div><div class=""><a href="https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml#L199" class="">199</a> <span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><condition</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">k=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"name"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">v=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"*"</span><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">/></span></div><div class=""><a href="https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml#L200" class="">200</a> <span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><link</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">name=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"View Mérimée list for this municipality"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="na" style="color: rgb(0, 128, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">href=</span><span class="s" style="color: rgb(187, 136, 68); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">"<a href="https://www.pop.culture.gouv.fr/search/list?ou=" class="">https://www.pop.culture.gouv.fr/search/list?ou=</a>["%v%"]"</span><span style="font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);" class=""> </span><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">/></span></div><div class=""><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><br class=""></span></div><div class=""><span class="nt" style="color: rgb(0, 0, 128); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);"><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class="">Ou comme POP (Plateforme Ouverte du Patrimoine) est en version bêta, on peut donner son avis et suggérer d’autoriser une recherche par code INSEE 😉</div><div class=""><br class=""></div></span></div></body></html>