spdx / spdx-spec

The SPDX specification in MarkDown and HTML formats.
https://spdx.github.io/spdx-spec/
Other
283 stars 135 forks source link

IANA URN registration #740

Open SoniEx2 opened 2 years ago

SoniEx2 commented 2 years ago

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/labrinth/issues/396

seabass-labrax commented 2 years ago

@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).

kestewart commented 2 years ago

@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.

zvr commented 2 years ago

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.

SoniEx2 commented 2 years ago

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.