User:ChristianSW/Examples: Difference between revisions
Jump to navigation
Jump to search
ChristianSW (talk | contribs) m (+1) |
ChristianSW (talk | contribs) m (...) |
||
Line 5: | Line 5: | ||
PREFIX observer: <https://www.inaturalist.org/people/> | PREFIX observer: <https://www.inaturalist.org/people/> | ||
SELECT | SELECT ?iNatlink WHERE { | ||
?observation wbt:P3 observer:christiansw . | ?observation wbt:P3 observer:christiansw . | ||
?observation wbt:P6 ?iNatlink . | ?observation wbt:P6 ?iNatlink . | ||
Line 74: | Line 74: | ||
PREFIX observer: <https://www.inaturalist.org/people/> | PREFIX observer: <https://www.inaturalist.org/people/> | ||
SELECT | SELECT ?location ?iNatlink ?layer WHERE { | ||
?observation wbt:P3 observer:christiansw ; | ?observation wbt:P3 observer:christiansw ; | ||
wbt:P8 ?location ; | wbt:P8 ?location ; |
Revision as of 16:51, 3 February 2020
Observations by observer with links to iNaturalist
The following query uses these:
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX observer: <https://www.inaturalist.org/people/>
SELECT ?iNatlink WHERE {
?observation wbt:P3 observer:christiansw .
?observation wbt:P6 ?iNatlink .
}
Single observation with location and link to iNaturalist
The following query uses these:
#defaultView:Map
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT ?location ?iNatlink WHERE {
VALUES ?observation {wb:Q124485}
?observation wbt:P8 ?location ;
wbt:P6 ?iNatlink .
}
Link to German Wikipedia
The following query uses these:
#defaultView:Map
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT ?location ?iNatlink ?wikipedia WHERE {
VALUES ?observation {wb:Q124625}
?observation wbt:P8 ?location ;
wbt:P6 ?iNatlink ;
wbt:P9 ?scientific_name .
?scientific_name wbt:P11 ?wikidata_mapping .
SERVICE <https://query.wikidata.org/sparql> {
?wikipedia schema:about ?wikidata_mapping .
?wikipedia schema:inLanguage "de" .
?wikipedia schema:isPartOf <https://de.wikipedia.org/> .
}
}
Link to Wikispecies
The following query uses these:
#defaultView:Map
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT ?location ?iNatlink ?wikispecies WHERE {
VALUES ?observation {wb:Q131704}
?observation wbt:P8 ?location ;
wbt:P6 ?iNatlink ;
wbt:P9 ?scientific_name .
?scientific_name wbt:P11 ?wikidata_mapping .
SERVICE <https://query.wikidata.org/sparql> {
?wikispecies schema:about ?wikidata_mapping .
?wikispecies schema:isPartOf <https://species.wikimedia.org/> .
}
}
My Coccinellidae
The following query uses these:
#defaultView:Map
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
PREFIX observer: <https://www.inaturalist.org/people/>
SELECT ?location ?iNatlink ?layer WHERE {
?observation wbt:P3 observer:christiansw ;
wbt:P8 ?location ;
wbt:P6 ?iNatlink ;
wbt:P9 ?scientific_name .
?scientific_name wbt:P11 ?wikidata_mapping .
FILTER(?scientific_name IN (wb:Q5053, wb:Q5526, wb:Q97245, wb:Q128695, wb:Q96351)).
SERVICE <https://query.wikidata.org/sparql> {
?wikidata_mapping rdfs:label ?label FILTER (lang(?label) = "de") .
BIND(?label AS ?layer).
}
}