query-36f89ea2adfbc71f38f48db64ef91f10
Map of Biosphere reserves with an entry and location in Wikidata and an English Wikipedia article
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#defaultView:Map
SELECT ?wikidata_item ?biosphere_reserve_name ?biosphereURL ?wikipedia_article ?image ?location
WHERE {
?wikidata_item wdt:P2520 ?biosphereURL ; # get a list of all biospheres
wdt:P625 ?location # and location
OPTIONAL{ ?wikidata_item wdt:P18 ?image }
?wikipedia_article schema:about ?wikidata_item ;
schema:isPartOf <https://en.wikipedia.org/>. # Must have an article in English wikipedia
?wikidata_item rdfs:label ?biosphere_reserve_name filter (lang(?biosphere_reserve_name) = "en")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?biosphereURL"):::projected
v1("?biosphere_reserve_name"):::projected
v5("?image"):::projected
v4("?location"):::projected
v2("?wikidata_item"):::projected
v6("?wikipedia_article"):::projected
c7([https://en.wikipedia.org/]):::iri
f0[["?biosphere_reserve_name = 'en'"]]
f0 --> v1
v2 --"wdt:P2520"--> v3
v2 --"wdt:P625"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v5
end
v6 --"schema:about"--> v2
v6 --"schema:isPartOf"--> c7
v2 --"rdfs:label"--> v1