Conversation
minottic
left a comment
There was a problem hiding this comment.
LGTM, thanks!
I am wondering if it's relatedIdentifierType might be valuable? Apparently, e.g. for DOIs, that's useful later for datacite to count citations and might become valuable when we publish the dataset?
Thanks for the review! I think this is a good idea. But we can indeed align it more closely with DataCite. So we can remove the url field, as @HayenNico suggests, rename We could add an optional "relationships": [
{
"relationship": "IsReferencedBy",
"relatedEntityType": "Logbook",
"externalId": "6895bea625f055bca783dfdd", // id of the related entity in the external system, opaque for SciCat
"relatedIdentifier": "https://scilog.development.psi.ch/logbooks/6895bea625f055bca783dfdd",
"relatedIdentifierType": "URL"
}
]Question: As we are renaming the fields, do we need a migration script? Or we can do without, as it seems the class wasn't used before |
…tedIdentifierType and targetId, remove field url
|
It looks good to me. |
Thanks a lot! Yes the DataCite names were quite verbose, I dropped the For SciCat entities, I have proposed using So we could express a derived dataset relationship as: {
"identifier": "PID.SAMPLE.PREFIX/psi_ds3",
"identifierType": "Local",
"relationship": "IsDerivedFrom",
"entityType": "Dataset"
}I added this in the documentation of the |
Description
Add fields to relationship schema used by
relationshipsfield in the dataset schema.Testing:
PATCH /api/v4/datasets/:pid
{ "relationships": [ { "identifier": "https://scilog.development.psi.ch/logbooks/6895bea625f055bca783dfdd", "identifierType": "URL", "entityType": "Logbook", "externalId": "6895bea625f055bca783dfdd" }, { "identifier": "10.1016/j.epsl.2011.11.037", "identifierType": "DOI", "entityType": "JournalArticle" } ] }Updated dataset contains:
A corresponding frontend feature (widget / tab on dataset detail page) will follow.
Motivation
Previously, RelationshipClass was dataset specific. However, there is a need to link to related entities outside of SciCat, e.g. a SciLog logbook.
So we add
relatedEntityType(inspired by datacite's resourceTypeGeneral) . The existingrelationshipfield is roughly relationTypeFixes
Changes:
Tests included
Documentation
official documentation info