Skip to content

Commit

Permalink
Restructure licensing profile (#399)
Browse files Browse the repository at this point in the history
* rework licensing profile according to June 27th meeting

Signed-off-by: Armin Tänzer <[email protected]>

* change SimpleCustomLicense to SimpleLicensingText

Signed-off-by: Armin Tänzer <[email protected]>

* change superclass of SimpleLicensingText to Element

Signed-off-by: Armin Tänzer <[email protected]>

* move licenseText property to Licensing profile to replace simpleLicensingText

Signed-off-by: Armin Tänzer <[email protected]>

* rename Licensing to SimpleLicensing and ExpandedLicense to ExpandedLicensing

also add the corresponding ProfileIdentifierTypes

Signed-off-by: Armin Tänzer <[email protected]>

* fix reference to licenseText in SimpleLicensingText

Signed-off-by: Armin Tänzer <[email protected]>

---------

Signed-off-by: Armin Tänzer <[email protected]>
  • Loading branch information
armintaenzertng authored Jul 27, 2023
1 parent 82dcaed commit 87e131f
Show file tree
Hide file tree
Showing 42 changed files with 54 additions and 25 deletions.
3 changes: 2 additions & 1 deletion model/Core/Vocabularies/ProfileIdentifierType.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ There are a set of profiles that have been defined to be valid for a specific re

- core: the element follows the Core profile specification
- software: the element follows the Software profile specification
- licensing: the element follows the Licensing profile specification
- simpleLicensing: the element follows the simple Licensing profile specification
- expandedLicensing: the element follows the expanded Licensing profile specification
- security: the element follows the Security profile specification
- build: the element follows the Build profile specification
- ai: the element follows the AI profile specification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ left to the consumer of SPDX data to determine for themselves.
## Metadata

- name: ConjunctiveLicenseSet
- SubclassOf: Licensing/AnyLicenseInfo
- SubclassOf: /SimpleLicensing/AnyLicenseInfo
- Instantiability: Concrete

## Properties

- member
- type: Licensing/AnyLicenseInfo
- type: /SimpleLicensing/AnyLicenseInfo
- minCount: 2
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ by the `OR` operator.
## Metadata

- name: DisjunctiveLicenseSet
- SubclassOf: Licensing/AnyLicenseInfo
- SubclassOf: /SimpleLicensing/AnyLicenseInfo
- Instantiability: Concrete

## Properties

- member
- type: Licensing/AnyLicenseInfo
- type: /SimpleLicensing/AnyLicenseInfo
- minCount: 2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The WithAdditionOperator can have a License or an OrLaterOperator as the license
## Metadata

- name: ExtendableLicense
- SubclassOf: Licensing/AnyLicenseInfo
- SubclassOf: /Licensing/AnyLicenseInfo
- Instantiability: Abstract

## Properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A License represents a license text, whether listed on the SPDX License List

## Properties

- licenseText
- /SimpleLicensing/licenseText
- type: xsd:string
- minCount: 1
- maxCount: 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPDX-License-Identifier: Community-Spec-1.0
## Summary

Portion of an AnyLicenseInfo representing a License which has additional
text applied to it
text applied to it.

## Description

Expand All @@ -18,7 +18,7 @@ Syntax by the `WITH` operator.
## Metadata

- name: WithAdditionOperator
- SubclassOf: AnyLicenseInfo
- SubclassOf: /SimpleLicensing/AnyLicenseInfo
- Instantiability: Concrete

## Properties
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
SPDX-License-Identifier: Community-Spec-1.0

# ExpandedLicense
# ExpandedLicensing

## Summary

Fully expanded license expresssions.
Fully expanded license expressions.

## Description

This profile supports representing a fully expanded license expression in object form.

## Metadata

- id: https://rdf.spdx.org/v3/ExpandedLicense
- name: ExpandedLicense
- id: https://rdf.spdx.org/v3/ExpandedLicensing
- name: ExpandedLicensing
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ is making no assertion about the license information for the corresponding softw
## Metadata

- id: NoAssertionLicense
- type: Licensing/AnyLicenseInfo
- type: /SimpleLicensing/AnyLicenseInfo

## Serialization

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the absence of license information from a software artifact.
## Metadata

- id: NoneLicense
- type: Licensing/AnyLicenseInfo
- type: /SimpleLicensing/AnyLicenseInfo

## Serialization

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ characters.
For a ListedLicense, the licenseId will be as specified on the
[SPDX License List](https://spdx.org/licenses) for the particular license.

For a CustomLicense, the short-form license identifer must begin with the
For a CustomLicense, the short-form license identifier must begin with the
prefix `LicenseRef-` and must be unique within the applicable SPDX namespace.
The short-form license ID may be preceded by an SPDX namespace or a
fully-qualified URI prefix.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ A license expression participating in a license set.

## Description

A member is a license expression participating in a conjuctive (of type
A member is a license expression participating in a conjunctive (of type
ConjunctiveLicenseSet) or a disjunctive (of type DisjunctiveLicenseSet)
license set.

## Metadata

- name: member
- Nature: ObjectProperty
- Range: Licensing/AnyLicenseInfo
- Range: /SimpleLicensing/AnyLicenseInfo
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ A subjectLicense is a License which is subject to either an 'or later' effect

- name: subjectLicense
- Nature: ObjectProperty
- Range: Licensing/License
- Range: License
File renamed without changes.
26 changes: 26 additions & 0 deletions model/SimpleLicensing/Classes/SimpleLicensingText.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SPDX-License-Identifier: Community-Spec-1.0

# SimpleLicensingText

## Summary

A license or addition that is not listed on the SPDX License List.

## Description

A SimpleLicensingText represents a License or Addition that is not listed on the SPDX License
List at https://spdx.org/licenses, and is therefore defined by an SPDX data
creator.

## Metadata

- name: SimpleLicensingText
- SubclassOf: /Core/Element
- Instantiability: Concrete

## Properties

- licenseText
- type: xsd:string
- minCount: 1
- maxCount: 1
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ SPDX-License-Identifier: Community-Spec-1.0

## Summary

Identifies the full text of a License.
Identifies the full text of a License or Addition.

## Description

A licenseText contains the plain text of the License, without templating
or other similar markup.
A licenseText contains the plain text of the License or Addition,
without templating or other similar markup.

Users of the licenseText for a License can apply the SPDX Matching Guidelines
when comparing it to another text for matching purposes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
SPDX-License-Identifier: Community-Spec-1.0

# Licensing
# SimpleLicensing

## Summary

Additional metadata relating to software licensing.

## Description

TODO: This text has to be reworked to reflect the new licensing structure "Simple <-> Expanded".

The Licensing namespace defines metadata fields applicable to software
licensing. It also defines the classes and properties that comprise the
SPDX License Expression syntax and that relate to the SPDX License List.

## Metadata

- id: https://rdf.spdx.org/v3/Licensing
- name: Licensing
- id: https://rdf.spdx.org/v3/SimpleLicensing
- name: SimpleLicensing

0 comments on commit 87e131f

Please sign in to comment.