Main Page: Difference between revisions

Jump to navigation Jump to search
2,533 bytes added ,  3 years ago
No edit summary
Line 15: Line 15:


==Quicklinks==
==Quicklinks==
* What we have on a [https://tinyurl.com/yf8x3vs7 Map] / [https://tinyurl.com/yz2w6q8w list] - [https://youtu.be/-Ge0XCm0AE0 video] how to get json
* What we have on a [https://iot-device.wiki.opencura.com/query/embed.html#%23defaultView%3AMap%0ASELECT%20%3Fitem%20%3FitemLabel%20%3FitemDescription%20%3Fcoord%20%3FAPI%20%3Fwww%20%3Feionet%20%3FHav%20WHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP625%20%3Fcoord.%0A%20%20OPTIONAL%20%7B%3Fitem%20wdt%3AP6269%20%3FAPI%7D%20%23%20used%20as%20the%20service%20we%20get%20data%20from%0A%20%20OPTIONAL%20%7B%3Fitem%20wdt%3AP856%20%3Fwww%7D%20%23%20maybe%20use%20what%20is%20in%20%20Wikidata%3F%20%0A%20%20OPTIONAL%20%7B%3Fitem%20wdt%3AP9616%20%3FBathWaterIdentifier%7D%20%23%20BathIdentifier%20defined%20by%20eionet.europa.eu%0A%20%20BIND%28URI%28CONCAT%28%22https%3A%2F%2Fbadplatsen.havochvatten.se%2Fbadplatsen%2Fkarta%2F%23%2Fbath%2F%22%2C%3FBathWaterIdentifier%29%29%20AS%20%3FHav%29%20%0A%20%20%23%20We%20have%20a%20technical%20debt%20with%20P9616%20it%20should%20just%20be%20defined%20when%20it%20is%20created%20as%20a%20euProtectedAreaCode%0A%20%20%23%20Lesson%20learned%20is%20that%20the%20Swedish%20Agency%20for%20Marine%20and%20Water%20Management%20%28Hav%29%20use%20the%20same%20value%20also%20before%20it%20is%20%22created%22%0A%20%20%23%20%2a%20work%20around%20is%20that%20we%20rank%20it%20depreciated%20when%20its%20not%20%22created%22%0A%20%20BIND%28URI%28CONCAT%28%22https%3A%2F%2Fdd.eionet.europa.eu%2Fvocabularyconcept%2Fwise%2FWFDProtectedArea%2FeuProtectedAreaCode.%22%2C%3FBathWaterIdentifier%29%29%20AS%20%3Feionet%29%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D Map] / [https://tinyurl.com/yz2w6q8w list] / [https://tinyurl.com/yj2cthxd longer list] - [https://youtu.be/-Ge0XCm0AE0 video] how to get json
<SPARQL>
<SPARQL>
#defaultView:Map
#defaultView:Map
Line 21: Line 21:
   ?item wdt:P625 ?coord.
   ?item wdt:P625 ?coord.
   OPTIONAL {?item wdt:P6269 ?API}
   OPTIONAL {?item wdt:P6269 ?API}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
#defaultView:Map
SELECT ?item ?itemLabel ?itemDescription ?coord ?API ?www ?eionet ?Hav WHERE {
  ?item wdt:P625 ?coord.
  OPTIONAL {?item wdt:P6269 ?API} # used as the service we get data from
  OPTIONAL {?item wdt:P856 ?www} # maybe use what is in  Wikidata?
  OPTIONAL {?item 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 a 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"
  BIND(URI(CONCAT("https://dd.eionet.europa.eu/vocabularyconcept/wise/WFDProtectedArea/euProtectedAreaCode.",?BathWaterIdentifier)) AS ?eionet)
   SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
}
Line 30: Line 43:
* this is a [https://wikiba.se/fed/ federated Wikibase] and use 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 Wikidata properties see [https://iot-device.wiki.opencura.com/wiki/Special:ListProperties Special:ListProperties]
* [https://tinyurl.com/yk5b3xvm ?s ?p ?o]
* [https://tinyurl.com/yk5b3xvm ?s ?p ?o]


== Links ==
== Links ==

Navigation menu