Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: ID example for Sean #670

Closed
wants to merge 4 commits into from
Closed

Conversation

JPEWdev
Copy link
Contributor

@JPEWdev JPEWdev commented Mar 21, 2024

@sbarnum These are the changes I made to the model for the SPDX 3 playground example. The datetime change is already captures in #661 .

This field is intended to be implemented by the underlying ID property
in the serialized format (e.g. "@id" in JSON-LD), so change it to the
special "IdProperty" nature so that the model parsing code can recognize
this and make the mapping.
Adds an IdProperty for CreationInfo to alias it to the RDF id (subject,
e.g. "@id" in JSON-LD) for serialization protocols that support it
Adds metadata to indicate how classes can be referenced in serialized
documents:

"no" Means the class can only be referenced in one place (e.g. be the
RDF object), and can only have a blank node ID. It should be serialized
inline in serialization formats that support it

"local" means the class can be referenced multiple times, but only with
a blank node

"yes" means the class must have an external URI ID (e.g. not a blank
node), but the class itself may be inlined.
Inherit from xsd:dateTimeStamp instead of xsd:string. The XSD definition
is compatible with the SPDX definition, and this will allow code
generation tools to map the value to a code-native datatype.
@kestewart kestewart changed the title DO NOT MERGE: ID example for Steve DO NOT MERGE: ID example for Sean Mar 26, 2024
@kestewart
Copy link
Contributor

Example is present. Ok'd by Josh to close.

@kestewart kestewart closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants