Skip to content

Instantly share code, notes, and snippets.

@meretp
Last active May 9, 2023 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meretp/561e4ea963122f5811a147ea056e4d84 to your computer and use it in GitHub Desktop.
Save meretp/561e4ea963122f5811a147ea056e4d84 to your computer and use it in GitHub Desktop.
First example of JSON-LD
{
"core": "https://spdx.org/rdf/Core/",
"software": "https://spdx.org/rdf/Software/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"AIPackage": "ai:AIPackage",
"Build": "build:Build",
"Annotation": "core:Annotation",
"AnonymousPayload": "core:AnonymousPayload",
"Organization": "core:Organization",
"Person": "core:Person",
"SpdxDocument": "core:SpdxDocument",
"Dataset": "dataset:Dataset",
"ConjunctiveLicenseSet": "licensing:ConjunctiveLicenseSet",
"CustomLicense": "licensing:CustomLicense",
"CustomLicenseAddition": "licensing:CustomLicenseAddition",
"DisjunctiveLicenseSet": "licensing:DisjunctiveLicenseSet",
"ListedLicense": "licensing:ListedLicense",
"ListedLicenseException": "licensing:ListedLicenseException",
"NoAssertionLicense": "licensing:NoAssertionLicense",
"NoneLicense": "licensing:NoneLicense",
"OrLaterOperator": "licensing:OrLaterOperator",
"WithAdditionOperator": "licensing:WithAdditionOperator",
"CvssV2VulnAssessmentRelationship": "security:CvssV2VulnAssessmentRelationship",
"CvssV3VulnAssessmentRelationship": "security:CvssV3VulnAssessmentRelationship",
"EpssVulnAssessmentRelationship": "security:EpssVulnAssessmentRelationship",
"ExploitCatalogVulnAssessmentRelationship": "security:ExploitCatalogVulnAssessmentRelationship",
"SsvcVulnAssessmentRelationship": "security:SsvcVulnAssessmentRelationship",
"VexAffectedVulnAssessmentRelationship": "security:VexAffectedVulnAssessmentRelationship",
"VexFixedVulnAssessmentRelationship": "security:VexFixedVulnAssessmentRelationship",
"VexNotAffectedVulnAssessmentRelationship": "security:VexNotAffectedVulnAssessmentRelationship",
"VexUnderInvestigationVulnAssessmentRelationship": "security:VexUnderInvestigationVulnAssessmentRelationship",
"Vulnerability": "security:Vulnerability",
"withdrawn": {
"@id": "security:withdrawn",
"@type": "core:DateTime"
},
"File": "software:File",
"Sbom": "software:Sbom",
"Snippet": "software:Snippet",
"SoftwareDependencyRelationship": "software:SoftwareDependencyRelationship",
"autonomyType": {
"@id": "ai:autonomyType",
"@type": "ai:PresenceType"
},
"domain": {
"@id": "ai:domain",
"@type": "xsd:string"
},
"energyConsumption": {
"@id": "ai:energyConsumption",
"@type": "xsd:string"
},
"hyperparameter": {
"@id": "ai:hyperparameter",
"@type": "core:DictionaryEntry"
},
"informationAboutApplication": {
"@id": "ai:informationAboutApplication",
"@type": "xsd:string"
},
"informationAboutTraining": {
"@id": "ai:informationAboutTraining",
"@type": "xsd:string"
},
"limitation": {
"@id": "ai:limitation",
"@type": "xsd:string"
},
"metric": {
"@id": "ai:metric",
"@type": "core:DictionaryEntry"
},
"metricDecisionThreshold": {
"@id": "ai:metricDecisionThreshold",
"@type": "core:DictionaryEntry"
},
"modelDataPreprocessing": {
"@id": "ai:modelDataPreprocessing",
"@type": "xsd:string"
},
"modelExplainability": {
"@id": "ai:modelExplainability",
"@type": "xsd:string"
},
"safetyRiskAssessment": {
"@id": "ai:safetyRiskAssessment",
"@type": "@vocab",
"@context": {
"@vocab": "ai:SafetyRiskAssessmentType/"
}
},
"sensitivePersonalInformation": {
"@id": "dataset:sensitivePersonalInformation",
"@type": "@vocab",
"@context": {
"@vocab": "dataset:PresenceType/"
}
},
"standardCompliance": {
"@id": "ai:standardCompliance",
"@type": "xsd:string"
},
"typeOfModel": {
"@id": "ai:typeOfModel",
"@type": "xsd:string"
},
"buildEndTime": {
"@id": "build:buildEndTime",
"@type": "core:DateTime"
},
"buildId": {
"@id": "build:buildId",
"@type": "xsd:string"
},
"buildStartTime": {
"@id": "build:buildStartTime",
"@type": "core:DateTime"
},
"buildType": {
"@id": "build:buildType",
"@type": "xsd:anyURI"
},
"configSourceDigest": {
"@id": "build:configSourceDigest",
"@type": "core:Hash"
},
"configSourceEntrypoint": {
"@id": "build:configSourceEntrypoint",
"@type": "xsd:string"
},
"configSourceUri": {
"@id": "build:configSourceUri",
"@type": "xsd:anyURI"
},
"environment": {
"@id": "build:environment",
"@type": "core:DictionaryEntry"
},
"parameters": {
"@id": "build:parameters",
"@type": "core:DictionaryEntry"
},
"Artifact": "core:Artifact",
"Bom": "core:Bom",
"ElementCollection": "core:ElementCollection",
"LifecycleScopedRelationship": "core:LifecycleScopedRelationship",
"algorithm": {
"@id": "core:algorithm",
"@type": "@vocab",
"@context": {
"@vocab": "core:HashAlgorithm/"
}
},
"annotationType": {
"@id": "core:annotationType",
"@type": "@vocab",
"@context": {
"@vocab": "core:AnnotationType/"
}
},
"begin": {
"@id": "core:begin",
"@type": "xsd:positiveInteger"
},
"builtTime": {
"@id": "core:builtTime",
"@type": "core:DateTime"
},
"completeness": {
"@id": "core:completeness",
"@type": "@vocab",
"@context": {
"@vocab": "core:RelationshipCompleteness/"
}
},
"context": {
"@id": "core:context",
"@type": "xsd:string"
},
"created": {
"@id": "core:created",
"@type": "core:DateTime"
},
"createdBy": {
"@id": "core:createdBy",
"@type": "core:Entity"
},
"createdUsing": {
"@id": "core:createdUsing",
"@type": "core:Tool"
},
"dataLicense": {
"@id": "core:dataLicense",
"@type": "xsd:string"
},
"description": {
"@id": "core:description",
"@type": "xsd:string"
},
"element": {
"@id": "core:element",
"@type": "core:Element"
},
"end": {
"@id": "core:end",
"@type": "xsd:positiveInteger"
},
"endTime": {
"@id": "core:endTime",
"@type": "core:DateTime"
},
"externalId": {
"@id": "core:externalId",
"@type": "xsd:anyURI"
},
"externalIdentifier": {
"@id": "core:externalIdentifier",
"@type": "core:ExternalIdentifier"
},
"externalIdentifierType": {
"@id": "core:externalIdentifierType",
"@type": "@vocab",
"@context": {
"@vocab": "core:ExternalIdentifierType/"
}
},
"externalReference": {
"@id": "core:externalReference",
"@type": "core:ExternalReference"
},
"externalReferenceType": {
"@id": "core:externalReferenceType",
"@type": "@vocab",
"@context": {
"@vocab": "core:ExternalReferenceType/"
}
},
"from": {
"@id": "core:from",
"@type": "core:Element"
},
"hashValue": {
"@id": "core:hashValue",
"@type": "xsd:string"
},
"identifier": {
"@id": "core:identifier",
"@type": "xsd:string"
},
"identifierLocator": {
"@id": "core:identifierLocator",
"@type": "xsd:anyURI"
},
"issuingAuthority": {
"@id": "core:issuingAuthority",
"@type": "xsd:anyURI"
},
"key": {
"@id": "core:key",
"@type": "xsd:string"
},
"locationHint": {
"@id": "core:locationHint",
"@type": "xsd:anyURI"
},
"locator": {
"@id": "core:locator",
"@type": "xsd:anyURI"
},
"namespace": {
"@id": "core:namespace",
"@type": "xsd:anyURI"
},
"originatedBy": {
"@id": "core:originatedBy",
"@type": "core:Identity"
},
"prefix": {
"@id": "core:prefix",
"@type": "xsd:string"
},
"profile": {
"@id": "core:profile",
"@type": "@vocab",
"@context": {
"@vocab": "core:ProfileIdentifierType/"
}
},
"relationshipType": {
"@id": "core:relationshipType",
"@type": "@vocab",
"@context": {
"@vocab": "core:RelationshipType/"
}
},
"releaseTime": {
"@id": "core:releaseTime",
"@type": "core:DateTime"
},
"rootElement": {
"@id": "core:rootElement",
"@type": "core:Element"
},
"scope": {
"@id": "core:scope",
"@type": "@vocab",
"@context": {
"@vocab": "core:LifecycleScopeType/"
}
},
"spdxId": {
"@id": "core:spdxId",
"@type": "xsd:anyURI"
},
"specVersion": {
"@id": "core:specVersion",
"@type": "core:SemVer"
},
"standard": {
"@id": "core:standard",
"@type": "xsd:string"
},
"startTime": {
"@id": "core:startTime",
"@type": "core:DateTime"
},
"statement": {
"@id": "core:statement",
"@type": "xsd:string"
},
"subject": {
"@id": "core:subject",
"@type": "core:Element"
},
"summary": {
"@id": "core:summary",
"@type": "xsd:string"
},
"suppliedBy": {
"@id": "core:suppliedBy",
"@type": "core:Agent"
},
"to": {
"@id": "core:to",
"@type": "core:Element"
},
"validUntilTime": {
"@id": "core:validUntilTime",
"@type": "core:DateTime"
},
"value": {
"@id": "core:value",
"@type": "xsd:string"
},
"anonymizationMethodUsed": {
"@id": "dataset:anonymizationMethodUsed",
"@type": "xsd:string"
},
"confidentialityLevel": {
"@id": "dataset:confidentialityLevel",
"@type": "@vocab",
"@context": {
"@vocab": "dataset:ConfidentialityLevelType/"
}
},
"dataCollectionProcess": {
"@id": "dataset:dataCollectionProcess",
"@type": "xsd:string"
},
"dataPreprocessing": {
"@id": "dataset:dataPreprocessing",
"@type": "xsd:string"
},
"datasetAvailability": {
"@id": "dataset:datasetAvailability",
"@type": "@vocab",
"@context": {
"@vocab": "dataset:DatasetAvailabilityType/"
}
},
"datasetNoise": {
"@id": "dataset:datasetNoise",
"@type": "xsd:string"
},
"datasetSize": {
"@id": "dataset:datasetSize",
"@type": "xsd:nonNegativeInteger"
},
"datasetType": {
"@id": "dataset:datasetType",
"@type": "xsd:string"
},
"datasetUpdateMechanism": {
"@id": "dataset:datasetUpdateMechanism",
"@type": "xsd:string"
},
"intendedUse": {
"@id": "dataset:intendedUse",
"@type": "xsd:string"
},
"knownBias": {
"@id": "dataset:knownBias",
"@type": "xsd:string"
},
"sensor": {
"@id": "dataset:sensor",
"@type": "core:DictionaryEntry"
},
"additionComment": {
"@id": "licensing:additionComment",
"@type": "xsd:string"
},
"additionId": {
"@id": "licensing:additionId",
"@type": "xsd:string"
},
"additionName": {
"@id": "licensing:additionName",
"@type": "xsd:string"
},
"additionText": {
"@id": "licensing:additionText",
"@type": "xsd:string"
},
"isDeprecatedAdditionId": {
"@id": "licensing:isDeprecatedAdditionId",
"@type": "xsd:boolean"
},
"isDeprecatedLicenseId": {
"@id": "licensing:isDeprecatedLicenseId",
"@type": "xsd:boolean"
},
"isFsfLibre": {
"@id": "licensing:isFsfLibre",
"@type": "xsd:boolean"
},
"isOsiApproved": {
"@id": "licensing:isOsiApproved",
"@type": "xsd:boolean"
},
"licenseComment": {
"@id": "licensing:licenseComment",
"@type": "xsd:string"
},
"licenseId": {
"@id": "licensing:licenseId",
"@type": "xsd:string"
},
"licenseName": {
"@id": "licensing:licenseName",
"@type": "xsd:string"
},
"licenseText": {
"@id": "licensing:licenseText",
"@type": "xsd:string"
},
"standardAdditionTemplate": {
"@id": "licensing:standardAdditionTemplate",
"@type": "xsd:string"
},
"standardLicenseHeader": {
"@id": "licensing:standardLicenseHeader",
"@type": "xsd:string"
},
"standardLicenseTemplate": {
"@id": "licensing:standardLicenseTemplate",
"@type": "xsd:string"
},
"subjectAddition": {
"@id": "licensing:subjectAddition",
"@type": "licensing:LicenseAddition"
},
"actionStatement": {
"@id": "security:actionStatement",
"@type": "xsd:string"
},
"assessedElement": {
"@id": "security:assessedElement",
"@type": "core:Element"
},
"decisionType": {
"@id": "security:decisionType",
"@type": "@vocab",
"@context": {
"@vocab": "security:SsvcDecisionType/"
}
},
"exploited": {
"@id": "security:exploited",
"@type": "xsd:boolean"
},
"impactStatement": {
"@id": "security:impactStatement",
"@type": "xsd:string"
},
"justificationType": {
"@id": "security:justificationType",
"@type": "@vocab",
"@context": {
"@vocab": "security:VexJustificationType/"
}
},
"probability": {
"@id": "security:probability",
"@type": "xsd:decimal"
},
"attributionText": {
"@id": "software:attributionText",
"@type": "xsd:string"
},
"byteRange": {
"@id": "software:byteRange",
"@type": "core:PositiveIntegerRange"
},
"concludedLicense": {
"@id": "software:concludedLicense",
"@type": "software:LicenseField"
},
"conditionality": {
"@id": "software:conditionality",
"@type": "@vocab",
"@context": {
"@vocab": "software:DependencyConditionalityType/"
}
},
"contentIdentifier": {
"@id": "software:contentIdentifier",
"@type": "xsd:anyURI"
},
"contentType": {
"@id": "core:contentType",
"@type": "core:MediaType"
},
"copyrightText": {
"@id": "software:copyrightText",
"@type": "xsd:string"
},
"declaredLicense": {
"@id": "software:declaredLicense",
"@type": "software:LicenseField"
},
"downloadLocation": {
"@id": "software:downloadLocation",
"@type": "xsd:anyURI"
},
"homePage": {
"@id": "software:homePage",
"@type": "xsd:anyURI"
},
"lineRange": {
"@id": "software:lineRange",
"@type": "core:PositiveIntegerRange"
},
"packageUrl": {
"@id": "software:packageUrl",
"@type": "xsd:anyURI"
},
"packageVersion": {
"@id": "software:packageVersion",
"@type": "xsd:string"
},
"purpose": {
"@id": "software:purpose",
"@type": "@vocab",
"@context": {
"@vocab": "software:SoftwarePurpose/"
}
},
"sbomType": {
"@id": "software:sbomType",
"@type": "@vocab",
"@context": {
"@vocab": "software:SBOMType/"
}
},
"softwareLinkage": {
"@id": "software:softwareLinkage",
"@type": "@vocab",
"@context": {
"@vocab": "software:SoftwareDependencyLinkType/"
}
},
"sourceInfo": {
"@id": "software:sourceInfo",
"@type": "xsd:string"
},
"Bundle": "core:Bundle",
"ExternalIdentifier": "core:ExternalIdentifier",
"ExternalReference": "core:ExternalReference",
"Hash": "core:Hash",
"Payload": "core:Payload",
"Relationship": "core:Relationship",
"SemVer": "core:SemVer",
"Tool": "core:Tool",
"name": {
"@id": "core:name",
"@type": "xsd:string"
},
"verifiedUsing": {
"@id": "core:verifiedUsing",
"@type": "core:IntegrityMethod"
},
"deprecatedVersion": {
"@id": "licensing:deprecatedVersion",
"@type": "xsd:string"
},
"listVersionAdded": {
"@id": "licensing:listVersionAdded",
"@type": "xsd:string"
},
"member": {
"@id": "licensing:member",
"@type": "licensing:AnyLicenseInfo"
},
"obsoletedBy": {
"@id": "licensing:obsoletedBy",
"@type": "xsd:string"
},
"seeAlso": {
"@id": "licensing:seeAlso",
"@type": "xsd:anyURI"
},
"subjectLicense": {
"@id": "licensing:subjectLicense",
"@type": "licensing:License"
},
"modifiedTime": {
"@id": "security:modifiedTime",
"@type": "core:DateTime"
},
"publishedTime": {
"@id": "security:publishedTime",
"@type": "core:DateTime"
},
"score": {
"@id": "security:score",
"@type": "xsd:string"
},
"vector": {
"@id": "security:vector",
"@type": "xsd:string"
},
"Package": "software:Package",
"creationInfo": {
"@id": "core:creationInfo",
"@type": "core:CreationInfo"
},
"imports": {
"@id": "core:imports",
"@type": "core:ExternalMap"
},
"namespaces": {
"@id": "core:namespaces",
"@type": "core:NamespaceMap"
},
"ExploitCatalogType": "security:ExploitCatalogType",
"severity": {
"@id": "security:severity",
"@type": "xsd:string"
},
"SoftwareArtifact": "software:SoftwareArtifact",
"AnnotationType": "core:AnnotationType",
"CreationInfo": "core:CreationInfo",
"Entity": "core:Entity",
"ExternalMap": "core:ExternalMap",
"IntegrityMethod": "core:IntegrityMethod",
"NamespaceMap": "core:NamespaceMap",
"PositiveIntegerRange": "core:PositiveIntegerRange",
"LicenseAddition": "licensing:LicenseAddition",
"VexVulnAssessmentRelationship": "security:VexVulnAssessmentRelationship",
"MediaType": "core:MediaType",
"RelationshipCompleteness": "core:RelationshipCompleteness",
"comment": {
"@id": "core:comment",
"@type": "xsd:string"
},
"License": "licensing:License",
"LicenseField": "licensing:LicenseField",
"SafetyRiskAssessmentType": "ai:SafetyRiskAssessmentType",
"Identity": "core:Identity",
"ConfidentialityLevelType": "dataset:ConfidentialityLevelType",
"SsvcDecisionType": "security:SsvcDecisionType",
"VulnAssessmentRelationship": "security:VulnAssessmentRelationship",
"SoftwareDependencyLinkType": "software:SoftwareDependencyLinkType",
"PresenceType": "ai:PresenceType",
"DatasetAvailabilityType": "dataset:DatasetAvailabilityType",
"VexJustificationType": "security:VexJustificationType",
"DependencyConditionalityType": "software:DependencyConditionalityType",
"LifecycleScopeType": "core:LifecycleScopeType",
"AnyLicenseInfo": "licensing:AnyLicenseInfo",
"SBOMType": "software:SBOMType",
"ExternalIdentifierType": "core:ExternalIdentifierType",
"ProfileIdentifierType": "core:ProfileIdentifierType",
"DictionaryEntry": "core:DictionaryEntry",
"Element": "core:Element",
"ExternalReferenceType": "core:ExternalReferenceType",
"DateTime": "core:DateTime",
"SoftwarePurpose": "software:SoftwarePurpose",
"HashAlgorithm": "core:HashAlgorithm",
"RelationshipType": "core:RelationshipType"
}
{
"@context": "https://spdx3spec.invalid/v3/ontology/spdx-ontology.context.json",
"@graph": [
{
"@type": "Tool",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0",
"name": "LicenseFind-1.0"
},
{
"@type": "Organization",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect",
"name": "ExampleCodeInspect"
},
{
"@type": "Person",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JaneDoe",
"name": "Jane Doe"
},
{
"@type": "SpdxDocument",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DOCUMENT",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-1",
"specVersion": "3.0.0rc1",
"created": "2010-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JaneDoe"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"name": "SPDX-Tools-v2.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site.",
"elements": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JaneDoe",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect-contact@example.com",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Package",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-fromDoap-1",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-fromDoap-0",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Saxon",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DoapSource",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-CommonsLangSrc",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-JenaLib",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Specification",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-File",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Snippet",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-0",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-1",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-2",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-4",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-5",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-6",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-8",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-12",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-0",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JoeReviewer",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-1",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-SuzanneReviewer",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-2",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-PackageCommenter",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-3",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-FileCommenter",
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-4"
],
"imports": [
{
"@type": "ExternalMap",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#ExternalMap-1",
"externalId": "DocumentRef-spdx-tool-1.2",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-d6a770ba38583ed4bb4525bd96e50461655d2759",
"algorithm": "SHA1",
"hashValue": "d6a770ba38583ed4bb4525bd96e50461655d2759"
}
],
"locationHint": "http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301"
}
]
},
{
"@type": "Organization",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect-contact@example.com",
"name": "ExampleCodeInspect",
"externalIdentifier": [
{
"@type": "ExternalIdentifier",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#ExternalIdentifier-1",
"externalIdentifierType": "EMAIL",
"identifier": "contact@example.com"
}
]
},
{
"@type": "Package",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Package",
"name": "glibc",
"summary": "GNU C library.",
"description": "The GNU C Library defines functions that are specified by the ISO C standard, as well as additional features specific to POSIX and other derivatives of the Unix operating system, and extensions specific to GNU systems.",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#MD5-624c1abb3664f4b35547e7c73864ad24",
"algorithm": "MD5",
"hashValue": "624c1abb3664f4b35547e7c73864ad24"
},
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-85ed0817af83a24ad8da68c2b5094de69833983c",
"algorithm": "SHA1",
"hashValue": "85ed0817af83a24ad8da68c2b5094de69833983c"
},
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA256-11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd",
"algorithm": "SHA256",
"hashValue": "11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd"
},
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#BLAKE2B384-aaabd89c926ab525c242e6621f2f5fa73aa4afe3d9e24aed727faaadd6af38b620bdb623dd2b4788b1c8086984af8706",
"algorithm": "BLAKE2B384",
"hashValue": "aaabd89c926ab525c242e6621f2f5fa73aa4afe3d9e24aed727faaadd6af38b620bdb623dd2b4788b1c8086984af8706"
}
],
"externalIdentifier": [
{
"@type": "ExternalIdentifier",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#ExternalIdentifier-2",
"externalIdentifierType": "CPE23",
"identifier": "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
}
],
"originatedBy": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-ExampleCodeInspect-contact@example.com",
"builtTime": "2011-01-29T18:30:22Z",
"releaseTime": "2012-01-29T18:30:22Z",
"validUntilTime": "2014-01-29T18:30:22Z",
"purpose": [
"SOURCE"
],
"concludedLicense": {
"@type": "DisjunctiveLicenseSet",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#DisjunctiveSet-1",
"member": [
"https://spdx.org/licenses/LGPL-2.0-only",
{
"@type": "CustomLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LicenseRef-3",
"licenseId": "LicenseRef-3",
"licenseName": "CyberNeko License",
"licenseText": "The CyberNeko Software License, Version 1.0\n\n \n(C) Copyright 2002-2005, Andy Clark. All rights reserved.\n \nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer. \n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n3. The end-user documentation included with the redistribution,\n if any, must include the following acknowledgment: \n \"This product includes software developed by Andy Clark.\"\n Alternately, this acknowledgment may appear in the software itself,\n if and wherever such third-party acknowledgments normally appear.\n\n4. The names \"CyberNeko\" and \"NekoHTML\" must not be used to endorse\n or promote products derived from this software without prior \n written permission. For written permission, please contact \n andyc@cyberneko.net.\n\n5. Products derived from this software may not be called \"CyberNeko\",\n nor may \"CyberNeko\" appear in their name, without prior written\n permission of the author.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, \nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT \nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR \nBUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE \nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
}
]
},
"declaredLicense": {
"@type": "ConjunctiveLicenseSet",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#ConjunctiveSet-1",
"member": [
"https://spdx.org/licenses/LGPL-2.0-only",
{
"@type": "CustomLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LicenseRef-3",
"licenseId": "LicenseRef-3",
"licenseName": "CyberNeko License",
"licenseText": "The CyberNeko Software License, Version 1.0\n\n \n(C) Copyright 2002-2005, Andy Clark. All rights reserved.\n \nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer. \n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n3. The end-user documentation included with the redistribution,\n if any, must include the following acknowledgment: \n \"This product includes software developed by Andy Clark.\"\n Alternately, this acknowledgment may appear in the software itself,\n if and wherever such third-party acknowledgments normally appear.\n\n4. The names \"CyberNeko\" and \"NekoHTML\" must not be used to endorse\n or promote products derived from this software without prior \n written permission. For written permission, please contact \n andyc@cyberneko.net.\n\n5. Products derived from this software may not be called \"CyberNeko\",\n nor may \"CyberNeko\" appear in their name, without prior written\n permission of the author.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, \nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT \nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR \nBUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE \nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
}
]
},
"copyrightText": "Copyright 2008-2010 John Smith",
"attributionText": "The GNU C Library is free software. See the file COPYING.LIB for copying conditions, and LICENSES for notices about a few contributions that require these additional notices to be distributed. License copyright years may be listed using range notation, e.g., 1996-2015, indicating that every year in the range, inclusive, is a copyrightable year that would otherwise be listed individually.",
"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."
},
{
"@type": "Package",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-fromDoap-1",
"name": "Apache Commons Lang",
"concludedLicense": {
"@type": "NoAssertionLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#NoAssertionLicense"
},
"declaredLicense": {
"@type": "NoAssertionLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#NoAssertionLicense"
},
"homepage": "http://commons.apache.org/proper/commons-lang/"
},
{
"@type": "Package",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-fromDoap-0",
"name": "Jena",
"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/apache-jena@3.12.0",
"homepage": "http://www.openjena.org/"
},
{
"@type": "Package",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Saxon",
"name": "Saxon",
"description": "The Saxon package is a collection of tools for processing XML documents.",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-85ed0817af83a24ad8da68c2b5094de69833983c",
"algorithm": "SHA1",
"hashValue": "85ed0817af83a24ad8da68c2b5094de69833983c"
}
],
"concludedLicense": "https://spdx.org/licenses/MPL-1.0",
"declaredLicense": "https://spdx.org/licenses/MPL-1.0",
"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/"
},
{
"@type": "File",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-DoapSource",
"name": "./src/org/spdx/parser/DOAPProject.java",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
"algorithm": "SHA1",
"hashValue": "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"
}
],
"concludedLicense": "https://spdx.org/licenses/Apache-2.0",
"copyrightText": "Copyright 2010, 2011 Source Auditor Inc."
},
{
"@type": "File",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-CommonsLangSrc",
"name": "./lib-source/commons-lang3-3.1-sources.jar",
"comment": "This file is used by Jena",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-c2b4e1c67a2d28fced849ee1bb76e7391b93f125",
"algorithm": "SHA1",
"hashValue": "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"
}
],
"concludedLicense": "https://spdx.org/licenses/Apache-2.0",
"copyrightText": "Copyright 2001-2011 The Apache Software Foundation"
},
{
"@type": "File",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-JenaLib",
"name": "./lib-source/jena-2.6.3-sources.jar",
"comment": "This file belongs to Jena",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-3ab4e1c67a2d28fced849ee1bb76e7391b93f125",
"algorithm": "SHA1",
"hashValue": "3ab4e1c67a2d28fced849ee1bb76e7391b93f125"
}
],
"concludedLicense": {
"@type": "CustomLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LicenseRef-1",
"licenseId": "LicenseRef-1",
"licenseName": "None",
"licenseText": "/*\n * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/"
},
"copyrightText": "(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP"
},
{
"@type": "File",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Specification",
"name": "./docs/myspec.pdf",
"comment": "Specification Documentation",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-fff4e1c67a2d28fced849ee1bb76e7391b93f125",
"algorithm": "SHA1",
"hashValue": "fff4e1c67a2d28fced849ee1bb76e7391b93f125"
}
]
},
{
"@type": "File",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-File",
"name": "./package/foo.c",
"comment": "The concluded license was taken from the package level that the file was included in.\nThis information was found in the COPYING.txt file in the xyz directory.",
"verifiedUsing": [
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SHA1-d6a770ba38583ed4bb4525bd96e50461655d2758",
"algorithm": "SHA1",
"hashValue": "d6a770ba38583ed4bb4525bd96e50461655d2758"
},
{
"@type": "Hash",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#MD5-624c1abb3664f4b35547e7c73864ad24",
"algorithm": "MD5",
"hashValue": "624c1abb3664f4b35547e7c73864ad24"
}
],
"concludedLicense": {
"@type": "DisjunctiveLicenseSet",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#DisjunctiveSet-2",
"member": [
"https://spdx.org/licenses/LGPL-2.0-only",
{
"@type": "CustomLicense",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LicenseRef-2",
"licenseId": "LicenseRef-2",
"licenseName": "None",
"licenseText": "This package includes the GRDDL parser developed by Hewlett Packard under the following license:\n\u00a9 Copyright 2007 Hewlett-Packard Development Company, LP\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \n\nRedistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \nRedistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. \nThe name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. \nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
}
]
},
"copyrightText": "Copyright 2008-2010 John Smith"
},
{
"@type": "Snippet",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Snippet",
"name": "from linux kernel",
"comment": "This snippet was identified as significant and highlighted in this Apache-2.0 file, when a commercial scanner identified it as being derived from file foo.c in package xyz which is licensed under GPL-2.0.",
"concludedLicense": "https://spdx.org/licenses/GPL-2.0-only",
"copyrightText": "Copyright 2008-2010 John Smith",
"byteRange": [
310,
420
],
"lineRange": [
5,
23
]
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-0",
"from": "SPDXRef-DOCUMENT",
"to": [
"SPDXRef-Package"
],
"relationshipType": "CONTAINS"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-1",
"from": "SPDXRef-DOCUMENT",
"to": [
"DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement"
],
"relationshipType": "COPY"
},
{
"@type": "SoftwareDependencyRelationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-2",
"from": "SPDXRef-Package",
"to": [
"SPDXRef-Saxon"
],
"relationshipType": "DEPENDS_ON",
"softwareLinkage": "DYNAMIC"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-4",
"from": "SPDXRef-JenaLib",
"to": [
"SPDXRef-Package"
],
"relationshipType": "CONTAINS"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-5",
"from": "SPDXRef-Specification",
"to": [
"SPDXRef-fromDoap-0"
],
"relationshipType": "SPECIFICATION_FOR"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-6",
"from": "SPDXRef-fromDoap-0",
"to": [
"SPDXRef-File"
],
"relationshipType": "GENERATES"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-8",
"from": "SPDXRef-DOCUMENT",
"to": [
"SPDXRef-File",
"SPDXRef-Package"
],
"relationshipType": "DESCRIBES"
},
{
"@type": "Relationship",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Relationship-12",
"from": "SPDXRef-Package",
"to": [
"SPDXRef-Specification",
"SPDXRef-CommonsLangSrc",
"SPDXRef-JenaLib",
"SPDXRef-DoapSource"
],
"relationshipType": "CONTAINS"
},
{
"@type": "Annotation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-0",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-2",
"specVersion": "3.0.0",
"created": "2010-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JaneDoe"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"annotationType": "OTHER",
"subject": "SPDXRef-DOCUMENT",
"statement": "Document level annotation"
},
{
"@type": "Person",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JoeReviewer",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-3",
"specVersion": "3.0.0",
"created": "2010-02-10T00:00:00Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JoeReviewer"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"name": "Joe Reviewer"
},
{
"@type": "Annotation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-1",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-3",
"specVersion": "3.0.0",
"created": "2010-02-10T00:00:00Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-JoeReviewer"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"annotationType": "REVIEW",
"subject": "SPDXRef-DOCUMENT",
"statement": "This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses"
},
{
"@type": "Person",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-SuzanneReviewer",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-4",
"specVersion": "3.0.0",
"created": "2011-03-13T00:00:00Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-SuzanneReviewer"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"name": "Suzanne Reviewer"
},
{
"@type": "Annotation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-2",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-4",
"specVersion": "3.0.0",
"created": "2011-03-13T00:00:00Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-SuzanneReviewer"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"annotationType": "REVIEW",
"subject": "SPDXRef-DOCUMENT",
"statement": "Another example reviewer."
},
{
"@type": "Person",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-PackageCommenter",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-5",
"specVersion": "3.0.0",
"created": "2011-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-PackageCommenter"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"name": "Package Commenter"
},
{
"@type": "Annotation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-3",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-5",
"specVersion": "3.0.0",
"created": "2011-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-PackageCommenter"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"annotationType": "OTHER",
"subject": "SPDXRef-Package",
"statement": "Package level annotation"
},
{
"@type": "Person",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-FileCommenter",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-6",
"specVersion": "3.0.0",
"created": "2011-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-FileCommenter"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"name": "File Commenter"
},
{
"@type": "Annotation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Annotation-4",
"creationInfo": {
"@type": "CreationInformation",
"@id": "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#CreationInfo-6",
"specVersion": "3.0.0",
"created": "2011-01-29T18:30:22Z",
"createdBy": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-FileCommenter"
],
"createdUsing": [
"http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#SPDXRef-Actor-LicenseFind-1.0"
],
"profile": [
"core",
"software",
"licensing"
],
"dataLicense": "CC0-1.0",
"comment": "This document was created using SPDX 2.0 using licenses from the web site."
},
"annotationType": "OTHER",
"subject": "SPDXRef-File",
"statement": "File level annotation"
}
]
}

Workflow

We took the SPDXJSONExample-v2.3.spdx.json, converted and serialized it to jsonld using the Python tooling. Code for conversion is available on the serialization branch.
We had to slightly adapt the file to be able to convert it, below is a list of changes made and properties that couldn't be converted.

Changes made to the example file

  • Delete relationship "SPDXRef-CommonsLangSrc GENERATED_FROM NOASSERTION"
  • Delete relationship "SPDXRef-Specification SPECIFICATION_FOR SPDXRef-fromDoap-0 (this is just an issue with the conversion, will be fixed as soon as SoftwareDependencyRelationship PRs are merged)

Properties that are not converted

Other known limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment