{
  "id": "content_license",
  "kind": "datatype",
  "status": "draft",
  "name": "Content license",
  "doc": "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": "category",
  "is_pii": false,
  "categories": [
    "legal",
    "publishing"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:(?: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": [
    {
      "value": "cc-by",
      "description": "OpenAlex",
      "valid": true
    },
    {
      "value": "cc-by-nc-nd",
      "description": "OpenAlex",
      "valid": true
    },
    {
      "value": "CC_BY_4_0",
      "description": "GBIF API",
      "valid": true
    },
    {
      "value": "CC0-1.0",
      "description": "SPDX form",
      "valid": true
    },
    {
      "value": "http://creativecommons.org/publicdomain/zero/1.0/legalcode",
      "description": "GBIF occurrence",
      "valid": true
    },
    {
      "value": "MIT",
      "description": "Software license",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://creativecommons.org/licenses/"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Creative_Commons_license"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "contentlicensevalue",
        "type": "data",
        "match": "func",
        "file": "common/legal.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/legal/content_license.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/legal/content_license.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/legal/content_license.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/content_license",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/content_license.json"
  }
}