feat(rdf): support serialization of DatasetSeries from RDF and link c…#350
Open
hcvdwerf wants to merge 12 commits intockan:masterfrom
Open
feat(rdf): support serialization of DatasetSeries from RDF and link c…#350hcvdwerf wants to merge 12 commits intockan:masterfrom
hcvdwerf wants to merge 12 commits intockan:masterfrom
Conversation
Merged
…extension can be used
…tion' into support-RDF-dataseries-serialisation
4e1a6e6 to
245aa59
Compare
…ort-RDF-dataseries-serialisation
Seperate branch multi lingual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@amercader I created this pull request to make serialisation of dataseries possible into ckan model
What I have done:
1. Enabling
DatasetSeriesSerializationYou extended CKAN's DCAT RDF support to correctly serialize and parse datasets of type
dcat:DatasetSeriesbased on DCAT-AP 3.0:Identified where
DatasetSeriestype detection happens via RDF type triple (rdf:type dcat:DatasetSeries).Implemented logic in
EuropeanDCATAP3Profile.parse_datasetto:"type": "dataset_series"if triple is present.series_order_fieldandseries_order_typewith default fields2. Handling
in_seriesField Extraction and LinkingI added logic to ensure dataset membership in a series is handled cleanly:
dcat:inSeriesreferences in the maindatasets()function (outsideparse_dataset()).series_mapping(viaguid) to resolve URIs to internal CKANidvalues.3. Scheming dataseries
I added a prorperty into the scheming dataseries YAML for:
series_order_field,series_order_typeanddataset_series_in_seriesClarified that these require:
check ckan/ckanext-dataset-series#9
to persist properly as
extras.