Skip to content

feat(rdf): support serialization of DatasetSeries from RDF and link c… #350

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

hcvdwerf
Copy link
Contributor

@hcvdwerf hcvdwerf commented Jun 5, 2025

@amercader I created this pull request to make serialisation of dataseries possible into ckan model

What I have done:

1. Enabling DatasetSeries Serialization

You extended CKAN's DCAT RDF support to correctly serialize and parse datasets of type dcat:DatasetSeries based on DCAT-AP 3.0:

  • Identified where DatasetSeries type detection happens via RDF type triple (rdf:type dcat:DatasetSeries).

  • Implemented logic in EuropeanDCATAP3Profile.parse_dataset to:

    • Set "type": "dataset_series" if triple is present.
    • Populate series_order_field and series_order_type with default fields

2. Handling in_series Field Extraction and Linking

I added logic to ensure dataset membership in a series is handled cleanly:

  • Centralized the logic to extract dcat:inSeries references in the main datasets() function (outside parse_dataset()).
  • Used a series_mapping (via guid) to resolve URIs to internal CKAN id values.

3. Scheming dataseries

I added a prorperty into the scheming dataseries YAML for:

  • series_order_field , series_order_type and dataset_series_in_series

  • Clarified that these require:

    convert: convert_to_extras

check ckan/ckanext-dataset-series#9
to persist properly as extras.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant