Main Page: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
<SPARQL> | <SPARQL> | ||
#defaultView:Map | #defaultView:Map | ||
SELECT ? | PREFIX iotd: <http://iot-device.wiki.opencura.com/entity/> | ||
? | PREFIX iotdt: <http://iot-device.wiki.opencura.com/prop/direct/> | ||
OPTIONAL {? | SELECT ?bathIoT ?bathIoTLabel ?bathIoTDescription ?coord ?API ?www ?eionet ?Hav WHERE { | ||
OPTIONAL {? | ?bathIoT wdt:P31 iotd:Q2. | ||
OPTIONAL {? | ?bathIoT wdt:P625 ?coord. | ||
OPTIONAL {?bathIoT wdt:P6269 ?API} # used as the service we get data from | |||
OPTIONAL {?bathIoT wdt:P856 ?www} # maybe use what is in Wikidata? | |||
OPTIONAL {?bathIoT wdt:P9616 ?BathWaterIdentifier} # BathIdentifier defined by eionet.europa.eu | |||
BIND(URI(CONCAT("https://badplatsen.havochvatten.se/badplatsen/karta/#/bath/",?BathWaterIdentifier)) AS ?Hav) | BIND(URI(CONCAT("https://badplatsen.havochvatten.se/badplatsen/karta/#/bath/",?BathWaterIdentifier)) AS ?Hav) | ||
# We have a technical debt with P9616 it should just be defined when it is created as an euProtectedAreaCode | # We have a technical debt with P9616 it should just be defined when it is created as an euProtectedAreaCode | ||
Line 37: | Line 40: | ||
* IoT devices at a bath with no [https://dd.eionet.europa.eu/dataelements/99263 Eionet bathingWaterIdentifier] - [https://tinyurl.com/yjrz3gav SPARQL] | * IoT devices at a bath with no [https://dd.eionet.europa.eu/dataelements/99263 Eionet bathingWaterIdentifier] - [https://tinyurl.com/yjrz3gav SPARQL] | ||
** IoT devices at a bath with a deprecated bathingWaterIdentifier i.e. it is a value at the Swedish Swedish Agency for Marine and Water Managemen but not an official bathingWaterIdentifier - SPARQL | ** IoT devices at a bath with a deprecated bathingWaterIdentifier i.e. it is a value at the Swedish Swedish Agency for Marine and Water Managemen but not an official bathingWaterIdentifier - SPARQL | ||
== Wikibase == | == Wikibase == | ||
* this is a [https://wikiba.se/fed/ federated Wikibase] and use just Wikidata properties see [https://iot-device.wiki.opencura.com/wiki/Special:ListProperties Special:ListProperties] | * this is a [https://wikiba.se/fed/ federated Wikibase] and use just Wikidata properties see [https://iot-device.wiki.opencura.com/wiki/Special:ListProperties Special:ListProperties] |
Revision as of 07:00, 21 June 2021
Welcome to iot-device wikibase. This is an experimental sandbox, where we gather IoT devices....
The intention is to
- to track APIs to IoT devices
- the purpose
- make it easy to get the latest bathing water temperature from all the bathing waters in Sweden
- primary target group - people ice skating and predicting ice ;-)
- get some understanding how we should design IoT to make them usable and agree about maybe an API standard
- TBD EntitySchema:E1 schema for describing a device
- TBD EntitySchema:E2 schema for measurements received from a device
- make it easy to get the latest bathing water temperature from all the bathing waters in Sweden
- map Swedish Bathing waters that all are candidates for an IoT bathwater device > 2700
- see also project European bathing waters
- EEA Map EU bathing waters > 27 000
- see also project European bathing waters
Quicklinks
- What we have on a Map / list / longer list - video how to get json
#defaultView:Map
PREFIX iotd: <http://iot-device.wiki.opencura.com/entity/>
PREFIX iotdt: <http://iot-device.wiki.opencura.com/prop/direct/>
SELECT ?bathIoT ?bathIoTLabel ?bathIoTDescription ?coord ?API ?www ?eionet ?Hav WHERE {
?bathIoT wdt:P31 iotd:Q2.
?bathIoT wdt:P625 ?coord.
OPTIONAL {?bathIoT wdt:P6269 ?API} # used as the service we get data from
OPTIONAL {?bathIoT wdt:P856 ?www} # maybe use what is in Wikidata?
OPTIONAL {?bathIoT wdt:P9616 ?BathWaterIdentifier} # BathIdentifier defined by eionet.europa.eu
BIND(URI(CONCAT("https://badplatsen.havochvatten.se/badplatsen/karta/#/bath/",?BathWaterIdentifier)) AS ?Hav)
# We have a technical debt with P9616 it should just be defined when it is created as an euProtectedAreaCode
# Lesson learned is that the Swedish Agency for Marine and Water Management (Hav) use the same value also before it is "created"
# * work around is that we rank it depreciated when its not "created" but used by Hav
BIND(URI(CONCAT("https://dd.eionet.europa.eu/vocabularyconcept/wise/WFDProtectedArea/euProtectedAreaCode.",?BathWaterIdentifier)) AS ?eionet)
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
SPARQL
- IoT devices at a bath with no Eionet bathingWaterIdentifier - SPARQL
- IoT devices at a bath with a deprecated bathingWaterIdentifier i.e. it is a value at the Swedish Swedish Agency for Marine and Water Managemen but not an official bathingWaterIdentifier - SPARQL
Wikibase
- this is a federated Wikibase and use just Wikidata properties see Special:ListProperties
- ?s ?p ?o