Skip to content

Commit 0ae6ef8

Browse files
committed
Expose UK-AIR refresh interval
1 parent d894fca commit 0ae6ef8

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

publishers/uk_air/bootstrap_uk_air.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
UK_AIR_API = "https://uk-air.defra.gov.uk/sos-ukair/api/v1"
4343
UK_AIR_SOS_CAPABILITIES = "https://uk-air.defra.gov.uk/data/sos/service?service=SOS&request=GetCapabilities"
4444
OGL3 = "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"
45+
PUBLISH_INTERVAL_SECONDS = 3600
4546

4647

4748
def _image_docs(station: dict) -> list[dict]:
@@ -242,6 +243,27 @@ def _system_sml(station: dict) -> dict:
242243
],
243244
"documents": docs,
244245
"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+
}],
245267
"position": {
246268
"type": "Point",
247269
"coordinates": [station["lon"], station["lat"]],

0 commit comments

Comments
 (0)