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 diff --git a/doc/dcat-ap/model.yml b/doc/dcat-ap/model.yml index 80cc66e50..c3ec4e916 100644 --- a/doc/dcat-ap/model.yml +++ b/doc/dcat-ap/model.yml @@ -65,6 +65,12 @@ classes: description: This property contains a name given to the Catalogue. This property can be repeated for parallel language versions of the name. min: 1 max: n + - name: collection type + term: adfi:collectionType + range: rdfs:Literal + description: This property defines if the dataset describes open data or interoperability tools + min: 1 + max: 1 recommended: - name: homepage term: foaf:homepage diff --git a/docker/nginx/www/ns/index.html b/docker/nginx/www/ns/index.html index f29ab7e9b..e511970d1 100644 --- a/docker/nginx/www/ns/index.html +++ b/docker/nginx/www/ns/index.html @@ -93,6 +93,12 @@