security:CvssV2VulnAssessmentRelationship leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Security/CvssV2VulnAssessmentRelationship

Label

CvssV2VulnAssessmentRelationship

Description

Provides a CVSS version 2.0 assessment for a vulnerability.

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (2)

Focus nodes of this shape (security:CvssV2VulnAssessmentRelationship) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
security:score Provides a numerical (0-10) representation of the severity of a vulnerability. 1 1 xsd:decimal
sh:Literal
security:vectorString Specifies the CVSS vector string for a vulnerability. 1 1 xsd:string
sh:Literal

Implementation

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix security: <https://spdx.org/rdf/3.0.1/terms/Security/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

security:CvssV2VulnAssessmentRelationship a owl:Class,
        sh:NodeShape ;
    rdfs:comment "Provides a CVSS version 2.0 assessment for a vulnerability."@en ;
    rdfs:subClassOf security:VulnAssessmentRelationship ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path security:vectorString ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path security:score ] .