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. The actual
part that gets prefixed before the local unique identifier regex,
otherwise known as the banana, is
swh:
.
Therefore, you might see local unique identifiers written out as CURIEs.
The metaregistry provides mappings between the Bioregistry and other registries. There are
3 mappings to external registries for swh
.
Registry Name | Metaprefix | External Prefix |
---|---|---|
BioContext | biocontext |
SWH
|
Identifiers.org
![]() |
miriam |
swh
|
Name-to-Thing
![]() |
n2t |
swh
|
Providers are various services that resolve CURIEs to URLs. The example CURIE
swh:
is used to demonstrate the provides available for
swh
. Generation of OLS and BioPortal URLs requires additional programmatic
logic beyond string formatting.