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

Last change on this file since 33035 was 33035, checked in by simon04, 8 years ago

JOSM/tag2link: Update memorialgenweb URL (patch by sidjy)

File size: 9.7 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 </src>
60
61 <src name="WHC">
62 <rule>
63 <condition k="ref:whc" v="([0-9]+)(?:-.*)?" />
64 <link name="View UNESCO sheet" href="http://whc.unesco.org/%lang(en,fr):en%/list/%v.1%" />
65 </rule>
66 </src>
67
68 <src name="Mapillary">
69 <rule>
70 <condition k="((ref|source):)?mapillary" v="[0-9a-zA-Z-_]+" />
71 <link name="View %name% image" href="http://www.mapillary.com/map/im/%v%" />
72 </rule>
73 </src>
74
75 <!-- Only for France -->
76
77 <src name="SANDRE" country-code="FR">
78 <rule>
79 <condition k="ref:(FR:)?sandre" v="[A-Z0-9-]{8}" />
80 <link name="View %name% sheet of river" href="http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=%v%" />
81 </rule>
82 </src>
83
84 <src name="INSEE" country-code="FR">
85 <rule>
86 <condition k="admin_level" v="8"/>
87 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{3})" id="ref"/>
88 <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%" />
89 <link name="View %name% sheet on osm.fr" href="http://openstreetmap.fr/outils/etat-commune?insee=%ref.v%" />
90 </rule>
91 <rule>
92 <condition k="political_division" v="FR:canton"/>
93 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{2})" id="ref"/>
94 <link name="View %name% map of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_comcan.asp?codecan=%ref.v%" />
95 <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%" />
96 </rule>
97 <rule>
98 <condition k="admin_level" v="7"/>
99 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{1})" id="ref"/>
100 <link name="View %name% map of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_canarr.asp?codearr=%ref.v%" />
101 <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%" />
102 </rule>
103 <rule>
104 <condition k="admin_level" v="6"/>
105 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
106 <link name="View %name% map of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_arrdep.asp?codedep=%ref.v%" />
107 <link name="View %name% list of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/arrdep.asp?codedep=%ref.v%" />
108 </rule>
109 <rule>
110 <condition k="admin_level" v="4"/>
111 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
112 <link name="View %name% map of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_depreg.asp?codereg=%ref.v%" />
113 <link name="View %name% list of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/depreg.asp?codereg=%ref.v%" />
114 </rule>
115 <rule>
116 <condition k="admin_level" v="2"/>
117 <condition k="name" v="France*"/>
118 <link name="View %name% map of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_regions.asp" />
119 <link name="View %name% list of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/region.asp" />
120 </rule>
121 </src>
122
123 <src name="CEF" country-code="FR">
124 <rule>
125 <condition k="ref:(FR:)?CEF" v="[A-Z0-9_]{8}" />
126 <link name="View %name% sheet of church" href="http://egliseinfo.catholique.fr/#!lieu:%v%" />
127 </rule>
128 </src>
129
130 <src name="MHS" country-code="FR">
131 <rule>
132 <condition k="ref:(FR:)?mhs" v="\p{Upper}{2}\p{Digit}{8}" />
133 <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%" />
134 </rule>
135 <rule>
136 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{5}" />
137 <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%" />
138 </rule>
139 </src>
140
141 <src name="IGN" country-code="FR">
142 <!--
143 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
144 -->
145 <rule>
146 <condition k="man_made" v="survey_point" />
147 <condition k="source" v="©IGN .*" />
148 <condition k="ref" v="(\p{Digit}{7}) - ." id="ref" />
149 <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%" />
150 <!-- <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=visugeod" method="POST" >
151 <param name="h_panier" value="pdf" />
152 <param name="%ref.v.1%" value="on" />
153 <header name="Content-type" value="application/x-www-form-urlencoded" />
154 </link>-->
155 </rule>
156 <rule>
157 <condition k="site" v="geodesic" />
158 <condition k="source" v="©IGN .*" />
159 <condition k="ref" v="\p{Digit}{7}" id="ref" />
160 <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%" />
161 </rule>
162 </src>
163
164 <src name="Éducation Nationale" country-code="FR">
165 <rule>
166 <condition k="ref:(FR:)?UAI" />
167 <link name="View UAI sheet of school/college" href="http://www.education.gouv.fr/pid24302/annuaire-resultat-recherche.html?lycee_name=%v%" />
168 </rule>
169 </src>
170
171 <!-- social facility -->
172 <src name="FINESS" country-code="FR">
173 <rule>
174 <condition k="ref:(FR:)?FINESS" v="[A-Z0-9-]{8,9}" />
175 <link name="View %name% sheet of hospital/home" href="http://finess.sante.gouv.fr/finess/jsp/actionDetailEtablissement.do?noFiness=%v%" />
176 </rule>
177 </src>
178
179 <src name="NAF" country-code="FR">
180 <rule>
181 <condition k="ref:FR:NAF" v="[A-Z0-9-]{5}" />
182 <link name="View explanation of %name% code" href="http://www.rouen.cci.fr/outils/ape/Naf_liste.asp?param=2&amp;code=%v%" />
183 </rule>
184 </src>
185
186 <src name="SIRET" country-code="FR">
187 <rule>
188 <condition k="ref:FR:SIRET" v="(\p{Digit}{9})([0-9-]{5})" />
189 <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%" />
190 </rule>
191 </src>
192
193 <src name="La Poste" country-code="FR">
194 <rule>
195 <condition k="ref:FR:LaPoste" v="[0-9]{5}[A-Z]" />
196 <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%" />
197 </rule>
198 </src>
199
200 <src name="MemorialGenWeb" country-code="FR">
201 <rule>
202 <condition k="ref:(FR:)?MemorialGenWeb" v="[0-9]+" />
203 <link name="View %name% sheet of memorial" href="http://www.memorialgenweb.org/memorial3/html/fr/resultcommune.php?idsource=%v%" />
204 </rule>
205 </src>
206
207</tag2link>
Note: See TracBrowser for help on using the repository browser.