I know I missed the beginning of the call so apologies if I'm re-opening a can of worms, but I'm a big fan of immutability, what would the world look like if we only supported create (I'd include extending an enum in this category)? What wouldn't be possible? For the things that aren't possible can we come up with a way to make them possible with create instead of modify?

William


On 4/1/21 8:54 AM, Alexios Zavras wrote:

Hi all,

�

Following the extremely interesting and intellectually stimulating discussion on the SPDX Tech call on Tuesday, I thought I'd try and list the interactions between profiles that may exist. These gave us some head-scratching moments when we tried to model them.
We all understand that, if we are going to have a number of profiles, each one of them will include some new information (for example, new fields). It may also affect some of the information defined outside this profile (for example, making a field mandatory).
In an effort to “formalize” things, I'll be using abstract terms like Object, Field, and Type -- I hope we all understand the general meaning, even though our specification is not using these terms.

�

So, a profile may do one or more of the following:

�

[CREATE]

1. define new Fields

2. define new Types (used in new Fields)

3. define new Objects, with included Fields of certain Types

�

[MODIFY]

4. add new Fields (with their Types) to Objects defined elsewhere

5. change the cardinality of Fields defined elsewhere (and thus change optional/mandatory status)

6. extend an Enum in a Type defined elsewhere, adding more alternatives (typical case: adding more Relationship types)

�

All these were mentioned during the call.

I assume removing/deleting Fields or Objects is not possible (right?). What about:
7. restrict an Enum in a Type defined elsewhere, removing some alternatives ?

As an example, could a profile introduce something like a "Secure Checksum" idea that says that FileCheksum may NOT be of MD2 type?

�

Hope this helps show what we’re dealing with.

�

-- zvr

�

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva �
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4021): https://lists.spdx.org/g/Spdx-tech/message/4021
Mute This Topic: https://lists.spdx.org/mt/81780695/21656
Group Owner: [email protected]
Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to