Add support for dpid and IPFS for DeSci Labs Support#573
Open
yradwan147 wants to merge 2 commits intopangaea-data-publisher:masterfrom
Open
Add support for dpid and IPFS for DeSci Labs Support#573yradwan147 wants to merge 2 commits intopangaea-data-publisher:masterfrom
yradwan147 wants to merge 2 commits intopangaea-data-publisher:masterfrom
Conversation
…ers (dPID) and InterPlanetary File System Content Identifiers (IPFS CID). Added methods for validation and extraction of dPID and IPFS CID, along with corresponding gateway domains.
…proved dPID handling and IPFS gateway reliability. Removed localhost handling in dPID normalization and refined validation logic.
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.
Description
Enhance IdentifierHelper to support Decentralized Persistent Identifiers (dPID) and InterPlanetary File System Content Identifiers (IPFS CID). Added methods for validation and extraction of dPID and IPFS CID, along with corresponding gateway domains.
Changes include:
dpidandipfsidentifier types toIDENTIFIER_TYPESdictionaryIPFS_GATEWAYSlist with DeSci-optimized gateway ordering (ipfs.desci.com, pub.desci.com, dweb.link, ipfs.io, cloudflare-ipfs.com, gateway.pinata.cloud)DPID_DOMAINSlist (dpid.org, beta.dpid.org, dev.dpid.org)is_dpid()andextract_dpid_id()methods supportingdpid://scheme and dpid.org URLsis_ipfs_cid()andextract_ipfs_cid()methods supportingipfs://scheme, gateway URLs, and raw CIDv0/CIDv1 identifiersrepodois.yamlwith new DOIsMotivation and context
This enhancement adds support for decentralized science (DeSci) identifier standards to F-UJI, enabling FAIR evaluation of research objects that use dPID and IPFS CID as persistent identifiers. These identifier types are increasingly used in decentralized research data publishing.
How has this been tested?
tests/helper/test_identifier_helper.pywith 240 lines of pytest testsScreenshots (if appropriate)
Types of changes
Checklist