Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AV-2397: Add collection type to dcat profile #2497

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
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
Loading