{
  "id": "us_nyc_dbn",
  "kind": "datatype",
  "status": "draft",
  "name": "New York City school code (DBN, district borough number)",
  "doc": "Code of a school of the New York City Department of Education: the two-digit district, a borough letter (M Manhattan, X Bronx, K Brooklyn, Q Queens, R Staten Island) and the three-digit school number, such as 01M015. Districts 01 to 32 are the community school districts; 75, 79 and 84 are citywide districts.",
  "is_pii": false,
  "categories": [
    "education",
    "identifiers"
  ],
  "country": [
    "US"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^\\d{2}[KMQRX]\\d{3}$",
  "examples": [
    {
      "value": "01M015",
      "description": "District 1, Manhattan, school 015",
      "valid": true
    },
    {
      "value": "24Q600",
      "description": "District 24, Queens",
      "valid": true
    },
    {
      "value": "02M630",
      "valid": true
    },
    {
      "value": "01A015",
      "description": "A is not a borough letter",
      "valid": false
    },
    {
      "value": "1M015",
      "description": "The district has two digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://data.cityofnewyork.us/Education/2019-2020-School-Locations/wg9x-4ke6"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код школы Нью-Йорка (DBN)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "usnycdbnbyname",
        "type": "field",
        "match": "regex",
        "file": "us/us_nyc.yaml"
      },
      {
        "rule": "usnycdbnvalue",
        "type": "data",
        "match": "regex",
        "file": "us/us_nyc.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/US/education/us_nyc_dbn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/US/education/us_nyc_dbn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/education/us_nyc_dbn.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/us_nyc_dbn",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/us_nyc_dbn.json"
  }
}