]> Pierre Choffet | Git repositories - wmo_to_wikidata.git/commitdiff
Disable closed stations into wdef
authorPierre Choffet <peuc@wanadoo.fr>
Thu, 30 Dec 2021 14:58:37 +0000 (09:58 -0500)
committerPierre Choffet <peuc@wanadoo.fr>
Thu, 30 Dec 2021 14:58:37 +0000 (09:58 -0500)
xslts/generate_wdef.xslt

index 379343d1d70759de71ce06097b05c7ee2382c94e..2cc40ecdf177a8d958bc3b9d45f238bcfa6a9b32 100644 (file)
        
        <xsl:template match="stations">
                <wdef:knowledge xmlns:wdef="https://purl.choffet.net/wdef">
-                       <xsl:apply-templates select="station[wigosStationIdentifiers/wigosStationIdentifier]" />
+                       <!--
+                         NOTE: Stations with dateClosed are excluded for now because labels
+                               contain the name the country they belongs to. Since we have no
+                               historical information in WMO database, we cannot ensure we use
+                               the good name/P17 reference without our own country list.
+                       -->
+                       <xsl:apply-templates select="station[wigosStationIdentifiers/wigosStationIdentifier and not(dateClosed)]" />
                </wdef:knowledge>
        </xsl:template>