source: osm/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml@ 33382

Last change on this file since 33382 was 33382, checked in by donvip, 7 years ago

fix #josm14184 - fix #josm14207 - fix dead link + add wikispecies link

File size: 9.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3// JOSM tag2link plugin.
4// Copyright (C) 2011-2015 Don-vip & FrViPofm
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 3 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19<tag2link>
20
21 <!-- Global -->
22
23 <src name="Common">
24 <rule>
25 <condition k="(contact:)?website" />
26 <link name="View website" href="%v%" />
27 </rule>
28 <rule>
29 <condition k="url" />
30 <link name="View URL" href="%v%" />
31 </rule>
32 <rule>
33 <condition k="(contact:)?email" v="[^@]+@[^@]+" />
34 <link name="Send Email" href="mailto:%v%" />
35 </rule>
36 <rule>
37 <condition k="source" v="(http:|https:).*"/>
38 <link name="View website" href="%v%" />
39 </rule>
40 <rule>
41 <condition k="image" v="(http:|https:).*"/>
42 <link name="View image" href="%v%" />
43 </rule>
44 <rule>
45 <condition k="image" v="File:.*"/>
46 <link name="View image" href="https://commons.wikimedia.org/wiki/%v%" />
47 </rule>
48 </src>
49
50 <src name="Wikipedia">
51 <rule>
52 <condition k="wikipedia(?::(\p{Lower}{2,}))?" v="(?:(\p{Lower}{2,}):)?(.*)" />
53 <link name="View %name% article" href="https://%k.1:v.1:en%.wikipedia.org/wiki/%v.2:v.1%" />
54 </rule>
55 <rule>
56 <condition k="wikidata" />
57 <link name="View Wikidata page" href="https://www.wikidata.org/wiki/%v%" />
58 </rule>
59 <rule>
60 <condition k="species"/>
61 <link name="View Wikispecies page" href="https://species.wikimedia.org/wiki/%v%" />
62 </rule>
63 </src>
64
65 <src name="WHC">
66 <rule>
67 <condition k="ref:whc" v="([0-9]+)(?:-.*)?" />
68 <link name="View UNESCO sheet" href="http://whc.unesco.org/%lang(en,fr):en%/list/%v.1%" />
69 </rule>
70 </src>
71
72 <src name="Mapillary">
73 <rule>
74 <condition k="((ref|source):)?mapillary" v="[0-9a-zA-Z-_]+" />
75 <link name="View %name% image" href="http://www.mapillary.com/map/im/%v%" />
76 </rule>
77 </src>
78
79 <!-- Only for France -->
80
81 <src name="SANDRE" country-code="FR">
82 <rule>
83 <condition k="ref:(FR:)?sandre" v="[A-Z0-9-]{8}" />
84 <link name="View %name% sheet of river" href="http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=%v%" />
85 </rule>
86 </src>
87
88 <src name="INSEE" country-code="FR">
89 <rule>
90 <condition k="admin_level" v="8"/>
91 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{3})" id="ref"/>
92 <link name="View %name% municipality sheet" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/fichecommunale.asp?codedep=%ref.v.1%&amp;codecom=%ref.v.2%" />
93 <link name="View %name% sheet on osm.fr" href="http://openstreetmap.fr/outils/etat-commune?insee=%ref.v%" />
94 </rule>
95 <rule>
96 <condition k="political_division" v="FR:canton"/>
97 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{2})" id="ref"/>
98 <link name="View %name% map of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_comcan.asp?codecan=%ref.v%" />
99 <link name="View %name% list of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/comcan.asp?codedep={ref.v.1}&amp;codecan=%ref.v.2%" />
100 </rule>
101 <rule>
102 <condition k="admin_level" v="7"/>
103 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{1})" id="ref"/>
104 <link name="View %name% map of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_canarr.asp?codearr=%ref.v%" />
105 <link name="View %name% list of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/canarr.asp?codedep=%ref.v.1%&amp;codearr=%ref.v.2%" />
106 </rule>
107 <rule>
108 <condition k="admin_level" v="6"/>
109 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
110 <link name="View %name% map of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_arrdep.asp?codedep=%ref.v%" />
111 <link name="View %name% list of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/arrdep.asp?codedep=%ref.v%" />
112 </rule>
113 <rule>
114 <condition k="admin_level" v="4"/>
115 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
116 <link name="View %name% map of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_depreg.asp?codereg=%ref.v%" />
117 <link name="View %name% list of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/depreg.asp?codereg=%ref.v%" />
118 </rule>
119 <rule>
120 <condition k="admin_level" v="2"/>
121 <condition k="name" v="France*"/>
122 <link name="View %name% map of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_regions.asp" />
123 <link name="View %name% list of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/region.asp" />
124 </rule>
125 </src>
126
127 <src name="CEF" country-code="FR">
128 <rule>
129 <condition k="ref:(FR:)?CEF" v="[A-Z0-9_]{8}" />
130 <link name="View %name% sheet of church" href="http://egliseinfo.catholique.fr/#!lieu:%v%" />
131 </rule>
132 </src>
133
134 <src name="MHS" country-code="FR">
135 <rule>
136 <condition k="ref:(FR:)?mhs" v="\p{Upper}{2}\p{Digit}{8}" />
137 <link name="View Mérimée sheet of monument" href="http://www.culture.gouv.fr/public/mistral/mersri_fr?ACTION=CHERCHER&amp;FIELD_1=REF&amp;VALUE_1=%v%" />
138 </rule>
139 <rule>
140 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{5}" />
141 <link name="View Mérimée list for this municipality" href="http://www.culture.gouv.fr/public/mistral/merimee_fr?ACTION=CHERCHER&amp;FIELD_1=cmer1&amp;VALUE_1=%v%" />
142 </rule>
143 </src>
144
145 <src name="IGN" country-code="FR">
146 <!--
147 http://geodesie.ign.fr/fiches/index.php?module=e&action=fichepdf&source=carte&sit_no=4509302&geo_cid=0&lambda=1.90024744&phi=48.03041621
148 -->
149 <rule>
150 <condition k="man_made" v="survey_point" />
151 <condition k="source" v="©IGN .*" />
152 <condition k="ref" v="(\p{Digit}{7}) - ." id="ref" />
153 <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=fichepdf&amp;source=carte&amp;sit_no=%ref.v.1%" />
154 <!-- <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=visugeod" method="POST" >
155 <param name="h_panier" value="pdf" />
156 <param name="%ref.v.1%" value="on" />
157 <header name="Content-type" value="application/x-www-form-urlencoded" />
158 </link>-->
159 </rule>
160 <rule>
161 <condition k="site" v="geodesic" />
162 <condition k="source" v="©IGN .*" />
163 <condition k="ref" v="\p{Digit}{7}" id="ref" />
164 <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=fichepdf&amp;source=carte&amp;sit_no=%ref.v.1%" />
165 </rule>
166 </src>
167
168 <src name="Éducation Nationale" country-code="FR">
169 <rule>
170 <condition k="ref:(FR:)?UAI" />
171 <link name="View UAI sheet of school/college" href="http://www.education.gouv.fr/pid24302/annuaire-resultat-recherche.html?lycee_name=%v%" />
172 </rule>
173 </src>
174
175 <!-- social facility -->
176 <src name="FINESS" country-code="FR">
177 <rule>
178 <condition k="ref:(FR:)?FINESS" v="[A-Z0-9-]{8,9}" />
179 <link name="View %name% sheet of hospital/home" href="http://finess.sante.gouv.fr/finess/jsp/actionDetailEtablissement.do?noFiness=%v%" />
180 </rule>
181 </src>
182
183 <src name="NAF" country-code="FR">
184 <rule>
185 <condition k="ref:FR:NAF" v="[A-Z0-9-]{5}" />
186 <link name="View INSEE explanation of %name% code" href="http://recherche-naf.insee.fr/SIRENET_ClassesNaf/%v%.htm" />
187 </rule>
188 </src>
189
190 <src name="SIRET" country-code="FR">
191 <rule>
192 <condition k="ref:FR:SIRET" v="(\p{Digit}{9})([0-9-]{5})" />
193 <link name="Get identification card (pdf) for this establishment" href="http://avis-situation-sirene.insee.fr/avisitu/AvisPdf.do?nic=%v.2%&amp;siren=%v.1%" />
194 </rule>
195 </src>
196
197 <src name="La Poste" country-code="FR">
198 <rule>
199 <condition k="ref:FR:LaPoste" v="[0-9]{5}[A-Z]" />
200 <link name="View %name% page of this post office" href="http://www.laposte.fr/particulier/outils/trouver-un-bureau-de-poste/bureau-detail/%v%/%v%" />
201 </rule>
202 </src>
203
204 <src name="MemorialGenWeb" country-code="FR">
205 <rule>
206 <condition k="ref:(FR:)?MemorialGenWeb" v="[0-9]+" />
207 <link name="View %name% sheet of memorial" href="http://www.memorialgenweb.org/memorial3/html/fr/resultcommune.php?idsource=%v%" />
208 </rule>
209 </src>
210
211</tag2link>
Note: See TracBrowser for help on using the repository browser.