query-4ed05dbcbda1c11ac60cc2f3464f10ac
Finding instance of (P31) / subclass of (P279) message-oriented middleware (Q1092177)Subobjects and subclasses. How to return only the subobjects and not the intermediary nodes?
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 WHERE {
?subject wdt:P31*/wdt:P279* wd:Q1092177 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
order by ?subjectLabel
Query found at
- https://www.wikidata.org/wiki/User:Primhill.Computers/InformaticsQueriesMiddleware
- https://www.wikidata.org/wiki/User:Rc1959/InformaticsQueriesMiddleware
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?subject"):::projected
v1("?subjectLabel"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c3(["wd:Q1092177"]):::iri
c7(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end