-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harvester / Simple URL / ODS / Improve mapping
Follow up of #7059 * Add elements taking into account the API version 1 or 2 * Do not put free text in an ISO field which is an enumeration (which avoids to mix facet icons and translations for topic category) * Provide a mapping based on default ODS values for french and english * Add a dedicated keyword block with the free text values
- Loading branch information
1 parent
39838a9
commit c2a3f5f
Showing
3 changed files
with
155 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/odstheme-mapping.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<xsl:stylesheet version="2.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
exclude-result-prefixes="#all"> | ||
|
||
<xsl:variable name="odsThemeToIsoTopic" as="node()*"> | ||
<health> | ||
<theme>Santé</theme> | ||
<theme>Health</theme> | ||
</health> | ||
<environment> | ||
<theme>Environnement</theme> | ||
<theme>Environment</theme> | ||
</environment> | ||
<transportation> | ||
<theme>Transports, Déplacements</theme> | ||
<theme>Transport, Movements</theme> | ||
</transportation> | ||
<structure> | ||
<theme>Aménagement du territoire, Urbanisme, Bâtiments, Equipements, Habitat</theme> | ||
<theme>Spatial planning, Town planning, Buildings, Equipment, Housing</theme> | ||
</structure> | ||
<economy> | ||
<theme>Economie, Entreprise, PME, Développement économique, Emploi</theme> | ||
<theme>Economy, Business, SME, Economic development, Employment</theme> | ||
</economy> | ||
<society> | ||
<theme>Patrimoine culturel</theme> | ||
<theme>Culture, Heritage</theme> | ||
<theme>Education, Formation, Recherche, Enseignement</theme> | ||
<theme>Education, Training, Research, Teaching</theme> | ||
<theme>Administration, Gouvernement, Finances publiques, Citoyenneté</theme> | ||
<theme>Administration, Government, Public finances, Citizenship</theme> | ||
<theme>Justice, Sécurité, Police, Criminalité</theme> | ||
<theme>Justice, Safety, Police, Crime</theme> | ||
<theme>Sports, Loisirs</theme> | ||
<theme>Sports, Leisure</theme> | ||
<theme>Hébergement, industrie hôtelière</theme> | ||
<theme>Accommodation, Hospitality Industry</theme> | ||
<theme>Services sociaux</theme> | ||
<theme>Services, Social</theme> | ||
</society> | ||
</xsl:variable> | ||
</xsl:stylesheet> |
123 changes: 58 additions & 65 deletions
123
schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/protocol-mapping.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,64 @@ | ||
<xsl:stylesheet version="2.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:dct="http://purl.org/dc/terms/" | ||
xmlns:dcat="http://www.w3.org/ns/dcat#" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
exclude-result-prefixes="#all"> | ||
|
||
<xsl:output method="xml" indent="yes"/> | ||
<xsl:strip-space elements="*"/> | ||
|
||
<xsl:variable name="format-protocol-mapping"> | ||
<entry> | ||
<format>csv</format> | ||
<protocol>WWW:DOWNLOAD:text/csv</protocol> | ||
</entry> | ||
<entry> | ||
<format>geojson</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.geo+json</protocol> | ||
</entry> | ||
<entry> | ||
<format>kml</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.google-earth.kml+xml</protocol> | ||
</entry> | ||
<entry> | ||
<format>zip</format> | ||
<protocol>WWW:DOWNLOAD:application/zip</protocol> | ||
</entry> | ||
<entry> | ||
<format>shapefile</format> | ||
<format>shp</format> | ||
<protocol>WWW:DOWNLOAD:x-gis/x-shapefile</protocol> | ||
</entry> | ||
<entry> | ||
<format>json</format> | ||
<protocol>WWW:DOWNLOAD:application/json</protocol> | ||
</entry> | ||
<entry> | ||
<format>pdf</format> | ||
<protocol>WWW:DOWNLOAD:application/pdf</protocol> | ||
</entry> | ||
<entry> | ||
<format>xls</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.ms-excel</protocol> | ||
</entry> | ||
<entry> | ||
<format>xlsx</format> | ||
<format>excel</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</protocol> | ||
</entry> | ||
<entry> | ||
<format>rtf</format> | ||
<protocol>WWW:DOWNLOAD:application/rtf</protocol> | ||
</entry> | ||
<entry> | ||
<format>web page</format> | ||
<format>html</format> | ||
<format>arcgis</format> | ||
<protocol>WWW:LINK-1.0-http--link</protocol> | ||
</entry> | ||
<entry> | ||
<format>wms</format> | ||
<protocol>OGC:WMS</protocol> | ||
</entry> | ||
<entry> | ||
<format>wfs</format> | ||
<protocol>OGC:WFS</protocol> | ||
</entry> | ||
</xsl:variable> | ||
<xsl:variable name="format-protocol-mapping"> | ||
<entry> | ||
<format>csv</format> | ||
<protocol>WWW:DOWNLOAD:text/csv</protocol> | ||
</entry> | ||
<entry> | ||
<format>geojson</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.geo+json</protocol> | ||
</entry> | ||
<entry> | ||
<format>kml</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.google-earth.kml+xml</protocol> | ||
</entry> | ||
<entry> | ||
<format>zip</format> | ||
<protocol>WWW:DOWNLOAD:application/zip</protocol> | ||
</entry> | ||
<entry> | ||
<format>shapefile</format> | ||
<format>shp</format> | ||
<protocol>WWW:DOWNLOAD:x-gis/x-shapefile</protocol> | ||
</entry> | ||
<entry> | ||
<format>json</format> | ||
<protocol>WWW:DOWNLOAD:application/json</protocol> | ||
</entry> | ||
<entry> | ||
<format>pdf</format> | ||
<protocol>WWW:DOWNLOAD:application/pdf</protocol> | ||
</entry> | ||
<entry> | ||
<format>xls</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.ms-excel</protocol> | ||
</entry> | ||
<entry> | ||
<format>xlsx</format> | ||
<format>excel</format> | ||
<protocol>WWW:DOWNLOAD:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</protocol> | ||
</entry> | ||
<entry> | ||
<format>rtf</format> | ||
<protocol>WWW:DOWNLOAD:application/rtf</protocol> | ||
</entry> | ||
<entry> | ||
<format>web page</format> | ||
<format>html</format> | ||
<format>arcgis</format> | ||
<protocol>WWW:LINK-1.0-http--link</protocol> | ||
</entry> | ||
<entry> | ||
<format>wms</format> | ||
<protocol>OGC:WMS</protocol> | ||
</entry> | ||
<entry> | ||
<format>wfs</format> | ||
<protocol>OGC:WFS</protocol> | ||
</entry> | ||
</xsl:variable> | ||
|
||
</xsl:stylesheet> |