query-e7a952da0c7d6a139e09b2dea36d138c
Propertiesinstance of (P31)subclass of (P279)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?Lor WHERE {
?item (wdt:P31/wdt:P279*) wd:Q11424.
?item rdfs:label ?Lor.
FILTER(NOT EXISTS {
?item rdfs:label ?Len.
FILTER((LANG(?Len)) = "en")
})
FILTER((LANG(?Lor)) = "or")
}
ORDER BY ?Lor
LIMIT 123
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?Len")
v1("?Lor"):::projected
v3("?item"):::projected
a1((" "))
c6(["wd:Q11424"]):::iri
f0[["?Lor = 'or'"]]
f0 --> v1
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0f0[["?Len = 'en'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v1("?Len"):::projected
e0v2("?item"):::projected
end
f1--EXISTS--> f1e0
f1 --> v2
f1 --> v3
f1 --> c3
f2[["?Len = 'en'"]]
f2 --> v2
v3 --"rdfs:label"--> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
v3 --"rdfs:label"--> v1