1. Is a "Collection" an object containing 1 or more "Elements"? Technically 0 or more elements. This is a base class that provides the ability to contain elements, identify root elements, and to attach namespace and external maps.
2. Is a "ContextualCollection" an object containing 1 or more "Elements" that are in some way or the other related? It inherits from "Collection", so it inherits being able to hold 0 or more elements (and the other abilities described above). It adds the logical restriction that the elements are in some way or the other related. 3. Is a "Document" a "Collection"? It inherits from "Collection", so it inherits being able to hold 0 or more elements (and the other abilities described above). It provides a "unit of exchange" when you are sharing SPDX documents with others. Today, this is the level where we'd calculate the hash of the exchanged document. In the future if we solve being able to hash individual elements the need for Document may diminish but we'd have to look through the use cases to determine if that's true. Regards, William Bartholomew (he/him) - Let's chat<https://outlook.office.com/findtime/[email protected]&anonymous&ep=plink> Principal Security Strategist Cybersecurity Policy - Digital Diplomacy From: [email protected] <[email protected]> On Behalf Of Nisha Kumar via lists.spdx.org Sent: Tuesday, November 2, 2021 10:58 AM To: [email protected] Subject: [EXTERNAL] Re: [spdx-tech] Collection member Elements You don't often get email from [email protected]<mailto:[email protected]>. Learn why this is important<http://aka.ms/LearnAboutSenderIdentification> Bubbling this to the top of everyone's email as a follow up to this week's SPDX tech meeting (Nov 2 2021): 1. Is a "Collection" an object containing 1 or more "Elements"? 2. Is a "ContextualCollection" an object containing 1 or more "Elements" that are in some way or the other related? 3. Is a "Document" a "Collection"? >From the perspective of ORAS Artifacts use case (and Steve Lasker can correct >me on this), a "Collection" that is created at a given point in time contains >"Elements" that are ALWAYS related via the client tools' interpretation of a >workflow. -Nisha -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4224): https://lists.spdx.org/g/Spdx-tech/message/4224 Mute This Topic: https://lists.spdx.org/mt/86776587/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
