User:ChristianSW/Examples: Difference between revisions
Jump to navigation
Jump to search
ChristianSW (talk | contribs) m (...) |
ChristianSW (talk | contribs) m (hope it works...) |
||
Line 25: | Line 25: | ||
</sparql> | </sparql> | ||
== Link to Wikipedia == | == Link to German Wikipedia == | ||
< | <sparql tryit="1" list="1"> | ||
?observation wbt:P9 | #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:Q131704} | |||
?observation wbt:P8 ?location ; | |||
wbt:P6 ?iNatlink . | |||
wbt:P9 ?scientific_name . | |||
?scientific_name wbt:P11 ?wikidata_mapping . | |||
SERVICE <https://query.wikidata.org/sparql> { | SERVICE <https://query.wikidata.org/sparql> { | ||
?wikipedia schema:about ?wikidata_mapping . ?wikipedia schema:inLanguage " | ?wikipedia schema:about ?wikidata_mapping . ?wikipedia schema:inLanguage "de" . | ||
?wikipedia schema:isPartOf <https:// | ?wikipedia schema:isPartOf <https://de.wikipedia.org/> . | ||
} | } | ||
</ | } | ||
</sparql> | |||
== Link to Wikispecies == | == Link to Wikispecies == |
Revision as of 16:54, 2 February 2020
Observations by user 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 user: <https://www.inaturalist.org/people/>
SELECT DISTINCT ?iNatlink WHERE {
?observation wbt:P3 user: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:Q131704}
?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
?observation 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/> .
}