core:DictionaryEntry leaf node


URI

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

Label

DictionaryEntry

Description

A key with an associated value.

Targets (1)

Node Constraints

value type sh:BlankNodeOrIRI

Property Constraints (2)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:key A key used in a generic key-value pair. 1 1 xsd:string
sh:Literal
core:value A value used in a generic key-value pair. 0 1 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 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:DictionaryEntry a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A key with an associated value."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:value ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:key ] .