Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter / DCAT / Add some more media type mapping to EU vocabuary #113

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@

<xsl:variable name="formatLabelToUri"
as="node()*">
<!-- TODO: application/x-worldfile -->
<entry key="http://publications.europa.eu/resource/authority/file-type/GRID_ASCII">aaigrid</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GRID">aig</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/ATOM">atom</entry>
Expand Down Expand Up @@ -134,7 +133,8 @@
<entry key="http://publications.europa.eu/resource/authority/file-type/GPKG">geopackage</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/RSS">georss</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/TIFF">image/tiff</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/TIFF">geotiff</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GeoTIFF">geotiff</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GeoTIFF">application/x-worldfile</entry>
Comment on lines +136 to +137

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 keys are the same, is this correct?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the mapping here is to convert distribution format or "WWW:DOWNLOAD:format" protocol values to the EU vocabulary. So various values may be used. Here geotiff are sometimes using application/x-worldfile for the world file.

<entry key="http://publications.europa.eu/resource/authority/file-type/GIF">gif</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GML">gml</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GML">application/gml+xml</entry>
Expand All @@ -154,7 +154,7 @@
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON">json</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON">OGC API - Coverages</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON">OGC API - Records</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON">OGC API - Features</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/GEOJSON">OGC API - Features</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON_LD">json-ld</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON_LD">json_ld</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/JSON_LD">jsonld</entry>
Expand All @@ -181,6 +181,7 @@
<entry key="http://publications.europa.eu/resource/authority/file-type/GML">ogc:wps</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/TXT">pc-axis</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/PDF">pdf</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/PDF">application/pdf</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/MDB">pgeo</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/PNG">png</entry>
<entry key="http://publications.europa.eu/resource/authority/file-type/RAR">rar</entry>
Expand Down