query-0fb4bd25e4f775eaa70bf45e5e735d12

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#>
SELECT distinct ?item ?itemLabel ?location ?geo ?img  WHERE {
  ?item wdt:P31/wdt:P279* wd:Q1107.                                #item is an instance or subclass of anime
  ?item wdt:P495 wd:Q17.                                           #country of origin is Japan
  optional {?item wdt:P276 ?location . ?location wdt:P625 ?geo .}  #optionally has a location which has coordinate
  optional {?item wdt:P18 ?img .}                                  #optionally has an image
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,jp". }
} order by desc(?img) ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?geo"):::projected v1("?img"):::projected v3("?item"):::projected v2("?itemLabel"):::projected v4("?location"):::projected a1((" ")) c5(["wd:Q17"]):::iri c3(["wd:Q1107"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en,jp"]):::literal v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P495"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P276".-> v4 v4 --"wdt:P625"--> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P18".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end