query-7b451a50e7e46c0566d04f73d7afbf39

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 ?item ?itemLabel
{
    wd:Q7315 wdt:P20 ?podItem .     # "place of death item"
    ?podItem wdt:P131+ ?item .      # item we ase looking for is a parent of "place of death item"
    ?item wdt:P31 ?cItem .          # item is and instance of "city item" 
    ?cItem wdt:P279+ wd:Q515        # "city item" is defined as subclass of city
    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("?cItem") v2("?item"):::projected v1("?podItem") c8(["bd:serviceParam"]):::iri c6(["wd:Q515"]):::iri c1(["wd:Q7315"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1 --"wdt:P20"--> v1 v1 --"wdt:P131"--> v2 v2 --"wdt:P31"--> v3 v3 --"wdt:P279"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end