Skip to content

Commit 1deebc6

Browse files
committed
Expose BGS SensorThings refresh interval
1 parent 0ae6ef8 commit 1deebc6

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

publishers/bgs_sensorthings/bootstrap_bgs_sensorthings.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
BGS_API_ROOT = "https://sensors.bgs.ac.uk/FROST-Server/v1.1"
4343
OGL3 = "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"
4444
UKGEOS_LEGAL = "https://www.ukgeos.ac.uk/legal-and-compliance"
45+
PUBLISH_INTERVAL_SECONDS = 900
4546

4647

4748
def _image_docs(station: dict) -> list[dict]:
@@ -251,6 +252,27 @@ def _system_sml(station: dict) -> dict:
251252
],
252253
"documents": docs,
253254
"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+
}],
254276
"position": {
255277
"type": "Point",
256278
"coordinates": [station["lon"], station["lat"]],

0 commit comments

Comments
 (0)