query-a919f797f91a05a419f3f9c18c78a53e
clause, you get the item as well as its label: SELECT. If you add this to the ?foo, which contains the label of the item behind ?fooLabel in your query, you now also have a variable ?foo clause, you get additional variables: For every variable WHEREsomewhere within the
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 ?child ?childLabel
WHERE
{
# ?child father Bach
?child wdt:P22 wd:Q1339.
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("?child"):::projected
c2(["wd:Q1339"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v1 --"wdt:P22"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end