query-3c6871591ae07a480c4f98d5bf469540
Breadcrumbs for a class is a subclass of. (Q79769107)Halloween episode is but I am sure I know something that (Q79769107)Halloween episode for all classes. let's say I have no idea what (Q846205)Breadcrumb navigation I am looking for a general approach of how to generate a
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?linkTo {
wd:Q79769107 wdt:P279* ?item
OPTIONAL { ?item wdt:P279 ?linkTo }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?linkTo"):::projected
c1(["wd:Q79769107"]):::iri
c1 --"wdt:P279"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P279".-> v2
end