From 8ee666bb2b80effec763bcbd8e2464f5e8a9d26b Mon Sep 17 00:00:00 2001 From: Jari Voutilainen Date: Tue, 10 Dec 2024 12:55:31 +0200 Subject: [PATCH] AV-2397: Add collection type to dcat profile --- ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py b/ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py index eeaf8714b..815021a03 100644 --- a/ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py +++ b/ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py @@ -573,6 +573,9 @@ def graph_from_dataset(self, dataset_dict, dataset_ref): issued_date = Literal(date_released, datatype=XSD.date) g.add((dataset_ref, DCT.issued, issued_date)) + # adfi:collectionType + g.add((dataset_ref, ADFI.collectionType, Literal(dataset_dict.get('collection_type')) )) + def graph_from_catalog(self, catalog_dict, catalog_ref): # Fetch organization list for graph_from_dataset to use