Commit 9a8b983
feat: add underway dataset type, data_accessibility field, align box format with SOSO (#28)
* chore: regenerate stale validation.schema.json (restores missing CO2Equilibrator etc.)
oae_data_protocol.validation.schema.json on main was stale relative to
the source YAMLs — it was missing several classes that exist in
src/oae_data_protocol/schema/ (e.g. CO2Equilibrator from instrument.yaml,
ContinuousCO2Calibration, and related discriminated-union variants).
Someone merged YAML changes without running make gen-validation-schema.
Running the generator against the current YAMLs with the pinned linkml
toolchain (linkml 1.8.7 / linkml-runtime 1.8.3 per poetry.lock) produces
this diff: adds 1229 lines of legitimate missing content, no removals.
Also bumps the generation timestamp in datamodel/oae_data_protocol.py
by 1 line as a side effect.
No schema meaning changes — main's oae_data_protocol.schema.json is
already up to date, so this only touches validation.schema.json and
the datamodel timestamp.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add underway dataset type, data_accessibility field, align box format with SOSO
Three issues from oae-data-commons:
#97 — Add 'underway' to DatasetType enum, for data collected continuously
from a moving platform (e.g., ship underway system sampling surface
seawater during transit).
#99 — Add new DataAccessibility enum (open_access, conditional_access,
scheduled_access) and a required data_accessibility slot on the base
Dataset class. Field-level description enumerates all three options so
the form can surface them via a single tooltip; per-value descriptions
remain on the enum for downstream consumers.
#88 — Align the GeoShape box format with science-on-schema.org. SOSO
specifies the box string as two space-separated corner points — the
southwest (lower-left) corner followed by the northeast (upper-right)
corner — with each point written as `<latitude> <longitude>` in decimal
degrees: "<minLat> <minLon> <maxLat> <maxLon>". The protocol's
spatial_coverage and GeoShape.box descriptions previously documented a
longitude-first ordering, which contradicted SOSO and was the root
cause of the lat/lon flip reported in jstorylong's bug. This commit
rewrites the box format documentation in core.yaml, experiment.yaml,
and model.yaml; updates example box strings in
src/docs/files/metadata-format.md to lat-first; and cites the SOSO
guide URL.
Doc audit (per CLAUDE.md):
- src/docs/files/vocabularies.md — added underway and DataAccessibility rows
- src/docs/files/Datasets/index.md — added data_accessibility to key fields table
- src/docs/files/metadata-format.md — flipped box example to lat-first
Refs: submarine-mrv/oae-data-commons#97 #99 #88
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Apply suggestion from @clevinson
* fix: correct SOSO anchor link to #spatial-coverage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: simplify spatial_coverage descriptions, keep SOSO detail on GeoShape.box only
The serialization format (lat-first, SOSO spec, example, link) now
lives only on the GeoShape.box attribute description. The spatial_coverage
slot descriptions on Project, Experiment, and ModelGrid just describe
what the field represents. The nested GeoShape.box description propagates
through the schema and is visible to both UI tooltips and LLM consumers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c23ec11 commit 9a8b983
12 files changed
Lines changed: 1216 additions & 129 deletions
File tree
- project
- jsonschema
- typescript
- src
- docs/files
- Datasets
- oae_data_protocol
- datamodel
- schema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1854 | 1864 | | |
1855 | 1865 | | |
1856 | 1866 | | |
| |||
1870 | 1880 | | |
1871 | 1881 | | |
1872 | 1882 | | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
1873 | 1888 | | |
1874 | 1889 | | |
1875 | 1890 | | |
| |||
1930 | 1945 | | |
1931 | 1946 | | |
1932 | 1947 | | |
1933 | | - | |
| 1948 | + | |
| 1949 | + | |
1934 | 1950 | | |
1935 | 1951 | | |
1936 | 1952 | | |
| |||
1957 | 1973 | | |
1958 | 1974 | | |
1959 | 1975 | | |
| 1976 | + | |
1960 | 1977 | | |
1961 | 1978 | | |
1962 | 1979 | | |
| |||
3199 | 3216 | | |
3200 | 3217 | | |
3201 | 3218 | | |
3202 | | - | |
| 3219 | + | |
3203 | 3220 | | |
3204 | 3221 | | |
3205 | 3222 | | |
| |||
3261 | 3278 | | |
3262 | 3279 | | |
3263 | 3280 | | |
3264 | | - | |
| 3281 | + | |
3265 | 3282 | | |
3266 | 3283 | | |
3267 | 3284 | | |
| |||
3320 | 3337 | | |
3321 | 3338 | | |
3322 | 3339 | | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
3323 | 3345 | | |
3324 | 3346 | | |
3325 | 3347 | | |
| |||
3459 | 3481 | | |
3460 | 3482 | | |
3461 | 3483 | | |
3462 | | - | |
| 3484 | + | |
| 3485 | + | |
3463 | 3486 | | |
3464 | 3487 | | |
3465 | 3488 | | |
| |||
3548 | 3571 | | |
3549 | 3572 | | |
3550 | 3573 | | |
3551 | | - | |
| 3574 | + | |
3552 | 3575 | | |
3553 | 3576 | | |
3554 | 3577 | | |
| |||
3867 | 3890 | | |
3868 | 3891 | | |
3869 | 3892 | | |
3870 | | - | |
| 3893 | + | |
3871 | 3894 | | |
3872 | 3895 | | |
3873 | 3896 | | |
| |||
4096 | 4119 | | |
4097 | 4120 | | |
4098 | 4121 | | |
4099 | | - | |
| 4122 | + | |
4100 | 4123 | | |
4101 | 4124 | | |
4102 | 4125 | | |
| |||
4358 | 4381 | | |
4359 | 4382 | | |
4360 | 4383 | | |
4361 | | - | |
| 4384 | + | |
4362 | 4385 | | |
4363 | 4386 | | |
4364 | 4387 | | |
| |||
4568 | 4591 | | |
4569 | 4592 | | |
4570 | 4593 | | |
4571 | | - | |
| 4594 | + | |
4572 | 4595 | | |
4573 | 4596 | | |
4574 | 4597 | | |
| |||
4743 | 4766 | | |
4744 | 4767 | | |
4745 | 4768 | | |
4746 | | - | |
| 4769 | + | |
4747 | 4770 | | |
4748 | 4771 | | |
4749 | 4772 | | |
| |||
4870 | 4893 | | |
4871 | 4894 | | |
4872 | 4895 | | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
| 4899 | + | |
| 4900 | + | |
4873 | 4901 | | |
4874 | 4902 | | |
4875 | 4903 | | |
| |||
4980 | 5008 | | |
4981 | 5009 | | |
4982 | 5010 | | |
4983 | | - | |
| 5011 | + | |
| 5012 | + | |
4984 | 5013 | | |
4985 | 5014 | | |
4986 | 5015 | | |
| |||
5620 | 5649 | | |
5621 | 5650 | | |
5622 | 5651 | | |
5623 | | - | |
| 5652 | + | |
5624 | 5653 | | |
5625 | 5654 | | |
5626 | 5655 | | |
| |||
6082 | 6111 | | |
6083 | 6112 | | |
6084 | 6113 | | |
6085 | | - | |
| 6114 | + | |
6086 | 6115 | | |
6087 | 6116 | | |
6088 | 6117 | | |
| |||
0 commit comments