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
|
A provider turns a local unique identifiers from a resource into a URI. Many providers are also resolvable as URLs (i.e., they can be used in a web browser).
The local unique identifier 1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
is used to demonstrate the providers
available for Software Heritage. A guide for curating additional providers can be found
here.