query-ae45359961422399bc01fdbb941c084d
MWAPI fu - en wiki articles lacking specified images). en:Acacia cockertonianaIs there any MWAPI or other magic which will establish which en.wiki articles lack the image specified against the article in this report? (The report lists range maps for taxons where the taxon has an en wiki article ... the article infobox has a parameter for the rangemap - e.g.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?image ?article
WHERE
{
?item wdt:P181 ?image.
bind(str(?image) as ?stri)
filter(strstarts(str(?image),"http://commons.wikimedia.org/wiki/Special:FilePath/Acacia"))
?sitelink ^schema:name ?article .
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> .
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;
v4("?article"):::projected
v1("?image"):::projected
v2("?item"):::projected
v5("?sitelink")
v3("?stri")
c6([https://en.wikipedia.org/]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["starts-with(str(?image),'http://commons.wikimedia.org/wiki/Special:FilePath/Acacia')"]]
f0 --> v1
v2 --"wdt:P181"--> v1
bind1[/"str(?image)"/]
v1 --o bind1
bind1 --as--o v3
v4 --"schema:name"--> v5
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end