Skip to content

Commit 9f0e9a0

Browse files
committed
Add documentation on IDs
1 parent a416ce1 commit 9f0e9a0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ You can use it one of three ways:
1111
2. Using the CSV dump provided at https://jedeschule.codefor.de/csv-data/
1212
3. Exploring the data using a small interactive dashboard at: https://knutator2.github.io/jedeschule-explore/#/dashboard
1313

14+
## IDs
15+
We try to use stable IDs for the data we publish so that it is comparable
16+
across time. We do however have to rely on the data publishers providing
17+
IDs that we can re-use. To avoid collisions, we prefix the IDs with the state's
18+
ISO-3166-2 code (without the `DE-` prefix).
19+
20+
In details, the IDs are sourced as follows:
21+
22+
23+
|State| ID-Source | exmaple-id |stable|
24+
|-----|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|------|
25+
|BW| Field `DISCH` (Dienststellenschüssel) in the JSON repsonse | `BW-04154817` |✅ likely|
26+
|BY| id from the WFS service | `BY-SCHUL_SCHULSTANDORTEGRUNDSCHULEN_2acb7d31-915d-40a9-adcf-27b38251fa48` |❓ unlikely (although we reached out to ask for canonical IDs to be published)|
27+
|BE| Field `bsn` (Berliner Schulnummer) from the WFS Service | `BE-02K10` |✅ likely|
28+
|BB| Field `schul_nr` (Schulnummer) from thw WFS Service | `BB-111430` |✅ likely|
29+
|HB| `id` URL query param on the school's detail page (identical to the SNR (Schulnummer) from the overview page) | `HB-937` |✅ likely|
30+
|HH| Field `schul_id` From the WFS Service | `HH-7910-0` |✅ likely|
31+
|HE| `school_no` URL query param of the schools's details page (identical to the Dienststellennummer) | `HE-4024` |✅ likely|
32+
|MV| Column `DIENSTSTELLEN-NUMMER` from the XLSX file | `MV-75130302` |✅ likely|
33+
|NI| Field `schulnr` from the JSON in the details payload | `NI-67763` |✅ likely|
34+
|NW| Column `Schulnummer` from the CSV | `NW-162437` |✅ likely|
35+
|RP| `Schulnummer` from the school's details page | `RP-50720` |✅ likely|
36+
|SL| Phone number, email or name from the item. Depending on what is available first | `SL-gem-kleinblittersdorfATschule.saarland` |❌ unlikely (e.g. if name was used before and now a phone number is added to the school, it will be used instead)|
37+
|SN| Field `id` from the API | `SN-4062` |✅ likely|
38+
|ST| `ID` query param from the details page URL | `ST-1001186` |❓ probably?|
39+
|TH| `Schulnumer` from school list | `TH-10601` |✅ likely|
40+
41+
1442
## Installation
1543
Note that at least Python 3.7 is required.
1644

0 commit comments

Comments
 (0)