Read SPDX 3 by spdx-python-model#897
Open
bact wants to merge 6 commits into
Open
Conversation
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Until official spdx-python-model 0.0.6 release Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
SDPX 3 does not have tag:value format Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Contributor
Author
|
Note: Alternatively, we can implement the This will allow anyone, including the more complete SPDX 3 implementation like ones in PR #898, to use the abstraction and freed them from managing model versions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
spdx-python-modelas binding for SPDX 3 data modeltools-pythonThis PR is trying to be small, focusing on ground work (format detection, etc), and demonstrate one core functionality (reading a file).
--
A
SpdxObjectSetProtocol structural type is introduced for convenience of type checking.It will allow functions to have a type that is not specific to a SPDX 3.x minor version (
spdx_python_.model.v3_0_1.SHACLObjectSetandspdx_python_.model.v3_1.SHACLObjectSetare considered different types).The plan forward is to use the
spdx_tools.spdx3.SpdxObjectSet(andspdx_tools.spdx3.SpdxObject, etc) protocol that derived directly from SPDX 3 RDF+SHACL (generated viaspdx-python-model) as SPDX 3 data models' representation -- and remove the entiresrc/spdx_tools/spdx3/modelto avoid maintenance of the multiple model versions (SPDX 3.0, SPDX 3.1, etc).