query-ebd97b6d26d5c728202c97a5509162ce
computer science term (Q66747126) subclasses
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 ?subject ?subjectLabel ?instanceOf WHERE {
?subject wdt:P31* wd:Q66747126 . # computer science term
OPTIONAL { ?subject wdt:P31 ?instanceOf } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
order by ?subjectLabel
Query found at
- https://www.wikidata.org/wiki/User:Primhill.Computers/InformaticsQueries
- https://www.wikidata.org/wiki/User:Rc1959/InformaticsQueries
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?instanceOf"):::projected
v2("?subject"):::projected
v1("?subjectLabel"):::projected
c4(["bd:serviceParam"]):::iri
c2(["wd:Q66747126"]):::iri
c6(["en"]):::literal
v2 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end