query-b0deccce5c9bbbca2eb58a21976dbdf6

rq turtle/ttl

abbreviation two more times to add the two required occupations. But as you might notice, there’s still some repetition. This is as if we said: ;This uses the Child has occupation composer and occupation pianist. which we would usually abbreviate as: Child has occupation composer and pianist. . With this, the query can be abbreviated to: allows you to append another object to a triple (reusing both subject and predicate),a allows you to append a predicate-object pair to a triple (reusing the subject), ;And SPARQL has some syntax for that as well: just like a

Use at

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
{
  ?dziecko wdt:P22 wd:Q1339;
         wdt:P25 wd:Q57487;
         wdt:P106 wd:Q36834,
                  wd:Q486748.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dziecko") c2(["wd:Q1339"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q57487"]):::iri c7(["wd:Q486748"]):::iri c6(["wd:Q36834"]):::iri v1 --"wdt:P22"--> c2 v1 --"wdt:P25"--> c4 v1 --"wdt:P106"--> c6 v1 --"wdt:P106"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end