{
  "name": "education-and-literacy",
  "title": "Education and literacy by country: literacy, out-of-school, completion, enrolment and spending, 1970-2026 (UNESCO UIS)",
  "description": "UNESCO Institute for Statistics (UIS) core education indicators by country and territory, SDG region, UIS region and World Bank income group, 1970-2026: adult (15+) and youth (15-24) literacy rates; out-of-school rates and numbers for primary, lower secondary and upper secondary school age; completion rates by level (from 1990); gross enrolment ratios for primary, lower secondary, upper secondary and tertiary; all by sex; and government expenditure on education as % of GDP. Tidy long format with UIS indicator codes and UIS's estimate qualifiers (UIS_EST, NAT_EST) and magnitude codes kept. Source: UIS Data API, November 2026 data release (data version 20261125-0771d5ca). Licence CC BY-SA 4.0 (ShareAlike).",
  "status": "monitored",
  "version": "20261125.0.0",
  "licenses": [
    {
      "name": "CC-BY-SA-4.0",
      "title": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0). UIS Data Browser terms and conditions: \"The work of the UIS is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.\" The UIS Data API documentation: \"The data is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.\" ShareAlike: if you share adapted material, license your contributions under CC BY-SA 4.0 or a compatible licence, give appropriate credit, link to the licence and identify changes. Credit: Source: Adapted from UNESCO Institute for Statistics (UIS), https://api.uis.unesco.org/api/public, data version 20261125-0771d5ca, extracted 2026-11-29.",
      "path": "https://creativecommons.org/licenses/by-sa/4.0/"
    }
  ],
  "sources": [
    {
      "title": "UNESCO Institute for Statistics (UIS) Data API, indicator data endpoint (keyless)",
      "path": "https://api.uis.unesco.org/api/public/data/indicators"
    },
    {
      "title": "UIS Data API documentation (licence, qualifier and magnitude codes)",
      "path": "https://api.uis.unesco.org/api/public/documentation/"
    },
    {
      "title": "UIS Data Browser, terms and conditions",
      "path": "https://databrowser.uis.unesco.org/terms-and-conditions"
    }
  ],
  "upkeep": {
    "mode": "living",
    "refresh": "annual",
    "workflow": ".github/workflows/update.yml"
  },
  "resources": [
    {
      "path": "data/education.csv",
      "name": "education",
      "title": "UIS education indicators by country or region, indicator and year",
      "mediatype": "text/csv",
      "format": "csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "geo_code",
            "type": "string",
            "description": "UIS geo unit code: ISO 3166-1 alpha-3 for countries and territories (e.g. NPL); for aggregates, UIS's id with its family prefix, e.g. \"SDG: World\", \"UIS: Sub-Saharan Africa\", \"WB: Low income (July 2026)\"."
          },
          {
            "name": "geo_name",
            "type": "string",
            "description": "Name as UIS gives it."
          },
          {
            "name": "geo_type",
            "type": "string",
            "description": "country (a country or territory, UIS \"NATIONAL\") or region (an aggregate computed by UIS). Filter to country before ranking or counting countries.",
            "constraints": {
              "enum": [
                "country",
                "region"
              ]
            }
          },
          {
            "name": "region_group",
            "type": "string",
            "description": "For regions, the family of aggregates: SDG (UN SDG regions, UIS's headline grouping; use \"SDG: World\" for the world), UIS (UIS's own regions) or WB (World Bank income groups). Empty for countries. Regions with the same name in different families need not cover the same countries."
          },
          {
            "name": "indicator",
            "type": "string",
            "description": "UIS indicator code, e.g. LR.AG15T99 (adult literacy rate, both sexes). Names, definitions, topic, level, sex and unit are in indicators.csv."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Reference year as UIS gives it, 1970-2026."
          },
          {
            "name": "value",
            "type": "number",
            "description": "Value as published by UIS (percent, number of children, or percent of GDP; see indicators.csv unit). UIS serves 32-bit floats; values are written as the shortest decimal that is the same 32-bit number. Empty where UIS gives a 0 value with magnitude NA (3,159 records) and for eight zero-valued LOWREL records, which are blanked as an editorial quality exclusion (UIS defines LOWREL as a numeric value of low reliability, not as a missing-value code). All 98 NIL zeros remain numeric zero. The build also blanks SUPP and INCLUDED, neither of which occurs in this release."
          },
          {
            "name": "qualifier",
            "type": "string",
            "description": "UIS qualifier: UIS_EST (estimate produced by UIS), NAT_EST (national estimate), or empty (no qualifier: reported data, or a UIS aggregate without one).",
            "constraints": {
              "enum": [
                "",
                "UIS_EST",
                "NAT_EST"
              ]
            }
          },
          {
            "name": "magnitude",
            "type": "string",
            "description": "UIS magnitude code: NIL (nil or negligible, value 0), NA (not applicable), LOWREL (low reliability), SUPP (suppressed), INCLUDED, INCLUDES, or empty.",
            "constraints": {
              "enum": [
                "",
                "NIL",
                "NA",
                "LOWREL",
                "SUPP",
                "INCLUDED",
                "INCLUDES"
              ]
            }
          },
          {
            "name": "quality_flag",
            "type": "string",
            "description": "Dataset-added screening flag. expenditure_gt_30pct_gdp marks expenditure above 30% of GDP, retained as published and requiring verification. Empty does not certify validity."
          }
        ],
        "primaryKey": [
          "geo_code",
          "indicator",
          "year"
        ]
      }
    },
    {
      "path": "data/indicators.csv",
      "name": "indicators",
      "title": "The 49 UIS indicators: names, definitions, topic, level, sex and unit",
      "mediatype": "text/csv",
      "format": "csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "indicator",
            "type": "string",
            "description": "UIS indicator code."
          },
          {
            "name": "name",
            "type": "string",
            "description": "UIS indicator name."
          },
          {
            "name": "topic",
            "type": "string",
            "description": "literacy, out_of_school, completion, enrolment or expenditure.",
            "constraints": {
              "enum": [
                "literacy",
                "out_of_school",
                "completion",
                "enrolment",
                "expenditure"
              ]
            }
          },
          {
            "name": "level",
            "type": "string",
            "description": "Age group (literacy: adult_15plus, youth_15_24) or education level (primary, lower_secondary, upper_secondary, primary_and_secondary, tertiary, all_levels). Out-of-school indicators refer to children of the official school age for the level."
          },
          {
            "name": "sex",
            "type": "string",
            "description": "both, female or male.",
            "constraints": {
              "enum": [
                "both",
                "female",
                "male"
              ]
            }
          },
          {
            "name": "unit",
            "type": "string",
            "description": "percent, number (children, adolescents or youth) or percent_of_gdp.",
            "constraints": {
              "enum": [
                "percent",
                "number",
                "percent_of_gdp"
              ]
            }
          },
          {
            "name": "definition",
            "type": "string",
            "description": "UIS glossary definition of the indicator's concept, from the API's indicator metadata."
          },
          {
            "name": "rows",
            "type": "integer",
            "description": "Rows for this indicator in education.csv (kept countries and regions)."
          },
          {
            "name": "first_year",
            "type": "integer",
            "description": "Earliest year in education.csv."
          },
          {
            "name": "last_year",
            "type": "integer",
            "description": "Latest year in education.csv."
          }
        ],
        "primaryKey": [
          "indicator"
        ]
      }
    }
  ],
  "views": [
    {
      "name": "world-out-of-school-chart",
      "title": "Out-of-school children, adolescents and youth by school-age level, world (SDG: World), 2000-2025, millions (UIS estimates)",
      "resources": [
        "education"
      ],
      "specType": "vega-lite",
      "spec": {
        "width": "container",
        "height": 340,
        "transform": [
          {
            "filter": "datum.geo_code === 'SDG: World' && (datum.indicator === 'OFST.1.CP' || datum.indicator === 'OFST.2.CP' || datum.indicator === 'OFST.3.CP') && datum.year >= 2000 && datum.year <= 2025"
          },
          {
            "calculate": "datum.value / 1e6",
            "as": "millions"
          },
          {
            "calculate": "datum.indicator === 'OFST.1.CP' ? 'Primary school age' : datum.indicator === 'OFST.2.CP' ? 'Lower secondary school age' : 'Upper secondary school age'",
            "as": "level"
          }
        ],
        "mark": {
          "type": "area"
        },
        "encoding": {
          "x": {
            "field": "year",
            "type": "quantitative",
            "title": "Year",
            "axis": {
              "format": "d"
            }
          },
          "y": {
            "field": "millions",
            "type": "quantitative",
            "stack": "zero",
            "title": "Out of school (millions)"
          },
          "color": {
            "field": "level",
            "type": "nominal",
            "title": "School-age level",
            "sort": [
              "Upper secondary school age",
              "Lower secondary school age",
              "Primary school age"
            ]
          },
          "order": {
            "field": "indicator",
            "type": "nominal"
          }
        }
      }
    }
  ]
}