Skip to content

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

Open
hcvdwerf wants to merge 12 commits intockan:masterfrom
GenomicDataInfrastructure:support-RDF-dataseries-serialisation
Open

feat(rdf): support serialization of DatasetSeries from RDF and link c…#350
hcvdwerf wants to merge 12 commits intockan:masterfrom
GenomicDataInfrastructure:support-RDF-dataseries-serialisation

Conversation

@hcvdwerf
Copy link
Copy Markdown
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.

@amercader amercader mentioned this pull request Jul 29, 2025
@hcvdwerf hcvdwerf force-pushed the support-RDF-dataseries-serialisation branch from 4e1a6e6 to 245aa59 Compare September 29, 2025 15:09
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