Skip to content

Commit

Permalink
add CreationInfo to all Elements in json-ld examples (#414)
Browse files Browse the repository at this point in the history
* add CreationInfo to all Elements in json-ld examples

CreationInfo has been made mandatory again in #401, so the examples have to be updated.

Signed-off-by: Armin Tänzer <[email protected]>

* add missing "Z" to all DateTimes in json-ld examples

Signed-off-by: Armin Tänzer <[email protected]>

---------

Signed-off-by: Armin Tänzer <[email protected]>
  • Loading branch information
armintaenzertng authored Jul 28, 2023
1 parent 87e131f commit 79abdab
Show file tree
Hide file tree
Showing 16 changed files with 144 additions and 96 deletions.
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/agent1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/annotation1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
130 changes: 81 additions & 49 deletions serialization/json_ld/examples/converted_from_spdx_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,48 @@
}
],
"@graph": [
{
"@id": "_:creationInfo1",
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2010-01-29T18:30:22Z",
"createdBy": [
"spdx-example:SPDXRef-Actor-ExampleCodeInspect",
"spdx-example:SPDXRef-Actor-JaneDoe"
],
"createdUsing": [
"spdx-example:SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "https://spdx.org/licenses/CC0-1.0",
"comment": "This is the SPDX-2.3 JSON example converted to SPDX-3.0. As there is currently no closure on how to treat licenses, they are omitted here for now."
},
{
"type": "Tool",
"spdxId": "spdx-example:SPDXRef-Actor-LicenseFind-1.0",
"name": "LicenseFind-1.0"
"name": "LicenseFind-1.0",
"creationInfo": "_:creationInfo1"
},
{
"type": "Organization",
"spdxId": "spdx-example:SPDXRef-Actor-ExampleCodeInspect",
"name": "ExampleCodeInspect"
"name": "ExampleCodeInspect",
"creationInfo": "_:creationInfo1"
},
{
"type": "Person",
"spdxId": "spdx-example:SPDXRef-Actor-JaneDoe",
"name": "Jane Doe"
"name": "Jane Doe",
"creationInfo": "_:creationInfo1"
},
{
"type": "SpdxDocument",
"spdxId": "spdx-example:SPDXRef-DOCUMENT",
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2010-01-29T18:30:22Z",
"createdBy": [
"spdx-example:SPDXRef-Actor-ExampleCodeInspect",
"spdx-example:SPDXRef-Actor-JaneDoe"
],
"createdUsing": [
"spdx-example:SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "https://spdx.org/licenses/CC0-1.0",
"comment": "This is the SPDX-2.3 JSON example converted to SPDX-3.0. As there is currently no closure on how to treat licenses, they are omitted here for now."
},
"creationInfo": "_:creationInfo1",
"name": "SPDX-Tools-v2.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site.",
"element": [
Expand Down Expand Up @@ -114,7 +119,8 @@
"externalIdentifierType": "email",
"identifier": "[email protected]"
}
]
],
"creationInfo": "_:creationInfo1"
},
{
"type": "Organization",
Expand All @@ -126,7 +132,8 @@
"externalIdentifierType": "email",
"identifier": "[email protected]"
}
]
],
"creationInfo": "_:creationInfo1"
},
{
"type": "Package",
Expand Down Expand Up @@ -180,13 +187,15 @@
"packageVersion": "2.11.1",
"downloadLocation": "http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz",
"homepage": "http://ftp.gnu.org/gnu/glibc",
"sourceInfo": "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git."
"sourceInfo": "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.",
"creationInfo": "_:creationInfo1"
},
{
"type": "Package",
"spdxId": "spdx-example:SPDXRef-fromDoap-1",
"name": "Apache Commons Lang",
"homepage": "http://commons.apache.org/proper/commons-lang/"
"homepage": "http://commons.apache.org/proper/commons-lang/",
"creationInfo": "_:creationInfo1"
},
{
"type": "Package",
Expand All @@ -195,7 +204,8 @@
"packageVersion": "3.12.0",
"downloadLocation": "https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz",
"packageUrl": "pkg:maven/org.apache.jena/[email protected]",
"homepage": "http://www.openjena.org/"
"homepage": "http://www.openjena.org/",
"creationInfo": "_:creationInfo1"
},
{
"type": "Package",
Expand All @@ -212,7 +222,8 @@
"copyrightText": "Copyright Saxonica Ltd",
"packageVersion": "8.8",
"downloadLocation": "https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download",
"homepage": "http://saxon.sourceforge.net/"
"homepage": "http://saxon.sourceforge.net/",
"creationInfo": "_:creationInfo1"
},
{
"type": "File",
Expand All @@ -239,7 +250,8 @@
"hashValue": "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"
}
],
"copyrightText": "Copyright 2001-2011 The Apache Software Foundation"
"copyrightText": "Copyright 2001-2011 The Apache Software Foundation",
"creationInfo": "_:creationInfo1"
},
{
"type": "File",
Expand All @@ -266,7 +278,8 @@
"algorithm": "sha1",
"hashValue": "fff4e1c67a2d28fced849ee1bb76e7391b93f125"
}
]
],
"creationInfo": "_:creationInfo1"
},
{
"type": "File",
Expand All @@ -285,7 +298,8 @@
"hashValue": "624c1abb3664f4b35547e7c73864ad24"
}
],
"copyrightText": "Copyright 2008-2010 John Smith"
"copyrightText": "Copyright 2008-2010 John Smith",
"creationInfo": "_:creationInfo1"
},
{
"type": "Snippet",
Expand All @@ -300,7 +314,8 @@
"lineRange": {
"begin": 5,
"end": 23
}
},
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -309,7 +324,8 @@
"to": [
"spdx-example:SPDXRef-Package"
],
"relationshipType": "contains"
"relationshipType": "contains",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -318,7 +334,8 @@
"to": [
"spdx-example:DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement"
],
"relationshipType": "copy"
"relationshipType": "copy",
"creationInfo": "_:creationInfo1"
},
{
"type": "SoftwareDependencyRelationship",
Expand All @@ -328,7 +345,8 @@
"spdx-example:SPDXRef-Saxon"
],
"relationshipType": "dependsOn",
"softwareLinkage": "dynamic"
"softwareLinkage": "dynamic",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -337,7 +355,8 @@
"to": [
"spdx-example:SPDXRef-Package"
],
"relationshipType": "contains"
"relationshipType": "contains",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -346,7 +365,8 @@
"to": [
"spdx-example:SPDXRef-fromDoap-0"
],
"relationshipType": "specificationFor"
"relationshipType": "specificationFor",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -355,7 +375,8 @@
"to": [
"spdx-example:SPDXRef-File"
],
"relationshipType": "generates"
"relationshipType": "generates",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -365,7 +386,8 @@
"spdx-example:SPDXRef-File",
"spdx-example:SPDXRef-Package"
],
"relationshipType": "describes"
"relationshipType": "describes",
"creationInfo": "_:creationInfo1"
},
{
"type": "Relationship",
Expand All @@ -377,62 +399,72 @@
"spdx-example:SPDXRef-JenaLib",
"spdx-example:SPDXRef-DoapSource"
],
"relationshipType": "contains"
"relationshipType": "contains",
"creationInfo": "_:creationInfo1"
},
{
"type": "Annotation",
"spdxId": "spdx-example:SPDXRef-Annotation-0",
"annotationType": "other",
"subject": "spdx-example:SPDXRef-DOCUMENT",
"statement": "Document level annotation"
"statement": "Document level annotation",
"creationInfo": "_:creationInfo1"
},
{
"type": "Person",
"spdxId": "spdx-example:SPDXRef-Actor-JoeReviewer",
"name": "Joe Reviewer"
"name": "Joe Reviewer",
"creationInfo": "_:creationInfo1"
},
{
"type": "Annotation",
"spdxId": "spdx-example:SPDXRef-Annotation-1",
"annotationType": "review",
"subject": "spdx-example:SPDXRef-DOCUMENT",
"statement": "This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses"
"statement": "This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses",
"creationInfo": "_:creationInfo1"
},
{
"type": "Person",
"spdxId": "spdx-example:SPDXRef-Actor-SuzanneReviewer",
"name": "Suzanne Reviewer"
"name": "Suzanne Reviewer",
"creationInfo": "_:creationInfo1"
},
{
"type": "Annotation",
"spdxId": "spdx-example:SPDXRef-Annotation-2",
"annotationType": "review",
"subject": "spdx-example:SPDXRef-DOCUMENT",
"statement": "Another example reviewer."
"statement": "Another example reviewer.",
"creationInfo": "_:creationInfo1"
},
{
"type": "Person",
"spdxId": "spdx-example:SPDXRef-Actor-PackageCommenter",
"name": "Package Commenter"
"name": "Package Commenter",
"creationInfo": "_:creationInfo1"
},
{
"type": "Annotation",
"spdxId": "spdx-example:SPDXRef-Annotation-3",
"annotationType": "other",
"subject": "spdx-example:SPDXRef-Package",
"statement": "Package level annotation"
"statement": "Package level annotation",
"creationInfo": "_:creationInfo1"
},
{
"type": "Person",
"spdxId": "spdx-example:SPDXRef-Actor-FileCommenter",
"name": "File Commenter"
"name": "File Commenter",
"creationInfo": "_:creationInfo1"
},
{
"type": "Annotation",
"spdxId": "spdx-example:SPDXRef-Annotation-4",
"annotationType": "other",
"subject": "spdx-example:SPDXRef-File",
"statement": "File level annotation"
"statement": "File level annotation",
"creationInfo": "_:creationInfo1"
}
]
}
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/file1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core", "software"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/org1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/package1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core", "software"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/person1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/person2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"createdUsing": ["https://some.namespace#sbomolator_v2"],
"profile": ["core"],
Expand Down
2 changes: 1 addition & 1 deletion serialization/json_ld/examples/relationship1.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"creationInfo": {
"type": "CreationInfo",
"specVersion": "3.0.0",
"created": "2022-12-01T00:00:00",
"created": "2022-12-01T00:00:00Z",
"createdBy": ["https://spdx.dev/elements/3F26391C#spdx-dev"],
"profile": ["core"],
"dataLicense": "https://spdx.org/licenses/CC0-1.0"
Expand Down
Loading

0 comments on commit 79abdab

Please sign in to comment.