SEMICeu / iso-19139-to-dcat-ap

Reference XSLT-based implementation of GeoDCAT-AP
European Union Public License 1.2
15 stars 9 forks source link

How to deal with deprecated mappings #25

Closed andrea-perego closed 3 years ago

andrea-perego commented 3 years ago

GeoDCAT-AP 2.0.0 has deprecated a number of mappings, following the alignment with DCAT/DCAT-AP 2, and the terms defined in the GeoDCAT-AP namespace (the full list is in §A.2 of the GeoDCAT-AP 2.0.0 specification).

To support backward compatibility, the GeoDCAT-AP XSLT still uses these mappings, along with the new ones. This, however, adds noise in the output records, and it may not be fit for all use cases.

An option is to include in the XSLT a global parameter which can used to specify whether deprecated mappings must or must not be included in the output.

andrea-perego commented 3 years ago

The proposed revision has been implemented in PR https://github.com/SEMICeu/iso-19139-to-dcat-ap/pull/26

A global parameter $include-deprecated has been added, which takes as value either yes or no.

As it is a global parameter, its value (yes / no) can be set by the application running the XSLT.

andrea-perego commented 3 years ago

As no objections were raised, I will merge PR https://github.com/SEMICeu/iso-19139-to-dcat-ap/pull/26 and close this issue.