asf-cat.api
categories
The set of categories, ordered by category-comparator.
category-comparator
(category-comparator l r)
A comparator for ASF category keywords, defined as being this ordering:
1. :category-a
2. :category-a-special
3. :category-b
4. :creative-commons
5. :category-x
6. :uncategorised
category-info
(category-info category)
Returns information on a category as a map with the keys :name and :url (both
strings). :name is a human-readable name of the category and :url is a link
to the ASF's documentation on the category.
expression-category
(expression-category spdx-expr)
Given an SPDX license expression, returns the overall ASF category of that
expression. Possible result values are as for license-category.
expressions-least-category
(expressions-least-category expressions)
Returns the lowest (best) category in the given sequence of SPDX license
expressions.
expressions-most-category
(expressions-most-category expressions)
Returns the highest (worst) category for the given sequence of SPDX license
expressions.
least-category
(least-category categories)
Returns the lowest (best) category in the given sequence of categories.
license-category
(license-category license-id)
license-comparator
(license-comparator l r)
A comparator for SPDX license identifiers, based on their ASF categories (see
`category-comparator`).
licenses-least-category
(licenses-least-category license-ids)
Returns the lowest (best) category in the given sequence of licenses (as per
license-category).
licenses-most-category
(licenses-most-category license-ids)
Returns the highest (worst) category for the given sequence of licenses (as
per license-category).
most-category
(most-category categories)
Returns the highest (worst) category for the given sequence of categories.
policy-uri
The URI (as a string) of the Apache Software Foundation's 3rd Party License
Policy