query-2f62a56386568fb30201830f6f1cd646

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 ?linkTo {
?item (wdt:P31/(wdt:P279*)) ?subclass.
  ?subclass (wdt:P279*) wd:Q10864048.
OPTIONAL { ?linkTo wdt:P47 ?item ; wdt:P31 wd:Q10864048 } .

SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v3("?linkTo"):::projected v2("?subclass") a1((" ")) c6(["bd:serviceParam"]):::iri c8(["en"]):::literal c3(["wd:Q10864048"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> v2 v2 --"wdt:P279"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P47".-> v1 v3 --"wdt:P31"--> c3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end