Would it be possible to use consistent names for each data format? Maintaining a dictionary mapping different names for the same data item makes it unnecessarily difficult to translate from one format to another.
For example, in section 2.1.3 Document Metadata: YAML spdxVersion: SPDX-3.0 JSON "spdxVersion": "SPDX-3.0" XML <spdx:version>SPDX-3.0</spdx:version> Tag/Value SPDXVersion: SPDX-3.0 RDF <specVersion>SPDX-3.0</specVersion> what is the reason for choosing different capitalization for Tag/Value than in JSON/YAML? And is there a reason for picking a different name entirely (specVersion) for RDF? It should be simpler to define a single name/key for each data item in all SPDX profiles, with a consistent rule that specifies how to represent keys in each data format? In other words, each profile would define an abstract SPDX information model, and encoding rules convert any SPDX instance into a data document in a particular format. The success criteria for such an approach include reducing the complexity of writing, validating, using, and comparing for equality a single SPDX instance in all supported formats. Dave Kemp -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#3824): https://lists.spdx.org/g/Spdx-tech/message/3824 Mute This Topic: https://lists.spdx.org/mt/69985465/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
