query-17c9f4d40f5d906864246a7e5ac4434e

rq turtle/ttl

General looping instance/subclass combinationThis sparql query could in principle catch all the general loop cases - except it times out on the current WDQS...

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
    ?item (wdt:P31|wdt:P279)+ ?item .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) f0[["sameterm(?item,)"]] f0 --> v1 f0 --> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P279"--> a1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> a1 end union0r <== or ==> union0l end