JSON differs from JSON-LD in that JSON-LD is always a serialization of an ontology, while simple JSON data is defined by a schema that is independent of any semantic graph. A JSON schema could optionally contain a URI of the ontology node corresponding to each JSON type, but simple JSON serialized data never contains such URIs and can be validated even if no ontology exists.
The primary practical distinction for SPDX is that Element values can always be serialized as simple JSON without the need for any context. JSON-LD only comes into play when nesting some element values inside others. The alternative to using JSON-LD for nesting is to combine Element values using a simple JSON array with a common header, or by not using JSON at all (e.g. by gzipping individual JSON and/or RDF or Turtle or .XLS Element values into a Payload and leaving it to the compression algorithm to discover what common byte sequences can be combined). It is true that JSON-LD is valid JSON, but simple JSON does not do any RDF processing based on property names. So although "@id" is valid JSON, to avoid the implication that special RDF processing is used, a simple JSON Element would have an "id" or "elementId" or "spdxId" property that is just a string with IRI syntax. So my priority for the call is to establish the simple JSON serialization of each Element value in the model including all profiles, independently of how values might be nested into Payloads using JSON-LD. Looking forward to the discussion. David On Thu, Apr 27, 2023 at 11:13 AM Alexios Zavras <[email protected]> wrote: > Hi all, > > > > We’re planning a special call on how to do the serialization in JSON, next > Tuesday, the hour before the regularly scheduled tech call. > > > > Very briefly, the problem statement is that: > > - We know how to do JSON-LD serialization based on RDF > - But maybe there is also need for a simpler pure-JSON format > > > > The working plan is to have concrete data in JSON-LD format and work on > what simplifications/optimizations might be possible/desirable. > > > > Feel free to join at 2023-05-02T15:00Z at > https://meet.jit.si/SPDXSerialisationMeeting > > > > -- zvr > > > > Intel Deutschland GmbH > Registered Address: Am Campeon 10, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, 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 (#5126): https://lists.spdx.org/g/Spdx-tech/message/5126 Mute This Topic: https://lists.spdx.org/mt/98538793/21656 Group Owner: [email protected] Unsubscribe: https://lists.spdx.org/g/Spdx-tech/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
