{
  "id": "br_inep_school_code",
  "kind": "datatype",
  "status": "draft",
  "name": "INEP school code (Brazil)",
  "doc": "The eight-digit code INEP, the Brazilian institute of educational research, gives each school in the school census (Censo Escolar): the first two digits are the IBGE code of the state (26 Pernambuco, 35 São Paulo; br_state_ibge_code). The school census calls it CO_ENTIDADE; the education departments of states and cities write it as inep_escola, codigo_inep or cod_inep. Higher education institutions have e-MEC codes instead (br_emec_institution_code).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "education"
  ],
  "country": [
    "BR"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^(1[1-7]|2[1-9]|3[1-35]|4[1-3]|5[0-3])\\d{6}$",
  "examples": [
    {
      "value": "26175347",
      "description": "a municipal school of Recife",
      "valid": true
    },
    {
      "value": "26121972",
      "description": "another municipal school of Recife",
      "valid": true
    },
    {
      "value": "2617534",
      "description": "seven digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.gov.br/inep/pt-br/areas-de-atuacao/pesquisas-estatisticas-e-indicadores/censo-escolar"
    },
    {
      "type": "doc",
      "url": "https://inepdata.inep.gov.br/"
    }
  ],
  "translations": {
    "pt": {
      "name": "Código INEP da escola"
    },
    "ru": {
      "name": "Код школы INEP (Бразилия)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "brinepschoolcodebyname",
        "type": "field",
        "match": "regex",
        "file": "br/br_education.yaml"
      },
      {
        "rule": "brinepschoolcodevalue",
        "type": "data",
        "match": "func",
        "file": "br/br_education.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BR/education/br_inep_school_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BR/education/br_inep_school_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/education/br_inep_school_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/br_inep_school_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/br_inep_school_code.json"
  }
}