devonfw / solicitor

Solicitor is a tool enabling management of licenses of software dependencies
Apache License 2.0
22 stars 18 forks source link

Automatically map RawLicenses obtained from Scancode data into NormalizedLicenses #230

Closed ohecker closed 9 months ago

ohecker commented 9 months ago

As a user I want Solicitor to map RawLicense data directly to NormalizedLicense objects if the RawLicense data is obtained from Scancode data. Data from scancode classifies licenses either

Mapping this to NormalizedLicenses currently requires explicit LicenseNameMapping or LicenseAssignment rules for the SPDX identifiers and LicenseRef-scancode-XXXXX identifiers.

With the new feature an automatic mapping should be done (in case that the origin of license data (RawLicense.origin) is scancode and the ApplicationComponent.dataStatus is any of the DA: (data available) values.

The mapping should be done as follows:

Any unmapped RawLicenses might then afterwards be mapped by the ususal approach of defining rules.