Software Heritage is the universal archive of software source code.

Prefix
swh
Links
Homepage
Contact
Missing Contact
Pattern for Local Unique Identifiers

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+)*$

Example Local Unique Identifier
1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d   Resolve
Pattern for CURIES

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+)*$

Example CURIE
swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
MIRIAM Namespace Embedded in LUI
The legacy MIRIAM standard for generating CURIEs with this resource annotates the 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.
Metaregistry Software Heritage

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 Identifiers.org logo miriam swh
N2T Name-to-Thing logo n2t swh
Providers

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.

Name Metaprefix URI
Software Heritage swh https://archive.softwareheritage.org/browse/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
Bioregistry bioregistry https://bioregistry.io/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
Identifiers.org miriam https://identifiers.org/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d
Name-to-Thing n2t https://n2t.net/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d