Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Invalid SPDX 3 generated when converting from SPDX 2 to SPDX 3

Đang mở
#290 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
cli

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ả

spdx-2.x spdx-3.x

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spdx/tools-java

Tất cả issue của spdx/tools-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.