Skip to content

Commit

Permalink
Merge pull request #2497 from vrk-kpa/AV-2397_add_collection_type_to_…
Browse files Browse the repository at this point in the history
…dcat_profile

AV-2397: Add collection type to dcat profile
  • Loading branch information
Zharktas authored Dec 10, 2024
2 parents 89f85a6 + 8ee666b commit 8c632b2
Show file tree
Hide file tree
Showing 3 changed files with 15 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')) ))

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

Expand Down
6 changes: 6 additions & 0 deletions doc/dcat-ap/model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions docker/nginx/www/ns/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ <h4>Properties</h4>
<td>1..n</td>
<td>This property contains a name given to the Catalogue. This property can be repeated for parallel language versions of the name.</td>
</tr>
<tr>
<td>adfi:collectionType </td>
<td>rdfs:Literal</td>
<td>1..1</td>
<td>This property defines if the dataset describes open data or interoperability tools</td>
</tr>

</tbody>
</table>
Expand Down

0 comments on commit 8c632b2

Please sign in to comment.