spdx-spec icon indicating copy to clipboard operation
spdx-spec copied to clipboard

IANA URN registration

Open SoniEx2 opened this issue 3 years ago • 4 comments
trafficstars

This... is a somewhat strange request, but we believe the SPDX should register an URN namespace, such that we can officially put urn:SPDX-License-Identifier: in URI fields. We make this request because we uh, successfully misused someone's API, and it gave us this idea.

E.g. urn:spdx-license-identifier:0BSD AND LGPL-2.1-or-later

Original API misuse: https://github.com/modrinth/code/issues/2703

SoniEx2 avatar Jul 09 '22 21:07 SoniEx2

@SoniEx2, welcome and thanks for raising this issue :smiley:

I really like this idea! One thing that comes to mind is that there might be extra information that should be included (like which version of the License List it's referring to).

seabass-labrax avatar Jul 19 '22 17:07 seabass-labrax

@seabass-labrax - do we really need to include the license list version? The identifiers are either in the list or depricated, but at any rate they can be found.

kestewart avatar Jul 27 '22 12:07 kestewart

Please note that SPDX already provides IRIs for all the resources it publishes. For example, you can use http://spdx.org/licenses/MIT to refer to a specific license.

I am not sure of the advantage of having a URN namespace for arbitrary user-generated license expressions.

zvr avatar Jul 27 '22 14:07 zvr

honestly, being able to refer to expressions as URNs kinda just makes SPDX expressions compatible with anything that accepts arbitrary URLs for licenses.

as for versioning it... well, urn:spdx-license-identifier:v2.2:... isn't too bad tbh.

SoniEx2 avatar Sep 11 '22 00:09 SoniEx2