core:PackageVerificationCode leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Core/PackageVerificationCode

Label

PackageVerificationCode

Description

An SPDX version 2.X compatible verification method for software packages.

Superclasses (1)

Targets (1)

Node Constraints

value type sh:BlankNodeOrIRI

Property Constraints (3)

Focus nodes of this shape (core:PackageVerificationCode) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:algorithm Specifies the algorithm used for calculating the hash value. 1 1 core:HashAlgorithm
sh:IRI
sh:in core:HashAlgorithm/adler32, core:HashAlgorithm/blake2b256, core:HashAlgorithm/blake2b384, core:HashAlgorithm/blake2b512, core:HashAlgorithm/blake3, core:HashAlgorithm/crystalsDilithium, core:HashAlgorithm/crystalsKyber, core:HashAlgorithm/falcon, core:HashAlgorithm/md2, core:HashAlgorithm/md4, core:HashAlgorithm/md5, core:HashAlgorithm/md6, core:HashAlgorithm/other, core:HashAlgorithm/sha1, core:HashAlgorithm/sha224, core:HashAlgorithm/sha256, core:HashAlgorithm/sha384, core:HashAlgorithm/sha512, core:HashAlgorithm/sha3_224, core:HashAlgorithm/sha3_256, core:HashAlgorithm/sha3_384, core:HashAlgorithm/sha3_512
core:hashValue The result of applying a hash algorithm to an Element. 1 1 xsd:string
sh:Literal
core:packageVerificationCodeExcludedFile The relative file name of a file to be excluded from the `PackageVerificationCode`. 0 * xsd:string
sh:Literal

Implementation

@prefix core: <https://spdx.org/rdf/3.0.1/terms/Core/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

core:PackageVerificationCode a owl:Class,
        sh:NodeShape ;
    rdfs:comment "An SPDX version 2.X compatible verification method for software packages."@en ;
    rdfs:subClassOf core:IntegrityMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:nodeKind sh:Literal ;
            sh:path core:packageVerificationCodeExcludedFile ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:hashValue ],
        [ sh:class core:HashAlgorithm ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384> <https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:algorithm ] .