query-52376a0beac7f11d4d40a754b7008490
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?image ?sitelink ?article
WHERE
{
?item wdt:P1340 wd:Q17122834.
{?item wdt:P18 ?image . }
UNION
{ ?article schema:about ?item ;
schema:isPartOf <https://commons.wikimedia.org/> ;
schema:name ?sitelink .}
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("?article"):::projected
v2("?image"):::projected
v1("?item"):::projected
v4("?sitelink"):::projected
c9(["bd:serviceParam"]):::iri
c6([https://commons.wikimedia.org/]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q17122834"]):::iri
v1 --"wdt:P1340"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c6
v3 --"schema:name"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P18"--> v2
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end