SoftWare Hash IDentifier: Difference between revisions

Content deleted Content added
WikiCleanerBot (talk | contribs)
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
m Format: fix syntaxhighlight errors
 
Line 30:
The identifier has the following syntax:<ref name="SWHID_tracking_past" />
 
<syntaxhighlight lang="noneunixconfig">
swh:<scheme_version>:<object_type>:<object_id>[;qualifiers]
</syntaxhighlight>
Line 39:
Version 3.0 of the Linux kernel, released in July 2011, has the following SWHID:<ref>{{Cite web |language=en |title=Release v3.0 of torvalds/linux repository |url=https://archive.softwareheritage.org/browse/release/4204bcde7c0b93c5e127eb868e17b337a513cf34/?origin_url=https://github.com/torvalds/linux&release=v3.0&snapshot=130eecc6bd74794737bb078fe5c3fadd034eddcc |website=Software Heritage |access-date=2025-05-24}}</ref>
 
<presyntaxhighlight lang="text">swh:1:dir:df32c75242bf8d797ccd43af8ce8e294f35cd8fd</presyntaxhighlight>
 
The following example, drawn from the specification documentation,<ref>{{Cite web |language=en |title=Qualified identifiers |url=https://www.swhid.org/specification/v1.2/6.Qualified_identifiers/ |website=swhid.org |access-date=2025-05-27}}</ref> illustrates the use of multiple qualifiers in an SWHID:
 
<syntaxhighlight lang="text">
<pre>
swh:1:cnt:4d99d2d18326621ccdd70f5ea66c2e2ac236ad8b;origin=https://gitorious.org/ocamlp3l/ocamlp3l_cvs.git;visit=swh:1:snp:d7f1b9eb7ccb596c2622c4780febaa02549830f9;anchor=swh:1:rev:2db189928c94d62a3b4757b3eec68f0a4d4113f0;path=/Examples/SimpleFarm/simplefarm.ml;lines=9-15
</syntaxhighlight>
</pre>
 
== Standards ==