Skip to content

Commit

Permalink
AV-2397: Add collection type to dcat profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Dec 10, 2024
1 parent d48ff95 commit 8ee666b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')) ))

Check warning on line 577 in ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py

View check run for this annotation

Codecov / codecov/patch

ckan/ckanext/ckanext-ytp_main/ckanext/ytp/dcat.py#L577

Added line #L577 was not covered by tests

def graph_from_catalog(self, catalog_dict, catalog_ref):
# Fetch organization list for graph_from_dataset to use

Expand Down

0 comments on commit 8ee666b

Please sign in to comment.