-
Notifications
You must be signed in to change notification settings - Fork 45
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
add CreationInfo to all Elements in json-ld examples #414
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @armintaenzertng - I like the approach of using the blank node.
7ac5766
to
f9a3e0f
Compare
{ | ||
"type": "Tool", | ||
"spdxId": "spdx-example:SPDXRef-Actor-LicenseFind-1.0", | ||
"name": "LicenseFind-1.0" | ||
"name": "LicenseFind-1.0", | ||
"creationInfo": {"@id": "_:creationInfo1"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason, why you do not use this shorthand?
"creationInfo": {"@id": "_:creationInfo1"} | |
"creationInfo": "_:creationInfo1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the nudge, I realized that we have to change the context to have "@type": "@id"
for creationInfo
in order for this to work.
CreationInfo has been made mandatory again in spdx#401, so the examples have to be updated. Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
f9a3e0f
to
6961d83
Compare
I replaced all occurrences of I also noticed that all DateTime were missing the "Z" at the end and added those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CreationInfo has been made mandatory again in #401, so the examples have to be updated.
This uses the de-duplication method of extracting the CreationInfo as a blank node.