Software Heritage is the universal archive of software source code.
swh
Local identifiers in Software Heritage should match this
regular expression:
^[1-9]:(cnt|dir|rel|rev|snp):[0-9a-f]+(;(origin|visit|anchor|path|lines)=\S+)*$
Compact URIs (CURIEs) constructed from Software Heritage should match
this regular expression:
^swh:[1-9]:(cnt|dir|rel|rev|snp):[0-9a-f]+(;(origin|visit|anchor|path|lines)=\S+)*$
namespaceEmbeddedInLUI
as true.
This means that you may see local unique identifiers that include a redundant prefix and delimiter (also known
as a banana)
and therefore look like a CURIE. For Software Heritage, the banana looks like
swh:
.
Therefore, you may see local unique identifiers for this resource that look like
swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
(instead of the canonical form 1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
) and CURIEs for this resource that look like
swh:swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
(instead of the canonical form swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
).
The Bioregistry will automatically strip off the banana when standardizing local unique identifiers and CURIEs.
The metaregistry provides mappings between the Bioregistry and other registries. There are 3 mappings to external registries for this resource with 1 unique external prefixes.
Registry Name | Registry Metaprefix | External Prefix | Curate |
---|---|---|---|
BioContext | biocontext |
SWH
|
|
Identifiers.org | miriam |
swh
|
|
N2T | n2t |
swh
|
Providers are various services that resolve CURIEs to URLs. The example CURIE
swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
is used to demonstrate the provides available for
this resource. Generation of OLS and BioPortal URLs requires additional programmatic
logic beyond string formatting.