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

Support for multiple agents when parsing #317

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Support for multiple agents when parsing #317

merged 3 commits into from
Oct 29, 2024

Conversation

amercader
Copy link
Member

Fixes #307

With the introduction of scheming repeating subfields for fields like publisher, creator, contact etc we added support for serializing (i.e. CKAN -> DCAT) but not for parsing. The logic for parsing has now been updated to support multiple instances by default. The behaviour in the legacy profiles of just keeping one of the instances has been kept for backwards compatibility but when using dcat_ap_scheming and dcat_ap_3 profiles multiple instances of dct:publisher (although this goes against the DCAT AP spec), dct:creator and dcat:contactPoint are supported.

The logic for parsing iand serializing has been updated to support multiple
instances by default. The behaviour in the legacy profiles of just
keeping one of the instances has been kept for backwards compatibility
but when using `dcat_ap_scheming` and `dcat_ap_3` profiles multiple
instances of dct:publisher (although this goes against the DCAT AP spec)
and dct:creator are supported.
dct:title "Dataset 1" ;
dct:description "This is a dataset" ;
dcat:contactPoint [ a vcard:Kind ;
vcard:fn "Test Contact 1" ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you for example add v:hasUID https://orcid.org/0000-0002-9095-9201 ; for the different contacts? Then you know also that is working

dct:description "This is a dataset" ;
dct:publisher [ a org:Organization ;
skos:prefLabel "Test Publisher 1" ;
vcard:hasEmail <mailto:publisher1@example.org> ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here with for example: dct:identifier "https://orcid.org/0000-0002-9095-9201" ;

@amercader amercader merged commit 1e945b6 into master Oct 29, 2024
8 checks passed
@amercader amercader deleted the multiple-agents branch October 29, 2024 09:41
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.

Support for multiple contact points/publishers
2 participants