aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIan Ling <ian@iancaling.com>2022-04-08 08:52:57 -0700
committerCatalinStratu <catalinstratu45@gmail.com>2022-05-05 09:38:40 +0300
commit48ae051e2d5511ba49e046bf87fa92ad62cd54d2 (patch)
tree28053dedab0877fac140c262d80133fd6f45a72c /examples
parentc1d7b0ca4601ec287a997a3b9ad65da0d67b8cd5 (diff)
downloadspdx-tools-48ae051e2d5511ba49e046bf87fa92ad62cd54d2.tar.gz
Overhaul structs, refactor JSON parser and saver
Signed-off-by: Ian Ling <ian@iancaling.com> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/1-load/example_load.go22
-rw-r--r--examples/10-jsonloader/example_json_loader.go12
-rw-r--r--examples/4-search/example_search.go2
-rw-r--r--examples/5-report/example_report.go20
-rw-r--r--examples/6-licensediff/example_licensediff.go40
-rw-r--r--examples/7-rdfloader/exampleRDFLoader.go8
-rw-r--r--examples/8-jsontotv/examplejsontotv.go4
-rw-r--r--examples/9-tvtojson/exampletvtojson.go4
-rw-r--r--examples/sample-docs/json/SPDXJSONExample-v2.2.spdx.json561
-rw-r--r--examples/sample-docs/tv/SPDXTagExample-v2.2.spdx657
-rw-r--r--examples/sample-docs/xls/SPDXSpreadsheetExample-v2.2.xlsxbin0 -> 14949 bytes
-rw-r--r--examples/sample-docs/xml/SPDXXMLExample-v2.2.spdx.xml443
-rw-r--r--examples/sample-docs/yaml/SPDXYAMLExample-2.2.spdx.yaml390
13 files changed, 1530 insertions, 633 deletions
diff --git a/examples/1-load/example_load.go b/examples/1-load/example_load.go
index 12563d2..328d349 100644
--- a/examples/1-load/example_load.go
+++ b/examples/1-load/example_load.go
@@ -62,14 +62,26 @@ func main() {
return
}
+ if len(pkgIDs) == 0 {
+ return
+ }
+
// it does, so we'll go through each one
- for _, pkgID := range pkgIDs {
- pkg, ok := doc.Packages[pkgID]
- if !ok {
- fmt.Printf("Package %s has described relationship but ID not found\n", string(pkgID))
+ for _, pkg := range doc.Packages {
+ var documentDescribesPackage bool
+ for _, describedPackageID := range pkgIDs {
+ if pkg.PackageSPDXIdentifier == describedPackageID {
+ documentDescribesPackage = true
+ break
+ }
+ }
+
+ if !documentDescribesPackage {
continue
}
+ pkgID := pkg.PackageSPDXIdentifier
+
// check whether the package had its files analyzed
if !pkg.FilesAnalyzed {
fmt.Printf("Package %s (%s) had FilesAnalyzed: false\n", string(pkgID), pkg.PackageName)
@@ -93,7 +105,7 @@ func main() {
// from a map. if we care about order, we should first pull the
// IDs into a slice, sort it, and then print the ordered files.
fmt.Printf("- File %d: %s\n", i, f.FileName)
- fmt.Printf(" License from file: %v\n", f.LicenseInfoInFile)
+ fmt.Printf(" License from file: %v\n", f.LicenseInfoInFiles)
fmt.Printf(" License concluded: %v\n", f.LicenseConcluded)
i++
if i > 50 {
diff --git a/examples/10-jsonloader/example_json_loader.go b/examples/10-jsonloader/example_json_loader.go
index a9422b1..4de9561 100644
--- a/examples/10-jsonloader/example_json_loader.go
+++ b/examples/10-jsonloader/example_json_loader.go
@@ -12,7 +12,7 @@ import (
"os"
"strings"
- "github.com/spdx/tools-golang/jsonloader"
+ "github.com/spdx/tools-golang/json"
)
func main() {
@@ -36,7 +36,7 @@ func main() {
defer r.Close()
// try to load the SPDX file's contents as a json file, version 2.2
- doc, err := jsonloader.Load2_2(r)
+ doc, err := spdx_json.Load2_2(r)
if err != nil {
fmt.Printf("Error while parsing %v: %v", args[1], err)
return
@@ -47,9 +47,9 @@ func main() {
fmt.Println(strings.Repeat("=", 80))
fmt.Println("Some Attributes of the Document:")
- fmt.Printf("Document Name: %s\n", doc.CreationInfo.DocumentName)
- fmt.Printf("DataLicense: %s\n", doc.CreationInfo.DataLicense)
- fmt.Printf("Document Namespace: %s\n", doc.CreationInfo.DocumentNamespace)
- fmt.Printf("SPDX Version: %s\n", doc.CreationInfo.SPDXVersion)
+ fmt.Printf("Document Name: %s\n", doc.DocumentName)
+ fmt.Printf("DataLicense: %s\n", doc.DataLicense)
+ fmt.Printf("Document Namespace: %s\n", doc.DocumentNamespace)
+ fmt.Printf("SPDX Version: %s\n", doc.SPDXVersion)
fmt.Println(strings.Repeat("=", 80))
}
diff --git a/examples/4-search/example_search.go b/examples/4-search/example_search.go
index 3f19596..52f8b07 100644
--- a/examples/4-search/example_search.go
+++ b/examples/4-search/example_search.go
@@ -120,7 +120,7 @@ func main() {
// all file hashes and the package verification code have been filled in
// appropriately by builder.
// And, all files with "SPDX-License-Identifier:" tags have had their
- // licenses extracted into LicenseInfoInFile and LicenseConcluded for
+ // licenses extracted into LicenseInfoInFiles and LicenseConcluded for
// each file by idsearcher. The PackageLicenseInfoFromFiles field will
// also be filled in with all license identifiers.
fmt.Printf("Successfully created document and searched for IDs for package %s\n", packageName)
diff --git a/examples/5-report/example_report.go b/examples/5-report/example_report.go
index bd7971f..1197547 100644
--- a/examples/5-report/example_report.go
+++ b/examples/5-report/example_report.go
@@ -54,14 +54,26 @@ func main() {
return
}
+ if len(pkgIDs) == 0 {
+ return
+ }
+
// it does, so we'll go through each one
- for _, pkgID := range pkgIDs {
- pkg, ok := doc.Packages[pkgID]
- if !ok {
- fmt.Printf("Package %s has described relationship but ID not found\n", string(pkgID))
+ for _, pkg := range doc.Packages {
+ var documentDescribesPackage bool
+ for _, describedPackageID := range pkgIDs {
+ if pkg.PackageSPDXIdentifier == describedPackageID {
+ documentDescribesPackage = true
+ break
+ }
+ }
+
+ if !documentDescribesPackage {
continue
}
+ pkgID := pkg.PackageSPDXIdentifier
+
// check whether the package had its files analyzed
if !pkg.FilesAnalyzed {
fmt.Printf("Package %s (%s) had FilesAnalyzed: false\n", string(pkgID), pkg.PackageName)
diff --git a/examples/6-licensediff/example_licensediff.go b/examples/6-licensediff/example_licensediff.go
index 5205efa..49d7603 100644
--- a/examples/6-licensediff/example_licensediff.go
+++ b/examples/6-licensediff/example_licensediff.go
@@ -13,6 +13,7 @@ package main
import (
"fmt"
+ "github.com/spdx/tools-golang/spdx"
"os"
"github.com/spdx/tools-golang/licensediff"
@@ -85,13 +86,30 @@ func main() {
// go through the first set first, report if they aren't in the second set
for _, pkgID := range pkgIDsFirst {
fmt.Printf("================================\n")
- p1, okFirst := docFirst.Packages[pkgID]
+
+ var p1, p2 *spdx.Package2_2
+ var okFirst, okSecond bool
+ for _, pkg := range docFirst.Packages {
+ if pkg.PackageSPDXIdentifier == pkgID {
+ okFirst = true
+ p1 = pkg
+ break
+ }
+ }
if !okFirst {
fmt.Printf("Package %s has described relationship in first document but ID not found\n", string(pkgID))
continue
}
+
fmt.Printf("Package %s (%s)\n", string(pkgID), p1.PackageName)
- p2, okSecond := docSecond.Packages[pkgID]
+
+ for _, pkg := range docSecond.Packages {
+ if pkg.PackageSPDXIdentifier == pkgID {
+ okSecond = true
+ p2 = pkg
+ break
+ }
+ }
if !okSecond {
fmt.Printf(" Found in first document, not found in second\n")
continue
@@ -121,13 +139,27 @@ func main() {
// now report if there are any package IDs in the second set that aren't
// in the first
for _, pkgID := range pkgIDsSecond {
- p2, okSecond := docSecond.Packages[pkgID]
+ var p2 *spdx.Package2_2
+ var okFirst, okSecond bool
+ for _, pkg := range docSecond.Packages {
+ if pkg.PackageSPDXIdentifier == pkgID {
+ okSecond = true
+ p2 = pkg
+ break
+ }
+ }
if !okSecond {
fmt.Printf("================================\n")
fmt.Printf("Package %s has described relationship in second document but ID not found\n", string(pkgID))
continue
}
- _, okFirst := docFirst.Packages[pkgID]
+
+ for _, pkg := range docFirst.Packages {
+ if pkg.PackageSPDXIdentifier == pkgID {
+ okFirst = true
+ break
+ }
+ }
if !okFirst {
fmt.Printf("================================\n")
fmt.Printf("Package %s (%s)\n", string(pkgID), p2.PackageName)
diff --git a/examples/7-rdfloader/exampleRDFLoader.go b/examples/7-rdfloader/exampleRDFLoader.go
index 4eae8c9..5258ac2 100644
--- a/examples/7-rdfloader/exampleRDFLoader.go
+++ b/examples/7-rdfloader/exampleRDFLoader.go
@@ -40,9 +40,9 @@ func main() {
// Printing some of the document Information
fmt.Println(strings.Repeat("=", 80))
fmt.Println("Some Attributes of the Document:")
- fmt.Printf("Document Name: %s\n", doc.CreationInfo.DocumentName)
- fmt.Printf("DataLicense: %s\n", doc.CreationInfo.DataLicense)
- fmt.Printf("Document Namespace: %s\n", doc.CreationInfo.DocumentNamespace)
- fmt.Printf("SPDX Version: %s\n", doc.CreationInfo.SPDXVersion)
+ fmt.Printf("Document Name: %s\n", doc.DocumentName)
+ fmt.Printf("DataLicense: %s\n", doc.DataLicense)
+ fmt.Printf("Document Namespace: %s\n", doc.DocumentNamespace)
+ fmt.Printf("SPDX Version: %s\n", doc.SPDXVersion)
fmt.Println(strings.Repeat("=", 80))
}
diff --git a/examples/8-jsontotv/examplejsontotv.go b/examples/8-jsontotv/examplejsontotv.go
index 5ceccc0..9faadce 100644
--- a/examples/8-jsontotv/examplejsontotv.go
+++ b/examples/8-jsontotv/examplejsontotv.go
@@ -11,7 +11,7 @@ import (
"fmt"
"os"
- "github.com/spdx/tools-golang/jsonloader"
+ "github.com/spdx/tools-golang/json"
"github.com/spdx/tools-golang/tvsaver"
)
@@ -36,7 +36,7 @@ func main() {
defer r.Close()
// try to load the SPDX file's contents as a json file, version 2.2
- doc, err := jsonloader.Load2_2(r)
+ doc, err := spdx_json.Load2_2(r)
if err != nil {
fmt.Printf("Error while parsing %v: %v", args[1], err)
return
diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go
index e75afc4..fac1c98 100644
--- a/examples/9-tvtojson/exampletvtojson.go
+++ b/examples/9-tvtojson/exampletvtojson.go
@@ -11,7 +11,7 @@ import (
"fmt"
"os"
- "github.com/spdx/tools-golang/jsonsaver"
+ "github.com/spdx/tools-golang/json"
"github.com/spdx/tools-golang/tvloader"
)
@@ -57,7 +57,7 @@ func main() {
defer w.Close()
// try to save the document to disk as an SPDX json file, version 2.2
- err = jsonsaver.Save2_2(doc, w)
+ err = spdx_json.Save2_2(doc, w)
if err != nil {
fmt.Printf("Error while saving %v: %v", fileOut, err)
return
diff --git a/examples/sample-docs/json/SPDXJSONExample-v2.2.spdx.json b/examples/sample-docs/json/SPDXJSONExample-v2.2.spdx.json
index 546e948..89171a1 100644
--- a/examples/sample-docs/json/SPDXJSONExample-v2.2.spdx.json
+++ b/examples/sample-docs/json/SPDXJSONExample-v2.2.spdx.json
@@ -1,277 +1,284 @@
-{
- "SPDXID" : "SPDXRef-DOCUMENT",
- "spdxVersion" : "SPDX-2.2",
- "creationInfo" : {
- "comment" : "This package has been shipped in source and binary form.\nThe binaries were created with gcc 4.5.1 and expect to link to\ncompatible system run time libraries.",
- "created" : "2010-01-29T18:30:22Z",
- "creators" : [ "Tool: LicenseFind-1.0", "Organization: ExampleCodeInspect ()", "Person: Jane Doe ()" ],
- "licenseListVersion" : "3.9"
- },
- "name" : "SPDX-Tools-v2.0",
- "dataLicense" : "CC0-1.0",
- "comment" : "This document was created using SPDX 2.0 using licenses from the web site.",
- "externalDocumentRefs" : [ {
- "externalDocumentId" : "DocumentRef-spdx-tool-1.2",
- "checksum" : {
- "algorithm" : "SHA1",
- "checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2759"
- },
- "spdxDocument" : "http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301"
- } ],
- "hasExtractedLicensingInfos" : [ {
- "extractedText" : "\"THE BEER-WARE LICENSE\" (Revision 42):\nphk@FreeBSD.ORG wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp </\nLicenseName: Beer-Ware License (Version 42)\nLicenseCrossReference: http://people.freebsd.org/~phk/\nLicenseComment: \nThe beerware license has a couple of other standard variants.",
- "licenseId" : "LicenseRef-Beerware-4.2"
- }, {
- "extractedText" : "/*\n * (c) Copyright 2009 University of Bristol\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*/",
- "licenseId" : "LicenseRef-4"
- }, {
- "comment" : "This is tye CyperNeko License",
- "extractedText" : "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.",
- "licenseId" : "LicenseRef-3",
- "name" : "CyberNeko License",
- "seeAlsos" : [ "http://people.apache.org/~andyc/neko/LICENSE", "http://justasample.url.com" ]
- }, {
- "extractedText" : "This package includes the GRDDL parser developed by Hewlett Packard under the following license:\n� 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.",
- "licenseId" : "LicenseRef-2"
- }, {
- "extractedText" : "/*\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*/",
- "licenseId" : "LicenseRef-1"
- } ],
- "annotations" : [ {
- "annotationDate" : "2010-01-29T18:30:22Z",
- "annotationType" : "OTHER",
- "annotator" : "Person: Jane Doe ()",
- "comment" : "Document level annotation"
- }, {
- "annotationDate" : "2011-03-13T00:00:00Z",
- "annotationType" : "REVIEW",
- "annotator" : "Person: Suzanne Reviewer",
- "comment" : "Another example reviewer."
- }, {
- "annotationDate" : "2010-02-10T00:00:00Z",
- "annotationType" : "REVIEW",
- "annotator" : "Person: Joe Reviewer",
- "comment" : "This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses"
- } ],
- "documentNamespace" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301",
- "documentDescribes" : [ "SPDXRef-File", "SPDXRef-Package" ],
- "packages" : [ {
- "SPDXID" : "SPDXRef-Package",
- "annotations" : [ {
- "annotationDate" : "2011-01-29T18:30:22Z",
- "annotationType" : "OTHER",
- "annotator" : "Person: Package Commenter",
- "comment" : "Package level annotation"
- } ],
- "attributionTexts" : [ "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." ],
- "checksums" : [ {
- "algorithm" : "SHA1",
- "checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"
- }, {
- "algorithm" : "MD5",
- "checksumValue" : "624c1abb3664f4b35547e7c73864ad24"
- }, {
- "algorithm" : "SHA256",
- "checksumValue" : "11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd"
- } ],
- "copyrightText" : "Copyright 2008-2010 John Smith",
- "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.",
- "downloadLocation" : "http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz",
- "externalRefs" : [ {
- "comment" : "This is the external ref for Acme",
- "referenceCategory" : "OTHER",
- "referenceLocator" : "acmecorp/acmenator/4.1.3-alpha",
- "referenceType" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LocationRef-acmeforge"
- }, {
- "referenceCategory" : "SECURITY",
- "referenceLocator" : "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*",
- "referenceType" : "http://spdx.org/rdf/references/cpe23Type"
- } ],
- "filesAnalyzed" : true,
- "hasFiles" : [ "SPDXRef-JenaLib", "SPDXRef-DoapSource", "SPDXRef-CommonsLangSrc" ],
- "homepage" : "http://ftp.gnu.org/gnu/glibc",
- "licenseComments" : "The license for this project changed with the release of version x.y. The version of the project included here post-dates the license change.",
- "licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-3)",
- "licenseDeclared" : "(LGPL-2.0-only AND LicenseRef-3)",
- "licenseInfoFromFiles" : [ "GPL-2.0-only", "LicenseRef-2", "LicenseRef-1" ],
- "name" : "glibc",
- "originator" : "Organization: ExampleCodeInspect (contact@example.com)",
- "packageFileName" : "glibc-2.11.1.tar.gz",
- "packageVerificationCode" : {
- "packageVerificationCodeExcludedFiles" : [ "./package.spdx" ],
- "packageVerificationCodeValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"
- },
- "sourceInfo" : "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.",
- "summary" : "GNU C library.",
- "supplier" : "Person: Jane Doe (jane.doe@example.com)",
- "versionInfo" : "2.11.1"
- }, {
- "SPDXID" : "SPDXRef-fromDoap-1",
- "comment" : "This package was converted from a DOAP Project by the same name",
- "copyrightText" : "NOASSERTION",
- "downloadLocation" : "NOASSERTION",
- "filesAnalyzed" : false,
- "homepage" : "http://commons.apache.org/proper/commons-lang/",
- "licenseConcluded" : "NOASSERTION",
- "licenseDeclared" : "NOASSERTION",
- "name" : "Apache Commons Lang"
- }, {
- "SPDXID" : "SPDXRef-fromDoap-0",
- "comment" : "This package was converted from a DOAP Project by the same name",
- "copyrightText" : "NOASSERTION",
- "downloadLocation" : "NOASSERTION",
- "filesAnalyzed" : false,
- "homepage" : "http://www.openjena.org/",
- "licenseConcluded" : "NOASSERTION",
- "licenseDeclared" : "NOASSERTION",
- "name" : "Jena"
- }, {
- "SPDXID" : "SPDXRef-Saxon",
- "checksums" : [ {
- "algorithm" : "SHA1",
- "checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"
- } ],
- "copyrightText" : "Copyright Saxonica Ltd",
- "description" : "The Saxon package is a collection of tools for processing XML documents.",
- "downloadLocation" : "https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download",
- "filesAnalyzed" : false,
- "homepage" : "http://saxon.sourceforge.net/",
- "licenseComments" : "Other versions available for a commercial license",
- "licenseConcluded" : "MPL-1.0",
- "licenseDeclared" : "MPL-1.0",
- "name" : "Saxon",
- "packageFileName" : "saxonB-8.8.zip",
- "versionInfo" : "8.8"
- } ],
- "files" : [ {
- "SPDXID" : "SPDXRef-DoapSource",
- "checksums" : [ {
- "algorithm" : "SHA1",
- "checksumValue" : "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"
- } ],
- "copyrightText" : "Copyright 2010, 2011 Source Auditor Inc.",
- "fileContributors" : [ "Protecode Inc.", "SPDX Technical Team Members", "Open Logic Inc.", "Source Auditor Inc.", "Black Duck Software In.c" ],
- "fileName" : "./src/org/spdx/parser/DOAPProject.java",
- "fileTypes" : [ "SOURCE" ],
- "licenseConcluded" : "Apache-2.0",
- "licenseInfoInFiles" : [ "Apache-2.0" ]
- }, {
- "SPDXID" : "SPDXRef-CommonsLangSrc",
- "checksums" : [ {
- "algorithm" : "SHA1",
- "checksumValue" : "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"
- } ],
- "comment" : "This file is used by Jena",
- "copyrightText" : "Copyright 2001-2011 The Apache Software Foundation",
- "fileContributors" : [ "Apache Software Foundation" ],
- "fileName" : "./lib-source/commons-lang3-3.1-sources.jar",
- "fileTypes" : [ "ARCHIVE" ],
- "licenseConcluded" : "Apache-2.0",
- "licenseInfoInFiles" : [ "Apache-2.0" ],
- "noticeText" : "Apache Commons Lang\nCopyright 2001-2011 The Apache Software Foundation\n\nThis product includes software developed by\nThe Apache Software Foundation (http://www.apache.org/).\n\nThis product includes software from the Spring Framework,\nunder the Apache License 2.0 (see: StringUtils.containsWhitespace())"
- }, {
- "SPDXID" : "SPDXRef-JenaLib",
- "checksums" : [ {
- "algorithm" : "SHA1",
- "checksumValue" : "3ab4e1c67a2d28fced849ee1bb76e7391b93f125"
- } ],
- "comment" : "This file belongs to Jena",
- "copyrightText" : "(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP",
- "fileContributors" : [ "Apache Software Foundation", "Hewlett Packard Inc." ],
- "fileName" : "./lib-source/jena-2.6.3-sources.jar",
- "fileTypes" : [ "ARCHIVE" ],
- "licenseComments" : "This license is used by Jena",
- "licenseConcluded" : "LicenseRef-1",
- "licenseInfoInFiles" : [ "LicenseRef-1" ]
- }, {
- "SPDXID" : "SPDXRef-File",
- "annotations" : [ {
- "annotationDate" : "2011-01-29T18:30:22Z",
- "annotationType" : "OTHER",
- "annotator" : "Person: File Commenter",
- "comment" : "File level annotation"
- } ],
- "checksums" : [ {
- "algorithm" : "MD5",
- "checksumValue" : "624c1abb3664f4b35547e7c73864ad24"
- }, {
- "algorithm" : "SHA1",
- "checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"
- } ],
- "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.",
- "copyrightText" : "Copyright 2008-2010 John Smith",
- "fileContributors" : [ "The Regents of the University of California", "Modified by Paul Mundt lethal@linux-sh.org", "IBM Corporation" ],
- "fileName" : "./package/foo.c",
- "fileTypes" : [ "SOURCE" ],
- "licenseComments" : "The concluded license was taken from the package level that the file was included in.",
- "licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-2)",
- "licenseInfoInFiles" : [ "GPL-2.0-only", "LicenseRef-2" ],
- "noticeText" : "Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: \nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
- } ],
- "snippets" : [ {
- "SPDXID" : "SPDXRef-Snippet",
- "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.",
- "copyrightText" : "Copyright 2008-2010 John Smith",
- "licenseComments" : "The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.",
- "licenseConcluded" : "GPL-2.0-only",
- "licenseInfoInSnippets" : [ "GPL-2.0-only" ],
- "name" : "from linux kernel",
- "ranges" : [ {
- "endPointer" : {
- "lineNumber" : 23,
- "reference" : "SPDXRef-DoapSource"
- },
- "startPointer" : {
- "lineNumber" : 5,
- "reference" : "SPDXRef-DoapSource"
- }
- }, {
- "endPointer" : {
- "offset" : 420,
- "reference" : "SPDXRef-DoapSource"
- },
- "startPointer" : {
- "offset" : 310,
- "reference" : "SPDXRef-DoapSource"
- }
- } ],
- "snippetFromFile" : "SPDXRef-DoapSource"
- } ],
- "relationships" : [ {
- "spdxElementId" : "SPDXRef-DOCUMENT",
- "relatedSpdxElement" : "SPDXRef-Package",
- "relationshipType" : "CONTAINS"
- }, {
- "spdxElementId" : "SPDXRef-DOCUMENT",
- "relatedSpdxElement" : "SPDXRef-File",
- "relationshipType" : "DESCRIBES"
- }, {
- "spdxElementId" : "SPDXRef-DOCUMENT",
- "relatedSpdxElement" : "DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement",
- "relationshipType" : "COPY_OF"
- }, {
- "spdxElementId" : "SPDXRef-DOCUMENT",
- "relatedSpdxElement" : "SPDXRef-Package",
- "relationshipType" : "DESCRIBES"
- }, {
- "spdxElementId" : "SPDXRef-Package",
- "relatedSpdxElement" : "SPDXRef-Saxon",
- "relationshipType" : "DYNAMIC_LINK"
- }, {
- "spdxElementId" : "SPDXRef-Package",
- "relatedSpdxElement" : "SPDXRef-JenaLib",
- "relationshipType" : "CONTAINS"
- }, {
- "spdxElementId" : "SPDXRef-CommonsLangSrc",
- "relatedSpdxElement" : "NOASSERTION",
- "relationshipType" : "GENERATED_FROM"
- }, {
- "spdxElementId" : "SPDXRef-JenaLib",
- "relatedSpdxElement" : "SPDXRef-Package",
- "relationshipType" : "CONTAINS"
- }, {
- "spdxElementId" : "SPDXRef-File",
- "relatedSpdxElement" : "SPDXRef-fromDoap-0",
- "relationshipType" : "GENERATED_FROM"
- } ]
-} \ No newline at end of file
+{
+ "SPDXID" : "SPDXRef-DOCUMENT",
+ "spdxVersion" : "SPDX-2.2",
+ "creationInfo" : {
+ "comment" : "This package has been shipped in source and binary form.\nThe binaries were created with gcc 4.5.1 and expect to link to\ncompatible system run time libraries.",
+ "created" : "2010-01-29T18:30:22Z",
+ "creators" : [ "Tool: LicenseFind-1.0", "Organization: ExampleCodeInspect ()", "Person: Jane Doe ()" ],
+ "licenseListVersion" : "3.9"
+ },
+ "name" : "SPDX-Tools-v2.0",
+ "dataLicense" : "CC0-1.0",
+ "comment" : "This document was created using SPDX 2.0 using licenses from the web site.",
+ "externalDocumentRefs" : [ {
+ "externalDocumentId" : "DocumentRef-spdx-tool-1.2",
+ "checksum" : {
+ "algorithm" : "SHA1",
+ "checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2759"
+ },
+ "spdxDocument" : "http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301"
+ } ],
+ "hasExtractedLicensingInfos" : [ {
+ "licenseId" : "LicenseRef-1",
+ "extractedText" : "/*\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*/"
+ }, {
+ "licenseId" : "LicenseRef-2",
+ "extractedText" : "This package includes the GRDDL parser developed by Hewlett Packard under the following license:\n� 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."
+ }, {
+ "licenseId" : "LicenseRef-4",
+ "extractedText" : "/*\n * (c) Copyright 2009 University of Bristol\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*/"
+ }, {
+ "licenseId" : "LicenseRef-Beerware-4.2",
+ "comment" : "The beerware license has a couple of other standard variants.",
+ "extractedText" : "\"THE BEER-WARE LICENSE\" (Revision 42):\nphk@FreeBSD.ORG wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp",
+ "name" : "Beer-Ware License (Version 42)",
+ "seeAlsos" : [ "http://people.freebsd.org/~phk/" ]
+ }, {
+ "licenseId" : "LicenseRef-3",
+ "comment" : "This is tye CyperNeko License",
+ "extractedText" : "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.",
+ "name" : "CyberNeko License",
+ "seeAlsos" : [ "http://people.apache.org/~andyc/neko/LICENSE", "http://justasample.url.com" ]
+ } ],
+ "annotations" : [ {
+ "annotationDate" : "2010-01-29T18:30:22Z",
+ "annotationType" : "OTHER",
+ "annotator" : "Person: Jane Doe ()",
+ "comment" : "Document level annotation"
+ }, {
+ "annotationDate" : "2010-02-10T00:00:00Z",
+ "annotationType" : "REVIEW",
+ "annotator" : "Person: Joe Reviewer",
+ "comment" : "This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses"
+ }, {
+ "annotationDate" : "2011-03-13T00:00:00Z",
+ "annotationType" : "REVIEW",
+ "annotator" : "Person: Suzanne Reviewer",
+ "comment" : "Another example reviewer."
+ } ],
+ "documentNamespace" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301",
+ "documentDescribes" : [ "SPDXRef-File", "SPDXRef-Package" ],
+ "packages" : [ {
+ "SPDXID" : "SPDXRef-Package",
+ "annotations" : [ {
+ "annotationDate" : "2011-01-29T18:30:22Z",
+ "annotationType" : "OTHER",
+ "annotator" : "Person: Package Commenter",
+ "comment" : "Package level annotation"
+ } ],
+ "attributionTexts" : [ "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." ],
+ "checksums" : [ {
+ "algorithm" : "MD5",
+ "checksumValue" : "624c1abb3664f4b35547e7c73864ad24"
+ }, {
+ "algorithm" : "SHA1",
+ "checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"
+ }, {
+ "algorithm" : "SHA256",
+ "checksumValue" : "11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd"
+ } ],
+ "copyrightText" : "Copyright 2008-2010 John Smith",
+ "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.",
+ "downloadLocation" : "http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz",
+ "externalRefs" : [ {
+ "referenceCategory" : "SECURITY",
+ "referenceLocator" : "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*",
+ "referenceType" : "cpe23Type"
+ }, {
+ "comment" : "This is the external ref for Acme",
+ "referenceCategory" : "OTHER",
+ "referenceLocator" : "acmecorp/acmenator/4.1.3-alpha",
+ "referenceType" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LocationRef-acmeforge"
+ } ],
+ "filesAnalyzed" : true,
+ "hasFiles" : [ "SPDXRef-CommonsLangSrc", "SPDXRef-JenaLib", "SPDXRef-DoapSource" ],
+ "homepage" : "http://ftp.gnu.org/gnu/glibc",
+ "licenseComments" : "The license for this project changed with the release of version x.y. The version of the project included here post-dates the license change.",
+ "licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-3)",
+ "licenseDeclared" : "(LGPL-2.0-only AND LicenseRef-3)",
+ "licenseInfoFromFiles" : [ "GPL-2.0-only", "LicenseRef-2", "LicenseRef-1" ],
+ "name" : "glibc",
+ "originator" : "Organization: ExampleCodeInspect (contact@example.com)",
+ "packageFileName" : "glibc-2.11.1.tar.gz",
+ "packageVerificationCode" : {
+ "packageVerificationCodeExcludedFiles" : [ "./package.spdx" ],
+ "packageVerificationCodeValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"
+ },
+ "sourceInfo" : "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.",
+ "summary" : "GNU C library.",
+ "supplier" : "Person: Jane Doe (jane.doe@example.com)",
+ "versionInfo" : "2.11.1"
+ }, {
+ "SPDXID" : "SPDXRef-fromDoap-1",
+ "copyrightText" : "NOASSERTION",
+ "downloadLocation" : "NOASSERTION",
+ "filesAnalyzed" : false,
+ "homepage" : "http://commons.apache.org/proper/commons-lang/",
+ "licenseConcluded" : "NOASSERTION",
+ "licenseDeclared" : "NOASSERTION",
+ "name" : "Apache Commons Lang"
+ }, {
+ "SPDXID" : "SPDXRef-fromDoap-0",
+ "copyrightText" : "NOASSERTION",
+ "downloadLocation" : "https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz",
+ "externalRefs" : [ {
+ "referenceCategory" : "PACKAGE_MANAGER",
+ "referenceLocator" : "pkg:maven/org.apache.jena/apache-jena@3.12.0",
+ "referenceType" : "purl"
+ } ],
+ "filesAnalyzed" : false,
+ "homepage" : "http://www.openjena.org/",
+ "licenseConcluded" : "NOASSERTION",
+ "licenseDeclared" : "NOASSERTION",
+ "name" : "Jena",
+ "versionInfo" : "3.12.0"
+ }, {
+ "SPDXID" : "SPDXRef-Saxon",
+ "checksums" : [ {
+ "algorithm" : "SHA1",
+ "checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"
+ } ],
+ "copyrightText" : "Copyright Saxonica Ltd",
+ "description" : "The Saxon package is a collection of tools for processing XML documents.",
+ "downloadLocation" : "https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download",
+ "filesAnalyzed" : false,
+ "homepage" : "http://saxon.sourceforge.net/",
+ "licenseComments" : "Other versions available for a commercial license",
+ "licenseConcluded" : "MPL-1.0",
+ "licenseDeclared" : "MPL-1.0",
+ "name" : "Saxon",
+ "packageFileName" : "saxonB-8.8.zip",
+ "versionInfo" : "8.8"
+ } ],
+ "files" : [ {
+ "SPDXID" : "SPDXRef-DoapSource",
+ "checksums" : [ {
+ "algorithm" : "SHA1",
+ "checksumValue" : "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"
+ } ],
+ "copyrightText" : "Copyright 2010, 2011 Source Auditor Inc.",
+ "fileContributors" : [ "Protecode Inc.", "SPDX Technical Team Members", "Open Logic Inc.", "Source Auditor Inc.", "Black Duck Software In.c" ],
+ "fileName" : "./src/org/spdx/parser/DOAPProject.java",
+ "fileTypes" : [ "SOURCE" ],
+ "licenseConcluded" : "Apache-2.0",
+ "licenseInfoInFiles" : [ "Apache-2.0" ]
+ }, {
+ "SPDXID" : "SPDXRef-CommonsLangSrc",
+ "checksums" : [ {
+ "algorithm" : "SHA1",
+ "checksumValue" : "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"
+ } ],
+ "comment" : "This file is used by Jena",
+ "copyrightText" : "Copyright 2001-2011 The Apache Software Foundation",
+ "fileContributors" : [ "Apache Software Foundation" ],
+ "fileName" : "./lib-source/commons-lang3-3.1-sources.jar",
+ "fileTypes" : [ "ARCHIVE" ],
+ "licenseConcluded" : "Apache-2.0",
+ "licenseInfoInFiles" : [ "Apache-2.0" ],
+ "noticeText" : "Apache Commons Lang\nCopyright 2001-2011 The Apache Software Foundation\n\nThis product includes software developed by\nThe Apache Software Foundation (http://www.apache.org/).\n\nThis product includes software from the Spring Framework,\nunder the Apache License 2.0 (see: StringUtils.containsWhitespace())"
+ }, {
+ "SPDXID" : "SPDXRef-JenaLib",
+ "checksums" : [ {
+ "algorithm" : "SHA1",
+ "checksumValue" : "3ab4e1c67a2d28fced849ee1bb76e7391b93f125"
+ } ],
+ "comment" : "This file belongs to Jena",
+ "copyrightText" : "(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP",
+ "fileContributors" : [ "Apache Software Foundation", "Hewlett Packard Inc." ],
+ "fileName" : "./lib-source/jena-2.6.3-sources.jar",
+ "fileTypes" : [ "ARCHIVE" ],
+ "licenseComments" : "This license is used by Jena",
+ "licenseConcluded" : "LicenseRef-1",
+ "licenseInfoInFiles" : [ "LicenseRef-1" ]
+ }, {
+ "SPDXID" : "SPDXRef-File",
+ "annotations" : [ {
+ "annotationDate" : "2011-01-29T18:30:22Z",
+ "annotationType" : "OTHER",
+ "annotator" : "Person: File Commenter",
+ "comment" : "File level annotation"
+ } ],
+ "checksums" : [ {
+ "algorithm" : "SHA1",
+ "checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"
+ }, {
+ "algorithm" : "MD5",
+ "checksumValue" : "624c1abb3664f4b35547e7c73864ad24"
+ } ],
+ "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.",
+ "copyrightText" : "Copyright 2008-2010 John Smith",
+ "fileContributors" : [ "The Regents of the University of California", "Modified by Paul Mundt lethal@linux-sh.org", "IBM Corporation" ],
+ "fileName" : "./package/foo.c",
+ "fileTypes" : [ "SOURCE" ],
+ "licenseComments" : "The concluded license was taken from the package level that the file was included in.",
+ "licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-2)",
+ "licenseInfoInFiles" : [ "GPL-2.0-only", "LicenseRef-2" ],
+ "noticeText" : "Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: \nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
+ } ],
+ "snippets" : [ {
+ "SPDXID" : "SPDXRef-Snippet",
+ "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.",
+ "copyrightText" : "Copyright 2008-2010 John Smith",
+ "licenseComments" : "The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.",
+ "licenseConcluded" : "GPL-2.0-only",
+ "licenseInfoInSnippets" : [ "GPL-2.0-only" ],
+ "name" : "from linux kernel",
+ "ranges" : [ {
+ "endPointer" : {
+ "offset" : 420,
+ "reference" : "SPDXRef-DoapSource"
+ },
+ "startPointer" : {
+ "offset" : 310,
+ "reference" : "SPDXRef-DoapSource"
+ }
+ }, {
+ "endPointer" : {
+ "lineNumber" : 23,
+ "reference" : "SPDXRef-DoapSource"
+ },
+ "startPointer" : {
+ "lineNumber" : 5,
+ "reference" : "SPDXRef-DoapSource"
+ }
+ } ],
+ "snippetFromFile" : "SPDXRef-DoapSource"
+ } ],
+ "relationships" : [ {
+ "spdxElementId" : "SPDXRef-DOCUMENT",
+ "relatedSpdxElement" : "SPDXRef-Package",
+ "relationshipType" : "CONTAINS"
+ }, {
+ "spdxElementId" : "SPDXRef-DOCUMENT",
+ "relatedSpdxElement" : "DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement",
+ "relationshipType" : "COPY_OF"
+ }, {
+ "spdxElementId" : "SPDXRef-DOCUMENT",
+ "relatedSpdxElement" : "SPDXRef-File",
+ "relationshipType" : "DESCRIBES"
+ }, {
+ "spdxElementId" : "SPDXRef-DOCUMENT",
+ "relatedSpdxElement" : "SPDXRef-Package",
+ "relationshipType" : "DESCRIBES"
+ }, {
+ "spdxElementId" : "SPDXRef-Package",
+ "relatedSpdxElement" : "SPDXRef-JenaLib",
+ "relationshipType" : "CONTAINS"
+ }, {
+ "spdxElementId" : "SPDXRef-Package",
+ "relatedSpdxElement" : "SPDXRef-Saxon",
+ "relationshipType" : "DYNAMIC_LINK"
+ }, {
+ "spdxElementId" : "SPDXRef-CommonsLangSrc",
+ "relatedSpdxElement" : "NOASSERTION",
+ "relationshipType" : "GENERATED_FROM"
+ }, {
+ "spdxElementId" : "SPDXRef-JenaLib",
+ "relatedSpdxElement" : "SPDXRef-Package",
+ "relationshipType" : "CONTAINS"
+ }, {
+ "spdxElementId" : "SPDXRef-File",
+ "relatedSpdxElement" : "SPDXRef-fromDoap-0",
+ "relationshipType" : "GENERATED_FROM"
+ } ]
+}
diff --git a/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx b/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx
index 03ec653..e8f32eb 100644
--- a/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx
+++ b/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx
@@ -1,328 +1,329 @@
-SPDXVersion: SPDX-2.2
-DataLicense: CC0-1.0
-DocumentNamespace: http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301
-DocumentName: SPDX-Tools-v2.0
-SPDXID: SPDXRef-DOCUMENT
-DocumentComment: <text>This document was created using SPDX 2.0 using licenses from the web site.</text>
-
-## External Document References
-ExternalDocumentRef: DocumentRef-spdx-tool-1.2 http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301 SHA1: d6a770ba38583ed4bb4525bd96e50461655d2759
-## Creation Information
-Creator: Tool: LicenseFind-1.0
-Creator: Organization: ExampleCodeInspect ()
-Creator: Person: Jane Doe ()
-Created: 2010-01-29T18:30:22Z
-CreatorComment: <text>This package has been shipped in source and binary form.
-The binaries were created with gcc 4.5.1 and expect to link to
-compatible system run time libraries.</text>
-LicenseListVersion: 3.9
-## Annotations
-Annotator: Person: Jane Doe ()
-AnnotationDate: 2010-01-29T18:30:22Z
-AnnotationComment: <text>Document level annotation</text>
-AnnotationType: OTHER
-SPDXREF: SPDXRef-DOCUMENT
-Annotator: Person: Joe Reviewer
-AnnotationDate: 2010-02-10T00:00:00Z
-AnnotationComment: <text>This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses</text>
-AnnotationType: REVIEW
-SPDXREF: SPDXRef-DOCUMENT
-Annotator: Person: Suzanne Reviewer
-AnnotationDate: 2011-03-13T00:00:00Z
-AnnotationComment: <text>Another example reviewer.</text>
-AnnotationType: REVIEW
-SPDXREF: SPDXRef-DOCUMENT
-## Relationships
-Relationship: SPDXRef-DOCUMENT CONTAINS SPDXRef-Package
-Relationship: SPDXRef-DOCUMENT COPY_OF DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement
-Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-File
-Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-Package
-
-FileName: ./package/foo.c
-SPDXID: SPDXRef-File
-FileComment: <text>The concluded license was taken from the package level that the file was included in.
-This information was found in the COPYING.txt file in the xyz directory.</text>
-FileType: SOURCE
-FileChecksum: SHA1: d6a770ba38583ed4bb4525bd96e50461655d2758
-FileChecksum: MD5: 624c1abb3664f4b35547e7c73864ad24
-LicenseConcluded: (LGPL-2.0-only OR LicenseRef-2)
-LicenseInfoInFile: GPL-2.0-only
-LicenseInfoInFile: LicenseRef-2
-LicenseComments: The concluded license was taken from the package level that the file was included in.
-FileCopyrightText: <text>Copyright 2008-2010 John Smith</text>
-FileNotice: <text>Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</text>
-FileContributor: The Regents of the University of California
-FileContributor: Modified by Paul Mundt lethal@linux-sh.org
-FileContributor: IBM Corporation
-## Annotations
-Annotator: Person: File Commenter
-AnnotationDate: 2011-01-29T18:30:22Z
-AnnotationComment: <text>File level annotation</text>
-AnnotationType: OTHER
-SPDXREF: SPDXRef-File
-## Relationships
-Relationship: SPDXRef-File GENERATED_FROM SPDXRef-fromDoap-0
-## Package Information
-PackageName: glibc
-SPDXID: SPDXRef-Package
-PackageVersion: 2.11.1
-PackageFileName: glibc-2.11.1.tar.gz
-PackageSupplier: Person: Jane Doe (jane.doe@example.com)
-PackageOriginator: Organization: ExampleCodeInspect (contact@example.com)
-PackageDownloadLocation: http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz
-PackageVerificationCode: d6a770ba38583ed4bb4525bd96e50461655d2758(./package.spdx)
-PackageChecksum: MD5: 624c1abb3664f4b35547e7c73864ad24
-PackageChecksum: SHA1: 85ed0817af83a24ad8da68c2b5094de69833983c
-PackageChecksum: SHA256: 11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd
-PackageHomePage: http://ftp.gnu.org/gnu/glibc
-PackageSourceInfo: <text>uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.</text>
-PackageLicenseConcluded: (LGPL-2.0-only OR LicenseRef-3)
-## License information from files
-PackageLicenseInfoFromFiles: GPL-2.0-only
-PackageLicenseInfoFromFiles: LicenseRef-2
-PackageLicenseInfoFromFiles: LicenseRef-1
-PackageLicenseDeclared: (LGPL-2.0-only AND LicenseRef-3)
-PackageLicenseComments: <text>The license for this project changed with the release of version x.y. The version of the project included here post-dates the license change.</text>
-PackageCopyrightText: <text>Copyright 2008-2010 John Smith</text>
-PackageSummary: <text>GNU C library.</text>
-PackageDescription: <text>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.</text>
-PackageAttributionText: <text>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.</text>
-ExternalRef: SECURITY cpe23Type cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*
-ExternalRef: OTHER LocationRef-acmeforge acmecorp/acmenator/4.1.3-alpha
-ExternalRefComment: This is the external ref for Acme
-## Annotations
-Annotator: Person: Package Commenter
-AnnotationDate: 2011-01-29T18:30:22Z
-AnnotationComment: <text>Package level annotation</text>
-AnnotationType: OTHER
-SPDXREF: SPDXRef-Package
-## Relationships
-Relationship: SPDXRef-Package CONTAINS SPDXRef-JenaLib
-Relationship: SPDXRef-Package DYNAMIC_LINK SPDXRef-Saxon
-
-## File Information
-FileName: ./lib-source/commons-lang3-3.1-sources.jar
-SPDXID: SPDXRef-CommonsLangSrc
-FileComment: <text>This file is used by Jena</text>
-FileType: ARCHIVE
-FileChecksum: SHA1: c2b4e1c67a2d28fced849ee1bb76e7391b93f125
-LicenseConcluded: Apache-2.0
-LicenseInfoInFile: Apache-2.0
-FileCopyrightText: <text>Copyright 2001-2011 The Apache Software Foundation</text>
-FileNotice: <text>Apache Commons Lang
-Copyright 2001-2011 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-
-This product includes software from the Spring Framework,
-under the Apache License 2.0 (see: StringUtils.containsWhitespace())</text>
-FileContributor: Apache Software Foundation
-## Relationships
-Relationship: SPDXRef-CommonsLangSrc GENERATED_FROM NOASSERTION
-
-FileName: ./lib-source/jena-2.6.3-sources.jar
-SPDXID: SPDXRef-JenaLib
-FileComment: <text>This file belongs to Jena</text>
-FileType: ARCHIVE
-FileChecksum: SHA1: 3ab4e1c67a2d28fced849ee1bb76e7391b93f125
-LicenseConcluded: LicenseRef-1
-LicenseInfoInFile: LicenseRef-1
-LicenseComments: This license is used by Jena
-FileCopyrightText: <text>(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP</text>
-FileContributor: Apache Software Foundation
-FileContributor: Hewlett Packard Inc.
-## Relationships
-Relationship: SPDXRef-JenaLib CONTAINS SPDXRef-Package
-
-FileName: ./src/org/spdx/parser/DOAPProject.java
-SPDXID: SPDXRef-DoapSource
-FileType: SOURCE
-FileChecksum: SHA1: 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
-LicenseConcluded: Apache-2.0
-LicenseInfoInFile: Apache-2.0
-FileCopyrightText: <text>Copyright 2010, 2011 Source Auditor Inc.</text>
-FileContributor: Protecode Inc.
-FileContributor: SPDX Technical Team Members
-FileContributor: Open Logic Inc.
-FileContributor: Source Auditor Inc.
-FileContributor: Black Duck Software In.c
-
-## Package Information
-PackageName: Apache Commons Lang
-SPDXID: SPDXRef-fromDoap-1
-PackageDownloadLocation: NOASSERTION
-PackageHomePage: http://commons.apache.org/proper/commons-lang/
-PackageLicenseConcluded: NOASSERTION
-PackageLicenseDeclared: NOASSERTION
-PackageCopyrightText: <text>NOASSERTION</text>
-FilesAnalyzed: false
-
-## Package Information
-PackageName: Jena
-SPDXID: SPDXRef-fromDoap-0
-PackageVersion: 3.12.0
-PackageDownloadLocation: https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz
-PackageHomePage: http://www.openjena.org/
-PackageLicenseConcluded: NOASSERTION
-PackageLicenseDeclared: NOASSERTION
-PackageCopyrightText: <text>NOASSERTION</text>
-ExternalRef: PACKAGE-MANAGER purl pkg:maven/org.apache.jena/apache-jena@3.12.0
-FilesAnalyzed: false
-
-## Package Information
-PackageName: Saxons
-SPDXID: SPDXRef-Saxonas
-PackageVersion: 8.8
-PackageFileName: saxonB-8.8.zip
-PackageDownloadLocation: https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download
-PackageChecksum: SHA1: 85ed0817af83a24ad8da68c2b5094de69833983c
-PackageHomePage: http://saxon.sourceforge.net/
-PackageLicenseConcluded: MPL-1.0
-PackageLicenseDeclared: MPL-1.0
-PackageLicenseComments: <text>Other versions available for a commercial license</text>
-PackageCopyrightText: <text>Copyright Saxonica Ltd</text>
-PackageDescription: <text>The Saxon package is a collection of tools for processing XML documents.</text>
-FilesAnalyzed: false
-
-## Snippet Information
-SnippetSPDXID: SPDXRef-Snippet
-SnippetFromFileSPDXID: SPDXRef-DoapSource
-SnippetByteRange: 310:420
-SnippetLineRange: 5:23
-SnippetLicenseConcluded: GPL-2.0-only
-LicenseInfoInSnippet: GPL-2.0-only
-SnippetLicenseComments: The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.
-SnippetCopyrightText: Copyright 2008-2010 John Smith
-SnippetComment: 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.
-SnippetName: from linux kernel
-
-
-## License Information
-LicenseID: LicenseRef-1
-ExtractedText: <text>/*
- * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions 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.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS 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.
-*/</text>
-
-LicenseID: LicenseRef-2
-ExtractedText: <text>This package includes the GRDDL parser developed by Hewlett Packard under the following license:
-� Copyright 2007 Hewlett-Packard Development Company, LP
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-Redistributions 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.
-The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
-THIS 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.</text>
-
-LicenseID: LicenseRef-4
-ExtractedText: <text>/*
- * (c) Copyright 2009 University of Bristol
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions 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.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS 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.
-*/</text>
-
-LicenseID: LicenseRef-Beerware-4.2
-ExtractedText: <text>"THE BEER-WARE LICENSE" (Revision 42):
-phk@FreeBSD.ORG wrote this file. As long as you retain this notice you
-can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp</text>
-LicenseName: Beer-Ware License (Version 42)
-LicenseCrossReference: http://people.freebsd.org/~phk/
-LicenseComment: The beerware license has a couple of other standard variants.
-
-LicenseID: LicenseRef-3
-ExtractedText: <text>The CyberNeko Software License, Version 1.0
-
-
-(C) Copyright 2002-2005, Andy Clark. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions 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.
-
-3. The end-user documentation included with the redistribution,
- if any, must include the following acknowledgment:
- "This product includes software developed by Andy Clark."
- Alternately, this acknowledgment may appear in the software itself,
- if and wherever such third-party acknowledgments normally appear.
-
-4. The names "CyberNeko" and "NekoHTML" must not be used to endorse
- or promote products derived from this software without prior
- written permission. For written permission, please contact
- andyc@cyberneko.net.
-
-5. Products derived from this software may not be called "CyberNeko",
- nor may "CyberNeko" appear in their name, without prior written
- permission of the author.
-
-THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 OR OTHER CONTRIBUTORS
-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.</text>
-LicenseName: CyberNeko License
-LicenseCrossReference: http://people.apache.org/~andyc/neko/LICENSE, http://justasample.url.com
-LicenseComment: <text>This is tye CyperNeko License</text> \ No newline at end of file
+SPDXVersion: SPDX-2.2
+DataLicense: CC0-1.0
+DocumentNamespace: http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301
+DocumentName: SPDX-Tools-v2.0
+SPDXID: SPDXRef-DOCUMENT
+DocumentComment: <text>This document was created using SPDX 2.0 using licenses from the web site.</text>
+
+## External Document References
+ExternalDocumentRef: DocumentRef-spdx-tool-1.2 http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301 SHA1: d6a770ba38583ed4bb4525bd96e50461655d2759
+## Creation Information
+Creator: Tool: LicenseFind-1.0
+Creator: Organization: ExampleCodeInspect ()
+Creator: Person: Jane Doe ()
+Created: 2010-01-29T18:30:22Z
+CreatorComment: <text>This package has been shipped in source and binary form.
+The binaries were created with gcc 4.5.1 and expect to link to
+compatible system run time libraries.</text>
+LicenseListVersion: 3.9
+## Annotations
+Annotator: Person: Jane Doe ()
+AnnotationDate: 2010-01-29T18:30:22Z
+AnnotationComment: <text>Document level annotation</text>
+AnnotationType: OTHER
+SPDXREF: SPDXRef-DOCUMENT
+Annotator: Person: Joe Reviewer
+AnnotationDate: 2010-02-10T00:00:00Z
+AnnotationComment: <text>This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses</text>
+AnnotationType: REVIEW
+SPDXREF: SPDXRef-DOCUMENT
+Annotator: Person: Suzanne Reviewer
+AnnotationDate: 2011-03-13T00:00:00Z
+AnnotationComment: <text>Another example reviewer.</text>
+AnnotationType: REVIEW
+SPDXREF: SPDXRef-DOCUMENT
+## Relationships
+Relationship: SPDXRef-DOCUMENT CONTAINS SPDXRef-Package
+Relationship: SPDXRef-DOCUMENT COPY_OF DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement
+Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-File
+Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-Package
+
+FileName: ./package/foo.c
+SPDXID: SPDXRef-File
+FileComment: <text>The concluded license was taken from the package level that the file was included in.
+This information was found in the COPYING.txt file in the xyz directory.</text>
+FileType: SOURCE
+FileChecksum: SHA1: d6a770ba38583ed4bb4525bd96e50461655d2758
+FileChecksum: MD5: 624c1abb3664f4b35547e7c73864ad24
+LicenseConcluded: (LGPL-2.0-only OR LicenseRef-2)
+LicenseInfoInFile: GPL-2.0-only
+LicenseInfoInFile: LicenseRef-2
+LicenseComments: The concluded license was taken from the package level that the file was included in.
+FileCopyrightText: <text>Copyright 2008-2010 John Smith</text>
+FileNotice: <text>Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</text>
+FileContributor: The Regents of the University of California
+FileContributor: Modified by Paul Mundt lethal@linux-sh.org
+FileContributor: IBM Corporation
+## Annotations
+Annotator: Person: File Commenter
+AnnotationDate: 2011-01-29T18:30:22Z
+AnnotationComment: <text>File level annotation</text>
+AnnotationType: OTHER
+SPDXREF: SPDXRef-File
+## Relationships
+Relationship: SPDXRef-File GENERATED_FROM SPDXRef-fromDoap-0
+## Package Information
+PackageName: glibc
+SPDXID: SPDXRef-Package
+PackageVersion: 2.11.1
+PackageFileName: glibc-2.11.1.tar.gz
+PackageSupplier: Person: Jane Doe (jane.doe@example.com)
+PackageOriginator: Organization: ExampleCodeInspect (contact@example.com)
+PackageDownloadLocation: http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz
+PackageVerificationCode: d6a770ba38583ed4bb4525bd96e50461655d2758(./package.spdx)
+PackageChecksum: MD5: 624c1abb3664f4b35547e7c73864ad24
+PackageChecksum: SHA1: 85ed0817af83a24ad8da68c2b5094de69833983c
+PackageChecksum: SHA256: 11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd
+PackageHomePage: http://ftp.gnu.org/gnu/glibc
+PackageSourceInfo: <text>uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.</text>
+PackageLicenseConcluded: (LGPL-2.0-only OR LicenseRef-3)
+## License information from files
+PackageLicenseInfoFromFiles: GPL-2.0-only
+PackageLicenseInfoFromFiles: LicenseRef-2
+PackageLicenseInfoFromFiles: LicenseRef-1
+PackageLicenseDeclared: (LGPL-2.0-only AND LicenseRef-3)
+PackageLicenseComments: <text>The license for this project changed with the release of version x.y. The version of the project included here post-dates the license change.</text>
+PackageCopyrightText: <text>Copyright 2008-2010 John Smith</text>
+PackageSummary: <text>GNU C library.</text>
+PackageDescription: <text>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.</text>
+PackageAttributionText: <text>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.</text>
+ExternalRef: SECURITY cpe23Type cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*
+ExternalRef: OTHER LocationRef-acmeforge acmecorp/acmenator/4.1.3-alpha
+ExternalRefComment: This is the external ref for Acme
+## Annotations
+Annotator: Person: Package Commenter
+AnnotationDate: 2011-01-29T18:30:22Z
+AnnotationComment: <text>Package level annotation</text>
+AnnotationType: OTHER
+SPDXREF: SPDXRef-Package
+## Relationships
+Relationship: SPDXRef-Package CONTAINS SPDXRef-JenaLib
+Relationship: SPDXRef-Package DYNAMIC_LINK SPDXRef-Saxon
+
+## File Information
+FileName: ./lib-source/commons-lang3-3.1-sources.jar
+SPDXID: SPDXRef-CommonsLangSrc
+FileComment: <text>This file is used by Jena</text>
+FileType: ARCHIVE
+FileChecksum: SHA1: c2b4e1c67a2d28fced849ee1bb76e7391b93f125
+LicenseConcluded: Apache-2.0
+LicenseInfoInFile: Apache-2.0
+FileCopyrightText: <text>Copyright 2001-2011 The Apache Software Foundation</text>
+FileNotice: <text>Apache Commons Lang
+Copyright 2001-2011 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+This product includes software from the Spring Framework,
+under the Apache License 2.0 (see: StringUtils.containsWhitespace())</text>
+FileContributor: Apache Software Foundation
+## Relationships
+Relationship: SPDXRef-CommonsLangSrc GENERATED_FROM NOASSERTION
+
+FileName: ./lib-source/jena-2.6.3-sources.jar
+SPDXID: SPDXRef-JenaLib
+FileComment: <text>This file belongs to Jena</text>
+FileType: ARCHIVE
+FileChecksum: SHA1: 3ab4e1c67a2d28fced849ee1bb76e7391b93f125
+LicenseConcluded: LicenseRef-1
+LicenseInfoInFile: LicenseRef-1
+LicenseComments: This license is used by Jena
+FileCopyrightText: <text>(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP</text>
+FileContributor: Apache Software Foundation
+FileContributor: Hewlett Packard Inc.
+## Relationships
+Relationship: SPDXRef-JenaLib CONTAINS SPDXRef-Package
+
+FileName: ./src/org/spdx/parser/DOAPProject.java
+SPDXID: SPDXRef-DoapSource
+FileType: SOURCE
+FileChecksum: SHA1: 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
+LicenseConcluded: Apache-2.0
+LicenseInfoInFile: Apache-2.0
+FileCopyrightText: <text>Copyright 2010, 2011 Source Auditor Inc.</text>
+FileContributor: Protecode Inc.
+FileContributor: SPDX Technical Team Members
+FileContributor: Open Logic Inc.
+FileContributor: Source Auditor Inc.
+FileContributor: Black Duck Software In.c
+
+## Package Information
+PackageName: Apache Commons Lang
+SPDXID: SPDXRef-fromDoap-1
+PackageDownloadLocation: NOASSERTION
+PackageHomePage: http://commons.apache.org/proper/commons-lang/
+PackageLicenseConcluded: NOASSERTION
+PackageLicenseDeclared: NOASSERTION
+PackageCopyrightText: <text>NOASSERTION</text>
+FilesAnalyzed: false
+
+## Package Information
+PackageName: Jena
+SPDXID: SPDXRef-fromDoap-0
+PackageVersion: 3.12.0
+PackageDownloadLocation: https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz
+PackageHomePage: http://www.openjena.org/
+PackageLicenseConcluded: NOASSERTION
+PackageLicenseDeclared: NOASSERTION
+PackageCopyrightText: <text>NOASSERTION</text>
+ExternalRef: PACKAGE-MANAGER purl pkg:maven/org.apache.jena/apache-jena@3.12.0
+FilesAnalyzed: false
+
+## Package Information
+PackageName: Saxon
+SPDXID: SPDXRef-Saxon
+PackageVersion: 8.8
+PackageFileName: saxonB-8.8.zip
+PackageDownloadLocation: https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download
+PackageChecksum: SHA1: 85ed0817af83a24ad8da68c2b5094de69833983c
+PackageHomePage: http://saxon.sourceforge.net/
+PackageLicenseConcluded: MPL-1.0
+PackageLicenseDeclared: MPL-1.0
+PackageLicenseComments: <text>Other versions available for a commercial license</text>
+PackageCopyrightText: <text>Copyright Saxonica Ltd</text>
+PackageDescription: <text>The Saxon package is a collection of tools for processing XML documents.</text>
+FilesAnalyzed: false
+
+## Snippet Information
+SnippetSPDXID: SPDXRef-Snippet
+SnippetFromFileSPDXID: SPDXRef-DoapSource
+SnippetByteRange: 310:420
+SnippetLineRange: 5:23
+SnippetLicenseConcluded: GPL-2.0-only
+LicenseInfoInSnippet: GPL-2.0-only
+SnippetLicenseComments: The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.
+SnippetCopyrightText: Copyright 2008-2010 John Smith
+SnippetComment: 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.
+SnippetName: from linux kernel
+
+
+## License Information
+LicenseID: LicenseRef-1
+ExtractedText: <text>/*
+ * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions 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.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS 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.
+*/</text>
+
+LicenseID: LicenseRef-2
+ExtractedText: <text>This package includes the GRDDL parser developed by Hewlett Packard under the following license:
+� Copyright 2007 Hewlett-Packard Development Company, LP
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions 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.
+The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
+THIS 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.</text>
+
+LicenseID: LicenseRef-4
+ExtractedText: <text>/*
+ * (c) Copyright 2009 University of Bristol
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions 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.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS 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.
+*/</text>
+
+LicenseID: LicenseRef-Beerware-4.2
+ExtractedText: <text>"THE BEER-WARE LICENSE" (Revision 42):
+phk@FreeBSD.ORG wrote this file. As long as you retain this notice you
+can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp</text>
+LicenseName: Beer-Ware License (Version 42)
+LicenseCrossReference: http://people.freebsd.org/~phk/
+LicenseComment: The beerware license has a couple of other standard variants.
+
+LicenseID: LicenseRef-3
+ExtractedText: <text>The CyberNeko Software License, Version 1.0
+
+
+(C) Copyright 2002-2005, Andy Clark. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions 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.
+
+3. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgment:
+ "This product includes software developed by Andy Clark."
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+
+4. The names "CyberNeko" and "NekoHTML" must not be used to endorse
+ or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ andyc@cyberneko.net.
+
+5. Products derived from this software may not be called "CyberNeko",
+ nor may "CyberNeko" appear in their name, without prior written
+ permission of the author.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 OR OTHER CONTRIBUTORS
+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.</text>
+LicenseName: CyberNeko License
+LicenseCrossReference: http://people.apache.org/~andyc/neko/LICENSE, http://justasample.url.com
+LicenseComment: <text>This is tye CyperNeko License</text>
+
diff --git a/examples/sample-docs/xls/SPDXSpreadsheetExample-v2.2.xlsx b/examples/sample-docs/xls/SPDXSpreadsheetExample-v2.2.xlsx
new file mode 100644
index 0000000..171ba8e
--- /dev/null
+++ b/examples/sample-docs/xls/SPDXSpreadsheetExample-v2.2.xlsx
Binary files differ
diff --git a/examples/sample-docs/xml/SPDXXMLExample-v2.2.spdx.xml b/examples/sample-docs/xml/SPDXXMLExample-v2.2.spdx.xml
new file mode 100644
index 0000000..80e0527
--- /dev/null
+++ b/examples/sample-docs/xml/SPDXXMLExample-v2.2.spdx.xml
@@ -0,0 +1,443 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<Document>
+ <SPDXID>SPDXRef-DOCUMENT</SPDXID>
+ <spdxVersion>SPDX-2.2</spdxVersion>
+ <creationInfo>
+ <comment>This package has been shipped in source and binary form.
+The binaries were created with gcc 4.5.1 and expect to link to
+compatible system run time libraries.</comment>
+ <created>2010-01-29T18:30:22Z</created>
+ <creators>Tool: LicenseFind-1.0</creators>
+ <creators>Organization: ExampleCodeInspect ()</creators>
+ <creators>Person: Jane Doe ()</creators>
+ <licenseListVersion>3.9</licenseListVersion>
+ </creationInfo>
+ <name>SPDX-Tools-v2.0</name>
+ <dataLicense>CC0-1.0</dataLicense>
+ <comment>This document was created using SPDX 2.0 using licenses from the web site.</comment>
+ <externalDocumentRefs>
+ <externalDocumentId>DocumentRef-spdx-tool-1.2</externalDocumentId>
+ <checksum>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>d6a770ba38583ed4bb4525bd96e50461655d2759</checksumValue>
+ </checksum>
+ <spdxDocument>http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301</spdxDocument>
+ </externalDocumentRefs>
+ <hasExtractedLicensingInfos>
+ <licenseId>LicenseRef-1</licenseId>
+ <extractedText>/*
+ * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions 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.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS 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.
+*/</extractedText>
+ </hasExtractedLicensingInfos>
+ <hasExtractedLicensingInfos>
+ <licenseId>LicenseRef-2</licenseId>
+ <extractedText>This package includes the GRDDL parser developed by Hewlett Packard under the following license:
+� Copyright 2007 Hewlett-Packard Development Company, LP
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions 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.
+The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
+THIS 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.</extractedText>
+ </hasExtractedLicensingInfos>
+ <hasExtractedLicensingInfos>
+ <licenseId>LicenseRef-4</licenseId>
+ <extractedText>/*
+ * (c) Copyright 2009 University of Bristol
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions 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.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS 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.
+*/</extractedText>
+ </hasExtractedLicensingInfos>
+ <hasExtractedLicensingInfos>
+ <licenseId>LicenseRef-Beerware-4.2</licenseId>
+ <comment>The beerware license has a couple of other standard variants.</comment>
+ <extractedText>"THE BEER-WARE LICENSE" (Revision 42):
+phk@FreeBSD.ORG wrote this file. As long as you retain this notice you
+can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp</extractedText>
+ <name>Beer-Ware License (Version 42)</name>
+ <seeAlsos>http://people.freebsd.org/~phk/</seeAlsos>
+ </hasExtractedLicensingInfos>
+ <hasExtractedLicensingInfos>
+ <licenseId>LicenseRef-3</licenseId>
+ <comment>This is tye CyperNeko License</comment>
+ <extractedText>The CyberNeko Software License, Version 1.0
+
+
+(C) Copyright 2002-2005, Andy Clark. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions 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.
+
+3. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgment:
+ "This product includes software developed by Andy Clark."
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+
+4. The names "CyberNeko" and "NekoHTML" must not be used to endorse
+ or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ andyc@cyberneko.net.
+
+5. Products derived from this software may not be called "CyberNeko",
+ nor may "CyberNeko" appear in their name, without prior written
+ permission of the author.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 OR OTHER CONTRIBUTORS
+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.</extractedText>
+ <name>CyberNeko License</name>
+ <seeAlsos>http://people.apache.org/~andyc/neko/LICENSE</seeAlsos>
+ <seeAlsos>http://justasample.url.com</seeAlsos>
+ </hasExtractedLicensingInfos>
+ <annotations>
+ <annotationDate>2010-01-29T18:30:22Z</annotationDate>
+ <annotationType>OTHER</annotationType>
+ <annotator>Person: Jane Doe ()</annotator>
+ <comment>Document level annotation</comment>
+ </annotations>
+ <annotations>
+ <annotationDate>2010-02-10T00:00:00Z</annotationDate>
+ <annotationType>REVIEW</annotationType>
+ <annotator>Person: Joe Reviewer</annotator>
+ <comment>This is just an example. Some of the non-standard licenses look like they are actually BSD 3 clause licenses</comment>
+ </annotations>
+ <annotations>
+ <annotationDate>2011-03-13T00:00:00Z</annotationDate>
+ <annotationType>REVIEW</annotationType>
+ <annotator>Person: Suzanne Reviewer</annotator>
+ <comment>Another example reviewer.</comment>
+ </annotations>
+ <documentNamespace>http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301</documentNamespace>
+ <documentDescribes>SPDXRef-File</documentDescribes>
+ <documentDescribes>SPDXRef-Package</documentDescribes>
+ <packages>
+ <SPDXID>SPDXRef-Package</SPDXID>
+ <annotations>
+ <annotationDate>2011-01-29T18:30:22Z</annotationDate>
+ <annotationType>OTHER</annotationType>
+ <annotator>Person: Package Commenter</annotator>
+ <comment>Package level annotation</comment>
+ </annotations>
+ <attributionTexts>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.</attributionTexts>
+ <checksums>
+ <algorithm>MD5</algorithm>
+ <checksumValue>624c1abb3664f4b35547e7c73864ad24</checksumValue>
+ </checksums>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>85ed0817af83a24ad8da68c2b5094de69833983c</checksumValue>
+ </checksums>
+ <checksums>
+ <algorithm>SHA256</algorithm>
+ <checksumValue>11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd</checksumValue>
+ </checksums>
+ <copyrightText>Copyright 2008-2010 John Smith</copyrightText>
+ <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.</description>
+ <downloadLocation>http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz</downloadLocation>
+ <externalRefs>
+ <referenceCategory>SECURITY</referenceCategory>
+ <referenceLocator>cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*</referenceLocator>
+ <referenceType>cpe23Type</referenceType>
+ </externalRefs>
+ <externalRefs>
+ <comment>This is the external ref for Acme</comment>
+ <referenceCategory>OTHER</referenceCategory>
+ <referenceLocator>acmecorp/acmenator/4.1.3-alpha</referenceLocator>
+ <referenceType>http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LocationRef-acmeforge</referenceType>
+ </externalRefs>
+ <filesAnalyzed>true</filesAnalyzed>
+ <hasFiles>SPDXRef-CommonsLangSrc</hasFiles>
+ <hasFiles>SPDXRef-JenaLib</hasFiles>
+ <hasFiles>SPDXRef-DoapSource</hasFiles>
+ <homepage>http://ftp.gnu.org/gnu/glibc</homepage>
+ <licenseComments>The license for this project changed with the release of version x.y. The version of the project included here post-dates the license change.</licenseComments>
+ <licenseConcluded>(LGPL-2.0-only OR LicenseRef-3)</licenseConcluded>
+ <licenseDeclared>(LGPL-2.0-only AND LicenseRef-3)</licenseDeclared>
+ <licenseInfoFromFiles>GPL-2.0-only</licenseInfoFromFiles>
+ <licenseInfoFromFiles>LicenseRef-2</licenseInfoFromFiles>
+ <licenseInfoFromFiles>LicenseRef-1</licenseInfoFromFiles>
+ <name>glibc</name>
+ <originator>Organization: ExampleCodeInspect (contact@example.com)</originator>
+ <packageFileName>glibc-2.11.1.tar.gz</packageFileName>
+ <packageVerificationCode>
+ <packageVerificationCodeExcludedFiles>./package.spdx</packageVerificationCodeExcludedFiles>
+ <packageVerificationCodeValue>d6a770ba38583ed4bb4525bd96e50461655d2758</packageVerificationCodeValue>
+ </packageVerificationCode>
+ <sourceInfo>uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.</sourceInfo>
+ <summary>GNU C library.</summary>
+ <supplier>Person: Jane Doe (jane.doe@example.com)</supplier>
+ <versionInfo>2.11.1</versionInfo>
+ </packages>
+ <packages>
+ <SPDXID>SPDXRef-fromDoap-1</SPDXID>
+ <copyrightText>NOASSERTION</copyrightText>
+ <downloadLocation>NOASSERTION</downloadLocation>
+ <filesAnalyzed>false</filesAnalyzed>
+ <homepage>http://commons.apache.org/proper/commons-lang/</homepage>
+ <licenseConcluded>NOASSERTION</licenseConcluded>
+ <licenseDeclared>NOASSERTION</licenseDeclared>
+ <name>Apache Commons Lang</name>
+ </packages>
+ <packages>
+ <SPDXID>SPDXRef-fromDoap-0</SPDXID>
+ <copyrightText>NOASSERTION</copyrightText>
+ <downloadLocation>https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz</downloadLocation>
+ <externalRefs>
+ <referenceCategory>PACKAGE_MANAGER</referenceCategory>
+ <referenceLocator>pkg:maven/org.apache.jena/apache-jena@3.12.0</referenceLocator>
+ <referenceType>purl</referenceType>
+ </externalRefs>
+ <filesAnalyzed>false</filesAnalyzed>
+ <homepage>http://www.openjena.org/</homepage>
+ <licenseConcluded>NOASSERTION</licenseConcluded>
+ <licenseDeclared>NOASSERTION</licenseDeclared>
+ <name>Jena</name>
+ <versionInfo>3.12.0</versionInfo>
+ </packages>
+ <packages>
+ <SPDXID>SPDXRef-Saxon</SPDXID>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>85ed0817af83a24ad8da68c2b5094de69833983c</checksumValue>
+ </checksums>
+ <copyrightText>Copyright Saxonica Ltd</copyrightText>
+ <description>The Saxon package is a collection of tools for processing XML documents.</description>
+ <downloadLocation>https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download</downloadLocation>
+ <filesAnalyzed>false</filesAnalyzed>
+ <homepage>http://saxon.sourceforge.net/</homepage>
+ <licenseComments>Other versions available for a commercial license</licenseComments>
+ <licenseConcluded>MPL-1.0</licenseConcluded>
+ <licenseDeclared>MPL-1.0</licenseDeclared>
+ <name>Saxon</name>
+ <packageFileName>saxonB-8.8.zip</packageFileName>
+ <versionInfo>8.8</versionInfo>
+ </packages>
+ <files>
+ <SPDXID>SPDXRef-DoapSource</SPDXID>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>2fd4e1c67a2d28fced849ee1bb76e7391b93eb12</checksumValue>
+ </checksums>
+ <copyrightText>Copyright 2010, 2011 Source Auditor Inc.</copyrightText>
+ <fileContributors>Protecode Inc.</fileContributors>
+ <fileContributors>SPDX Technical Team Members</fileContributors>
+ <fileContributors>Open Logic Inc.</fileContributors>
+ <fileContributors>Source Auditor Inc.</fileContributors>
+ <fileContributors>Black Duck Software In.c</fileContributors>
+ <fileName>./src/org/spdx/parser/DOAPProject.java</fileName>
+ <fileTypes>SOURCE</fileTypes>
+ <licenseConcluded>Apache-2.0</licenseConcluded>
+ <licenseInfoInFiles>Apache-2.0</licenseInfoInFiles>
+ </files>
+ <files>
+ <SPDXID>SPDXRef-CommonsLangSrc</SPDXID>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>c2b4e1c67a2d28fced849ee1bb76e7391b93f125</checksumValue>
+ </checksums>
+ <comment>This file is used by Jena</comment>
+ <copyrightText>Copyright 2001-2011 The Apache Software Foundation</copyrightText>
+ <fileContributors>Apache Software Foundation</fileContributors>
+ <fileName>./lib-source/commons-lang3-3.1-sources.jar</fileName>
+ <fileTypes>ARCHIVE</fileTypes>
+ <licenseConcluded>Apache-2.0</licenseConcluded>
+ <licenseInfoInFiles>Apache-2.0</licenseInfoInFiles>
+ <noticeText>Apache Commons Lang
+Copyright 2001-2011 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+This product includes software from the Spring Framework,
+under the Apache License 2.0 (see: StringUtils.containsWhitespace())</noticeText>
+ </files>
+ <files>
+ <SPDXID>SPDXRef-JenaLib</SPDXID>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>3ab4e1c67a2d28fced849ee1bb76e7391b93f125</checksumValue>
+ </checksums>
+ <comment>This file belongs to Jena</comment>
+ <copyrightText>(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP</copyrightText>
+ <fileContributors>Apache Software Foundation</fileContributors>
+ <fileContributors>Hewlett Packard Inc.</fileContributors>
+ <fileName>./lib-source/jena-2.6.3-sources.jar</fileName>
+ <fileTypes>ARCHIVE</fileTypes>
+ <licenseComments>This license is used by Jena</licenseComments>
+ <licenseConcluded>LicenseRef-1</licenseConcluded>
+ <licenseInfoInFiles>LicenseRef-1</licenseInfoInFiles>
+ </files>
+ <files>
+ <SPDXID>SPDXRef-File</SPDXID>
+ <annotations>
+ <annotationDate>2011-01-29T18:30:22Z</annotationDate>
+ <annotationType>OTHER</annotationType>
+ <annotator>Person: File Commenter</annotator>
+ <comment>File level annotation</comment>
+ </annotations>
+ <checksums>
+ <algorithm>SHA1</algorithm>
+ <checksumValue>d6a770ba38583ed4bb4525bd96e50461655d2758</checksumValue>
+ </checksums>
+ <checksums>
+ <algorithm>MD5</algorithm>
+ <checksumValue>624c1abb3664f4b35547e7c73864ad24</checksumValue>
+ </checksums>
+ <comment>The concluded license was taken from the package level that the file was included in.
+This information was found in the COPYING.txt file in the xyz directory.</comment>
+ <copyrightText>Copyright 2008-2010 John Smith</copyrightText>
+ <fileContributors>The Regents of the University of California</fileContributors>
+ <fileContributors>Modified by Paul Mundt lethal@linux-sh.org</fileContributors>
+ <fileContributors>IBM Corporation</fileContributors>
+ <fileName>./package/foo.c</fileName>
+ <fileTypes>SOURCE</fileTypes>
+ <licenseComments>The concluded license was taken from the package level that the file was included in.</licenseComments>
+ <licenseConcluded>(LGPL-2.0-only OR LicenseRef-2)</licenseConcluded>
+ <licenseInfoInFiles>GPL-2.0-only</licenseInfoInFiles>
+ <licenseInfoInFiles>LicenseRef-2</licenseInfoInFiles>
+ <noticeText>Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the �Software�), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</noticeText>
+ </files>
+ <snippets>
+ <SPDXID>SPDXRef-Snippet</SPDXID>
+ <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.</comment>
+ <copyrightText>Copyright 2008-2010 John Smith</copyrightText>
+ <licenseComments>The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.</licenseComments>
+ <licenseConcluded>GPL-2.0-only</licenseConcluded>
+ <licenseInfoInSnippets>GPL-2.0-only</licenseInfoInSnippets>
+ <name>from linux kernel</name>
+ <ranges>
+ <endPointer>
+ <offset>420</offset>
+ <reference>SPDXRef-DoapSource</reference>
+ </endPointer>
+ <startPointer>
+ <offset>310</offset>
+ <reference>SPDXRef-DoapSource</reference>
+ </startPointer>
+ </ranges>
+ <ranges>
+ <endPointer>
+ <lineNumber>23</lineNumber>
+ <reference>SPDXRef-DoapSource</reference>
+ </endPointer>
+ <startPointer>
+ <lineNumber>5</lineNumber>
+ <reference>SPDXRef-DoapSource</reference>
+ </startPointer>
+ </ranges>
+ <snippetFromFile>SPDXRef-DoapSource</snippetFromFile>
+ </snippets>
+ <relationships>
+ <spdxElementId>SPDXRef-DOCUMENT</spdxElementId>
+ <relatedSpdxElement>SPDXRef-Package</relatedSpdxElement>
+ <relationshipType>CONTAINS</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-DOCUMENT</spdxElementId>
+ <relatedSpdxElement>DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement</relatedSpdxElement>
+ <relationshipType>COPY_OF</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-DOCUMENT</spdxElementId>
+ <relatedSpdxElement>SPDXRef-File</relatedSpdxElement>
+ <relationshipType>DESCRIBES</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-DOCUMENT</spdxElementId>
+ <relatedSpdxElement>SPDXRef-Package</relatedSpdxElement>
+ <relationshipType>DESCRIBES</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-Package</spdxElementId>
+ <relatedSpdxElement>SPDXRef-JenaLib</relatedSpdxElement>
+ <relationshipType>CONTAINS</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-Package</spdxElementId>
+ <relatedSpdxElement>SPDXRef-Saxon</relatedSpdxElement>
+ <relationshipType>DYNAMIC_LINK</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-CommonsLangSrc</spdxElementId>
+ <relatedSpdxElement>NOASSERTION</relatedSpdxElement>
+ <relationshipType>GENERATED_FROM</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-JenaLib</spdxElementId>
+ <relatedSpdxElement>SPDXRef-Package</relatedSpdxElement>
+ <relationshipType>CONTAINS</relationshipType>
+ </relationships>
+ <relationships>
+ <spdxElementId>SPDXRef-File</spdxElementId>
+ <relatedSpdxElement>SPDXRef-fromDoap-0</relatedSpdxElement>
+ <relationshipType>GENERATED_FROM</relationshipType>
+ </relationships>
+</Document>
diff --git a/examples/sample-docs/yaml/SPDXYAMLExample-2.2.spdx.yaml b/examples/sample-docs/yaml/SPDXYAMLExample-2.2.spdx.yaml
new file mode 100644
index 0000000..d58cf22
--- /dev/null
+++ b/examples/sample-docs/yaml/SPDXYAMLExample-2.2.spdx.yaml
@@ -0,0 +1,390 @@
+---
+SPDXID: "SPDXRef-DOCUMENT"
+spdxVersion: "SPDX-2.2"
+creationInfo:
+ comment: "This package has been shipped in source and binary form.\nThe binaries\
+ \ were created with gcc 4.5.1 and expect to link to\ncompatible system run time\
+ \ libraries."
+ created: "2010-01-29T18:30:22Z"
+ creators:
+ - "Tool: LicenseFind-1.0"
+ - "Organization: ExampleCodeInspect ()"
+ - "Person: Jane Doe ()"
+ licenseListVersion: "3.9"
+name: "SPDX-Tools-v2.0"
+dataLicense: "CC0-1.0"
+comment: "This document was created using SPDX 2.0 using licenses from the web site."
+externalDocumentRefs:
+- externalDocumentId: "DocumentRef-spdx-tool-1.2"
+ checksum:
+ algorithm: "SHA1"
+ checksumValue: "d6a770ba38583ed4bb4525bd96e50461655d2759"
+ spdxDocument: "http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301"
+hasExtractedLicensingInfos:
+- licenseId: "LicenseRef-1"
+ extractedText: "/*\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\
+ */"
+- licenseId: "LicenseRef-2"
+ extractedText: "This package includes the GRDDL parser developed by Hewlett Packard\
+ \ under the following license:\n� 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."
+- licenseId: "LicenseRef-4"
+ extractedText: "/*\n * (c) Copyright 2009 University of Bristol\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\
+ */"
+- licenseId: "LicenseRef-Beerware-4.2"
+ comment: "The beerware license has a couple of other standard variants."
+ extractedText: "\"THE BEER-WARE LICENSE\" (Revision 42):\nphk@FreeBSD.ORG wrote\
+ \ this file. As long as you retain this notice you\ncan do whatever you want with\
+ \ this stuff. If we meet some day, and you think this stuff is worth it, you can\
+ \ buy me a beer in return Poul-Henning Kamp"
+ name: "Beer-Ware License (Version 42)"
+ seeAlsos:
+ - "http://people.freebsd.org/~phk/"
+- licenseId: "LicenseRef-3"
+ comment: "This is tye CyperNeko License"
+ extractedText: "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\n\
+ THIS 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."
+ name: "CyberNeko License"
+ seeAlsos:
+ - "http://people.apache.org/~andyc/neko/LICENSE"
+ - "http://justasample.url.com"
+annotations:
+- annotationDate: "2010-01-29T18:30:22Z"
+ annotationType: "OTHER"
+ annotator: "Person: Jane Doe ()"
+ comment: "Document level annotation"
+- annotationDate: "2010-02-10T00:00:00Z"
+ annotationType: "REVIEW"
+ annotator: "Person: Joe Reviewer"
+ comment: "This is just an example. Some of the non-standard licenses look like\
+ \ they are actually BSD 3 clause licenses"
+- annotationDate: "2011-03-13T00:00:00Z"
+ annotationType: "REVIEW"
+ annotator: "Person: Suzanne Reviewer"
+ comment: "Another example reviewer."
+documentNamespace: "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301"
+documentDescribes:
+- "SPDXRef-File"
+- "SPDXRef-Package"
+packages:
+- SPDXID: "SPDXRef-Package"
+ annotations:
+ - annotationDate: "2011-01-29T18:30:22Z"
+ annotationType: "OTHER"
+ annotator: "Person: Package Commenter"
+ comment: "Package level annotation"
+ attributionTexts:
+ - "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."
+ checksums:
+ - algorithm: "MD5"
+ checksumValue: "624c1abb3664f4b35547e7c73864ad24"
+ - algorithm: "SHA1"
+ checksumValue: "85ed0817af83a24ad8da68c2b5094de69833983c"
+ - algorithm: "SHA256"
+ checksumValue: "11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd"
+ copyrightText: "Copyright 2008-2010 John Smith"
+ 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."
+ downloadLocation: "http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz"
+ externalRefs:
+ - referenceCategory: "SECURITY"
+ referenceLocator: "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*"
+ referenceType: "cpe23Type"
+ - comment: "This is the external ref for Acme"
+ referenceCategory: "OTHER"
+ referenceLocator: "acmecorp/acmenator/4.1.3-alpha"
+ referenceType: "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LocationRef-acmeforge"
+ filesAnalyzed: true
+ hasFiles:
+ - "SPDXRef-CommonsLangSrc"
+ - "SPDXRef-JenaLib"
+ - "SPDXRef-DoapSource"
+ homepage: "http://ftp.gnu.org/gnu/glibc"
+ licenseComments: "The license for this project changed with the release of version\
+ \ x.y. The version of the project included here post-dates the license change."
+ licenseConcluded: "(LGPL-2.0-only OR LicenseRef-3)"
+ licenseDeclared: "(LGPL-2.0-only AND LicenseRef-3)"
+ licenseInfoFromFiles:
+ - "GPL-2.0-only"
+ - "LicenseRef-2"
+ - "LicenseRef-1"
+ name: "glibc"
+ originator: "Organization: ExampleCodeInspect (contact@example.com)"
+ packageFileName: "glibc-2.11.1.tar.gz"
+ packageVerificationCode:
+ packageVerificationCodeExcludedFiles:
+ - "./package.spdx"
+ packageVerificationCodeValue: "d6a770ba38583ed4bb4525bd96e50461655d2758"
+ sourceInfo: "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git."
+ summary: "GNU C library."
+ supplier: "Person: Jane Doe (jane.doe@example.com)"
+ versionInfo: "2.11.1"
+- SPDXID: "SPDXRef-fromDoap-1"
+ copyrightText: "NOASSERTION"
+ downloadLocation: "NOASSERTION"
+ filesAnalyzed: false
+ homepage: "http://commons.apache.org/proper/commons-lang/"
+ licenseConcluded: "NOASSERTION"
+ licenseDeclared: "NOASSERTION"
+ name: "Apache Commons Lang"
+- SPDXID: "SPDXRef-fromDoap-0"
+ copyrightText: "NOASSERTION"
+ downloadLocation: "https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz"
+ externalRefs:
+ - referenceCategory: "PACKAGE_MANAGER"
+ referenceLocator: "pkg:maven/org.apache.jena/apache-jena@3.12.0"
+ referenceType: "purl"
+ filesAnalyzed: false
+ homepage: "http://www.openjena.org/"
+ licenseConcluded: "NOASSERTION"
+ licenseDeclared: "NOASSERTION"
+ name: "Jena"
+ versionInfo: "3.12.0"
+- SPDXID: "SPDXRef-Saxon"
+ checksums:
+ - algorithm: "SHA1"
+ checksumValue: "85ed0817af83a24ad8da68c2b5094de69833983c"
+ copyrightText: "Copyright Saxonica Ltd"
+ description: "The Saxon package is a collection of tools for processing XML documents."
+ downloadLocation: "https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download"
+ filesAnalyzed: false
+ homepage: "http://saxon.sourceforge.net/"
+ licenseComments: "Other versions available for a commercial license"
+ licenseConcluded: "MPL-1.0"
+ licenseDeclared: "MPL-1.0"
+ name: "Saxon"
+ packageFileName: "saxonB-8.8.zip"
+ versionInfo: "8.8"
+files:
+- SPDXID: "SPDXRef-DoapSource"
+ checksums:
+ - algorithm: "SHA1"
+ checksumValue: "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"
+ copyrightText: "Copyright 2010, 2011 Source Auditor Inc."
+ fileContributors:
+ - "Protecode Inc."
+ - "SPDX Technical Team Members"
+ - "Open Logic Inc."
+ - "Source Auditor Inc."
+ - "Black Duck Software In.c"
+ fileName: "./src/org/spdx/parser/DOAPProject.java"
+ fileTypes:
+ - "SOURCE"
+ licenseConcluded: "Apache-2.0"
+ licenseInfoInFiles:
+ - "Apache-2.0"
+- SPDXID: "SPDXRef-CommonsLangSrc"
+ checksums:
+ - algorithm: "SHA1"
+ checksumValue: "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"
+ comment: "This file is used by Jena"
+ copyrightText: "Copyright 2001-2011 The Apache Software Foundation"
+ fileContributors:
+ - "Apache Software Foundation"
+ fileName: "./lib-source/commons-lang3-3.1-sources.jar"
+ fileTypes:
+ - "ARCHIVE"
+ licenseConcluded: "Apache-2.0"
+ licenseInfoInFiles:
+ - "Apache-2.0"
+ noticeText: "Apache Commons Lang\nCopyright 2001-2011 The Apache Software Foundation\n\
+ \nThis product includes software developed by\nThe Apache Software Foundation\
+ \ (http://www.apache.org/).\n\nThis product includes software from the Spring\
+ \ Framework,\nunder the Apache License 2.0 (see: StringUtils.containsWhitespace())"
+- SPDXID: "SPDXRef-JenaLib"
+ checksums:
+ - algorithm: "SHA1"
+ checksumValue: "3ab4e1c67a2d28fced849ee1bb76e7391b93f125"
+ comment: "This file belongs to Jena"
+ copyrightText: "(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,\
+ \ 2009 Hewlett-Packard Development Company, LP"
+ fileContributors:
+ - "Apache Software Foundation"
+ - "Hewlett Packard Inc."
+ fileName: "./lib-source/jena-2.6.3-sources.jar"
+ fileTypes:
+ - "ARCHIVE"
+ licenseComments: "This license is used by Jena"
+ licenseConcluded: "LicenseRef-1"
+ licenseInfoInFiles:
+ - "LicenseRef-1"
+- SPDXID: "SPDXRef-File"
+ annotations:
+ - annotationDate: "2011-01-29T18:30:22Z"
+ annotationType: "OTHER"
+ annotator: "Person: File Commenter"
+ comment: "File level annotation"
+ checksums:
+ - algorithm: "SHA1"
+ checksumValue: "d6a770ba38583ed4bb4525bd96e50461655d2758"
+ - algorithm: "MD5"
+ checksumValue: "624c1abb3664f4b35547e7c73864ad24"
+ 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."
+ copyrightText: "Copyright 2008-2010 John Smith"
+ fileContributors:
+ - "The Regents of the University of California"
+ - "Modified by Paul Mundt lethal@linux-sh.org"
+ - "IBM Corporation"
+ fileName: "./package/foo.c"
+ fileTypes:
+ - "SOURCE"
+ licenseComments: "The concluded license was taken from the package level that the\
+ \ file was included in."
+ licenseConcluded: "(LGPL-2.0-only OR LicenseRef-2)"
+ licenseInfoInFiles:
+ - "GPL-2.0-only"
+ - "LicenseRef-2"
+ noticeText: "Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com\n\nPermission is\
+ \ hereby granted, free of charge, to any person obtaining a copy of this software\
+ \ and associated documentation files (the �Software�), to deal in the Software\
+ \ without restriction, including without limitation the rights to use, copy, modify,\
+ \ merge, publish, distribute, sublicense, and/or sell copies of the Software,\
+ \ and to permit persons to whom the Software is furnished to do so, subject to\
+ \ the following conditions: \nThe above copyright notice and this permission notice\
+ \ shall be included in all copies or substantial portions of the Software.\n\n\
+ THE SOFTWARE IS PROVIDED �AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\
+ \ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR\
+ \ A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\
+ \ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\
+ \ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\
+ \ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
+snippets:
+- SPDXID: "SPDXRef-Snippet"
+ 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."
+ copyrightText: "Copyright 2008-2010 John Smith"
+ licenseComments: "The concluded license was taken from package xyz, from which the\
+ \ snippet was copied into the current file. The concluded license information\
+ \ was found in the COPYING.txt file in package xyz."
+ licenseConcluded: "GPL-2.0-only"
+ licenseInfoInSnippets:
+ - "GPL-2.0-only"
+ name: "from linux kernel"
+ ranges:
+ - endPointer:
+ offset: 420
+ reference: "SPDXRef-DoapSource"
+ startPointer:
+ offset: 310
+ reference: "SPDXRef-DoapSource"
+ - endPointer:
+ lineNumber: 23
+ reference: "SPDXRef-DoapSource"
+ startPointer:
+ lineNumber: 5
+ reference: "SPDXRef-DoapSource"
+ snippetFromFile: "SPDXRef-DoapSource"
+relationships:
+- spdxElementId: "SPDXRef-DOCUMENT"
+ relatedSpdxElement: "SPDXRef-Package"
+ relationshipType: "CONTAINS"
+- spdxElementId: "SPDXRef-DOCUMENT"
+ relatedSpdxElement: "DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement"
+ relationshipType: "COPY_OF"
+- spdxElementId: "SPDXRef-DOCUMENT"
+ relatedSpdxElement: "SPDXRef-File"
+ relationshipType: "DESCRIBES"
+- spdxElementId: "SPDXRef-DOCUMENT"
+ relatedSpdxElement: "SPDXRef-Package"
+ relationshipType: "DESCRIBES"
+- spdxElementId: "SPDXRef-Package"
+ relatedSpdxElement: "SPDXRef-JenaLib"
+ relationshipType: "CONTAINS"
+- spdxElementId: "SPDXRef-Package"
+ relatedSpdxElement: "SPDXRef-Saxon"
+ relationshipType: "DYNAMIC_LINK"
+- spdxElementId: "SPDXRef-CommonsLangSrc"
+ relatedSpdxElement: "NOASSERTION"
+ relationshipType: "GENERATED_FROM"
+- spdxElementId: "SPDXRef-JenaLib"
+ relatedSpdxElement: "SPDXRef-Package"
+ relationshipType: "CONTAINS"
+- spdxElementId: "SPDXRef-File"
+ relatedSpdxElement: "SPDXRef-fromDoap-0"
+ relationshipType: "GENERATED_FROM"