Skip to content

2783 changes in identifier for oai pmh records#2786

Merged
lbownik merged 8 commits into
developfrom
2783_Changes_in_Identifier_for_OAI_PMH_records
May 21, 2025
Merged

2783 changes in identifier for oai pmh records#2786
lbownik merged 8 commits into
developfrom
2783_Changes_in_Identifier_for_OAI_PMH_records

Conversation

@lbownik

@lbownik lbownik commented May 20, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@rscipien rscipien assigned diasf and unassigned rscipien May 21, 2025
* https://www.openarchives.org/OAI/2.0/guidelines-oai-identifier.htm.
* eg (oai:www.wbc.poznan.pl:568432).
*/
UseNewPBIIdentifierScheme;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The identifier scheme is not PBI specific, right? It's an implementation of the OAI-PMH specification. So I would name it maybe UseOAIStrictIdentifierScheme instead, or similar.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

renamed

+ this.systemConfig.getDataverseServer()
+ "</repositoryIdentifier>"
+ "<delimiter>:</delimiter>"
+ "<sampleIdentifier>oai:example.org:doi%3A10.18150%2FAB1CD2</sampleIdentifier>"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: We could already use the the actual repository identifier instead of example.org.

private String getIdOf(final OAIRecord record) {
if (this.systemConfig.useNewPBIIdentifierScheme()) {
return "oai:" + this.systemConfig.getDataverseServer() + ':'
+ URLEncoder.encode(record.getGlobalId());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we use a local id instead? Well, the global id should always denote the same metadata item throughout its lifecyle, as we use it as well in links to datasets. So I guess this should be fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From #2783
"For object identifier we should use transformed persistent identifiers that we already use, so doi/hdl without forbidden characters."
I think it means global IDs.

@diasf diasf assigned lbownik and unassigned diasf May 21, 2025
@lbownik lbownik requested a review from diasf May 21, 2025 11:10
@lbownik lbownik force-pushed the 2783_Changes_in_Identifier_for_OAI_PMH_records branch from c939641 to df430ec Compare May 21, 2025 13:30
@lbownik lbownik merged commit b9ce7c4 into develop May 21, 2025
1 check passed
@lbownik lbownik deleted the 2783_Changes_in_Identifier_for_OAI_PMH_records branch May 21, 2025 13:43
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.

3 participants