aboutsummaryrefslogtreecommitdiff
path: root/rdfloader
AgeCommit message (Collapse)Author
2023-02-28Added blueprints to spdx-tools libraryIbrahim Kanouche
Test: m all Change-Id: Iccd31e33b40d6d7cd1a876ca468332b01d1b9e34
2022-12-05Update tests to support all algorithmsAdolfo García Veytia (Puerco)
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
2022-11-30Update 2.3 RDF parsers to support all algorithmsAdolfo García Veytia (Puerco)
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
2022-11-30Update 2.2 RDF parsers to support all algorithmsAdolfo García Veytia (Puerco)
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
2022-10-10chore: support for 2.3 features to rdfloaderKeith Zantow
Signed-off-by: Keith Zantow <kzantow@gmail.com>
2022-07-19replace all v2_1, v2_2 with new conventionBrandon Lum
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2022-04-25Overhaul structs, refactor JSON parser and saverIan Ling
Signed-off-by: Ian Ling <ian@iancaling.com>
2021-03-21Combine switch cases and remove redundant NLspecter25
- Combine the switch cases when defined enum for case type - Rmoved redundant NL in the code Signed-off-by: specter25 <ujjwalcoding012@gmail.com>
2021-03-21Change naming convention of checksum structspecter25
- Change the name of Checksum struct so that it can be used by all spdx versions - Remove unnecessary commented code Signed-off-by: specter25 <ujjwalcoding012@gmail.com>
2021-03-21Create struct to store checksumsspecter25
- Store the checksums in a struct with properties algorithm and value - Define permitted algorithm as constants Signed-off-by: specter25 <ujjwalcoding012@gmail.com>
2020-11-18Enable Caching And Parse Cyclic Dependent ObjectsRishabh Bhatnagar
- File, Package, Relationship can have cyclic dependent objects. - Cyclic dependent License will raise an error. - Double computation for File, Package, Relationship and License is enabled. Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-11-15Allow Multipart Declaration for File and PackageRishabh Bhatnagar
- Files and Packages can now be declared in several parts in different parent tags Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-11-15Set File To parser.files Immediately After ParsingRishabh Bhatnagar
Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-11-15Remove packages Variable From rdfParser2_2Rishabh Bhatnagar
- packages was a redundant variable in rdfParser2_2 struct. - Intention behind adding packages was to make it similar to rdfParser2_2.files - With this PR, the packages variable has been removed that will partly resolve https://github.com/spdx/tools-golang/issues/51. Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-11-14Add missing license idsSteve Winslow
Signed-off-by: Steve Winslow <steve@swinslow.net>
2020-11-12Use Updated ExternalDocumentRef For RDFLoaderRishabh Bhatnagar
- ExternalDocumentRef is now a struct instead of a coalesced string - Also, added dependency of github.com/spdx/gordf in go.mod file Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-11-11Update gordf Module PathRishabh Bhatnagar
- changed gordf library path from github.com/RishabhBhatnagar/gordf to github.com/spdx/gordf Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-09-04Add Tests And Bug Fixes For Remaining FilesRishabh Bhatnagar
- setting file referenced in the range to parser files instead of the Unpackaged Files. - externalReference now requires just a node rather than a triple. - tidied and DRYed parsing of Snippet range. - allow licenseInfoInFile of File to be AnyLicenseInfo instead of SimpleLicensingInfo. - change signature of getSnippetInformation from Triple To Node. - add simpleLicensingInfo switch in the anyLicensingInfo switch. - change input of getExternaelDocumentRef from triples to Node for easier prototyping. - remove unused methods in utils - remove parser association from utils functions Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-30Add Tests and Bug Fixes for Relationships and LicensesRishabh Bhatnagar
- licenseTypes: renamed license of WithExceptionOperator to member - ignore rdf:type triple in Licenses - add comment to LicenseException Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-27Add Tests For Annotation and CreationInfoRishabhBhatnagar
Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-27Add Tests And Bug Fixes For RelationshipRishabhBhatnagar
Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-27Add Tests And Bug Fixes For parse_file.goRishabhBhatnagar
- noticeText can now assume two states: SPDX_NOASSERTION and string - add tests for parse_file.go file - relationship now returns the MUX error - getRelationshipTypeFromURI fixed - add constant for NS_SPDX+"Checksum" (SPDX_CHECKSUM_CAPITALIZED) - file Dependency set to the file being populated - add extended support for licenseInfoInFile Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-20Add Support For LicenseRishabhBhatnagar
- The update allows the model to handle all types of licenses. - Removed all methods identified as unused. Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>
2020-08-19Add Support For RDFLoader Without LicenseRishabhBhatnagar
- The Licensing Info is Incomplete - Some other attributes are not set in the tools-golang data model. Signed-off-by: RishabhBhatnagar <bhatnagarrishabh4@gmail.com>