A micro library that provides a Clojure implementation of the Apache Software Foundation's 3rd Party License Policy (https://www.apache.org/legal/resolved.html).
A micro library that provides a Clojure implementation of the Apache Software Foundation's 3rd Party License Policy (https://www.apache.org/legal/resolved.html).
The set of categories, ordered by category-comparator.
The set of categories, ordered by category-comparator.
(category-comparator l r)
A comparator for ASF category keywords, defined as being this ordering:
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)
Returns information on a category as a map with the keys :name and :url (both strings).
Returns information on a category as a map with the keys :name and :url (both strings).
(expression-category spdx-expr)
Given an SPDX license expression, returns the overall ASF category of that
expression. Results are as for category
.
Given an SPDX license expression, returns the overall ASF category of that expression. Results are as for `category`.
(expressions-least-category expressions)
Returns the lowest (best) category in the given sequence of SPDX license expressions.
Returns the lowest (best) category in the given sequence of SPDX license expressions.
(expressions-most-category expressions)
Returns the highest (worst) category for the given sequence of SPDX license expressions.
Returns the highest (worst) category for the given sequence of SPDX license expressions.
(least-category categories)
Returns the lowest (best) category in the given sequence of categories.
Returns the lowest (best) category in the given sequence of categories.
(license-category license-id)
Given an SPDX license identifier (or 'Public Domain', which is not a valid SPDX identifier but is special cased by asf-cat), returns one of:
nil - when license-id is nil, empty or blank :category-a - see https://www.apache.org/legal/resolved.html#category-a :category-a-special - see https://www.apache.org/legal/resolved.html and scroll to the appropriate section :category-b - see https://www.apache.org/legal/resolved.html#category-b :creative-commons - see https://www.apache.org/legal/resolved.html#cc-by (may be any category - further manual investigation required) :category-x - see https://www.apache.org/legal/resolved.html#category-x :uncategorised - the ASF category of license-id could not be determined
Given an SPDX license identifier (or 'Public Domain', which is not a valid SPDX identifier but is special cased by asf-cat), returns one of: nil - when license-id is nil, empty or blank :category-a - see https://www.apache.org/legal/resolved.html#category-a :category-a-special - see https://www.apache.org/legal/resolved.html and scroll to the appropriate section :category-b - see https://www.apache.org/legal/resolved.html#category-b :creative-commons - see https://www.apache.org/legal/resolved.html#cc-by (may be any category - further manual investigation required) :category-x - see https://www.apache.org/legal/resolved.html#category-x :uncategorised - the ASF category of license-id could not be determined
(license-comparator l r)
A comparator for SPDX license identifiers, based on their ASF categories (see
category-comparator
).
A comparator for SPDX license identifiers, based on their ASF categories (see `category-comparator`).
(licenses-least-category license-ids)
Returns the lowest (best) category in the given sequence of SPDX license identifiers.
Returns the lowest (best) category in the given sequence of SPDX license identifiers.
(licenses-most-category license-ids)
Returns the highest (worst) category for the given sequence of SPDX license identifiers.
Returns the highest (worst) category for the given sequence of SPDX license identifiers.
(most-category categories)
Returns the highest (worst) category for the given sequence of categories.
Returns the highest (worst) category for the given sequence of categories.
The URI (as a string) of the Apache Software Foundation's 3rd Party License Policy
The URI (as a string) of the Apache Software Foundation's 3rd Party License Policy
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close