Invalid SPDX 3 generated when converting from SPDX 2 to SPDX 3
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện quá trình chuyển đổi với zipp-3.23.1.spdx.json được đính kèm bằng Java tools 2.0.6, sau đó chạy spdx3-validate --json trên tệp SPDX 3 được tạo ra. Truy vết các đường dẫn chuyển đổi chịu trách nhiệm cho các giá trị dataLicense và Core/to. Hoàn thành khi tài liệu đã chuyển đổi vượt qua kiểm tra xác thực schema SPDX 3.0.1 và SHACL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
zipp-3.23.1.spdx.json
zipp-3.23.1.spdx3.json
Converting zipp-3.23.1.spdx.json (SPDX 2) to zipp-3.23.1.spdx3.json (SPDX 3) with Java tools 2.0.6
Generated code is invalid according to https://github.com/JPEWdev/spdx3-validate
spdx3-validate --json zipp-3.23.1.spdx3.json
✔ Loading zipp-3.23.1.spdx3.json
✔ Loading SPDX 3.0.1
✔ Validating schema for zipp-3.23.1.spdx3.json
✖ Checking SHACL for zipp-3.23.1.spdx3.json
ERROR: SHACL Validation failed for zipp-3.23.1.spdx3.json:
Violation of type sh:ClassConstraintComponent:
Severity: sh:Violation
Source Shape:
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] sh:class <https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/AnyLicenseInfo> ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
sh:path <https://spdx.org/rdf/3.0.1/terms/Core/dataLicense> .
Focus Node: <https://pypi.org/spdx/zipp-3.23.1-specv3/document0>
Value Node: <http://spdx.org/licenses/CC0-1.0>
Result path: <https://spdx.org/rdf/3.0.1/terms/Core/dataLicense>
Message: Value does not have class <https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/AnyLicenseInfo>
Violation of type sh:ClassConstraintComponent:
Severity: sh:Violation
Source Shape:
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] sh:class <https://spdx.org/rdf/3.0.1/terms/Core/Element> ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:path <https://spdx.org/rdf/3.0.1/terms/Core/to> .
Focus Node: <https://pypi.org/spdx/zipp-3.23.1-specv3/SPDXRef-gnrtd6>
Value Node: <http://spdx.org/licenses/MIT>
Result path: <https://spdx.org/rdf/3.0.1/terms/Core/to>
Message: Value does not have class ns1:Element
Violation of type sh:ClassConstraintComponent:
Severity: sh:Violation
Source Shape:
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] sh:class <https://spdx.org/rdf/3.0.1/terms/Core/Element> ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:path <https://spdx.org/rdf/3.0.1/terms/Core/to> .
Focus Node: <https://pypi.org/spdx/zipp-3.23.1-specv3/SPDXRef-gnrtd4>
Value Node: <http://spdx.org/licenses/MIT>
Result path: <https://spdx.org/rdf/3.0.1/terms/Core/to>
Message: Value does not have class ns1:Element
- Ngôn ngữ chính
- Java
- Star
- 101
- Fork
- 46
- Merge trung bình
- 15 giờ 57 phút
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của spdx/tools-java
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
spdx/tools-java#331 · 1 reaction ·
-
bug spdx-2.3 validation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
spdx/tools-java#316 · 1 bình luận · 1 reaction ·
-
Release 2.0.8 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
spdx/tools-java#313 · 1 reaction ·
-
Warning when validating Đang mởvalidation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
spdx/tools-java#287 · 1 bình luận · 1 reaction ·
-
Case-Sensitive IRI as spdxId Đang mởquestion test
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
spdx/tools-java#283 · 14 bình luận · 1 reaction ·
Tất cả issue của spdx/tools-java
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·