query-08894e964e67acc63a270c5b34cb8001
Return a graph of class/subclass relationships for computer peripheral equipment
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#>
#defaultView:Graph
SELECT ?per ?perLabel ?subclassOf
WHERE {
?per wdt:P279* wd:Q178648.
OPTIONAL { ?per wdt:P279 ?subclassOf. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?perlabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?per"):::projected
v1("?perlabel")
v3("?subclassOf"):::projected
c2(["wd:Q178648"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v2 --"wdt:P279"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P279".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end