-
Notifications
You must be signed in to change notification settings - Fork 149
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
Solves URI from contact point #312
Conversation
Wouldn't it make more sense to store |
…ri-contact-point # Conflicts: # ckanext/dcat/profiles/euro_dcat_ap_scheming.py # ckanext/dcat/tests/profiles/dcat_ap_3/test_euro_dcatap_3_profile_serialize.py
ckanext/dcat/profiles/base.py
Outdated
@@ -465,7 +465,8 @@ def _contact_details(self, subject, predicate): | |||
|
|||
for agent in self.g.objects(subject, predicate): | |||
|
|||
contact["uri"] = str(agent) if isinstance(agent, term.URIRef) else "" | |||
contact["uri"] = (str(agent) if isinstance(agent, URIRef) | |||
else self._get_vcard_property_value(agent, VCARD.hasUID)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this as it was and not assign hasUID to uri
as discussed.
Otherwise this is good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted this part back and added also the new mapping to the documentation
Description:
This pull request introduces functionality to resolve URIs for contact details, specifically targeting the retrieval of more detailed information (e.g., ORCID). Previously, the
contact["uri"]
field defaulted to either a string or an empty value. With this update, we attempt to resolve the URI and retrieve associated metadata (e.g.,VCARD.hasUID
) when available.Changes:
_contact_details
method to resolve URIs where applicable.URIRef
, the system now attempts to fetch theVCARD.hasUID
property to enrich the URI field.Benefits: