query-1c6ba48a57552d652637436b9794c352
...raw data fpr the previous query + including parent classes!
Use at
- https://query.wikidata.org/sparql
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 DISTINCT ?w ?wLabel ?class ?classLabel
WHERE
{
{
?w wdt:P463 wd:Q105757481 .
} UNION {
?p wdt:P31 wd:Q98270496 .
?p wdt:P1416 ?w .
}
?w wdt:P31/wdt:P279* ?class .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
}
ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?class"):::projected
v1("?number")
v3("?p")
v2("?w"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c10(["de,en"]):::literal
c4(["wd:Q98270496"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c4
v3 --"wdt:P1416"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P463"--> c2
end
union0r <== or ==> union0l
end
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end