query-70f5ce6e85b44915c26b0a78bbd01fce
Example query 1 Commons images verified by the iNaturalist community
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?image WHERE {
?item p:P18 ?node .
?node ps:P18 ?image .
?node prov:wasDerivedFrom ?references .
?references pr:P248 wd:Q16958215 .
OPTIONAL {?references pr:P5683 ?inatId .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v5("?inatId")
v1("?item"):::projected
v2("?node")
v4("?references")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q16958215"]):::iri
v1 --"p:P18"--> v2
v2 --"p:statement/P18"--> v3
v2 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P248"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:reference/P5683".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end