query-0c505a3f254e5cdea34c2b1d3c00c340
Wikimedia CommonsThere are some properties to be used in connection with Wikimedia Commons: statements if sitelink is set:(P373)Commons category Sitelinks to Commons; find missing for Commons galleries (rare)(P935)Commons gallery for Commons categories(P373)Commons category for relevant individual images and videos(P10)video and (P18)image
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?article WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
MINUS { ?item wdt:P373 ?dummy . }
?article schema:about ?item
; schema:isPartOf <https://commons.wikimedia.org/> .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v2("?dummy")
v1("?item"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c8([https://commons.wikimedia.org/]):::iri
c4(["wd:Q26270618"]):::iri
c12(["en"]):::literal
v1 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P373"--> v2
end
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end