simplelicensing:LicenseExpression leaf node


URI

https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/LicenseExpression

Label

LicenseExpression

Description

An SPDX Element containing an SPDX license expression string.

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (3)

Focus nodes of this shape (simplelicensing:LicenseExpression) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
simplelicensing:customIdToUri Maps a LicenseRef or AdditionRef string for a Custom License or a Custom License Addition to its URI ID. 0 * core:DictionaryEntry
sh:BlankNodeOrIRI
simplelicensing:licenseExpression A string in the license expression format. 1 1 xsd:string
sh:Literal
simplelicensing:licenseListVersion The version of the SPDX License List used in the license expression. 0 1 xsd:string
sh:Literal
sh:pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$

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 simplelicensing: <https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

simplelicensing:LicenseExpression a owl:Class,
        sh:NodeShape ;
    rdfs:comment "An SPDX Element containing an SPDX license expression string."@en ;
    rdfs:subClassOf simplelicensing:AnyLicenseInfo ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:class core:DictionaryEntry ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path simplelicensing:customIdToUri ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path simplelicensing:licenseExpression ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path simplelicensing:licenseListVersion ;
            sh:pattern "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" ] .