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
- 47
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc 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
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
spdx/tools-java#341 · 1 bình luận ·
-
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 ·
-
Verify accepts SPDX 2.3 documents that violate normative MUST rules (document SPDXID, unique SPDXIDs, documentNamespace URI)Có thể làm lại được @tommyquak đã nhận 28 ngày trước và không có pull request nào đang mở. Đang mở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 · 5 bình luận · 1 reaction · 1 người được giao ·
-
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 ·
Tất cả issue của spdx/tools-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
yegor256/takes#1868 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
area: context help wanted type: decision
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
JoaccoG/spoticraft#6 ·
-
CI: LFC/ANTLR caches still use the old lfc/ paths, so the ANTLR jar is downloaded on every runCó thể đã có người làm @NicoBiernat đã nhận hôm nay. Đang mởbug CI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
lf-lang/reactor-uc#443 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ChiselsAndBits/Chisels-and-Bits#1397 ·