|
42 | 42 | BGS_API_ROOT = "https://sensors.bgs.ac.uk/FROST-Server/v1.1" |
43 | 43 | OGL3 = "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" |
44 | 44 | UKGEOS_LEGAL = "https://www.ukgeos.ac.uk/legal-and-compliance" |
| 45 | +PUBLISH_INTERVAL_SECONDS = 900 |
45 | 46 |
|
46 | 47 |
|
47 | 48 | def _image_docs(station: dict) -> list[dict]: |
@@ -251,6 +252,27 @@ def _system_sml(station: dict) -> dict: |
251 | 252 | ], |
252 | 253 | "documents": docs, |
253 | 254 | "characteristics": [{"label": "Station Properties", "characteristics": characteristics}], |
| 255 | + "capabilities": [{ |
| 256 | + "definition": "http://www.w3.org/ns/ssn/systems/SystemCapability", |
| 257 | + "label": "Publisher Capabilities", |
| 258 | + "capabilities": [ |
| 259 | + { |
| 260 | + "type": "Quantity", |
| 261 | + "name": "publish_interval", |
| 262 | + "definition": "http://qudt.org/vocab/quantitykind/Period", |
| 263 | + "label": "Publish Interval", |
| 264 | + "uom": {"code": "s"}, |
| 265 | + "value": PUBLISH_INTERVAL_SECONDS, |
| 266 | + }, |
| 267 | + { |
| 268 | + "type": "Text", |
| 269 | + "name": "source_query_mode", |
| 270 | + "definition": "http://sensorml.com/ont/swe/property/ReportingFrequency", |
| 271 | + "label": "Source Query Mode", |
| 272 | + "value": "Latest BGS SensorThings observations polled by phenomenon time descending", |
| 273 | + }, |
| 274 | + ], |
| 275 | + }], |
254 | 276 | "position": { |
255 | 277 | "type": "Point", |
256 | 278 | "coordinates": [station["lon"], station["lat"]], |
|
0 commit comments