query-5c071615ff05b77f89af5ddc729d3b15
Alternative version for above to get a few more
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT DISTINCT ?os ?osLabel ?subclassOf WHERE {
?os (p:P31/ps:P31/wdt:P279*) wd:Q9135.
?os wdt:P178 wd:Q2283.
?os wdt:P279* wd:Q1406.
OPTIONAL { ?os wdt:P279 ?subclassOf. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?osLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?os"):::projected
v1("?osLabel"):::projected
v3("?subclassOf"):::projected
a1((" "))
a2((" "))
c4(["wd:Q9135"]):::iri
c9(["bd:serviceParam"]):::iri
c7(["wd:Q1406"]):::iri
c6(["wd:Q2283"]):::iri
c11(["en"]):::literal
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c4
v2 --"p:direct/P178"--> c6
v2 --"p:direct/P279"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P279".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end