query-1ce3a3f0276eaaa848dee8666c0a660d

rq turtle/ttl

TODO

Use at

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#>
#defaultView:ImageGrid
#title: Coins depicting living stuff
SELECT DISTINCT ?item ?itemLabel ?something ?somethingLabel  ?image
WHERE 
{
  ?item wdt:P279* wd:Q41207 . 
  ?item wdt:P180 ?something .

  ?item wdt:P18 ?image .
  {?something wdt:P31 wd:Q55983715}
  UNION
  {?something wdt:P31 wd:Q16521}

  MINUS { ?item wdt:P180 wd:Q5 } .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?image"):::projected v1("?item"):::projected v2("?something"):::projected c2(["wd:Q41207"]):::iri c10(["bd:serviceParam"]):::iri c6(["wd:Q55983715"]):::iri c8(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wd:Q16521"]):::iri v1 --"wdt:P279"--> c2 v1 --"wdt:P180"--> v2 v1 --"wdt:P18"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c6 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P180"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end