extension:CdxPropertyEntry leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Extension/CdxPropertyEntry

Label

CdxPropertyEntry

Description

A property name with an associated value.

Targets (1)

Node Constraints

value type sh:BlankNodeOrIRI

Property Constraints (2)

Focus nodes of this shape (extension:CdxPropertyEntry) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
extension:cdxPropName A name used in a CdxPropertyEntry name-value pair. 1 1 xsd:string
sh:Literal
extension:cdxPropValue A value used in a CdxPropertyEntry name-value pair. 0 1 xsd:string
sh:Literal

Implementation

@prefix extension: <https://spdx.org/rdf/3.0.1/terms/Extension/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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#> .

extension:CdxPropertyEntry a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A property name with an associated value."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path extension:cdxPropValue ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path extension:cdxPropName ] .