ckanext-dcat
ckanext-dcat copied to clipboard
DCAT HVD 2.2.0
Context:
The HVD Spec (https://github.com/SEMICeu/DCAT-AP/tree/master/releases/2.2.0-hvd) has a few specific requirements:
- The Applicable Legislation ELI (http://data.europa.eu/eli/reg_impl/2023/138/oj) must be applied to Datasets and Distributions(resources) for HVD items. There may be distributions of a dataset that are not covered by the HVD, and they would not contain this value.
- The HVD Category must be part of a specific codelist.
- While the HVD profile should be included in the base catalog, there must be a catalog returning only hvd datasets and resources for reporting purposes.
Draft version of HVD 2.2.0 compliance
- Adds support for codelists as a concept, and uses them for the HVD Category
- Uses appropriate rdf typing to pass the shaql validation.
- Provides a read-only profile to provide a HVD only catalog at
{base url}/catalog.ttl?profiles=euro_dcat_ap_hvd_220
- Extracts resource_to_graph into overridable methods.
Todo:
- [ ] Shaql validation in automatic testing
- [ ] meta link to the HBD only catalog.
- [ ] HVD Category rdf is read on import, should be lazy