User:ChristianSW/Snippets: Difference between revisions
Jump to navigation
Jump to search
ChristianSW (talk | contribs) m (...) |
ChristianSW (talk | contribs) m (+1) |
||
Line 32: | Line 32: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[https://tinyurl.com/t9vj3ro Sophox Query] | [https://tinyurl.com/t9vj3ro Sophox Query] | ||
== Wikidata -> Sophox == | |||
<syntaxhighlight> | |||
#defaultView:Map | |||
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/> | |||
PREFIX observer: <https://www.inaturalist.org/people/> | |||
SELECT ?location ?iNatlink WHERE { | |||
SERVICE <https://sophox.org/sparql> { | |||
SERVICE <https://biodiversity.wiki.opencura.com/query/sparql> { | |||
?observation wbt:P3 observer:christiansw ; | |||
wbt:P8 ?location ; | |||
wbt:P6 ?iNatlink . | |||
}} | |||
} | |||
</syntaxhighlight> | |||
[https://w.wiki/Gpj Wikidata Query] |
Revision as of 20:30, 7 February 2020
States of Germany with iNaturalist Search URLs
#defaultView:Map
SELECT ?placename ?pic ?coord ?iNatlinkI ?iNatlinkII WHERE {
SERVICE <https://query.wikidata.org/sparql> {
?place wdt:P31 wd:Q1221156 ;
wdt:P7471 ?iNat_place_ID ;
wdt:P625 ?coord .
OPTIONAL { ?place wdt:P18 ?pic . }
BIND(URI(CONCAT("https://www.inaturalist.org/places/", STR(?iNat_place_ID))) AS ?iNatlinkI)
BIND(URI(CONCAT("https://www.inaturalist.org/observations?subview=grid&view=species&place_id=", STR(?iNat_place_ID))) AS ?iNatlinkII)
?place rdfs:label ?placename FILTER (lang(?placename) = "de") .
}
}
Sophox
#defaultView:Map
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
PREFIX observer: <https://www.inaturalist.org/people/>
SELECT ?location ?iNatlink WHERE {
SERVICE <https://biodiversity.wiki.opencura.com/query/sparql> {
?observation wbt:P3 observer:christiansw ;
wbt:P8 ?location ;
wbt:P6 ?iNatlink .
}
}
Wikidata -> Sophox
#defaultView:Map
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
PREFIX observer: <https://www.inaturalist.org/people/>
SELECT ?location ?iNatlink WHERE {
SERVICE <https://sophox.org/sparql> {
SERVICE <https://biodiversity.wiki.opencura.com/query/sparql> {
?observation wbt:P3 observer:christiansw ;
wbt:P8 ?location ;
wbt:P6 ?iNatlink .
}}
}