|
42 | 42 | UK_AIR_API = "https://uk-air.defra.gov.uk/sos-ukair/api/v1" |
43 | 43 | UK_AIR_SOS_CAPABILITIES = "https://uk-air.defra.gov.uk/data/sos/service?service=SOS&request=GetCapabilities" |
44 | 44 | OGL3 = "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" |
| 45 | +PUBLISH_INTERVAL_SECONDS = 3600 |
45 | 46 |
|
46 | 47 |
|
47 | 48 | def _image_docs(station: dict) -> list[dict]: |
@@ -242,6 +243,27 @@ def _system_sml(station: dict) -> dict: |
242 | 243 | ], |
243 | 244 | "documents": docs, |
244 | 245 | "characteristics": [{"label": "Station Properties", "characteristics": characteristics}], |
| 246 | + "capabilities": [{ |
| 247 | + "definition": "http://www.w3.org/ns/ssn/systems/SystemCapability", |
| 248 | + "label": "Publisher Capabilities", |
| 249 | + "capabilities": [ |
| 250 | + { |
| 251 | + "type": "Quantity", |
| 252 | + "name": "publish_interval", |
| 253 | + "definition": "http://qudt.org/vocab/quantitykind/Period", |
| 254 | + "label": "Publish Interval", |
| 255 | + "uom": {"code": "s"}, |
| 256 | + "value": PUBLISH_INTERVAL_SECONDS, |
| 257 | + }, |
| 258 | + { |
| 259 | + "type": "Text", |
| 260 | + "name": "source_query_mode", |
| 261 | + "definition": "http://sensorml.com/ont/swe/property/ReportingFrequency", |
| 262 | + "label": "Source Query Mode", |
| 263 | + "value": "Recent UK-AIR SOS timeseries readings polled from a bounded lookback window", |
| 264 | + }, |
| 265 | + ], |
| 266 | + }], |
245 | 267 | "position": { |
246 | 268 | "type": "Point", |
247 | 269 | "coordinates": [station["lon"], station["lat"]], |
|
0 commit comments