SPDX related functionality.
SPDX related functionality.
(id->info spdx-id)
Returns the SPDX license information for the given SPDX license identifier, or nil if unable to do so.
Returns the SPDX license information for the given SPDX license identifier, or nil if unable to do so.
(id->name id)
Returns the license name of the given id; either the official SPDX name or (if the id is not an SPDX id) an unofficial name. Returns the id as-is if unable to determine its name.
Returns the license name of the given id; either the official SPDX name or (if the id is not an SPDX id) an unofficial name. Returns the id as-is if unable to determine its name.
(id->spdx-name spdx-id)
Returns the official license name for the given SPDX id, or nil if unable to do so.
Returns the official license name for the given SPDX id, or nil if unable to do so.
All SPDX license identifiers in the list.
All SPDX license identifiers in the list.
The version of the license list in use.
The version of the license list in use.
(name->ids name)
Attempts to determine the SPDX license identifier(s) (a set) from the given license name (a string). Returns nil if unable to do so.
Attempts to determine the SPDX license identifier(s) (a set) from the given license name (a string). Returns nil if unable to do so.
(spdx-id? id)
Is the given identifier an SPDX identifier?
Is the given identifier an SPDX identifier?
(spdx-name->id name)
Returns the SPDX license identifier equivalent of the given license name (matched case insensitively), or nil if unable to do so.
Returns the SPDX license identifier equivalent of the given license name (matched case insensitively), or nil if unable to do so.
(text->ids text)
Attempts to determine the SPDX license identifier(s) (a set) from the given license text (an InputStream, or something that can have an io/input-stream opened on it).
Attempts to determine the SPDX license identifier(s) (a set) from the given license text (an InputStream, or something that can have an io/input-stream opened on it).
(uri->id uri)
Returns the SPDX license identifier equivalent for the given uri, or nil if unable to do so.
Notes:
Returns the SPDX license identifier equivalent for the given uri, or nil if unable to do so. Notes: 1. this does not perform exact matching; rather it checks whether the given uri matches the start of any of the known license uris. 2. uris in the SPDX license list are not unique to a license (approximately 70 out of 600 are duplicates)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close