# AGENTS.md — 学校データ (P29)
160 files, 52 MB, 2013–2023.

## Before you download
| | |
|---|---|
| Files | 160 |
| Measured total | 52 MB |
| Years present | 2013, 2021, 2023 |
| Newest edition | 2023 |
| Coordinate system | JGD2011/ (B, L) |
| Geometry | 点 |
| Formats | GML (112) |

## Licence
Per file, resolved from the file's own year: 再配布できる 112, 再配布できない 48.
The Collection's own `license` is `other`; it falls back to `other` whenever any single year in the dataset does. Read the Item's `license` and its `ksj:terms_applied`, the sentence that decided it.

## Columns
- **属性情報** — 9 columns: `P29_001` 行政区域コード, `P29_002` 学校コード, `P29_003` 学校分類, `P29_004` 名称, `P29_005` 所在地, `P29_006` 管理者コード …

Column names are what a query has to spell; the readable name is beside it. These come from the dataset page, which keeps superseded schemas as HTML comments -- those are stripped, so what is listed here is the current edition's.

## Often used with
- `../A31a/collection.json` — 洪水浸水想定区域の中にある学校を数える
- `../A40/collection.json` — 津波浸水想定域にある学校を数える
- `../A33/collection.json` — 土砂災害警戒区域にかかる学校を洗い出す (測地系が違います)
- `../mesh500r6/collection.json` — 学校区の将来児童数を見積もる

These pairs are an editorial judgement, not upstream metadata: they carry `ksj:editorial: true`. The list is not exhaustive, and a combination missing from it is not a combination that was rejected.

## Count it, do not trust this file
Every number above is generated from the catalog, but a fact stated in prose goes stale silently. The Items are the record:

```sql
select year, region, redistribution, file_size
  from 'https://stac.yuiseki.net/mlit-nlftp/items.parquet'
 where collection = 'P29'
 order by year desc;
```

`ksj:is_latest` on an Item is computed per region, so the newest year for the country is not the newest year everywhere.
