Hi Henk, answers below...

1.) Is there an example or a proposal how to express an arc such as
"verifiedUsing" in JSON?

Since hashes are not an element they would typically be serialized as an
in-line array, for example:

{
...
"verifiedUsing": [
  {
    "type": "Hash",
    "algorithm": "SHA512",
    "hashValue": "A1B2C3..."
  }
]
}

2.) Is there an example or a proposal how to express an arc, such as
"element", in JSON?

Good question, in the diagram I used the closed diamond shape which is
composition, however, now that both document and package can contain
elements, and they can also stand alone this should be a hollow diamond
indicating aggregation instead. Typically this would be serialized
something like this:

{
  "elements": [
    {
      "type": "File",
      "id": "some-id-a"
    },
    {
      "type": "File",
      "id": "some-id-b"
    },
    {
      "type": "Package",
      "id": "some-id-c",
      "elements": [ "some-id-a", "some-id-b" ],
      "rootElements": ["some-id-a"]
  ]
}

3.) Is there still the notion to use json-ld generics here, e.g. object
always include members, such as @comment and @id?

The logical model is indifferent to this. If we define a JSON-LD
serialization format for the specification then that would describe how the
fields map to JSON-LD constructs.

On Tue, Mar 23, 2021 at 11:50 AM Henk Birkholz <
[email protected]> wrote:

> Hi William,
>
> thanks for sending this out!
>
> Wrt the model illustrated I have three specific questions - all of them
> related to a potential instantiation of that model in JSON:
>
> 1.) Is there an example or a proposal how to express an arc such as
> "verifiedUsing" in JSON?
>
> 2.) Is there an example or a proposal how to express an arc, such as
> "element", in JSON?
>
> 3.) Is there still the notion to use json-ld generics here, e.g. object
> always include members, such as @comment and @id?
>
> These questions might already have answers. If that is the case, could
> you please point me some resources where these notations are defined or
> corresponding representative examples? The last time, I created an
> exemplary specification from the diagram it looked quite differently
> (e.g. Person was fleshed out in more detail).
>
> Viele Grüße,
>
> Henk
>
>
>
> On 23.03.21 19:17, William Bartholomew via lists.spdx.org wrote:
> > Attached is the latest diagram from our discussion today.
> >
> >
> > 
> >
> >
>


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


Reply via email to