Skip to content

Commit

Permalink
Update serialization proposal based on meeting discussions
Browse files Browse the repository at this point in the history
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
  • Loading branch information
goneall committed Oct 16, 2023
1 parent 1230966 commit 7c06d7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions serialization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@ This directory contains the specifications and examples for all supported SPDX f

There is a specification markdown file for each supported format describing the serialization.

The "XCollection" section in the specification markdown file describes how each of the properties are
serialized.
A collection of elements can be serialized in multiple formats.

Note that the "XCollection" is a class representing the serialization itself. Any properties supported by the serialization format must serialize that property using the serialization format syntax. Specifics and examples can be found in the individual serialization specification markdown files.
Within the model, we have an "XCollection" which represents the common properties of the collection of elements across all data formats.

Within the model, we have a "YCollection" which represents the specific serialization in a single data format.

Within serialized data, you may need to refer to properties in the "XCollection" - such as "where to start" in a collection.

In that case, the "XCollection" will be in the serialized data with ONLY the properties not supported by the serialization format.

There is at most one "XCollection" in the serialization.

The serialized "XCollection" shall not contain properties where that property value can be derived from the the serialized data itself.

The "XCollection" section in the specification markdown file describes how each of the properties are serialized.

## Serialization formats

Expand Down
2 changes: 1 addition & 1 deletion serialization/json-ld.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The JSON-LD is an RDF format and follows the serialization rules of the [rdf SPD

The following XCollection properties are mapped to JSON-LD syntax specifications.
Any properties not listed below should be serialized as part of the XCollection element itself within
the JSON-LD artifact.
the JSON-LD serialized data.

### namespaceMap

Expand Down

0 comments on commit 7c06d7c

Please sign in to comment.