core:DictionaryEntry leaf node


URI

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

Label

DictionaryEntry

Description

A key with an associated value.

Property Shapes

By the associated SHACL property shapes, instances of core:DictionaryEntry can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
core:DictionaryEntry
core:key owl:DatatypeProperty A key used in a generic key-value pair. 1 1 xsd:string
sh:Literal
xsd:string
core:value owl:DatatypeProperty A value used in a generic key-value pair. 0 1 xsd:string
sh:Literal
xsd:string

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 ] .