GithubHelp home page GithubHelp logo

Punch List: Collection about spdx-3-model HOT 3 CLOSED

davaya avatar davaya commented on June 29, 2024
Punch List: Collection

from spdx-3-model.

Comments (3)

davaya avatar davaya commented on June 29, 2024

TL;DR: A Collection Element is a peer of other Elements at both the logical and physical levels.

Discussion:

A logical model defines associations between types - all logical types (including Element) may be associated with other types, and the nature of the association is a semantic label, not a data structure.

An information model defines data structures, and there are only two kinds of association between data types: contain and reference. For example the members of a list are serialized in a document as either values or references to values, and the information model must specify which.

The SPDX logical model defines the semantics of Collection as an Element that has 0..* "element" Elements and 0..* "rootElement" Elements. Unlike "describes", "contains" or "depends_on", "element" is an anodyne association label that means nothing more than "member" of the collection. At the logical level no Element contains another Element; all Elements are peers.

A formal SPDX information model, or the prose of an SPDX specification and example data, could show Collection as a list of Element values or Element ids. The disadvantage of requiring Collection to be a list of values is that no Element can be a member of more than one collection, or its data must be copied into every collection of which it is a member.

Position:

  • The data representing a Collection must be a set of Element IDs (references), not a set of (contained) Element values.
  • A Collection Element listing the elements in an SPDX document may optionally be included within that document, but serves no purpose.
  • A Collection Element listing the elements in an SPDX document may optionally be included in a different document, serving as an index of the referenced document.

from spdx-3-model.

armintaenzertng avatar armintaenzertng commented on June 29, 2024

Is this issue still relevant for the 3.0 release? The only point I see that does not align with the current model is the topic of having a list of elements vs a list of references to those elements. But relationships and annotations also have properties of range Element (to and subject, respectively), so this would affect them, too?

from spdx-3-model.

kestewart avatar kestewart commented on June 29, 2024

@iamwillbar - am closing this issue for now. Please reopen if you disagree.

from spdx-3-model.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.