-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiles, Namespaces, and deja-vu #482
Comments
Maybe we should call the property in the "X" class a "prefixMap" to disambiguate the usage. |
That name is fine:
The as-yet-unnamed "X" class could mean:
A Only a Global Namespace Map would be useful in assigning reusable prefixes, and those aren't useful in shortening serialized data. |
I'm going to move this to the 3.0 milestone to consider changing the name of the namespace map |
From the tech call 2 April 2024: We agreed to leave this the same name for SPDX 3.0 - closing this issue. We can open separate issues for SPDX 3.1 if we have a non-breaking proposal. |
We concluded that
Profile
has several different meanings:The issue with NamespaceMap is similar, caused by conflating different reasons for using Namespaces:
A v2.3 SBOM has names such as
http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Package
andhttp://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DoapSource
that identify items. Each name is composed of a namespace and a local-id, e.g.,http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#
+SPDXRef-DoapSource
http://spdx.org/spdxdocs/
+spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DoapSource
http://spdx.org/
+spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DoapSource
Namespace Map establishes the dividing line between namespace and local-id, and the line will be established differently for maps with different purposes:
Because there will be billions of SPDX documents it is impossible to create a new global map entry each time a new document is minted. Using the 2.3 example, there cannot be a short prefix assigned to every GUID because the prefix would need to grow to as long as the GUID in order to remain unique as the number of documents increases. So only the second or third options are possible in a global namespace map.
But only a Document NamespaceMap is effective at shortening names within a document. A Document NamespaceMap can include both global entries (with long local-ids) and document entries (with short local-ids). Discussion of NamespaceMap use cases must include realistic SpdxIds and how a Global (defined in the model) NamespaceMap is used in serialized data.
Both XML (using xmlns) and JSON (using the native property:value object)
The text was updated successfully, but these errors were encountered: