query-a89190cc3ba3683ef05be2d71a5b8f9b
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?plot ?P1442_image ?article ?sitelink
WHERE
{
?item wdt:P119 wd:Q15936526.
OPTIONAL {?item p:P119/pq:P965 ?plot. }
OPTIONAL {?item wdt:P1442 ?P1442_image . }
OPTIONAL {?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("?P1442_image"):::projected
v4("?article"):::projected
v1("?item"):::projected
v2("?plot"):::projected
v5("?sitelink"):::projected
a1((" "))
c2(["wd:Q15936526"]):::iri
c8([https://commons.wikimedia.org/]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P119"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P119".-> a1
a1 --"p:qualifier/P965"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1442".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v1
v4 --"schema:isPartOf"--> c8
v4 --"schema:name"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end