LicenseExpression

Summary

An SPDX Element containing an SPDX license expression string.

Description

A LicenseExpression enables the representation, in a single string, of a combination of one or more licenses, together with additions such as license exceptions.

The syntax for a licenseExpression string is set forth in the corresponding Annex of this document ("SPDX license expressions"). A licenseExpression string is not valid if it does not conform to the grammar set forth in that Annex.

The ExpandedLicensing profile can be used to represent the complete parsed license expression as a combination of license objects.

customIdToUri is deprecated. Migrate to customIdToLicense. customIdToUri will be removed in a future release.

Metadata

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

Name LicenseExpression
Instantiability Concrete
SubclassOf AnyLicenseInfo

Class hierarchy

/Core/Element
       /SimpleLicensing/AnyLicenseInfo
             /SimpleLicensing/LicenseExpression

Properties

Property Type minCount maxCount
customIdToLicense /Core/ElementMap 0 *
customIdToUri /Core/DictionaryEntry 0 *
licenseExpression xsd:string 1 1
licenseListVersion /Core/SemVer 0 1

All properties

Property Type minCount maxCount
comment xsd:string 0 1
creationInfo CreationInfo 1 1
customIdToLicense ElementMap 0 *
customIdToUri DictionaryEntry 0 *
description xsd:string 0 1
extension Extension 0 *
externalIdentifier ExternalIdentifier 0 *
externalRef ExternalRef 0 *
licenseExpression xsd:string 1 1
licenseListVersion SemVer 0 1
name xsd:string 0 1
spdxId xsd:anyURI 1 1
summary xsd:string 0 1
verifiedUsing IntegrityMethod 0 *