query-9015c25edf09e45b18a3fcf2fc8224b1
06:18, 22 July 2017 (UTC)) talk (d1g: first step is to understand that issue is systematic (every terminal image is shown); then... Fuzheado@
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 bd: <http://www.bigdata.com/rdf#>
#Show firearms cartridges and which they are based on
#defaultView:Graph
SELECT
?item ?itemLabel ?image
?other ?otherLabel ?image2
WHERE
{
?item wdt:P279+ wd:Q37144 . # cartridges
?item wdt:P144 ?other . # if the cartridge is based on another
?item wdt:P18 ?image . # grab image
?other wdt:P18 ?image2 . # grab image
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
v4("?image2"):::projected
v1("?item"):::projected
v2("?other"):::projected
c6(["bd:serviceParam"]):::iri
c2(["wd:Q37144"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P279"--> c2
v1 --"wdt:P144"--> v2
v1 --"wdt:P18"--> v3
v2 --"wdt:P18"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end