---
id: "content_license"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["legal", "publishing"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/content_license"
---

# Content license (`content_license`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

License of a work, a dataset or a record, by a short identifier or the URL of the license deed: Creative Commons licenses (cc-by, cc-by-nc-nd, CC0) and the public domain mark. Publication and biodiversity data use them for each record (OpenAlex works, GBIF occurrences). Software licenses are software_license.

- Parent datatype: `category`
- Personal data (PII): no
- Categories: Legal and compliance (legal), Publishing and print (publishing)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:(?:cc|CC)[-_ ]?(?:(?:by|BY)(?:[-_ ](?:sa|SA|nc|NC|nd|ND|nc[-_ ]sa|NC[-_ ]SA|nc[-_ ]nd|NC[-_ ]ND))?|0|zero|ZERO)(?:[-_ ]?\d[._]\d(?:[-_ ][A-Za-z]{2,5})?)?|https?://(?:www\.)?creativecommons\.org/(?:licenses|publicdomain)/[a-z0-9./-]+)$
```

## Examples

- `cc-by` — OpenAlex
- `cc-by-nc-nd` — OpenAlex
- `CC_BY_4_0` — GBIF API
- `CC0-1.0` — SPDX form
- `http://creativecommons.org/publicdomain/zero/1.0/legalcode` — GBIF occurrence
- `MIT` (invalid example) — Software license

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `contentlicensevalue` (data, `common/legal.yaml`)

## Supported by tools

- `metacrafter`

## Sources

- doc: <https://creativecommons.org/licenses/>
- wikipedia: <https://en.wikipedia.org/wiki/Creative_Commons_license>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/content_license.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/legal/content_license.yaml>
