query-eab39e3963f3aa39d866f9ae14dd7ef4
directly, with no path elements between them at all. ?a might also just be ?b means that ?a something* ?bIf there are no other elements in the path, or more of this element”. The following query finds all descendants of Bach: one) is similar to an asterisk, but means “+A plus (
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 ?descendant ?descendantLabel
WHERE
{
wd:Q1339 wdt:P40+ ?descendant.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?descendant"):::projected
c1(["wd:Q1339"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
c1 --"wdt:P40"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end