From 1eb84d5f6d3161b4a2c9301b0ad14105dbc6271b Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Fri, 28 Jul 2023 14:59:36 -0700 Subject: [PATCH] Add customIdToUri Map to LicenseExpression Fixes #380 Signed-off-by: Gary O'Neall --- .../Classes/LicenseExpression.md | 3 +++ .../Properties/customIdToUri.md | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 model/SimpleLicensing/Properties/customIdToUri.md diff --git a/model/SimpleLicensing/Classes/LicenseExpression.md b/model/SimpleLicensing/Classes/LicenseExpression.md index 20d57d1a1..0f58a9083 100644 --- a/model/SimpleLicensing/Classes/LicenseExpression.md +++ b/model/SimpleLicensing/Classes/LicenseExpression.md @@ -23,3 +23,6 @@ SPDX License Expressions provide a way for one to construct expressions that mor - type: xsd:string - minCount: 1 - maxCount: 1 +- customIdToUri + - type: /Core/DictionaryEntry + - minCount: 0 diff --git a/model/SimpleLicensing/Properties/customIdToUri.md b/model/SimpleLicensing/Properties/customIdToUri.md new file mode 100644 index 000000000..a5c9f0f0d --- /dev/null +++ b/model/SimpleLicensing/Properties/customIdToUri.md @@ -0,0 +1,21 @@ +SPDX-License-Identifier: Community-Spec-1.0 + +# customIdToUri + +## Summary + +Maps a LicenseRef or AdditionRef string for a Custom License or a Custom License Addition to its URI ID. + +## Description + +Within a License Expression, references can be made to a Custom License or a Custom License Addition. +The License Expression syntax dictates any refence starting with a "LicenseRef-" or "AdditionRef-" refers to license or addition text not found in the SPDX list of licenses. +These custom licenses must be a CustomLicense, a CustomLicenseAddtion, or a SimpleLicensingText which are identified with a unique URI identifier. +The key for the DictionaryEntry is the string used in the license expression and the value is the URI for the corrosponding CustomLicense, CustomLicenseAddition, or SimpleLicensingText. + + +## Metadata + +- name: customIdToUri +- Nature: ObjectProperty +- Range: /Core/DictionaryEntry